0 Replies Latest reply on Aug 24, 2011 3:59 AM by log

    Unable to upgrade existing EAR resource via RHQ

    log Newbie

      Hello.

       

      To redeploy EAR via RHQ, i just followed the instructions by clicking on the chile resource and uploading a new package.  When I do this,   the existing EAR in the deploy directory of JBOSS has been renamed to ".rej".  I suppose that this is to force JBOSS to undeploy the ancient EAR.  Afterwards I got a stacktrace error :

       

      2011-08-23 14:02:21,827 ERROR [org.jboss.deployment.MainDeployer] Could not make local copy for file:/opt/jboss/jboss-4.2.3.GA/appli/server/smcg/deploy/smh-ear.ear

      java.io.FileNotFoundException: /opt/jboss/jboss-4.2.3.GA/appli/server/smcg/deploy/smh-ear.ear

              at org.jboss.net.protocol.file.FileURLConnection.connect(FileURLConnection.java:94)

              at org.jboss.net.protocol.file.FileURLConnection.getInputStream(FileURLConnection.java:103)

              at java.net.URL.openStream(URL.java:1010)

              at org.jboss.deployment.MainDeployer.copy(MainDeployer.java:1241)

              at org.jboss.deployment.MainDeployer.makeLocalCopy(MainDeployer.java:1187)

              at org.jboss.deployment.MainDeployer.init(MainDeployer.java:851)

              at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:809)

              at org.jboss.deployment.MainDeployer.redeploy(MainDeployer.java:588)

              at org.jboss.deployment.MainDeployer.redeploy(MainDeployer.java:562)

              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.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)

              at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)

              at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)

              at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)

              at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.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 sun.reflect.GeneratedMethodAccessor575.invoke(Unknown Source)

              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

              at java.lang.reflect.Method.invoke(Method.java:597)

              at org.jboss.jmx.connector.invoker.InvokerAdaptorService.invoke(InvokerAdaptorService.java:266)

              at sun.reflect.GeneratedMethodAccessor77.invoke(Unknown Source)

              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

              at java.lang.reflect.Method.invoke(Method.java:597)

              at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)

              at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)

              at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)

              at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)

              at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)

              at org.jboss.jmx.connector.invoker.SerializableInterceptor.invoke(SerializableInterceptor.java:74)

              at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)

       

      As for RHQ, deployment has failed and here's the stacktrace :

       

      org.rhq.plugins.jbossas.helper.MainDeployer$DeployerException:Failed to redeploy /opt/jboss/jboss-4.2.3.GA/appli/server/smcg/deploy/smh-ear.ear -> org.mc4j.ems.connection.EmsInvocationException:Exception on invocation of [redeploy]org.mc4j.ems.connection.EmsConnectException: Connection failure null -> org.mc4j.ems.connection.EmsConnectException:Connection failure null -> javax.management.MBeanException:null -> org.jboss.deployment.DeploymentException:url file:/opt/jboss/jboss-4.2.3.GA/appli/server/smcg/deploy/smh-ear.ear could not be opened, does it exist? ***** FAILED TO ROLLBACK TO ORIGINAL APPLICATION FILE. *****: java.io.IOException:Failed to delete file or directory: /opt/jboss/jboss-4.2.3.GA/appli/server/smcg/deploy/smh-ear.ear

       

       

      Do you have any ideas why the redeployment function on RHQ 4.0.1 doesn't work.