3 Replies Latest reply: Mar 4, 2012 5:09 AM by michaelbini RSS

    Problems uploading EAR

    michaelbini Newbie

      Hi,

      I am using JON server 3.

      When I try to upload a new EAR to the server I am getting Error.

      My work flow

      –Inventory->Servers->Jboss

      –Click the Inventory tab.

      –Create Child

      The ear is uploaded but the file size 33kb, the original size is 5 MB.

       

       

      Errors:

      on JON:

      12:02:31,515 INFO  [ContainerBase] org.rhq.enterprise.gui.coregui.CoreGUI PackageVersionFileUploadServlet: file was uploaded: Test.ear

      12:02:40,787 INFO  [ResourceFactoryServerServiceImpl] Received create resource response: CreateResourceResponse[RequestId=10041, Status=Failure]

      JBOSS 5 eap

      On The server :

      org.jboss.deployers.spi.DeploymentException: Error determining structure: Test.ear

              at org.jboss.deployers.spi.DeploymentException.rethrowAsDeploymentException(DeploymentException.java:49)

              at org.jboss.deployers.vfs.plugins.structure.explicit.DeclaredStructure.determineStructure(DeclaredStructure.java:89)

              at org.jboss.deployers.vfs.plugins.structure.StructureDeployerWrapper.determineStructure(StructureDeployerWrapper.java:73)

              at org.jboss.deployers.vfs.plugins.structure.VFSStructuralDeployersImpl.doDetermineStructure(VFSStructuralDeployersImpl.java:196)

              at org.jboss.deployers.vfs.plugins.structure.VFSStructuralDeployersImpl.determineStructure(VFSStructuralDeployersImpl.java:221)

              at org.jboss.deployers.structure.spi.helpers.AbstractStructuralDeployers.determineStructure(AbstractStructuralDeployers.java:77)

              at org.jboss.deployers.plugins.main.MainDeployerImpl.determineStructure(MainDeployerImpl.java:1001)

              at org.jboss.deployers.plugins.main.MainDeployerImpl.determineDeploymentContext(MainDeployerImpl.java:437)

              at org.jboss.deployers.plugins.main.MainDeployerImpl.addDeployment(MainDeployerImpl.java:387)

              at org.jboss.deployers.plugins.main.MainDeployerImpl.addDeployment(MainDeployerImpl.java:297)

              at org.jboss.system.server.profileservice.repository.MainDeployerAdapter.addDeployment(MainDeployerAdapter.java:86)

              at org.jboss.system.server.profileservice.hotdeploy.HDScanner.scan(HDScanner.java:385)

              at org.jboss.system.server.profileservice.hotdeploy.HDScanner.run(HDScanner.java:294)

              at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)

              at java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:317)

              at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:150)

              at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:98)

              at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(ScheduledThreadPoolExecutor.java:180)

              at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:204)

              at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)

              at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)

              at java.lang.Thread.run(Thread.java:662)

      Caused by: java.lang.RuntimeException: java.util.zip.ZipException: error in opening zip file

              at org.jboss.virtual.plugins.context.AbstractExceptionHandler.handleZipEntriesInitException(AbstractExceptionHandler.java:39)

              at org.jboss.virtual.plugins.context.helpers.NamesExceptionHandler.handleZipEntriesInitException(NamesExceptionHandler.java:63)

              at org.jboss.virtual.plugins.context.zip.ZipEntryContext.ensureEntries(ZipEntryContext.java:636)

              at org.jboss.virtual.plugins.context.zip.ZipEntryContext.checkIfModified(ZipEntryContext.java:786)

              at org.jboss.virtual.plugins.context.zip.ZipEntryContext.getChild(ZipEntryContext.java:830)

              at org.jboss.virtual.plugins.context.zip.ZipEntryHandler.createChildHandler(ZipEntryHandler.java:195)

              at org.jboss.virtual.plugins.context.AbstractVirtualFileHandler.structuredFindChild(AbstractVirtualFileHandler.java:690)

              at org.jboss.virtual.plugins.context.zip.ZipEntryHandler.getChild(ZipEntryHandler.java:169)

              at org.jboss.virtual.plugins.context.DelegatingHandler.getChild(DelegatingHandler.java:107)

              at org.jboss.virtual.VirtualFile.getChild(VirtualFile.java:492)

              at org.jboss.deployers.vfs.plugins.structure.explicit.DeclaredStructure.determineStructure(DeclaredStructure.java:64)

              ... 20 more

      Caused by: java.util.zip.ZipException: error in opening zip file

              at java.util.zip.ZipFile.open(Native Method)

              at java.util.zip.ZipFile.<init>(ZipFile.java:127)

              at java.util.jar.JarFile.<init>(JarFile.java:135)

              at java.util.jar.JarFile.<init>(JarFile.java:99)

              at org.jboss.virtual.plugins.context.zip.ZipFileWrapper.ensureZipFile(ZipFileWrapper.java:173)

              at org.jboss.virtual.plugins.context.zip.ZipFileWrapper.acquire(ZipFileWrapper.java:250)

              at org.jboss.virtual.plugins.context.zip.ZipEntryContext.initEntries(ZipEntryContext.java:485)

              at org.jboss.virtual.plugins.context.zip.ZipEntryContext.ensureEntries(ZipEntryContext.java:629)

              ... 28 more

        • 1. Re: Problems uploading EAR
          jay shaughnessy Expert

          How was the EAR packaged?  I think we've seen some problems in the past with certain zip utilities.  Also, if you're using JON feel free to open a support case to get your problem addressed quickly.

          • 2. Re: Problems uploading EAR
            Ian Springer Master

            Can you see if there any related errors in your RHQ agent.log on the system you're trying to deploy the EAR to?

            • 3. Re: Problems uploading EAR
              michaelbini Newbie

              Hi,

              The ear created using ant 1.8.2.

              I found this in the agent.log :

               

              2012-03-04 12:01:07,684 INFO  [MeasurementManager.sender-1] (rhq.core.pc.measurement.MeasurementSenderRunner)- Measurement collection for [6] metrics took 5ms - sending report to Server...

              2012-03-04 12:01:07,747 WARN  [ResourceContainer.invoker.nonDaemon-1] (rhq.plugins.jbossas5.script.ScriptComponent)- Failed to compute the SHA256 digest of the script: C:\Servers\rhq\rhq-agent\wsprovide.bat

              java.io.FileNotFoundException: wsprovide.bat (The system cannot find the file specified)

                        at java.io.FileInputStream.open(Native Method)

                        at java.io.FileInputStream.<init>(FileInputStream.java:120)

                        at org.rhq.core.util.MessageDigestGenerator.calcDigest(MessageDigestGenerator.java:255)

                        at org.rhq.core.util.MessageDigestGenerator.calcDigestString(MessageDigestGenerator.java:291)

                        at org.rhq.plugins.jbossas5.script.ScriptComponent.discoverDeployedPackages(ScriptComponent.java:228)

                        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.rhq.core.pc.inventory.ResourceContainer$ComponentInvocationThread.call(ResourceContainer.java:552)

                        at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)

                        at java.util.concurrent.FutureTask.run(FutureTask.java:138)

                        at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)

                        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)

                        at java.lang.Thread.run(Thread.java:662)

              2012-03-04 12:01:14,219 INFO  [ResourceFactory.executor-1] (rhq.core.pc.inventory.CreateResourceRunner)- Creating resource through report: CreateResourceReport: ResourceType=[ResourceType[id=0, name=Enterprise Application (EAR), plugin=JBossAS5, category=Service]], ResourceKey=[null]

              2012-03-04 12:01:18,454 ERROR [ResourceContainer.invoker.nonDaemon-1] (rhq.plugins.jbossas5.deploy.ManagedComponentDeployer)- Error deploying application for request [CreateResourceReport: ResourceType=[ResourceType[id=0, name=Enterprise Application (EAR), plugin=JBossAS5, category=Service]], ResourceKey=[null]].

              java.lang.Exception: Failed to distribute 'file:/C:/Servers/jboss-eap-5.1/jboss-as/server/default/tmp/jopr-jbossas5-deploy-content7299775656826224434.tmp/Test.ear' to 'Test.ear' - cause: java.lang.RuntimeException:java.io.IOException: Can not get connection to server. Problem establishing socket connection for InvokerLocator [socket://JSpeed-PC:28861/] -> java.io.IOException:Can not get connection to server. Problem establishing socket connection for InvokerLocator [socket://JSpeed-PC:28861/]

                        at org.rhq.plugins.jbossas5.util.DeploymentUtils.deployArchive(DeploymentUtils.java:106)

                        at org.rhq.plugins.jbossas5.deploy.ManagedComponentDeployer.deploy(ManagedComponentDeployer.java:120)

                        at org.rhq.plugins.jbossas5.helper.CreateChildResourceFacetDelegate.createContentBasedResource(CreateChildResourceFacetDelegate.java:129)

                        at org.rhq.plugins.jbossas5.helper.CreateChildResourceFacetDelegate.createResource(CreateChildResourceFacetDelegate.java:61)

                        at org.rhq.plugins.jbossas5.ApplicationServerComponent.createResource(ApplicationServerComponent.java:306)

                        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.rhq.core.pc.inventory.ResourceContainer$ComponentInvocationThread.call(ResourceContainer.java:552)

                        at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)

                        at java.util.concurrent.FutureTask.run(FutureTask.java:138)

                        at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)

                        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)

                        at java.lang.Thread.run(Thread.java:662)

              2012-03-04 12:01:18,457 WARN  [ResourceFactory.executor-1] (rhq.core.pc.inventory.CreateResourceRunner)- Throwable was found in creation report for request [10071]: java.lang.Exception: Failed to distribute 'file:/C:/Servers/jboss-eap-5.1/jboss-as/server/default/tmp/jopr-jbossas5-deploy-content7299775656826224434.tmp/Test.ear' to 'Test.ear' - cause: java.lang.RuntimeException:java.io.IOException: Can not get connection to server. Problem establishing socket connection for InvokerLocator [socket://JSpeed-PC:28861/] -> java.io.IOException:Can not get connection to server. Problem establishing socket connection for InvokerLocator [socket://JSpeed-PC:28861/] - Enable DEBUG logging to see the stack trace.

              2012-03-04 12:01:18,457 INFO  [ResourceFactory.executor-1] (rhq.core.pc.inventory.CreateResourceRunner)- Sending create response to server: CreateResourceResponse[RequestId=10071, Status=Failure]

              2012-03-04 12:01:37,685 INFO  [MeasurementManager.sender-1] (rhq.core.pc.measurement.MeasurementSenderRunner)- Measurement collection for [13] metrics took 74ms - sending report to Server...

              2012-03-04 12:01:37,749 WARN  [ResourceContainer.invoker.nonDaemon-1] (rhq.plugins.jbossas5.script.ScriptComponent)- Failed to compute the SHA256 digest of the script: C:\Servers\rhq\rhq-agent\startjboss.bat

              java.io.FileNotFoundException: startjboss.bat (The system cannot find the file specified)

                        at java.io.FileInputStream.open(Native Method)

                        at java.io.FileInputStream.<init>(FileInputStream.java:120)

                        at org.rhq.core.util.MessageDigestGenerator.calcDigest(MessageDigestGenerator.java:255)

                        at org.rhq.core.util.MessageDigestGenerator.calcDigestString(MessageDigestGenerator.java:291)

                        at org.rhq.plugins.jbossas5.script.ScriptComponent.discoverDeployedPackages(ScriptComponent.java:228)

                        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.rhq.core.pc.inventory.ResourceContainer$ComponentInvocationThread.call(ResourceContainer.java:552)

                        at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)

                        at java.util.concurrent.FutureTask.run(FutureTask.java:138)

                        at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)

                        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)

                        at java.lang.Thread.run(Thread.java:662)

              2012-03-04 12:02:07,687 INFO  [MeasurementManager.sender-1] (rhq.core.pc.measurement.MeasurementSenderRunner)- Measurement collection for [6] metrics took 7ms - sending report to Server...

              2012-03-04 12:02:37,687 INFO  [MeasurementManager.sender-1] (rhq.core.pc.measurement.MeasurementSenderRunner)- Measurement collection for [13] metrics took 83ms - sending report to Server...

              2012-03-04 12:03:07,688 INFO  [MeasurementManager.sender-1] (rhq.core.pc.measurement.MeasurementSenderRunner)- Measurement collection for [6] metrics took 7ms - sending report to Server...

              2012-03-04 12:03:37,689 INFO  [MeasurementManager.sender-1] (rhq.core.pc.measurement.MeasurementSenderRunner)- Measurement collection for [13] metrics took 69ms - sending report to Server...

              2012-03-04 12:03:53,012 INFO  [InventoryManager.availability-1] (rhq.core.pc.inventory.InventoryManager)- Sending availability report to Server...

              2012-03-04 12:04:08,487 INFO  [MeasurementManager.sender-1] (rhq.core.pc.measurement.MeasurementSenderRunner)- Measurement collection for [25] metrics took 822ms - sending report to Server...

              2012-03-04 12:04:37,699 INFO  [MeasurementManager.sender-1] (rhq.core.pc.measurement.MeasurementSenderRunner)- Measurement collection for [1077] metrics took 735ms - sending report to Server...