You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@roller.apache.org by Nitin Lokhande <ad...@gmail.com> on 2007/10/11 09:09:09 UTC
last exception_roller3.1_websphere
hi all,
i have resolved all exceptions but just one last exception is coming that i
dont know how can i resolve. i tried by adding few lines of
contextloaderservlet of spring but its not working. can anybody help me out
for this exception?
>From systemout.log
[10/11/07 9:38:20:502 IST] 00000016 ServletWrappe E SRVE0100E: Did not
realize init() exception thrown by servlet context:
java.lang.IllegalStateException: 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.springframework.web.context.ContextLoader.initWebApplicationContext(
ContextLoader.java:173)
at org.springframework.web.context.ContextLoaderServlet.init(
ContextLoaderServlet.java:83)
at javax.servlet.GenericServlet.init(GenericServlet.java:256)
at com.ibm.ws.webcontainer.servlet.ServletWrapper.init(
ServletWrapper.java:262)
at com.ibm.ws.webcontainer.servlet.ServletWrapper.initialize(
ServletWrapper.java:1319)
at
com.ibm.wsspi.webcontainer.extension.WebExtensionProcessor.createServletWrapper
(WebExtensionProcessor.java:84)
at
com.ibm.ws.webcontainer.webapp.WebApp.initializeTargetMappings(WebApp.java
:540)
at com.ibm.ws.webcontainer.webapp.WebApp.initialize(WebApp.java
:379)
at com.ibm.ws.webcontainer.webapp.WebGroup.addWebApplication(
WebGroup.java:114)
at com.ibm.ws.webcontainer.VirtualHost.addWebApplication(
VirtualHost.java:127)
at com.ibm.ws.webcontainer.WebContainer.addWebApp(
WebContainer.java:776)
at com.ibm.ws.webcontainer.WebContainer.addWebApplication(
WebContainer.java:729)
at com.ibm.ws.runtime.component.WebContainerImpl.install(
WebContainerImpl.java:140)
at com.ibm.ws.runtime.component.WebContainerImpl.start(
WebContainerImpl.java:360)
at com.ibm.ws.runtime.component.ApplicationMgrImpl.start(
ApplicationMgrImpl.java:1019)
at
com.ibm.ws.runtime.component.DeployedApplicationImpl.fireDeployedObjectStart
(DeployedApplicationImpl.java:1028)
at com.ibm.ws.runtime.component.DeployedModuleImpl.start(
DeployedModuleImpl.java:538)
at com.ibm.ws.runtime.component.DeployedApplicationImpl.start(
DeployedApplicationImpl.java:724)
at
com.ibm.ws.runtime.component.ApplicationMgrImpl.startApplication(
ApplicationMgrImpl.java:683)
at
com.ibm.ws.runtime.component.ApplicationMgrImpl$AppInitializer.run(
ApplicationMgrImpl.java:1678)
at
com.ibm.ws.runtime.component.ComponentImpl$_AsynchInitializer.run(
ComponentImpl.java:304)
at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1332)
or from systemerr.log
[10/11/07 9:29:57:042 IST] 00000016 SystemErr R
java.lang.IllegalStateException: 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.springframework.web.context.ContextLoader.initWebApplicationContext(
ContextLoader.java:173)
at
org.springframework.web.context.ContextLoaderListener.contextInitialized(
ContextLoaderListener.java:49)
at
com.ibm.ws.webcontainer.webapp.WebApp.notifyServletContextCreated(
WebApp.java:1355)
at com.ibm.ws.webcontainer.webapp.WebApp.initialize(WebApp.java
:371)
at com.ibm.ws.webcontainer.webapp.WebGroup.addWebApplication(
WebGroup.java:114)
at com.ibm.ws.webcontainer.VirtualHost.addWebApplication(
VirtualHost.java:127)
at com.ibm.ws.webcontainer.WebContainer.addWebApp(
WebContainer.java:776)
at com.ibm.ws.webcontainer.WebContainer.addWebApplication(
WebContainer.java:729)
at com.ibm.ws.runtime.component.WebContainerImpl.install(
WebContainerImpl.java:140)
at com.ibm.ws.runtime.component.WebContainerImpl.start(
WebContainerImpl.java:360)
at com.ibm.ws.runtime.component.ApplicationMgrImpl.start(
ApplicationMgrImpl.java:1019)
at
com.ibm.ws.runtime.component.DeployedApplicationImpl.fireDeployedObjectStart
(DeployedApplicationImpl.java:1028)
at com.ibm.ws.runtime.component.DeployedModuleImpl.start(
DeployedModuleImpl.java:538)
at com.ibm.ws.runtime.component.DeployedApplicationImpl.start(
DeployedApplicationImpl.java:724)
at
com.ibm.ws.runtime.component.ApplicationMgrImpl.startApplication(
ApplicationMgrImpl.java:683)
at
com.ibm.ws.runtime.component.ApplicationMgrImpl$AppInitializer.run(
ApplicationMgrImpl.java:1678)
at
com.ibm.ws.runtime.component.ComponentImpl$_AsynchInitializer.run(
ComponentImpl.java:304)
at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1332)