L.S.,
The maven deploy tool (jbi:projectDeploy) doesn't deploy these artifacts
by copying them to SERVICEMIX_HOME/install /and SERVICEMIX_HOME/deploy/,
but is uses the JMX MBeans that are available when ServiceMix is running
instead. It doesn't deploy to ~/.m2/, but it looks here to find the
additional artifacts to deploy. An example: when you deploy your
wsdl-first SA, the tool examines the dependencies and figures out that
it needs to install servicemix-shared, servicemix-http and
servicemix-jsr181.
Apparently, ServiceMix has a problem deploying the
servicemix-shared-3.1-incubating-installer.zip shared library. Can you
check if it is in your Maven repository and if you can open this file
with a 'normal' ZIP application? Perhaps it has become corrupted
somehow... In that case, deleting this directory from the repository
should cause it to be downloaded from the incubator repository again.
Gert
[EMAIL PROTECTED] wrote:
Hello
Thank you for replying my problem.I find that I run the command in the wrong
repository.But now when I'm running it, the result is an error. I don't know
how to resolve it. And then I don't understand why servicemix deploies
automaticly in the ~/.m2/ not in the SERVICEMIX_HOME/install /and
SERVICEMIX_HOME/deploy/ repositories as we mannual deploy.
thanks.
Kan
[INFO] Scanning for projects...
[INFO] Searching repository for plugin with prefix: 'jbi'.
[INFO]
----------------------------------------------------------------------------
[INFO] Building ServiceMix :: Samples :: WSDL first :: SA
[INFO] task-segment: [jbi:projectDeploy]
[INFO]
----------------------------------------------------------------------------
Downloading:
http://people.apache.org/repo/m2-incubating-repository/wss4j/wss4j/1.5.0/wss4j-1.5.0.pom
Downloading:
http://people.apache.org/repo/m2-incubating-repository/wss4j/wss4j/1.5.0/wss4j-1.5.0.pom
Downloading: http://www.ibiblio.org/maven2/wss4j/wss4j/1.5.0/wss4j-1.5.0.pom
Downloading: http://servicemix.org/m2-repo/wss4j/wss4j/1.5.0/wss4j-1.5.0.pom
Downloading:
http://people.apache.org/repo/m2-incubating-repository/xml-security/xmlsec/1.3.0/xmlsec-1.3.0.pom
Downloading:
http://people.apache.org/repo/m2-incubating-repository/xml-security/xmlsec/1.3.0/xmlsec-1.3.0.pom
Downloading:
http://www.ibiblio.org/maven2/xml-security/xmlsec/1.3.0/xmlsec-1.3.0.pom
Downloading:
http://servicemix.org/m2-repo/xml-security/xmlsec/1.3.0/xmlsec-1.3.0.pom
Downloading:
http://people.apache.org/repo/m2-incubating-repository/woodstox/wstx-asl/3.0.1/wstx-asl-3.0.1.pom
Downloading:
http://people.apache.org/repo/m2-incubating-repository/woodstox/wstx-asl/3.0.1/wstx-asl-3.0.1.pom
Downloading:
http://www.ibiblio.org/maven2/woodstox/wstx-asl/3.0.1/wstx-asl-3.0.1.pom
Downloading:
http://servicemix.org/m2-repo/woodstox/wstx-asl/3.0.1/wstx-asl-3.0.1.pom
Downloading:
http://people.apache.org/repo/m2-incubating-repository/xfire/saaj-impl/1.3/saaj-impl-1.3.pom
Downloading:
http://people.apache.org/repo/m2-incubating-repository/xfire/saaj-impl/1.3/saaj-impl-1.3.pom
Downloading: http://www.ibiblio.org/maven2/xfire/saaj-impl/1.3/saaj-impl-1.3.pom
Downloading: http://servicemix.org/m2-repo/xfire/saaj-impl/1.3/saaj-impl-1.3.pom
[INFO] [jbi:projectDeploy]
[WARNING] Attempting to build MavenProject instance for Artifact of type: jar;
constructing POM artifact instead.
[INFO] ------------------ Deployment Analysis --------------------
[INFO] ServiceMix :: Samples :: WSDL first :: SA has 3 child dependencies
[INFO] - jbi-service-assembly : C:\Documents and
Settings\xieen\.m2\repository\org\apache\servicemix\samples\wsdl-first
\wsdl-first-sa\3.1-incubating\wsdl-first-sa-3.1-incubating.zip
[INFO] - jbi-component : C:\Documents and
Settings\xieen\.m2\repository\org\apache\servicemix\servicemix-jsr181\3.1-inc
ubating\servicemix-jsr181-3.1-incubating-installer.zip
[INFO] - jbi-component : C:\Documents and
Settings\xieen\.m2\repository\org\apache\servicemix\servicemix-http\3.1-incub
ating\servicemix-http-3.1-incubating-installer.zip
[INFO] - jbi-shared-library : C:\Documents and
Settings\xieen\.m2\repository\org\apache\servicemix\servicemix-shared\3.
1-incubating\servicemix-shared-3.1-incubating-installer.zip
[INFO] -----------------------------------------------------------
[INFO] servicemix-shared is not deployed
[INFO] Deploying jbi-shared-library from C:\Documents and
Settings\xieen\.m2\repository\org\apache\servicemix\servicemix
-shared\3.1-incubating\servicemix-shared-3.1-incubating-installer.zip
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] Unable to deploy project, Error accessing ServiceMix administration
<?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:\Documents and
Settings\xieen\.m2\repository\org\apache\servicemix\servicemix-s
hared\3.1-incubating\servicemix-shared-3.1-incubating-installer.zip</loc-message>
</msg-loc-info>
</task-status-msg>
<exception-info>
<nesting-level>1</nesting-level>
<loc-token/>
<loc-message>java.util.zip.ZipException: error in opening zip file</loc-message>
<stack-trace><![CDATA[javax.jbi.management.DeploymentException:
java.util.zip.ZipException: error in opening zip file
at
org.apache.servicemix.jbi.framework.AutoDeploymentService.unpackLocation(AutoDeploymentService.java:589)
at
org.apache.servicemix.jbi.framework.AutoDeploymentService.updateArchive(AutoDeploymentService.java:228)
at
org.apache.servicemix.jbi.framework.AutoDeploymentService.updateExternalArchive(AutoDeploymentService.java:20
1)
at
org.apache.servicemix.jbi.container.JBIContainer.updateExternalArchive(JBIContainer.java:473)
at
org.apache.servicemix.jbi.container.JBIContainer.updateExternalArchive(JBIContainer.java:483)
at
org.apache.servicemix.jbi.framework.AdminCommandsService.installSharedLibrary(AdminCommandsService.java:109)
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:585)
at
org.apache.commons.beanutils.MethodUtils.invokeMethod(MethodUtils.java:216)
at
org.apache.servicemix.jbi.management.BaseStandardMBean.invoke(BaseStandardMBean.java:318)
at
com.sun.jmx.mbeanserver.DynamicMetaDataImpl.invoke(DynamicMetaDataImpl.java:213)
at com.sun.jmx.mbeanserver.MetaDataImpl.invoke(MetaDataImpl.java:220)
at
com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:815)
at
com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:784)
at
javax.management.remote.rmi.RMIConnectionImpl.doOperation(RMIConnectionImpl.java:1408)
at
javax.management.remote.rmi.RMIConnectionImpl.access$100(RMIConnectionImpl.java:81)
at
javax.management.remote.rmi.RMIConnectionImpl$PrivilegedOperation.run(RMIConnectionImpl.java:1245)
at java.security.AccessController.doPrivileged(Native Method)
at
javax.management.remote.rmi.RMIConnectionImpl.doPrivilegedOperation(RMIConnectionImpl.java:1348)
at
javax.management.remote.rmi.RMIConnectionImpl.invoke(RMIConnectionImpl.java:782)
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:585)
at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:294)
at sun.rmi.transport.Transport$1.run(Transport.java:153)
at java.security.AccessController.doPrivileged(Native Method)
at sun.rmi.transport.Transport.serviceCall(Transport.java:149)
at
sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:466)
at
sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:707)
at java.lang.Thread.run(Thread.java:595)
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:203)
at java.util.zip.ZipFile.<init>(ZipFile.java:234)
at
org.apache.servicemix.jbi.util.FileUtil.archiveContainsEntry(FileUtil.java:170)
at
org.apache.servicemix.jbi.framework.AutoDeploymentService.unpackLocation(AutoDeploymentService.java:581)
... 32 more
]]></stack-trace>
</exception-info>
</task-result-details>
</frmwk-task-result-details>
</frmwk-task-result>
</jbi-task-result>
</jbi-task>
[INFO] ------------------------------------------------------------------------
[INFO] For more information, run Maven with the -e switch
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 1 minute 51 seconds
[INFO] Finished at: Tue Jul 10 13:46:41 CST 2007
[INFO] Final Memory: 13M/25M
[INFO] ------------------------------------------------------------------------
Gert Vanthienen wrote:
L.S.,
Have you seen the information on
http://incubator.apache.org/servicemix/4-examples.html? You need to add
the incubator maven repository to your settings.xml for Maven to be able
to get the plugin automatically...
Gert
kc wrote:
hello all
I have copy the "maven-jbi-plugin-1.0.jar" into the
$MAVEN_HOME/plugins.But
when I use the commend "mvn jbi:projectDeploy", the result will be :
[INFO] Searching repository for plugin with prefix: 'jbi'.
[INFO]
------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO]
------------------------------------------------------------------------
[INFO] The plugin 'org.apache.maven.plugins:maven-jbi-plugin' does not
exist
or no valid version could be found
Now I want to know how can I install the jbi-plugin correctly.
Thanks
Quoted from:
http://www.nabble.com/the-problem-of-jbi-plugin-tf4047666s12049.html#a11497867