这是我第一次使用luminis / liferay环境开发portlet我一直在尝试部署我的portlet但仍然遇到各种错误,不太确定如何解决这些问题
2013-06-25 10:14:59,542 INFO [ContainerBackgroundProcessor[StandardEngine[Catalina]]] org.apache.catalina.startup.HostConfig Undeploying context [/WebApplication6]
2013-06-25 10:14:59,636 WARN [ContainerBackgroundProcessor[StandardEngine[Catalina]]] org.apache.catalina.startup.HostConfig Error while removing context [/WebApplication6]
java.lang.NullPointerException
at com.liferay.portal.kernel.servlet.PortalClassLoaderFilter.destroy(PortalClassLoaderFilter.java:58)
at org.apache.catalina.core.ApplicationFilterConfig.release(ApplicationFilterConfig.java:253)
at org.apache.catalina.core.StandardContext.filterStop(StandardContext.java:3670)
at org.apache.catalina.core.StandardContext.stop(StandardContext.java:4354)
at org.apache.catalina.core.ContainerBase.removeChild(ContainerBase.java:893)
at org.apache.catalina.startup.HostConfig.checkResources(HostConfig.java:1007)
at org.apache.catalina.startup.HostConfig.check(HostConfig.java:1215)
at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:293)
at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:120)
at org.apache.catalina.core.ContainerBase.backgroundProcess(ContainerBase.java:1306)
at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1570)
at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1579)
at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.run(ContainerBase.java:1559)
at java.lang.Thread.run(Thread.java:662)
答案 0 :(得分:0)
检查您的/WEB-INF/liferay-plugin-package.xml
文件,错误与此有关。它抱怨xml
标题,有些东西可以存在。
最重要的错误消息是:The processing instruction target matching "[xX][mM][lL]" is not allowed
。所以。检查给定的目标,也许你拼错了一些东西。
有时编辑会在文件开头保存UTF-8字节顺序标记(BOM)。在纯文本编辑器中打开该文件并检查文件的内容。