部署我的应用程序时出错

时间:2013-03-26 11:35:40

标签: spring struts liferay-6

致命错误启动STRUTS-SPRING INTEGRATION * *** 看起来没有为您的Web应用程序配置Spring监听器! 在WebApplicationContextUtils返回有效的ApplicationContext之前,什么都不会起作用。 您可能需要将以下内容添加到web.xml:

<listener>
    <listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>
</listener>

3 个答案:

答案 0 :(得分:1)

您是否尝试过添加...

<listener>
    <listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>
</listener>

到你的web.xml?错误似乎很清楚。

答案 1 :(得分:1)

Looks like the Spring listener was not configured for your web app! Nothing will work until WebApplicationContextUtils returns a valid ApplicationContext. You might need to add the following to web.xml: org.springframework.web.context.ContextLoaderListener

它没有比这更清楚。在ContextLoaderListener添加web.xml以在启动时获取应用上下文。

你的问题是什么?

答案 2 :(得分:0)

实际上这似乎是这个类中的一个新bug

com.liferay.portal.tools.deploy.BaseDeployer

截至Liferay版本6.1.1,您自己指出的主题(http://liferay.com/community/forums/-/message_boards/message/15246978)表示最后:
http://issues.liferay.com/browse/LPS-29103
因此,要么等待下一个版本修复此问题,要么在类路径中添加修补版本的BaseDeployer。

如果您决定使用第二种选择,请务必遵循本指南背后的想法 http://www.liferay.com/de/group/customer/kbase/-/knowledge_base/article/14079871 http://www.liferay.com/de/group/customer/kbase/-/knowledge_base/article/14079952

关于包含该类的修补版本的jar的放置。 否则你可能会遇到一些类加载问题。

无论如何,在你开始行动之前看看 http://www.liferay.com/de/community/forums/-/message_boards/message/19126821 有人创建了一个社区版补丁,解决了包括LPS-29103在内的大约60个问题