I have some problems with Eclipse 3.6, ESB 4.11, JBoss AS 6.1.0 on Linux OpenSuse 11.4 x64 with java jdk 1.6.0 x64. When I try to build and deploy quickstarts projects in jbossesb-4.11/samples/, with "ant deploy", all is ok and samples run. But when I try to start with an Eclipse project, for example one based on "helloword", with ServiceInvoker class I get the following unbearable exception:
Exception in thread "main" org.jboss.soa.esb.listeners.message.MessageDeliverException: org.apache.ws.scout.transport.TransportException: java.lang.reflect.InvocationTargetException
Ok, no problem. I have not experience with JBoss ESB and with so much patience, I start looking for a solution in web. Soon I realized that the problem seems common. I have done everything that is written here (the problem seems the same): https://community.jboss.org/thread/144658, but nothing: no results. Then I have read carefully "Configuration for a Remote Service Invoker" in "ESB Programmers Guide", but still no results.
My code is very simple:
Message message = MessageFactory.getInstance().getMessage();
message.getBody().add("test test test");
ServiceInvoker serviceInvoker = new ServiceInvoker("FirstServiceESB", "SimpleListener");
The exception borns when I try to call new ServiceInvoker. I'm sure that the problems are in classpath, but the jar listed in https://community.jboss.org/thread/144658 and in "Configuration for a Remote Service Invoker" are all in my classpath; also I have checked the base-build.xml ant script and in my Eclipse project all seems correct. Also in the Eclipse project there are "JBoss ESB Runtime" and "JBoss 6 Runtime" library references; uddi.xml, jbossesb-properties.xml, etc. are all in my classpath or in my META-INF folder. Finally, after dozens of attempts, not knowing what to do and with no other resources, I tried to run my code with jdk x86 (jdk 1.6.22), but nothing, no results, of course.
Is there anyone that can help me?