Petals ESB CLI

Unable to deploy a local artifact on a remote container

Details

  • Type: Bug Bug
  • Status: Resolved Resolved
  • Priority: Critical Critical
  • Resolution: Fixed
  • Affects Version/s: 2.1.1
  • Fix Version/s: 2.1.2, 2.2.0
  • Component/s: Command 'deploy'
  • Security Level: Public
  • Description:
    Hide

    Using a Petals CLI command as:

    petals-cli -h remote-host -n 7700 -u petals -p petals -c -- deploy -u file:///tmp/my-artifact.zip

    I'm not able to deploy my local artifact /tmp/my-artifact.zip on the Petals ESB container running on a remote host remote-host.

    The following error occurs on the container side. This error is normal because no file named /tmp/my-artifact.zip exists on the host running the Petals container:

    sample-0 2014/02/19 16:06:39,980 GMT+0100 SEVERE [Petals.JBI-Management.InstallationService] : Unable to load a new installer at location 'file:/tmp/my-artifact.zip'
    java.lang.Exception: org.ow2.petals.basisapi.exception.PetalsException: Can't copy entity package to work directory
    	at org.ow2.petals.microkernel.jbi.management.installation.InstallationServiceImpl.loadNewInstaller(InstallationServiceImpl.java:346)
    	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 sun.reflect.misc.Trampoline.invoke(MethodUtil.java:57)
    	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 sun.reflect.misc.MethodUtil.invoke(MethodUtil.java:260)
    	at javax.management.modelmbean.RequiredModelMBean$4.run(RequiredModelMBean.java:1137)
    	at java.security.AccessController.doPrivileged(Native Method)
    	at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:87)
    	at javax.management.modelmbean.RequiredModelMBean.invokeMethod(RequiredModelMBean.java:1131)
    	at javax.management.modelmbean.RequiredModelMBean.invoke(RequiredModelMBean.java:984)
    	at mx4j.server.interceptor.InvokerMBeanServerInterceptor.invoke(InvokerMBeanServerInterceptor.java:221)
    	at mx4j.server.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:120)
    	at mx4j.server.interceptor.SecurityMBeanServerInterceptor.invoke(SecurityMBeanServerInterceptor.java:84)
    	at mx4j.server.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:120)
    	at mx4j.server.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:120)
    	at mx4j.server.interceptor.ContextClassLoaderMBeanServerInterceptor.invoke(ContextClassLoaderMBeanServerInterceptor.java:203)
    	at mx4j.server.MX4JMBeanServer.invoke(MX4JMBeanServer.java:1043)
    	at com.sun.jmx.remote.security.MBeanServerAccessController.invoke(MBeanServerAccessController.java:447)
    	at javax.management.remote.rmi.RMIConnectionImpl.doOperation(RMIConnectionImpl.java:1454)
    	at javax.management.remote.rmi.RMIConnectionImpl.access$300(RMIConnectionImpl.java:74)
    	at javax.management.remote.rmi.RMIConnectionImpl$PrivilegedOperation.run(RMIConnectionImpl.java:1295)
    	at java.security.AccessController.doPrivileged(Native Method)
    	at javax.management.remote.rmi.RMIConnectionImpl.doPrivilegedOperation(RMIConnectionImpl.java:1394)
    	at javax.management.remote.rmi.RMIConnectionImpl.invoke(RMIConnectionImpl.java:818)
    	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 sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:303)
    	at sun.rmi.transport.Transport$1.run(Transport.java:159)
    	at java.security.AccessController.doPrivileged(Native Method)
    	at sun.rmi.transport.Transport.serviceCall(Transport.java:155)
    	at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:535)
    	at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0(TCPTransport.java:790)
    	at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:649)
    	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:895)
    	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:918)
    	at java.lang.Thread.run(Thread.java:662)
    Caused by: org.ow2.petals.basisapi.exception.PetalsException: Can't copy entity package to work directory
    	at org.ow2.petals.microkernel.jbi.management.task.CopyArchiveToWorkDirTask.copyEntityPackage(CopyArchiveToWorkDirTask.java:68)
    	at org.ow2.petals.microkernel.jbi.management.task.CopyArchiveToWorkDirTask.execute(CopyArchiveToWorkDirTask.java:57)
    	at org.ow2.petals.microkernel.api.jbi.management.TaskProcessor.process(TaskProcessor.java:73)
    	at org.ow2.petals.microkernel.jbi.management.installation.InstallationServiceImpl.loadNewInstaller(InstallationServiceImpl.java:343)
    	... 43 more
    Caused by: java.io.FileNotFoundException: Source '/tmp/se-diff-agreg-1.0.2-SNAPSHOT.zip' does not exist
    	at org.apache.commons.io.FileUtils.copyFile(FileUtils.java:637)
    	at org.apache.commons.io.FileUtils.copyFile(FileUtils.java:607)
    	at org.ow2.petals.microkernel.jbi.management.task.CopyArchiveToWorkDirTask.copyEntityPackage(CopyArchiveToWorkDirTask.java:66)
    	... 46 more
    Show
    Using a Petals CLI command as:
    petals-cli -h remote-host -n 7700 -u petals -p petals -c -- deploy -u file:///tmp/my-artifact.zip
    I'm not able to deploy my local artifact /tmp/my-artifact.zip on the Petals ESB container running on a remote host remote-host. The following error occurs on the container side. This error is normal because no file named /tmp/my-artifact.zip exists on the host running the Petals container:
    sample-0 2014/02/19 16:06:39,980 GMT+0100 SEVERE [Petals.JBI-Management.InstallationService] : Unable to load a new installer at location 'file:/tmp/my-artifact.zip'
    java.lang.Exception: org.ow2.petals.basisapi.exception.PetalsException: Can't copy entity package to work directory
    	at org.ow2.petals.microkernel.jbi.management.installation.InstallationServiceImpl.loadNewInstaller(InstallationServiceImpl.java:346)
    	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 sun.reflect.misc.Trampoline.invoke(MethodUtil.java:57)
    	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 sun.reflect.misc.MethodUtil.invoke(MethodUtil.java:260)
    	at javax.management.modelmbean.RequiredModelMBean$4.run(RequiredModelMBean.java:1137)
    	at java.security.AccessController.doPrivileged(Native Method)
    	at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:87)
    	at javax.management.modelmbean.RequiredModelMBean.invokeMethod(RequiredModelMBean.java:1131)
    	at javax.management.modelmbean.RequiredModelMBean.invoke(RequiredModelMBean.java:984)
    	at mx4j.server.interceptor.InvokerMBeanServerInterceptor.invoke(InvokerMBeanServerInterceptor.java:221)
    	at mx4j.server.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:120)
    	at mx4j.server.interceptor.SecurityMBeanServerInterceptor.invoke(SecurityMBeanServerInterceptor.java:84)
    	at mx4j.server.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:120)
    	at mx4j.server.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:120)
    	at mx4j.server.interceptor.ContextClassLoaderMBeanServerInterceptor.invoke(ContextClassLoaderMBeanServerInterceptor.java:203)
    	at mx4j.server.MX4JMBeanServer.invoke(MX4JMBeanServer.java:1043)
    	at com.sun.jmx.remote.security.MBeanServerAccessController.invoke(MBeanServerAccessController.java:447)
    	at javax.management.remote.rmi.RMIConnectionImpl.doOperation(RMIConnectionImpl.java:1454)
    	at javax.management.remote.rmi.RMIConnectionImpl.access$300(RMIConnectionImpl.java:74)
    	at javax.management.remote.rmi.RMIConnectionImpl$PrivilegedOperation.run(RMIConnectionImpl.java:1295)
    	at java.security.AccessController.doPrivileged(Native Method)
    	at javax.management.remote.rmi.RMIConnectionImpl.doPrivilegedOperation(RMIConnectionImpl.java:1394)
    	at javax.management.remote.rmi.RMIConnectionImpl.invoke(RMIConnectionImpl.java:818)
    	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 sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:303)
    	at sun.rmi.transport.Transport$1.run(Transport.java:159)
    	at java.security.AccessController.doPrivileged(Native Method)
    	at sun.rmi.transport.Transport.serviceCall(Transport.java:155)
    	at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:535)
    	at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0(TCPTransport.java:790)
    	at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:649)
    	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:895)
    	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:918)
    	at java.lang.Thread.run(Thread.java:662)
    Caused by: org.ow2.petals.basisapi.exception.PetalsException: Can't copy entity package to work directory
    	at org.ow2.petals.microkernel.jbi.management.task.CopyArchiveToWorkDirTask.copyEntityPackage(CopyArchiveToWorkDirTask.java:68)
    	at org.ow2.petals.microkernel.jbi.management.task.CopyArchiveToWorkDirTask.execute(CopyArchiveToWorkDirTask.java:57)
    	at org.ow2.petals.microkernel.api.jbi.management.TaskProcessor.process(TaskProcessor.java:73)
    	at org.ow2.petals.microkernel.jbi.management.installation.InstallationServiceImpl.loadNewInstaller(InstallationServiceImpl.java:343)
    	... 43 more
    Caused by: java.io.FileNotFoundException: Source '/tmp/se-diff-agreg-1.0.2-SNAPSHOT.zip' does not exist
    	at org.apache.commons.io.FileUtils.copyFile(FileUtils.java:637)
    	at org.apache.commons.io.FileUtils.copyFile(FileUtils.java:607)
    	at org.ow2.petals.microkernel.jbi.management.task.CopyArchiveToWorkDirTask.copyEntityPackage(CopyArchiveToWorkDirTask.java:66)
    	... 46 more
  • Environment:
    -

Issue Links

Activity

People

Dates

  • Created:
    Wed, 19 Feb 2014 - 16:10:45 +0100
    Updated:
    Tue, 25 Oct 2022 - 16:03:00 +0200
    Resolved:
    Wed, 19 Feb 2014 - 20:12:40 +0100