JavaWorld
addict
Reged: 06/20/03
Posts: 482
|
|
ServiceMix as an enterprise service bus
|
PhilG
Unregistered
|
|
Hi Jeffrey,
I tryed to run your sample (PojoTest) but I had error : javax.jbi.JBIException: java.io.IOException: Could not find class for resource: META-INF/services/org/servicemix/jbi/nmr/flow/seda javax.jbi.JBIException: java.io.IOException: Could not find class for resource: META-INF/services/org/servicemix/jbi/nmr/flow/seda at org.servicemix.jbi.nmr.flow.FlowProvider.getFlow(FlowProvider.java:68) at org.servicemix.jbi.nmr.Broker.init(Broker.java:129) at org.servicemix.jbi.container.JBIContainer.init(JBIContainer.java:396) at com.jeffhanson.esb.servicemix.PojoTest.initialize(PojoTest.java:53) at com.jeffhanson.esb.servicemix.PojoTest.main(PojoTest.java:33) Caused by: java.io.IOException: Could not find class for resource: META-INF/services/org/servicemix/jbi/nmr/flow/seda at org.activemq.util.FactoryFinder.doFindClass(FactoryFinder.java:76) at org.activemq.util.FactoryFinder.findClass(FactoryFinder.java:61) at org.activemq.util.FactoryFinder.newInstance(FactoryFinder.java:48) at org.servicemix.jbi.nmr.flow.FlowProvider.getFlow(FlowProvider.java:50) ... 4 more
Does I miss something? Does we must put a servicemix.xml somewhere?
Phil
|
PhilG
Unregistered
|
|
If you add this parameter to your java command it's oki.
-Xmx512M -Dderby.system.home="..\var" -Dderby.storage.fileSyncTransactionLog=true -Djava.ext.dirs="C:\javasoft\j2sdk1.4.2_07\lib\ext;C:\javasoft\servicemix-2.0.2\bin\..;C:\javasoft\servicemix-2.0.2\bin\..\lib;C:\javasoft\servicemix-2.0.2\bin\..\lib\optional" -classpath "C:\javasoft\servicemix-2.0.2\bin\..\conf;" -Dservicemix.home="C:\javasoft\servicemix-2.0.2\bin\.." -Dorg.apache.commons.logging.Log=org.apache.commons.logging.impl.SimpleLog
|
adilhere
stranger
Reged: 08/15/06
Posts: 10
Loc: Pakistan
|
|
Hi,
I want to run your application but even though I have compiled and deployed the jar file in bin\deploy folder. I am using the version "apache-servicemix-3.0-M2-incubating" I had to change some package names only ie from org.servicemix to org.apache.servivemix. I am getting this error: D:\apache-servicemix-3.0-M2-incubating\bin\deploy\testcomponent.jar failed javax.jbi.management.DeploymentException: <?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 find jbi descriptor: D:\apache-servicemix-3.0-M2-incubati ng\bin\deploy\testcomponent.jar</loc-message> </msg-loc-info> </task-status-msg> </task-result-details> </frmwk-task-result-details> </frmwk-task-result> </jbi-task-result> </jbi-task>
at org.apache.servicemix.jbi.framework.AutoDeploymentService.failure(Aut oDeploymentService.java:297) at org.apache.servicemix.jbi.framework.AutoDeploymentService.failure(Aut oDeploymentService.java:283) at org.apache.servicemix.jbi.framework.AutoDeploymentService.updateArchi ve(AutoDeploymentService.java:202) at org.apache.servicemix.jbi.framework.AutoDeploymentService$2.run(AutoD eploymentService.java:508) at org.apache.geronimo.connector.work.WorkerContext.run(WorkerContext.ja va:291) at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(Unknown So urce) at java.lang.Thread.run(Thread.java:595)
Even if we remove this error? how will I access the PojoTest from client ?
-------------------- You have luck on your side!
|
adilhere
stranger
Reged: 08/15/06
Posts: 10
Loc: Pakistan
|
|
Hi,
How to make client for your application? what I have to define in jbi.xml? I am using apache-servicemix-3.0-M2-incubating.
Thanks
-------------------- You have luck on your side!
|
adilhere
stranger
Reged: 08/15/06
Posts: 10
Loc: Pakistan
|
|
Hi,
How to make client for your application? what I have to define in jbi.xml? I am using apache-servicemix-3.0-M2-incubating.
Thanks
-------------------- You have luck on your side!
|