[jboss-user] [Installation, Configuration & DEPLOYMENT] - Problem re-deploying war inside ear

cardoso do-not-reply at jboss.com
Sun Apr 20 05:54:43 EDT 2008


Hi everybody,

when I am redeploying an ear-packed application (copying to default/server/deploy) the web app is not updated by jboss, although all files inside the EAR and WAR are changed or have new timestamps.

The server console output is:

  | [TomcatDeployment] deploy, ctxPath=/myapp, vfsUrl=myapp.ear/myapp.war
  | 

The files in the default/tmp/deploy folder are the old ones.

There is no error message or exception shown in the console log, the server log shows the exception below:


  | 2008-04-20 11:19:06,605 DEBUG [org.jboss.web.tomcat.service.deployers.TomcatDeployment] Unable to retrieve orb
  | javax.management.InstanceNotFoundException: jboss:service=CorbaORB is not registered.
  | 	at org.jboss.mx.server.registry.BasicMBeanRegistry.get(BasicMBeanRegistry.java:529)
  | 	at org.jboss.mx.server.MBeanServerImpl.getAttribute(MBeanServerImpl.java:559)
  | 	at org.jboss.web.tomcat.service.deployers.TomcatDeployment$EncListener.lifecycleEvent(TomcatDeployment.java:506)
  | 	at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)
  | 	at org.apache.catalina.core.StandardContext.start(StandardContext.java:4358)
  | 	at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791)
  | 	at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771)
  | 	at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:525)
  | 	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.apache.tomcat.util.modeler.BaseModelMBean.invoke(BaseModelMBean.java:297)
  | 	at org.jboss.mx.server.RawDynamicInvoker.invoke(RawDynamicInvoker.java:164)
  | 	at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:668)
  | 	at org.apache.catalina.core.StandardContext.init(StandardContext.java:5357)
  | 	at org.jboss.web.tomcat.service.deployers.TomcatDeployment.performDeployInternal(TomcatDeployment.java:346)
  | 	at org.jboss.web.tomcat.service.deployers.TomcatDeployment.performDeploy(TomcatDeployment.java:142)
  | 	at org.jboss.web.deployers.AbstractWarDeployment.start(AbstractWarDeployment.java:347)
  | 	at org.jboss.web.deployers.WebModule.startModule(WebModule.java:89)
  | 	at org.jboss.web.deployers.WebModule.start(WebModule.java:67)
  | 	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:157)
  | 	at org.jboss.mx.server.Invocation.dispatch(Invocation.java:96)
  | 	at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
  | 	at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
  | 	at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:668)
  | 	at org.jboss.system.microcontainer.ServiceProxy.invoke(ServiceProxy.java:184)
  | 	at $Proxy5.start(Unknown Source)
  | 	at org.jboss.system.microcontainer.StartStopLifecycleAction.installAction(StartStopLifecycleAction.java:42)
  | 	at org.jboss.system.microcontainer.StartStopLifecycleAction.installAction(StartStopLifecycleAction.java:37)
  | 	at org.jboss.dependency.plugins.action.SimpleControllerContextAction.simpleInstallAction(SimpleControllerContextAction.java:62)
  | 	at org.jboss.dependency.plugins.action.AccessControllerContextAction.install(AccessControllerContextAction.java:71)
  | 	at org.jboss.dependency.plugins.AbstractControllerContextActions.install(AbstractControllerContextActions.java:51)
  | 	at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:327)
  | 	at org.jboss.system.microcontainer.ServiceControllerContext.install(ServiceControllerContext.java:255)
  | 	at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1309)
  | 	at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:734)
  | 	at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:862)
  | 	at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:784)
  | 	at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:622)
  | 	at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:411)
  | 	at org.jboss.system.ServiceController.doChange(ServiceController.java:659)
  | 	at org.jboss.system.ServiceController.start(ServiceController.java:431)
  | 	at org.jboss.system.deployers.ServiceDeployer.start(ServiceDeployer.java:150)
  | 	at org.jboss.system.deployers.ServiceDeployer.deploy(ServiceDeployer.java:108)
  | 	at org.jboss.system.deployers.ServiceDeployer.deploy(ServiceDeployer.java:46)
  | 	at org.jboss.deployers.spi.deployer.helpers.AbstractSimpleRealDeployer.internalDeploy(AbstractSimpleRealDeployer.java:65)
  | 	at org.jboss.deployers.spi.deployer.helpers.AbstractRealDeployer.deploy(AbstractRealDeployer.java:50)
  | 	at org.jboss.deployers.plugins.deployers.DeployerWrapper.deploy(DeployerWrapper.java:169)
  | 	at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:853)
  | 	at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:874)
  | 	at org.jboss.deployers.plugins.deployers.DeployersImpl.install(DeployersImpl.java:794)
  | 	at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:327)
  | 	at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1309)
  | 	at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:734)
  | 	at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:862)
  | 	at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:784)
  | 	at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:622)
  | 	at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:411)
  | 	at org.jboss.deployers.plugins.deployers.DeployersImpl.process(DeployersImpl.java:498)
  | 	at org.jboss.deployers.plugins.main.MainDeployerImpl.process(MainDeployerImpl.java:506)
  | 	at org.jboss.system.server.profileservice.ProfileServiceBootstrap.loadProfile(ProfileServiceBootstrap.java:246)
  | 	at org.jboss.system.server.profileservice.ProfileServiceBootstrap.start(ProfileServiceBootstrap.java:131)
  | 	at org.jboss.bootstrap.AbstractServerImpl.start(AbstractServerImpl.java:408)
  | 	at org.jboss.Main.boot(Main.java:208)
  | 	at org.jboss.Main$1.run(Main.java:534)
  | 	at java.lang.Thread.run(Thread.java:595)
  | 

There is a servlet that is calling an EJB that it is looking up via initial context and "myapp/beanname/local", but this works fine, unless I re-deploy the application. After redeploying I am also getting class cast exceptions from the line in the servlet where the local interface of the EJB is requested.

I do not configure any ejb references in the jar or the war, as I understood from JBoss documentation that this is not required for JBoss.

After stopping JBoss and starting again everything is working fine again and the new webapp is used.

I am using:
- Sun Java 1.5.0_11 under Linux
- JBoss [Morpheus] 5.0.0.Beta4 (build: SVNTag=JBoss_5_0_0_Beta4 date=200802091115)

Any help appreciated.

Thomas

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

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



More information about the jboss-user mailing list