java - Calling remote ESB client error -
i trying send , esb message remote client, getting error:
org.jboss.soa.esb.listeners.message.messagedeliverexception: org.apache.ws.scout.transport.transportexception: java.lang.reflect.invocationtargetexception @ org.jboss.soa.esb.client.serviceinvoker.loadserviceclusterinfo(serviceinvoker.java:545) @ org.jboss.soa.esb.client.serviceinvoker.<init>(serviceinvoker.java:174) @ org.jboss.soa.esb.client.serviceinvoker.<init>(serviceinvoker.java:155) @ org.jboss.soa.esb.client.serviceinvoker.<init>(serviceinvoker.java:197) @ cz.certicon.esb.test.senderesb.sendamessage(senderesb.java:24) @ cz.certicon.esb.test.manager.sendesbmessage(manager.java:94) @ cz.certicon.esb.test.myframe.actionperformed(myframe.java:122) @ javax.swing.abstractbutton.fireactionperformed(unknown source) @ javax.swing.abstractbutton$handler.actionperformed(unknown source) @ javax.swing.defaultbuttonmodel.fireactionperformed(unknown source) @ javax.swing.defaultbuttonmodel.setpressed(unknown source) @ javax.swing.plaf.basic.basicbuttonlistener.mousereleased(unknown source) @ java.awt.component.processmouseevent(unknown source) @ javax.swing.jcomponent.processmouseevent(unknown source) @ java.awt.component.processevent(unknown source) @ java.awt.container.processevent(unknown source) @ java.awt.component.dispatcheventimpl(unknown source) @ java.awt.container.dispatcheventimpl(unknown source) @ java.awt.component.dispatchevent(unknown source) @ java.awt.lightweightdispatcher.retargetmouseevent(unknown source) @ java.awt.lightweightdispatcher.processmouseevent(unknown source) @ java.awt.lightweightdispatcher.dispatchevent(unknown source) @ java.awt.container.dispatcheventimpl(unknown source) @ java.awt.window.dispatcheventimpl(unknown source) @ java.awt.component.dispatchevent(unknown source) @ java.awt.eventqueue.dispatcheventimpl(unknown source) @ java.awt.eventqueue.access$400(unknown source) @ java.awt.eventqueue$2.run(unknown source) @ java.awt.eventqueue$2.run(unknown source) @ java.security.accesscontroller.doprivileged(native method) @ java.security.accesscontrolcontext$1.dointersectionprivilege(unknown source) @ java.security.accesscontrolcontext$1.dointersectionprivilege(unknown source) @ java.awt.eventqueue$3.run(unknown source) @ java.awt.eventqueue$3.run(unknown source) @ java.security.accesscontroller.doprivileged(native method) @ java.security.accesscontrolcontext$1.dointersectionprivilege(unknown source) @ java.awt.eventqueue.dispatchevent(unknown source) @ java.awt.eventdispatchthread.pumponeeventforfilters(unknown source) @ java.awt.eventdispatchthread.pumpeventsforfilter(unknown source) @ java.awt.eventdispatchthread.pumpeventsforhierarchy(unknown source) @ java.awt.eventdispatchthread.pumpevents(unknown source) @ java.awt.eventdispatchthread.pumpevents(unknown source) @ java.awt.eventdispatchthread.run(unknown source) caused by: org.jboss.soa.esb.services.registry.registryexception: org.apache.ws.scout.transport.transportexception: java.lang.reflect.invocationtargetexception @ org.jboss.internal.soa.esb.services.registry.jaxrregistryimpl.findeprs(jaxrregistryimpl.java:358) @ org.jboss.internal.soa.esb.services.registry.invmregistryinterceptor.findeprs(invmregistryinterceptor.java:85) @ org.jboss.soa.esb.services.registry.registryfactory$headregistryinterceptor.findeprs(registryfactory.java:229) @ org.jboss.soa.esb.listeners.registryutil.geteprs(registryutil.java:228) @ org.jboss.soa.esb.client.serviceinvoker.loadserviceclusterinfo(serviceinvoker.java:532) ... 42 more caused by: javax.xml.registry.jaxrexception: org.apache.ws.scout.transport.transportexception: java.lang.reflect.invocationtargetexception @ org.apache.ws.scout.registry.businessquerymanagerv3impl.findconcepts(businessquerymanagerv3impl.java:535) @ org.jboss.internal.soa.esb.services.registry.jaxrregistryimpl.getjbossesbtmodel(jaxrregistryimpl.java:795) @ org.jboss.internal.soa.esb.services.registry.jaxrregistryimpl.findeprs(jaxrregistryimpl.java:327) ... 46 more
i found many tutorials on setting remote client, none of them helped me.
i using jboss 6 esb 4.11 , running application eclipse (with jboss tools). sending jms messages work fine, cant make work.
this sample code sending esb messages:
public void sendamessage(string message) throws exception { system.setproperty("javax.xml.registry.connectionfactoryclass", "org.apache.ws.scout.registry.connectionfactoryimpl"); message esbmessage = messagefactory.getinstance().getmessage(); esbmessage.getbody().add(message); new serviceinvoker("firstserviceesb", "simplelistener").deliverasync(esbmessage); }
1) have jbossesb runtime , jboss 6.0 runtime imported (including libraries provide).
2) included jbossts-common.jar
3) have jboss-esb.xml, uddi.xml , jbossesb-properties.xml in meta-inf directory (i include these files attachment, last 2 copied helloworld quickstart...)
i dont know else make work... kind of appreciated!
edit: have read topics concerning this one, , im getting above mentioned error. have included .jar libraries , .xml files suggesting still stuck. problem perhaps somewhere else?
first need download
http://www.redhat.com/products/jbossenterprisemiddleware/soa/download.html(jboss-soa-p-5 platform)
and set in eclipse project-->preferences--esb runtimes--jboss-soa-p-5 .it solve exceptions.