Please join us at the new JavaWorld Q&A Forums. Your existing login will work there. The discussions here are now read-only.


JavaWorld Talkback >> 960402

Pages: 1
JavaWorld
addict


Reged: 06/20/03
Posts: 482
ServiceMix as an enterprise service bus
      #24932 - 12/11/05 10:43 PM

ServiceMix as an enterprise service bus

Post Extras: Print Post   Remind Me!   Notify Moderator  
PhilG
Unregistered




Re: ServiceMix as an enterprise service bus [Re: JavaWorld]
      #25050 - 12/16/05 09:05 AM

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


Post Extras: Print Post   Remind Me!   Notify Moderator  
PhilG
Unregistered




Re: ServiceMix as an enterprise service bus [Re: PhilG]
      #25051 - 12/16/05 09:46 AM

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


Post Extras: Print Post   Remind Me!   Notify Moderator  
adilhere
stranger


Reged: 08/15/06
Posts: 10
Loc: Pakistan
Re: ServiceMix as an enterprise service bus [Re: PhilG]
      #35907 - 08/30/06 06:17 AM

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!


Post Extras: Print Post   Remind Me!   Notify Moderator  
adilhere
stranger


Reged: 08/15/06
Posts: 10
Loc: Pakistan
Re: ServiceMix as an enterprise service bus [Re: PhilG]
      #35909 - 08/30/06 07:31 AM

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!


Post Extras: Print Post   Remind Me!   Notify Moderator  
adilhere
stranger


Reged: 08/15/06
Posts: 10
Loc: Pakistan
Help [Re: JavaWorld]
      #35910 - 08/30/06 07:34 AM

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!


Post Extras: Print Post   Remind Me!   Notify Moderator  
Pages: 1



Extra information
0 registered and 1 anonymous users are browsing this forum.

Moderator:   

Print Topic

Forum Permissions
      You cannot start new topics
      You cannot reply to topics
      HTML is disabled
      UBBCode is enabled

Rating:
Topic views: 9695

Rate this topic

Jump to

Contact us JavaWorld

Powered by UBB.threads™ 6.5.5