小编Bor*_*lav的帖子

无法初始化上下文,因为已存在根应用程序上下文

我的项目使用了tapestry 5.3.0,spring 3.0.6.RELEASE,hibernate 3.6.8.FINAL和maven.当我使用mvn jetty启动jetty启动项目时:运行,我得到以下内容:

2011-12-13 16:15:42.947:WARN::failed app: java.lang.RuntimeException: Exception     constructing service 'ApplicationContext': Cannot initialize context because there is  already a root application context present - check whether you have multiple ContextLoader*  definitions in your web.xml!
2011-12-13 16:15:42.948:WARN::Failed startup of context  org.mortbay.jetty.plugin.Jetty6PluginWebAppContext@98062f{/projektni,/home/borislav/eclipse_ workspace/web_apps/projektni/src/main/webapp}
java.lang.RuntimeException: Exception constructing service 'ApplicationContext': Cannot  initialize context because there is already a root application context present - check  whether you have multiple ContextLoader* definitions in your web.xml!
at  org.apache.tapestry5.ioc.internal.services.JustInTimeObjectCreator.obtainObjectFromCreator(J ustInTimeObjectCreator.java:78)
at   org.apache.tapestry5.ioc.internal.services.JustInTimeObjectCreator.createObject(JustInTimeOb jectCreator.java:56)
at $ConfigurableWebApplicationContext_10f23e440970.delegate(Unknown Source) …
Run Code Online (Sandbox Code Playgroud)

spring hibernate tapestry jetty maven

2
推荐指数
1
解决办法
8214
查看次数

标签 统计

hibernate ×1

jetty ×1

maven ×1

spring ×1

tapestry ×1