Thank
you very much for your reply,
but it
is not the throwing of the exception that fails but
the
instantiation of the class javax.xml.soap.SOAPException.
It is
as if the server is looking for that class in my project directory deployed by
WASP
-->
file:/C:/data/apps/wasp40/app/Soap3S1/WASP-INF/classes/
We
copy the Soap3S.jar file in the app directory of wasp and at startup of the
jboss server
the
directory Soap3S1 is created and this one contains all classes for the
wsdl I guess.
And it
seems that the program searches for the class SOAPException in that
directory.
But
thanks anyway man.
Regards,
Les.
-----Original Message-----
From: Ravi Natarajan [mailto:[EMAIL PROTECTED]]
Sent: vrijdag 15 november 2002 11:32
To: '[EMAIL PROTECTED]'
Subject: RE: HELP SOAPException !!!try thisthrow new SOAPException("300", "Your exception message");istead ofthrow new SOAPException( e );-----Original Message-----
From: Leslie Bertels [mailto:[EMAIL PROTECTED]]
Sent: Friday, November 15, 2002 11:26 AM
To: [EMAIL PROTECTED]
Subject: HELP SOAPException !!!Hi all,can anyone help me with this problem???I'm running a JBoss 3.0.1 with wasp 4.0.We created a .NET client that does SOAP calls to a Java EJB code.Now in the code, when something goes wrong I want to throw a SOAPException so that the client can catch this an give an appropriate error - message.But a serious error pops up.Here is some code snippets and the error message??Anyone???/*** @soap.method*/public Customer createCustomer( Customer pCustomer ) throws Exception {try {return mFacade.createCustomer( pCustomer );} catch (DuplicateEntryException e) {mLog.error("Customer allready exists");throw new SOAPException( e );}}Now when this the class gets loaded that has this method in it, a huge error pops up:11:11:24,725 ERROR [STDERR] ERROR: com.idoox.wasp.server.ServiceManager - Exception during service instance creation
11:11:24,725 ERROR [STDERR] EXCEPTION:
11:11:24,725 ERROR [STDERR] Class be.synsol.s3.soap.TNG or one of its components not found in nullTraces :
=====================
Class space : com.idoox.wasp.ClassSpace@444986(com.idoox.wasp.classloader.WaspClassLoader@66b06b) : null : file:/C:/data/apps/wasp40/app/Soap3S1
Class path : file:/C:/data/apps/wasp40/app/Soap3S1/WASP-INF/classes/java.lang.NoClassDefFoundError: javax/xml/soap/SOAPException
java.lang.NoClassDefFoundError: javax/xml/soap/SOAPException
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:190)
at com.idoox.wasp.ClassSpace.getClass(ClassSpace.java:567)
at com.idoox.wasp.ClassSpace.createInstance(ClassSpace.java:472)
at com.idoox.wasp.server.ServiceManager.getServiceInstanceObject(ServiceManager.java:846)
at com.idoox.wasp.server.ServiceConnector.init(ServiceConnector.java:197)
at com.idoox.wasp.server.ServiceManager.initConnector(ServiceManager.java:671)
at com.idoox.wasp.server.ServiceManager.getConnector(ServiceManager.java:593)
at com.idoox.wasp.server.ServiceManager.dispatch(ServiceManager.java:290)
at com.idoox.wasp.server.ServiceManager$DispatcherConnHandler.handlePost(ServiceManager.java:2218)
at com.idoox.transport.servlet.server.Servlet.doPost(Servlet.java:332)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:344)
at org.mortbay.jetty.servlet.WebApplicationHandler.dispatch(WebApplicationHandler.java:313)
at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:554)
at org.mortbay.jetty.servlet.WebApplicationHandler.handle(WebApplicationHandler.java:199)
at org.mortbay.http.HttpContext.handle(HttpContext.java:1572)
at org.mortbay.http.HttpContext.handle(HttpContext.java:1522)
at org.mortbay.http.HttpServer.service(HttpServer.java:795)
at org.jboss.jetty.Jetty.service(Jetty.java:531)
at org.mortbay.http.HttpConnection.service(HttpConnection.java:784)
at org.mortbay.http.HttpConnection.handleNext(HttpConnection.java:941)
at org.mortbay.http.HttpConnection.handle(HttpConnection.java:799)
at org.mortbay.http.SocketListener.handleConnection(SocketListener.java:186)
at org.mortbay.util.ThreadedServer.handle(ThreadedServer.java:322)
at org.mortbay.util.ThreadPool$JobRunner.run(ThreadPool.java:713)
at java.lang.Thread.run(Thread.java:479)
11:11:24,725 ERROR [STDERR] java.lang.ClassNotFoundException: Class be.synsol.s3.soap.TNG or one of its components not found in nullTraces :
=====================
Class space : com.idoox.wasp.ClassSpace@444986(com.idoox.wasp.classloader.WaspClassLoader@66b06b) : null : file:/C:/data/apps/wasp40/app/Soap3S1
Class path : file:/C:/data/apps/wasp40/app/Soap3S1/WASP-INF/classes/java.lang.NoClassDefFoundError: javax/xml/soap/SOAPException
java.lang.NoClassDefFoundError: javax/xml/soap/SOAPException
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:190)
at com.idoox.wasp.ClassSpace.getClass(ClassSpace.java:567)
at com.idoox.wasp.ClassSpace.createInstance(ClassSpace.java:472)
at com.idoox.wasp.server.ServiceManager.getServiceInstanceObject(ServiceManager.java:846)
at com.idoox.wasp.server.ServiceConnector.init(ServiceConnector.java:197)
at com.idoox.wasp.server.ServiceManager.initConnector(ServiceManager.java:671)
at com.idoox.wasp.server.ServiceManager.getConnector(ServiceManager.java:593)
at com.idoox.wasp.server.ServiceManager.dispatch(ServiceManager.java:290)
at com.idoox.wasp.server.ServiceManager$DispatcherConnHandler.handlePost(ServiceManager.java:2218)
at com.idoox.transport.servlet.server.Servlet.doPost(Servlet.java:332)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:344)
at org.mortbay.jetty.servlet.WebApplicationHandler.dispatch(WebApplicationHandler.java:313)
at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:554)
at org.mortbay.jetty.servlet.WebApplicationHandler.handle(WebApplicationHandler.java:199)
at org.mortbay.http.HttpContext.handle(HttpContext.java:1572)
at org.mortbay.http.HttpContext.handle(HttpContext.java:1522)
at org.mortbay.http.HttpServer.service(HttpServer.java:795)
at org.jboss.jetty.Jetty.service(Jetty.java:531)
at org.mortbay.http.HttpConnection.service(HttpConnection.java:784)
at org.mortbay.http.HttpConnection.handleNext(HttpConnection.java:941)
at org.mortbay.http.HttpConnection.handle(HttpConnection.java:799)
at org.mortbay.http.SocketListener.handleConnection(SocketListener.java:186)
at org.mortbay.util.ThreadedServer.handle(ThreadedServer.java:322)
at org.mortbay.util.ThreadPool$JobRunner.run(ThreadPool.java:713)
at java.lang.Thread.run(Thread.java:479)
11:11:24,725 ERROR [STDERR] at com.idoox.wasp.ClassSpace.createInstance(ClassSpace.java:482)
11:11:24,725 ERROR [STDERR] at com.idoox.wasp.server.ServiceManager.getServiceInstanceObject(ServiceManager.java:846)
11:11:24,725 ERROR [STDERR] at com.idoox.wasp.server.ServiceConnector.init(ServiceConnector.java:197)
11:11:24,725 ERROR [STDERR] at com.idoox.wasp.server.ServiceManager.initConnector(ServiceManager.java:671)
11:11:24,725 ERROR [STDERR] at com.idoox.wasp.server.ServiceManager.getConnector(ServiceManager.java:593)
11:11:24,725 ERROR [STDERR] at com.idoox.wasp.server.ServiceManager.dispatch(ServiceManager.java:290)
11:11:24,725 ERROR [STDERR] at com.idoox.wasp.server.ServiceManager$DispatcherConnHandler.handlePost(ServiceManager.java:2218)
11:11:24,725 ERROR [STDERR] at com.idoox.transport.servlet.server.Servlet.doPost(Servlet.java:332)
11:11:24,725 ERROR [STDERR] at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
11:11:24,725 ERROR [STDERR] at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
11:11:24,725 ERROR [STDERR] at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:344)
11:11:24,725 ERROR [STDERR] at org.mortbay.jetty.servlet.WebApplicationHandler.dispatch(WebApplicationHandler.java:313)
11:11:24,725 ERROR [STDERR] at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:554)
11:11:24,725 ERROR [STDERR] at org.mortbay.jetty.servlet.WebApplicationHandler.handle(WebApplicationHandler.java:199)
11:11:24,725 ERROR [STDERR] at org.mortbay.http.HttpContext.handle(HttpContext.java:1572)
11:11:24,725 ERROR [STDERR] at org.mortbay.http.HttpContext.handle(HttpContext.java:1522)
11:11:24,725 ERROR [STDERR] at org.mortbay.http.HttpServer.service(HttpServer.java:795)
11:11:24,725 ERROR [STDERR] at org.jboss.jetty.Jetty.service(Jetty.java:531)
11:11:24,725 ERROR [STDERR] at org.mortbay.http.HttpConnection.service(HttpConnection.java:784)
11:11:24,740 ERROR [STDERR] at org.mortbay.http.HttpConnection.handleNext(HttpConnection.java:941)
11:11:24,740 ERROR [STDERR] at org.mortbay.http.HttpConnection.handle(HttpConnection.java:799)
11:11:24,740 ERROR [STDERR] at org.mortbay.http.SocketListener.handleConnection(SocketListener.java:186)
11:11:24,740 ERROR [STDERR] at org.mortbay.util.ThreadedServer.handle(ThreadedServer.java:322)
11:11:24,740 ERROR [STDERR] at org.mortbay.util.ThreadPool$JobRunner.run(ThreadPool.java:713)
11:11:24,740 ERROR [STDERR] at java.lang.Thread.run(Thread.java:479)
11:11:24,740 ERROR [STDERR] ERROR: com.idoox.wasp.server.ServiceManager - Throwable during dispatch
11:11:24,740 ERROR [STDERR] EXCEPTION:
11:11:24,740 ERROR [STDERR] Class be.synsol.s3.soap.TNG or one of its components not found in nullTraces :
=====================
Class space : com.idoox.wasp.ClassSpace@444986(com.idoox.wasp.classloader.WaspClassLoader@66b06b) : null : file:/C:/data/apps/wasp40/app/Soap3S1
Class path : file:/C:/data/apps/wasp40/app/Soap3S1/WASP-INF/classes/java.lang.NoClassDefFoundError: javax/xml/soap/SOAPException
java.lang.NoClassDefFoundError: javax/xml/soap/SOAPException
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:190)
at com.idoox.wasp.ClassSpace.getClass(ClassSpace.java:567)
at com.idoox.wasp.ClassSpace.createInstance(ClassSpace.java:472)
at com.idoox.wasp.server.ServiceManager.getServiceInstanceObject(ServiceManager.java:846)
at com.idoox.wasp.server.ServiceConnector.init(ServiceConnector.java:197)
at com.idoox.wasp.server.ServiceManager.initConnector(ServiceManager.java:671)
at com.idoox.wasp.server.ServiceManager.getConnector(ServiceManager.java:593)
at com.idoox.wasp.server.ServiceManager.dispatch(ServiceManager.java:290)
at com.idoox.wasp.server.ServiceManager$DispatcherConnHandler.handlePost(ServiceManager.java:2218)
at com.idoox.transport.servlet.server.Servlet.doPost(Servlet.java:332)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:344)
at org.mortbay.jetty.servlet.WebApplicationHandler.dispatch(WebApplicationHandler.java:313)
at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:554)
at org.mortbay.jetty.servlet.WebApplicationHandler.handle(WebApplicationHandler.java:199)
at org.mortbay.http.HttpContext.handle(HttpContext.java:1572)
at org.mortbay.http.HttpContext.handle(HttpContext.java:1522)
at org.mortbay.http.HttpServer.service(HttpServer.java:795)
at org.jboss.jetty.Jetty.service(Jetty.java:531)
at org.mortbay.http.HttpConnection.service(HttpConnection.java:784)
at org.mortbay.http.HttpConnection.handleNext(HttpConnection.java:941)
at org.mortbay.http.HttpConnection.handle(HttpConnection.java:799)
at org.mortbay.http.SocketListener.handleConnection(SocketListener.java:186)
at org.mortbay.util.ThreadedServer.handle(ThreadedServer.java:322)
at org.mortbay.util.ThreadPool$JobRunner.run(ThreadPool.java:713)
at java.lang.Thread.run(Thread.java:479)
11:11:24,740 ERROR [STDERR] java.lang.ClassNotFoundException: Class be.synsol.s3.soap.TNG or one of its components not found in nullTraces :
=====================
Class space : com.idoox.wasp.ClassSpace@444986(com.idoox.wasp.classloader.WaspClassLoader@66b06b) : null : file:/C:/data/apps/wasp40/app/Soap3S1
Class path : file:/C:/data/apps/wasp40/app/Soap3S1/WASP-INF/classes/java.lang.NoClassDefFoundError: javax/xml/soap/SOAPException
java.lang.NoClassDefFoundError: javax/xml/soap/SOAPException
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:190)
at com.idoox.wasp.ClassSpace.getClass(ClassSpace.java:567)
at com.idoox.wasp.ClassSpace.createInstance(ClassSpace.java:472)
at com.idoox.wasp.server.ServiceManager.getServiceInstanceObject(ServiceManager.java:846)
at com.idoox.wasp.server.ServiceConnector.init(ServiceConnector.java:197)
at com.idoox.wasp.server.ServiceManager.initConnector(ServiceManager.java:671)
at com.idoox.wasp.server.ServiceManager.getConnector(ServiceManager.java:593)
at com.idoox.wasp.server.ServiceManager.dispatch(ServiceManager.java:290)
at com.idoox.wasp.server.ServiceManager$DispatcherConnHandler.handlePost(ServiceManager.java:2218)
at com.idoox.transport.servlet.server.Servlet.doPost(Servlet.java:332)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:344)
at org.mortbay.jetty.servlet.WebApplicationHandler.dispatch(WebApplicationHandler.java:313)
at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:554)
at org.mortbay.jetty.servlet.WebApplicationHandler.handle(WebApplicationHandler.java:199)
at org.mortbay.http.HttpContext.handle(HttpContext.java:1572)
at org.mortbay.http.HttpContext.handle(HttpContext.java:1522)
at org.mortbay.http.HttpServer.service(HttpServer.java:795)
at org.jboss.jetty.Jetty.service(Jetty.java:531)
at org.mortbay.http.HttpConnection.service(HttpConnection.java:784)
at org.mortbay.http.HttpConnection.handleNext(HttpConnection.java:941)
at org.mortbay.http.HttpConnection.handle(HttpConnection.java:799)
at org.mortbay.http.SocketListener.handleConnection(SocketListener.java:186)
at org.mortbay.util.ThreadedServer.handle(ThreadedServer.java:322)
at org.mortbay.util.ThreadPool$JobRunner.run(ThreadPool.java:713)
at java.lang.Thread.run(Thread.java:479)
11:11:24,740 ERROR [STDERR] at com.idoox.wasp.ClassSpace.createInstance(ClassSpace.java:482)
11:11:24,740 ERROR [STDERR] at com.idoox.wasp.server.ServiceManager.getServiceInstanceObject(ServiceManager.java:846)
11:11:24,740 ERROR [STDERR] at com.idoox.wasp.server.ServiceConnector.init(ServiceConnector.java:197)
11:11:24,740 ERROR [STDERR] at com.idoox.wasp.server.ServiceManager.initConnector(ServiceManager.java:671)
11:11:24,740 ERROR [STDERR] at com.idoox.wasp.server.ServiceManager.getConnector(ServiceManager.java:593)
11:11:24,740 ERROR [STDERR] at com.idoox.wasp.server.ServiceManager.dispatch(ServiceManager.java:290)
11:11:24,740 ERROR [STDERR] at com.idoox.wasp.server.ServiceManager$DispatcherConnHandler.handlePost(ServiceManager.java:2218)
11:11:24,740 ERROR [STDERR] at com.idoox.transport.servlet.server.Servlet.doPost(Servlet.java:332)
11:11:24,740 ERROR [STDERR] at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
11:11:24,740 ERROR [STDERR] at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
11:11:24,740 ERROR [STDERR] at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:344)
11:11:24,740 ERROR [STDERR] at org.mortbay.jetty.servlet.WebApplicationHandler.dispatch(WebApplicationHandler.java:313)
11:11:24,740 ERROR [STDERR] at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:554)
11:11:24,740 ERROR [STDERR] at org.mortbay.jetty.servlet.WebApplicationHandler.handle(WebApplicationHandler.java:199)
11:11:24,740 ERROR [STDERR] at org.mortbay.http.HttpContext.handle(HttpContext.java:1572)
11:11:24,740 ERROR [STDERR] at org.mortbay.http.HttpContext.handle(HttpContext.java:1522)
11:11:24,740 ERROR [STDERR] at org.mortbay.http.HttpServer.service(HttpServer.java:795)
11:11:24,740 ERROR [STDERR] at org.jboss.jetty.Jetty.service(Jetty.java:531)
11:11:24,740 ERROR [STDERR] at org.mortbay.http.HttpConnection.service(HttpConnection.java:784)
11:11:24,740 ERROR [STDERR] at org.mortbay.http.HttpConnection.handleNext(HttpConnection.java:941)
11:11:24,740 ERROR [STDERR] at org.mortbay.http.HttpConnection.handle(HttpConnection.java:799)
11:11:24,740 ERROR [STDERR] at org.mortbay.http.SocketListener.handleConnection(SocketListener.java:186)
11:11:24,740 ERROR [STDERR] at org.mortbay.util.ThreadedServer.handle(ThreadedServer.java:322)
11:11:24,740 ERROR [STDERR] at org.mortbay.util.ThreadPool$JobRunner.run(ThreadPool.java:713)
11:11:24,740 ERROR [STDERR] at java.lang.Thread.run(Thread.java:479)I have no clue what to do about it, and I haven't found anything on the net or in forums that can help me out.I would be greatfull if anyone could present me a solution.If anything else needed please ask !!Thx,Les.