What is the url you passed as an argument to the ant task ?
On 8/22/06, leiolay <[EMAIL PROTECTED]> wrote:
btw i downloaded the latest snapshot apache-servicemix-3.0-incubating-20060813.140148-3.tar.gz. It gives me the same error, as I have expected. leiolay wrote: > > Thanks for your reploy Guillaume. > > But I still don't see how it's being fixed. I'm expecting the file being > uploaded to SM server but it's still looking at its local file system. > Also, putting the SA file at a URL on certain web server is not good > solution for me because it requires addiontal setup. > > All I want is to be able to upload the SA zip file to the remote server, > which then unpacks and deployes it. > > Lei > > > > > gnodet wrote: >> >> This has already been fixed. >> Try using a snapshot version. >> >> On 8/22/06, leiolay <[EMAIL PROTECTED]> wrote: >>> >>> >>> Hi, >>> >>> I'm trying deploy a SA to a remote machine using the >>> DeployServiceAssemblyTask ant task. However I got the following error on >>> the >>> server: >>> >>> >>> 2006-08-21 11:49:23 ERROR - Error deploying service assembly >>> java.lang.Exception: <?xml version="1.0" encoding="UTF-8"?> >>> <jbi-task xmlns="http://java.sun.com/xml/ns/jbi/management-message" >>> version="1.0"> >>> <jbi-task-result> >>> <frmwk-task-result> >>> <frmwk-task-result-details> >>> <task-result-details> >>> <task-id>deploy</task-id> >>> <task-result>FAILED</task-result> >>> <message-type>ERROR</message-type> >>> <task-status-msg> >>> <msg-loc-info> >>> <loc-token/> >>> <loc-message>Unable to unpack archive: >>> c:\opt\sfc\kronos-engine\local\kronos-engine-sa.zip</loc-message> >>> </msg-loc-info> >>> </task-status-msg> >>> <exception-info> >>> <nesting-level>1</nesting-level> >>> <loc-token/> >>> <loc-message>java.net.MalformedURLException: unknown protocol: >>> c</loc-message> >>> <stack-trace><![CDATA[javax.jbi.management.DeploymentException: >>> java.net.MalformedURLException: unknown protocol: c >>> at >>> org.apache.servicemix.jbi.framework.AutoDeploymentService.unpackLocation( >>> AutoDeploymentService.java:442) >>> at >>> org.apache.servicemix.jbi.framework.DeploymentService.deploy( >>> DeploymentService.java:181) >>> at >>> >>> org.apache.servicemix.jbi.framework.AdminCommandsService.deployServiceAssembly >>> (AdminCommandsService.java:175) >>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) >>> at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) >>> at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown >>> Source) >>> at java.lang.reflect.Method.invoke(Unknown Source) >>> at >>> org.apache.commons.beanutils.MethodUtils.invokeMethod(MethodUtils.java >>> :216) >>> at >>> org.apache.servicemix.jbi.management.BaseStandardMBean.invoke( >>> BaseStandardMBean.java:315) >>> at com.sun.jmx.mbeanserver.DynamicMetaDataImpl.invoke(Unknown >>> Source) >>> at com.sun.jmx.mbeanserver.MetaDataImpl.invoke(Unknown Source) >>> at >>> com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(Unknown >>> Source) >>> at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(Unknown Source) >>> at javax.management.remote.rmi.RMIConnectionImpl.doOperation >>> (Unknown >>> Source) >>> at javax.management.remote.rmi.RMIConnectionImpl.access$100 >>> (Unknown >>> Source) >>> at >>> javax.management.remote.rmi.RMIConnectionImpl$PrivilegedOperation.run >>> (Unknown >>> Source) >>> at >>> javax.management.remote.rmi.RMIConnectionImpl.doPrivilegedOperation >>> (Unknown >>> Source) >>> at javax.management.remote.rmi.RMIConnectionImpl.invoke (Unknown >>> Source) >>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) >>> at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) >>> at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown >>> Source) >>> at java.lang.reflect.Method.invoke(Unknown Source) >>> at sun.rmi.server.UnicastServerRef.dispatch(Unknown Source) >>> at sun.rmi.transport.Transport$1.run(Unknown Source) >>> at java.security.AccessController.doPrivileged(Native Method) >>> at sun.rmi.transport.Transport.serviceCall(Unknown Source) >>> at sun.rmi.transport.tcp.TCPTransport.handleMessages(Unknown >>> Source) >>> at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run >>> (Unknown >>> Source) >>> at java.lang.Thread.run(Unknown Source) >>> Caused by: java.net.MalformedURLException: unknown protocol: c >>> at java.net.URL.<init>(Unknown Source) >>> at java.net.URL.<init>(Unknown Source) >>> at java.net.URL.<init>(Unknown Source) >>> at >>> org.apache.servicemix.jbi.framework.AutoDeploymentService.unpackLocation( >>> AutoDeploymentService.java:435) >>> ... 28 more >>> ]]></stack-trace> >>> </exception-info> >>> </task-result-details> >>> </frmwk-task-result-details> >>> </frmwk-task-result> >>> </jbi-task-result> >>> </jbi-task> >>> >>> at >>> org.apache.servicemix.jbi.framework.ManagementSupport.failure( >>> ManagementSupport.java:120) >>> at >>> org.apache.servicemix.jbi.framework.ManagementSupport.failure( >>> ManagementSupport.java:110) >>> at >>> org.apache.servicemix.jbi.framework.DeploymentService.deploy( >>> DeploymentService.java:183) >>> at >>> >>> org.apache.servicemix.jbi.framework.AdminCommandsService.deployServiceAssembly >>> (AdminCommandsService.java:175) >>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) >>> at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) >>> at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown >>> Source) >>> at java.lang.reflect.Method.invoke(Unknown Source) >>> at >>> org.apache.commons.beanutils.MethodUtils.invokeMethod(MethodUtils.java >>> :216) >>> at >>> org.apache.servicemix.jbi.management.BaseStandardMBean.invoke( >>> BaseStandardMBean.java:315) >>> at com.sun.jmx.mbeanserver.DynamicMetaDataImpl.invoke(Unknown >>> Source) >>> at com.sun.jmx.mbeanserver.MetaDataImpl.invoke(Unknown Source) >>> at >>> com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(Unknown >>> Source) >>> at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(Unknown Source) >>> at javax.management.remote.rmi.RMIConnectionImpl.doOperation >>> (Unknown >>> Source) >>> at javax.management.remote.rmi.RMIConnectionImpl.access$100 >>> (Unknown >>> Source) >>> at >>> javax.management.remote.rmi.RMIConnectionImpl$PrivilegedOperation.run >>> (Unknown >>> Source) >>> at >>> javax.management.remote.rmi.RMIConnectionImpl.doPrivilegedOperation >>> (Unknown >>> Source) >>> at javax.management.remote.rmi.RMIConnectionImpl.invoke (Unknown >>> Source) >>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) >>> at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) >>> at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown >>> Source) >>> at java.lang.reflect.Method.invoke(Unknown Source) >>> at sun.rmi.server.UnicastServerRef.dispatch(Unknown Source) >>> at sun.rmi.transport.Transport$1.run(Unknown Source) >>> at java.security.AccessController.doPrivileged(Native Method) >>> at sun.rmi.transport.Transport.serviceCall(Unknown Source) >>> at sun.rmi.transport.tcp.TCPTransport.handleMessages(Unknown >>> Source) >>> at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run >>> (Unknown >>> Source) >>> at java.lang.Thread.run(Unknown Source) >>> 2006-08-21 11:56:38 ERROR - Error deploying service assembly >>> java.lang.Exception: <?xml version="1.0" encoding="UTF-8"?> >>> <jbi-task xmlns="http://java.sun.com/xml/ns/jbi/management-message" >>> version="1.0"> >>> <jbi-task-result> >>> <frmwk-task-result> >>> <frmwk-task-result-details> >>> <task-result-details> >>> <task-id>deploy</task-id> >>> <task-result>FAILED</task-result> >>> <message-type>ERROR</message-type> >>> <task-status-msg> >>> <msg-loc-info> >>> <loc-token/> >>> <loc-message>Unable to unpack archive: >>> c:\opt\sfc\kronos-engine\local\kronos-engine-sa.zip</loc-message> >>> </msg-loc-info> >>> </task-status-msg> >>> <exception-info> >>> <nesting-level>1</nesting-level> >>> <loc-token/> >>> <loc-message>java.net.MalformedURLException: unknown protocol: >>> c</loc-message> >>> <stack-trace><![CDATA[javax.jbi.management.DeploymentException: >>> java.net.MalformedURLException: unknown protocol: c >>> at >>> org.apache.servicemix.jbi.framework.AutoDeploymentService.unpackLocation( >>> AutoDeploymentService.java:442) >>> at >>> org.apache.servicemix.jbi.framework.DeploymentService.deploy( >>> DeploymentService.java:181) >>> at >>> >>> org.apache.servicemix.jbi.framework.AdminCommandsService.deployServiceAssembly >>> (AdminCommandsService.java:175) >>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) >>> at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) >>> at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown >>> Source) >>> at java.lang.reflect.Method.invoke(Unknown Source) >>> at >>> org.apache.commons.beanutils.MethodUtils.invokeMethod(MethodUtils.java >>> :216) >>> at >>> org.apache.servicemix.jbi.management.BaseStandardMBean.invoke( >>> BaseStandardMBean.java:315) >>> at com.sun.jmx.mbeanserver.DynamicMetaDataImpl.invoke(Unknown >>> Source) >>> at com.sun.jmx.mbeanserver.MetaDataImpl.invoke(Unknown Source) >>> at >>> com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(Unknown >>> Source) >>> at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(Unknown Source) >>> at javax.management.remote.rmi.RMIConnectionImpl.doOperation >>> (Unknown >>> Source) >>> at javax.management.remote.rmi.RMIConnectionImpl.access$100 >>> (Unknown >>> Source) >>> at >>> javax.management.remote.rmi.RMIConnectionImpl$PrivilegedOperation.run >>> (Unknown >>> Source) >>> at >>> javax.management.remote.rmi.RMIConnectionImpl.doPrivilegedOperation >>> (Unknown >>> Source) >>> at javax.management.remote.rmi.RMIConnectionImpl.invoke (Unknown >>> Source) >>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) >>> at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) >>> at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown >>> Source) >>> at java.lang.reflect.Method.invoke(Unknown Source) >>> at sun.rmi.server.UnicastServerRef.dispatch(Unknown Source) >>> at sun.rmi.transport.Transport$1.run(Unknown Source) >>> at java.security.AccessController.doPrivileged(Native Method) >>> at sun.rmi.transport.Transport.serviceCall(Unknown Source) >>> at sun.rmi.transport.tcp.TCPTransport.handleMessages(Unknown >>> Source) >>> at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run >>> (Unknown >>> Source) >>> at java.lang.Thread.run(Unknown Source) >>> Caused by: java.net.MalformedURLException: unknown protocol: c >>> at java.net.URL.<init>(Unknown Source) >>> at java.net.URL.<init>(Unknown Source) >>> at java.net.URL.<init>(Unknown Source) >>> at >>> org.apache.servicemix.jbi.framework.AutoDeploymentService.unpackLocation( >>> AutoDeploymentService.java:435) >>> ... 28 more >>> ]]></stack-trace> >>> </exception-info> >>> </task-result-details> >>> </frmwk-task-result-details> >>> </frmwk-task-result> >>> </jbi-task-result> >>> </jbi-task> >>> >>> at >>> org.apache.servicemix.jbi.framework.ManagementSupport.failure( >>> ManagementSupport.java:120) >>> at >>> org.apache.servicemix.jbi.framework.ManagementSupport.failure( >>> ManagementSupport.java:110) >>> at >>> org.apache.servicemix.jbi.framework.DeploymentService.deploy( >>> DeploymentService.java:183) >>> at >>> >>> org.apache.servicemix.jbi.framework.AdminCommandsService.deployServiceAssembly >>> (AdminCommandsService.java:175) >>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) >>> at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) >>> at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown >>> Source) >>> at java.lang.reflect.Method.invoke(Unknown Source) >>> at >>> org.apache.commons.beanutils.MethodUtils.invokeMethod(MethodUtils.java >>> :216) >>> at >>> org.apache.servicemix.jbi.management.BaseStandardMBean.invoke( >>> BaseStandardMBean.java:315) >>> at com.sun.jmx.mbeanserver.DynamicMetaDataImpl.invoke(Unknown >>> Source) >>> at com.sun.jmx.mbeanserver.MetaDataImpl.invoke(Unknown Source) >>> at >>> com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(Unknown >>> Source) >>> at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(Unknown Source) >>> at javax.management.remote.rmi.RMIConnectionImpl.doOperation >>> (Unknown >>> Source) >>> at javax.management.remote.rmi.RMIConnectionImpl.access$100 >>> (Unknown >>> Source) >>> at >>> javax.management.remote.rmi.RMIConnectionImpl$PrivilegedOperation.run >>> (Unknown >>> Source) >>> at >>> javax.management.remote.rmi.RMIConnectionImpl.doPrivilegedOperation >>> (Unknown >>> Source) >>> at javax.management.remote.rmi.RMIConnectionImpl.invoke (Unknown >>> Source) >>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) >>> at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) >>> at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown >>> Source) >>> at java.lang.reflect.Method.invoke(Unknown Source) >>> at sun.rmi.server.UnicastServerRef.dispatch(Unknown Source) >>> at sun.rmi.transport.Transport$1.run(Unknown Source) >>> at java.security.AccessController.doPrivileged(Native Method) >>> at sun.rmi.transport.Transport.serviceCall(Unknown Source) >>> at sun.rmi.transport.tcp.TCPTransport.handleMessages(Unknown >>> Source) >>> at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run >>> (Unknown >>> Source) >>> at java.lang.Thread.run(Unknown Source) >>> >>> >>> It seems that the remote machine thinks the file is on its own file >>> system. >>> Is there a way to deploy a file remotely like the ant tasks offered by >>> tomcat? I was looking at the source code for this task. It doesn't seem >>> to >>> support it. >>> >>> Lei >>> -- >>> View this message in context: >>> http://www.nabble.com/DeployServiceAssemblyTask-Problem%21%21%21-tf2146958.html#a5927719 >>> Sent from the ServiceMix - Dev forum at Nabble.com. >>> >>> >> >> >> -- >> Cheers, >> Guillaume Nodet >> >> > > -- View this message in context: http://www.nabble.com/DeployServiceAssemblyTask-Problem%21%21%21-tf2146958.html#a5930533 Sent from the ServiceMix - Dev forum at Nabble.com.
-- Cheers, Guillaume Nodet