1 Reply Latest reply on Nov 22, 2006 10:05 AM by Peter Johnson

    Redeploy the application resulting errors

    Sreenivasa Reddy Newbie

      Hi,

      When I redeploy my application some times I am getting either of these two errors...

      The error occurred when I redeploy the project.


      10:13:29,828 INFO [Server] JBoss (MX MicroKernel) [4.0.4.GA (build: CVSTag=JBos
      s_4_0_4_GA date=200605151000)] Started in 16s:110ms

      10:13:44,593 INFO [TomcatDeployer] undeploy, ctxPath=/PMgt, warUrl=.../deploy/P
      Mgt.ear/PMgtWeb.war/
      10:13:44,609 INFO [EARDeployer] Undeploying J2EE application, destroy step: fil
      e:/C:/Program Files/jboss-4.0.4.GA/server/default/deploy/PMgt.ear/
      10:13:44,609 INFO [EARDeployer] Undeployed J2EE application: file:/C:/Program F
      iles/jboss-4.0.4.GA/server/default/deploy/PMgt.ear/

      10:13:44,609 INFO [EARDeployer] Init J2EE application: file:/C:/Program Files/j
      boss-4.0.4.GA/server/default/deploy/PMgt.ear/
      10:13:44,609 ERROR [MainDeployer] Could not initialise deployment: file:/C:/Prog
      ram Files/jboss-4.0.4.GA/server/default/deploy/PMgt.ear/
      org.jboss.deployment.DeploymentException: url file:/C:/Program Files/jboss-4.0.4
      .GA/server/default/deploy/PMgt.ear/PMgtWeb.war could not be opened, does it exis
      t?
      at org.jboss.deployment.DeploymentInfo.(DeploymentInfo.java:211)
      at org.jboss.deployment.EARDeployer.init(EARDeployer.java:250)
      at org.jboss.deployment.MainDeployer.init(MainDeployer.java:861)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:798)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:771)
      at sun.reflect.GeneratedMethodAccessor8.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
      sorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:585)
      at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatch
      er.java:155)
      at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
      at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractIntercept
      or.java:133)
      at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
      at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelM
      BeanOperationInterceptor.java:142)
      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:659)
      at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
      at $Proxy6.deploy(Unknown Source)
      at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymen
      tScanner.java:421)
      at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentS
      canner.java:610)
      at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.
      doScan(AbstractDeploymentScanner.java:263)
      at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.
      loop(AbstractDeploymentScanner.java:274)
      at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.
      run(AbstractDeploymentScanner.java:225)

      One more redeployment of the same is working properly without any errors

      The error occurred when I redeploy the project again.

      10:43:04,125 INFO [TomcatDeployer] undeploy, ctxPath=/PMgt, warUrl=.../deploy/P
      Mgt.ear/PMgtWeb.war/
      10:43:04,125 INFO [EARDeployer] Undeploying J2EE application, destroy step: fil
      e:/C:/Program Files/jboss-4.0.4.GA/server/default/deploy/PMgt.ear/
      10:43:04,125 INFO [EARDeployer] Undeployed J2EE application: file:/C:/Program F
      iles/jboss-4.0.4.GA/server/default/deploy/PMgt.ear/

      10:43:04,140 INFO [EARDeployer] Init J2EE application: file:/C:/Program Files/j
      boss-4.0.4.GA/server/default/deploy/PMgt.ear/
      10:43:04,218 INFO [TomcatDeployer] deploy, ctxPath=/PMgt, warUrl=.../deploy/PMg
      t.ear/PMgtWeb.war/
      10:43:04,390 INFO [EARDeployer] Started J2EE application: file:/C:/Program File
      s/jboss-4.0.4.GA/server/default/deploy/PMgt.ear/
      10:43:06,140 ERROR [STDERR] Exception in thread "AWT-EventQueue-0"
      10:43:06,140 ERROR [STDERR] java.lang.NullPointerException
      10:43:06,140 ERROR [STDERR] at sun.awt.Win32GraphicsEnvironment.displayChang
      ed(Win32GraphicsEnvironment.java:109)
      10:43:06,156 ERROR [STDERR] at sun.awt.windows.WToolkit$4.run(WToolkit.java:
      698)
      10:43:06,156 ERROR [STDERR] at java.awt.event.InvocationEvent.dispatch(Invoc
      ationEvent.java:209)
      10:43:06,156 ERROR [STDERR] at java.awt.EventQueue.dispatchEvent(EventQueue.
      java:461)
      10:43:06,156 ERROR [STDERR] at java.awt.EventDispatchThread.pumpOneEventForH
      ierarchy(EventDispatchThread.java:242)
      10:43:06,156 ERROR [STDERR] at java.awt.EventDispatchThread.pumpEventsForHie
      rarchy(EventDispatchThread.java:163)
      10:43:06,156 ERROR [STDERR] at java.awt.EventDispatchThread.pumpEvents(Event
      DispatchThread.java:157)
      10:43:06,156 ERROR [STDERR] at java.awt.EventDispatchThread.pumpEvents(Event
      DispatchThread.java:149)
      10:43:06,156 ERROR [STDERR] at java.awt.EventDispatchThread.run(EventDispatc
      hThread.java:110)

      One more redeployment of the same is working properly without any errors.

      Can you please any body suggest me how to resolve it?.........


      Thanks in advance.

      Regards,
      seenu