-
15. Re: What are the required JARs for ESB
vishal12345 Nov 26, 2008 10:47 AM (in response to vishal12345)k thanks send it to vdharankar@gmail.com, but still can you figure out what is the problem ? why am i getting above mentioned exception ?
-
16. Re: What are the required JARs for ESB
beve Nov 26, 2008 10:53 AM (in response to vishal12345)why am i getting above mentioned exception ?
I don't know. I suspect that something is incorrect with you .war as I cannot reproduce the issue.
I've sent the test.war now which should help us get closer to a solution.
Regards,
/Daniel -
17. Re: What are the required JARs for ESB
vishal12345 Nov 26, 2008 11:00 AM (in response to vishal12345)also it would be very nice if you email me rthe source code of servlet and other files required so that i will be able to get an idea !
-
18. Re: What are the required JARs for ESB
beve Nov 26, 2008 11:35 AM (in response to vishal12345)Here is the code for the servlet:
package org.jboss.esb.client; import java.io.IOException; import javax.servlet.ServletException; import javax.servlet.http.HttpServlet; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import org.jboss.soa.esb.client.ServiceInvoker; import org.jboss.soa.esb.listeners.message.MessageDeliverException; import org.jboss.soa.esb.message.Message; import org.jboss.soa.esb.message.format.MessageFactory; public class EsbServletClient extends HttpServlet { private static final long serialVersionUID = 1L; @Override protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { invokeEsb(); } @Override protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { invokeEsb(); } private void invokeEsb() { System.setProperty("javax.xml.registry.ConnectionFactoryClass", "org.apache.ws.scout.registry.ConnectionFactoryImpl"); try { final Message message = MessageFactory.getInstance().getMessage(); message.getBody().add("Sample payload"); new ServiceInvoker("FirstServiceESB", "SimpleListener").deliverAsync(message); } catch (final MessageDeliverException e) { e.printStackTrace(); } } }
-
19. Re: What are the required JARs for ESB
vishal12345 Nov 26, 2008 11:44 AM (in response to vishal12345)thanks Daniel,
i have same code here but basic problem that i think i m facing is the servlet is not able to find the ESB , or there is some problem in the same process process of finding ESB
what are the config files required with this servlet ?
the only difference that i have is the payload here is text and in my case it is serializable object.
any guess from this description and above Exception ? -
20. Re: What are the required JARs for ESB
beve Nov 26, 2008 12:11 PM (in response to vishal12345)what are the config files required with this servlet ?
All files are located in the war archive I sent. Just unpack it an you can compare it with your war. -
21. Re: What are the required JARs for ESB
vishal12345 Nov 26, 2008 1:12 PM (in response to vishal12345)Hi
thanks for your efforts daniel,
i run the servlet but i got the same exception for test.war exactly same , the exception was there in tomcat console.
Some information on this i m using JBOSSESB server 4,3 GA and tomcat 6.0.1
the only one difference that i found in your war and mine , i.e. i did not had juddi.properties file in my web-inf but even after adding that i got same exception i even tried putting jnp.properties
as it is now giving same exception for test.war i think you can think on this
please help me on this, you efforts are appreciated -
22. Re: What are the required JARs for ESB
beve Nov 27, 2008 3:19 AM (in response to vishal12345)I've tried this using jbossesb-server-4.3.GA and could run the test.
In this case I've deployed both the test.war and helloworld quickstart to the esbserver.Some information on this i m using JBOSSESB server 4,3 GA and tomcat 6.0.1
Are you deploying the test.war to a separate tomcat installation? -
23. Re: What are the required JARs for ESB
vishal12345 Nov 27, 2008 3:52 AM (in response to vishal12345)Yes i m deploying it on separate tomcat instance, and i Could run it jbossesb server but i want it on tomcat, i think that is a problem , what do u think ?
-
24. Re: What are the required JARs for ESB
beve Nov 27, 2008 4:26 AM (in response to vishal12345)i Could run it jbossesb server but i want it on tomcat, i think that is a problem , what do u think ?
Ah ok, I understand. Let me try this later on today and I should be able to reproduce this. -
25. Re: What are the required JARs for ESB
vishal12345 Nov 27, 2008 5:27 AM (in response to vishal12345)k i will be waiting for your response, and THANKS for sharing knowledge on this forum :)
-
26. Re: What are the required JARs for ESB
vishal12345 Nov 27, 2008 9:08 AM (in response to vishal12345)Hello Daniel ,
Any thing for me ? did you get the time to check whats wrong ?
thanks -
27. Re: What are the required JARs for ESB
vishal12345 Nov 27, 2008 12:07 PM (in response to vishal12345)Hello Daniel
did you tried this ?
thanks -
28. Re: What are the required JARs for ESB
beve Nov 27, 2008 3:25 PM (in response to vishal12345)Hi,
I was able to reproduce the issue but don't have a solution as of yet. I'll try to take a closer look at this tomorrow.
Regards,
/Daniel -
29. Re: What are the required JARs for ESB
vishal12345 Nov 27, 2008 10:19 PM (in response to vishal12345)k good ,
but please reply tomorow !
thanks