2013-03-26 38 views
0

致命錯誤啓動的struts-Spring集成* *** 貌似沒有配置你的Web應用程序的春天聽衆! 在WebApplicationContextUtils返回一個有效的ApplicationContext之前什麼都不會有效。 您可能需要以下內容添加到web.xml中:錯誤,同時部署我的應用程序

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

請提供你的web.xml,歡呼聲 – david99world 2013-03-26 12:07:30

回答

1

您是否嘗試過加入...

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

到你的web.xml?錯誤似乎很清楚。

+0

已經有這條線在我的web.xml – Issamovitch 2013-03-26 11:40:42

+0

我發現這個鏈接它告訴我liferay 6.1在web.xml中缺少listner http://www.liferay.com/community/forums//message_boards/message/15246978 – Issamovitch 2013-03-26 11:43:16

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以在啓動時獲取應用程序上下文。

你的問題是?

+0

我發現這個鏈接它的告訴我liferay 6.1在web.xml中缺少listner http://www.liferay.com/community/forums/-/message_boards/message/15246978 – Issamovitch 2013-03-26 11:44:27

+0

你不需要鏈接 - 你有ac學習例外和兩個答案告訴你該怎麼做。你爲什麼不做我們告訴你的事? – duffymo 2013-03-26 11:46:08

+2

在我的web.xml中已經有你告訴我添加的內容,所以任何想法 – Issamovitch 2013-03-26 11:48:52

0

實際上是看來這是在類

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 有人創建了一個社區版補丁可解決60角落找尋問題,包括LPS-29103