2016-06-21 3 views
0

내 문제 si onclear, 필자는 liferay (테스트 포틀릿)에서 작동하는 프로젝트를 복사하여 붙여 넣기 때문에 필요한 다양한 파일에서 포틀릿의 이름을 바꾸고 배포하려고합니다. 그것. 그것은 NullPointer를 던지고 실제로 이유를 알 수 없습니다. 다음은 오류입니다.포틀릿 배포시 nullpointerexception

GRAVE: Exception sending context destroyed event to listener instance of class com.liferay.portal.kernel.servlet.SecurePluginContextListener 
java.lang.ExceptionInInitializerError 
    at com.liferay.portal.kernel.deploy.hot.HotDeployEvent.initDependentServletContextNames(HotDeployEvent.java:97) 
    at com.liferay.portal.kernel.deploy.hot.HotDeployEvent.<init>(HotDeployEvent.java:53) 
    at com.liferay.portal.kernel.servlet.PluginContextListener.fireUndeployEvent(PluginContextListener.java:170) 
    at com.liferay.portal.kernel.servlet.SecurePluginContextListener.fireUndeployEvent(SecurePluginContextListener.java:294) 
    at com.liferay.portal.kernel.servlet.PluginContextListener.doPortalDestroy(PluginContextListener.java:132) 
    at com.liferay.portal.kernel.util.BasePortalLifecycle.portalDestroy(BasePortalLifecycle.java:31) 
    at com.liferay.portal.kernel.servlet.PluginContextListener.contextDestroyed(PluginContextListener.java:97) 
    at org.apache.catalina.core.StandardContext.listenerStop(StandardContext.java:5063) 
    at org.apache.catalina.core.StandardContext.stopInternal(StandardContext.java:5723) 
    at org.apache.catalina.util.LifecycleBase.stop(LifecycleBase.java:232) 
    at org.apache.catalina.core.ContainerBase.removeChild(ContainerBase.java:1028) 
    at org.apache.catalina.startup.HostConfig.undeploy(HostConfig.java:1547) 
    at org.apache.catalina.startup.HostConfig.checkResources(HostConfig.java:1453) 
    at org.apache.catalina.startup.HostConfig.check(HostConfig.java:1695) 
    at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:333) 
    at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117) 
    at org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:90) 
    at org.apache.catalina.core.ContainerBase.backgroundProcess(ContainerBase.java:1374) 
    at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1546) 
    at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1556) 
    at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.run(ContainerBase.java:1524) 
    at java.lang.Thread.run(Unknown Source) 
Caused by: java.lang.NullPointerException 
    at com.liferay.portal.kernel.util.PropsUtil.get(PropsUtil.java:32) 
    at com.liferay.portal.kernel.deploy.hot.DependencyManagementThreadLocal.<clinit>(DependencyManagementThreadLocal.java:40) 
    ... 22 more 

나는 liferay의 tomcat 배포 디렉토리를 통해 배포합니다.

nullpointer 예외는 아니지만 liferay의 포틀릿 배포에 대한 질문입니다.

+0

[NullPointerException이란 무엇이며 어떻게 수정합니까?] (http://stackoverflow.com/questions/218384/what-is-a-nullpointerexception-and-how-do-i-fix -it) – Sanjeev

+0

널 포인터가 무엇인지 알기 때문에이 문맥에서 왜 던져 졌는지 알 수 없다 ... – softwareplay

+0

그걸 위해서'PropsUtil.java'로 가서'line 32'에있는 것을보아야한다. NPE 일으키는 – Sanjeev

답변

0

포틀릿 파일의 이름을 변경 한 이후 가능성이있는 포틀릿 구성 안내서입니다. Portlet.xmlLiferay-portlet.xml의 내용을 알려 주실 수 있습니까?