[jboss-user] [Clustering/JBoss] - WAR redeployment requires restart

rajeshchande do-not-reply at jboss.com
Wed May 21 08:46:41 EDT 2008


JBOss : 4.2.2GA 
JDK : 1.5.0_12 
SunOS hubudweb02 5.10 Generic_118822-18 sun4u sparc SUNW,Sun-Fire-V240

I have 2 clustered instances working perfectly fine. I have around 20 applications deployed on this cluster. When I re-deploy one of the application the cluster, I get the following errors:

####################
  |  | INFO  [TomcatDeployer] deploy, ctxPath=/, warUrl=.../tmp/deploy/tmp65116ssa-exp.war/
  |  | ERROR [BaseModelMBean] Exception invoking method destroy
  |  | java.lang.NullPointerException
  |  |   at org.jboss.mx.loading.RepositoryClassLoader.findClass(RepositoryClassLoader.java:630)
  |  |   at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
  |  |   at org.jboss.mx.loading.RepositoryClassLoader.loadClassImpl(RepositoryClassLoader.java:474)
  |  |   at org.jboss.mx.loading.RepositoryClassLoader.loadClass(RepositoryClassLoader.java:415)
  |  |   at java.lang.ClassLoader.loadClass(ClassLoader.java:299)
  |  |   at java.net.FactoryURLClassLoader.loadClass(URLClassLoader.java:579)
  |  |   at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
  |  |   at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1345)
  |  |   at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1204)
  |  |   at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
  |  |   at org.apache.struts2.dispatcher.Dispatcher.cleanup(Dispatcher.java:257)
  |  |   at org.apache.struts2.dispatcher.FilterDispatcher.destroy(FilterDispatcher.java:221)
  | 
  | 
  | 
  | |   at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.run(AbstractDeploymentScanner.java:225)
  |  WARN  [ServiceController] Problem starting service jboss.web.deployment:war=ssa.war,id=181
  | 9396930
  | | org.jboss.deployment.DeploymentException: Error during deploy; - nested throwable: (javax.management.Ru
  | ntimeOperationsException: Exception invoking method destroy)
  | |   at org.jboss.web.AbstractWebDeployer.start(AbstractWebDeployer.java:384)
  | |   at org.jboss.web.WebModule.startModule(WebModule.java:83)
  | |   at org.jboss.web.WebModule.startService(WebModule.java:61)
  | |   at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:289)
  | |   at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:245)
  | |   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:585)
  | |   at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
  | |   at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
  | |   at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
  | |   at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
  | |   at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
  | |   at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:978)
  | |   at $Proxy0.start(Unknown Source)
  | ####################

This WAR file has following jar files in WEB-INF/lib

##########################
  | commons-beanutils-bean-collections.jar
  | commons-beanutils-core.jar
  | commons-beanutils.jar
  | commons-digester.jar
  | commons-lang-2.3.jar
  | displaytag-1.1.1.jar
  | displaytag-export-poi-1.1.1.jar
  | freemarker-2.3.8.jar
  | itext-1.3.jar
  | jstl-1.1.2.jar
  | ognl-2.6.11.jar
  | saxon7.jar
  | standard-1.0.6.jar
  | struts2-core-2.0.11.jar
  | struts2-tiles-plugin-2.0.11.jar
  | tiles-api-2.0.4.jar
  | tiles-core-2.0.4.jar
  | tiles-jsp-2.0.4.jar
  | xwork-2.0.4.jar
  | ##########################

The only solution that works is RESTART of both JBoss clustered instances. At that time, everything works fine till the next redeployment of this WAR files. 

All other WAR seem to suuccessfully redeploy. There is NO need of restart of the JBoss instances required except this particular WAR file.

Why the redeployment fails for this WAR file? Is this a struts issue OR a JBoss bug? I could see below struts issue on net but not sure if this is the culprit here.

https://issues.apache.org/struts/browse/WW-2523
https://issues.apache.org/struts/browse/WW-2509
http://forums.bea.com/thread.jspa?threadID=300000385

Can someone help me conclude whats the exact issue? 

Regards,
Rajesh.


View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4152329#4152329

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4152329



More information about the jboss-user mailing list