liferay portlet之servlet portlet开发的异常问题求助

duzewen 2010-11-10

大家好,小弟最近学习liferay portlet的二次开发,在学习新建servlet时,出现问题,特求助牛人!

我建了一个library的例子,其中使用servlet来实现request和response的调用(应该很简单),过程如下:

1, ext-web/docroot/html/portlet/ext目录下新建了下library目录,其中放置页面;

2, 通过在ext-web/docroot/WEB-INF目录下的portlet-ext/xml,liferay-portlet-ext.xml,liferay-display.xml,struts-config.xml,tiles-def.xml和ext-impl/src/content/Language-ext.properties下进行配置;

3, 在ext-impl/src/com/ext/portlet/library/action下新建了一个处理的Action

这些都是按网上找的library开发的例子做的,但是在部署的时候出现以下异常:

Starting Liferay Portal Standard Edition 5.2.3 (Augustine / Build 5203 / May 20, 2009)

2010-11-1014:53:30org.apache.catalina.core.StandardContextloadOnStartup

涓ラ噸:Servletthrewload()exception

java.lang.NullPointerException

atcom.liferay.portal.dao.orm.hibernate.CacheWrapper.invalidate(CacheWrapper.java:127)

atcom.liferay.portal.kernel.cache.CacheRegistry.clear(CacheRegistry.java:47)

atcom.liferay.portal.kernel.cache.CacheRegistry.setActive(CacheRegistry.java:91)

atcom.liferay.portal.events.StartupAction.doRun(StartupAction.java:112)

atcom.liferay.portal.events.StartupAction.run(StartupAction.java:66)

atcom.liferay.portal.servlet.MainServlet.init(MainServlet.java:161)

atjavax.servlet.GenericServlet.init(GenericServlet.java:212)

atorg.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1172)

atorg.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:992)

atorg.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:4058)

atorg.apache.catalina.core.StandardContext.start(StandardContext.java:4371)

atorg.apache.catalina.startup.HostConfig.checkResources(HostConfig.java:1116)

atorg.apache.catalina.startup.HostConfig.check(HostConfig.java:1214)

atorg.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:293)

atorg.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)

atorg.apache.catalina.core.ContainerBase.backgroundProcess(ContainerBase.java:1337)

atorg.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1601)

atorg.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1610)

atorg.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.run(ContainerBase.java:1590)

 at java.lang.Thread.run(Thread.java:619)

有哪位高手牛人帮我看看,我什么地方建错了,还是配置错了!

相关推荐