Problem solved.
I needed to re-copy the schemaorg_apache_xmlbeans folder generated by the
wsdl2java command back into the resources folder of the Eclipse project.
Jack Sprat <[EMAIL PROTECTED]> wrote: I have an Axis2 1.2 service using
XMLBeans 2.3 that has been working fine. A change was made to a schema so the
beans were regenerated and all generated source was re-imported into the
Eclipse project.
Now the service fails with an ExceptionInInitializerError for all operations.
The line where is fails is the following line in the finally block of the
HTTPTransportUtils#processHTTPPostRequest method:
msgContext.setEnvelope(new SOAP12Factory().getDefaultEnvelope());
The stack trace is below.
2008-05-27 15:39:36,031 ERROR AxisServlet -
java.lang.ExceptionInInitializerError
2008-05-27 15:39:36,109 ERROR [AxisServlet] - Servlet.service() for servlet
AxisServlet threw exception
java.lang.NullPointerException
at org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.java:170)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
at
org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
at
org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
at
org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
at java.lang.Thread.run(Unknown Source)
NOTE - Subsequent calls fail with a java.lang.NoClassDefFoundError exception.
What would cause this? Any help is appreciated.
Thanks.
T