1 2 3 Previous Next 34 Replies Latest reply on Nov 29, 2008 1:14 AM by vishal12345 Go to original post
      • 15. Re: What are the required JARs for ESB
        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

           

          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

            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

              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

                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

                   

                  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

                    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

                      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

                        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

                           

                          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

                            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

                              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

                                Hello Daniel
                                did you tried this ?

                                thanks

                                • 28. Re: What are the required JARs for ESB
                                  beve

                                  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

                                    k good ,

                                    but please reply tomorow !

                                    thanks