0 Replies Latest reply on Mar 1, 2004 6:17 AM by Teodor Buburuzan

    problem with servlets/JSP

    Teodor Buburuzan Newbie

      I have created a webservice which has a function returning an array of JavaBeans. I have created a TestClient in the same eclipse project and this one works ok, geting al the info. I have tried to create a servlet or a JSP with exactely the same code as the TestClient but those 2 don't work. I get an exception like this every time i run the servlet or JSP:

      java.lang.NoClassDefFoundError: org/apache/axis/enum/Use
       at webservice.MyWebServiceSoapBindingStub.<clinit>(MyWebServiceSoapBindingStub.java:27)
       at webservice.SessionBeanLocalServiceLocator.getmyWebService(SessionBeanLocalServiceLocator.java:43)
       at webservice.SessionBeanLocalServiceLocator.getmyWebService(SessionBeanLocalServiceLocator.java:38)
       at servlet.myServlet.doGet(myServlet.java:39)
       at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
       at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
       at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:360)
       at org.mortbay.jetty.servlet.WebApplicationHandler.dispatch(WebApplicationHandler.java:294)
       at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:558)
       at org.mortbay.http.HttpContext.handle(HttpContext.java:1714)
       at org.mortbay.jetty.servlet.WebApplicationContext.handle(WebApplicationContext.java:507)
       at org.mortbay.http.HttpContext.handle(HttpContext.java:1664)
       at org.mortbay.http.HttpServer.service(HttpServer.java:863)
       at org.jboss.jetty.Jetty.service(Jetty.java:460)
       at org.mortbay.http.HttpConnection.service(HttpConnection.java:775)
       at org.mortbay.http.HttpConnection.handleNext(HttpConnection.java:939)
       at org.mortbay.http.HttpConnection.handle(HttpConnection.java:792)
       at org.mortbay.http.SocketListener.handleConnection(SocketListener.java:201)
       at org.mortbay.util.ThreadedServer.handle(ThreadedServer.java:289)
       at org.mortbay.util.ThreadPool$PoolThread.run(ThreadPool.java:455)
      


      The org.apache.axis.enum.Use class is on axis.jar but it seems the server can not find it. Is there a pleace where should I place axis.jar in order for the server to see it and import the classes in it?
      I'm using JBOSS 3.2.1 with Jetty engine and I have already the jboss-net installed and functional. How can I make my JSP/servlet working the same way as the normal java client. I can also make the client work outside Eclipse environment but the jsp/servlet just don't work at all!!

      Thanks in advance!

      Teo