*
The moose likes Struts and the fly likes Getting java.lang.IllegalStateException: The configuration manager shouldn't be null Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Getting java.lang.IllegalStateException: The configuration manager shouldn Watch "Getting java.lang.IllegalStateException: The configuration manager shouldn New topic
Author

Getting java.lang.IllegalStateException: The configuration manager shouldn't be null

Pvirgo sharma
Greenhorn

Joined: Sep 12, 2012
Posts: 2
Hi,

I am getting below error while tomcat shutdown.Please let me know how I can fix below issue.

WARNING: Error while removing context
java.lang.IllegalStateException: The configuration manager shouldn't be null
at org.apache.struts2.dispatcher.Dispatcher.getContainer(Dispatcher.java:866)
at org.apache.struts2.dispatcher.Dispatcher.cleanup(Dispatcher.java:259)
at org.apache.struts2.dispatcher.FilterDispatcher.destroy(FilterDispatcher.java:238)
at org.apache.catalina.core.ApplicationFilterConfig.release(ApplicationFilterConfig.java:332)
at org.apache.catalina.core.StandardContext.filterStop(StandardContext.java:3835)
at org.apache.catalina.core.StandardContext.stop(StandardContext.java:4567)
at org.apache.catalina.core.ContainerBase.removeChild(ContainerBase.java:924)
at org.apache.catalina.startup.HostConfig.undeployApps(HostConfig.java:1248)
at org.apache.catalina.startup.HostConfig.stop(HostConfig.java:1219)
at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:316)
at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
at org.apache.catalina.core.ContainerBase.stop(ContainerBase.java:1086)
at org.apache.catalina.core.ContainerBase.stop(ContainerBase.java:1098)
at org.apache.catalina.core.StandardEngine.stop(StandardEngine.java:448)
at org.apache.catalina.core.StandardService.stop(StandardService.java:584)
at org.apache.catalina.core.StandardServer.stop(StandardServer.java:744)
at org.apache.catalina.startup.Catalina.stop(Catalina.java:633)
at org.apache.catalina.startup.Catalina.start(Catalina.java:608)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
jatan bhavsar
Ranch Hand

Joined: Jul 23, 2008
Posts: 296

hi,

Add Actioncontextcleanup to web.xml which will solve your problem as cleanup process should take place for the acquire resources.
How to add actioncontextcleanup
Refer this thread.

Regards
jatan
Pvirgo sharma
Greenhorn

Joined: Sep 12, 2012
Posts: 2
Hi,

Thanks for your reply.

I have tried to add Actioncontextcleanup filter in web.xml but still i was getting the same error.

Later on I found out that in web.xml two url pattern was mapping to FilterDispatcher.I have removed jspStruts2 filter name which has solved my problem.

<filter>
<filter-name>struts2</filter-name>
<filter-class>org.apache.struts2.dispatcher.FilterDispatcher</filter-class>
</filter>

<filter-mapping>
<filter-name>struts2</filter-name>
<url-pattern>/*</url-pattern>
</filter-mapping>

<filter>
<filter-name>jspStruts2</filter-name>
<filter-class>org.apache.struts2.dispatcher.FilterDispatcher</filter-class>
</filter>

<filter-mapping>
<filter-name>jspStruts2</filter-name>
<url-pattern>*.jsp</url-pattern>
</filter-mapping>

Regards,
Priya
jatan bhavsar
Ranch Hand

Joined: Jul 23, 2008
Posts: 296

Hi Priya,

Implementation reference was given in thread but any ways you solved the prob thats good.

Regards
jatan

 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Getting java.lang.IllegalStateException: The configuration manager shouldn't be null
 
Similar Threads
Strtus 2 Configuration issues
exception in struts2 application
Error while trying to run struts2-blank-2.1.8.1 sample application in Eclipse and Tomcat 6
BeanFactory not initialized or already closed - call 'refresh' before accessing beans via the Applic
First Struts Application + Unable to load configuration