Hi friends,
I'm a long time XMLBeans user, and i want to use new XMLBeans 2.3.0 in my
new Project, first time that i need run xmlbeans under WebSphere.
My WebSphere is 5.1.1 and Run under IBM JDK.
My project have all XMLBeans .jar and my schema.jar with my XMLObjects
mapped in MANIFEST.MF, to start i trying to run a simple test,
a servlet with this simple code:
ConsulteDocument consulteDoc =
ConsultePjDocument.Factory.newInstance();
Consulte consulte = consulteDoc.addNewConsultePj();
EmpresaConsultada empresaConsultada =
consultePJ.addNewEmpresaConsultada();
empresaConsultada.addNewEndereco();
Identificacao identificacao = empresaConsultada.addNewIdentificacao
();
identificacao.addNewNumeroTelefone
().addNewListaTelefone().setTelefone(1185689635);
out.println(consulteDoc.xmlText());
Running this, WebSphere return this error :
[25/06/07 22:01:55:904 BRT] c723596 WebGroup I SRVE0180I: [TestWeb]
[/TestWeb] [Servlet.LOG]: init
[25/06/07 22:01:58:763 BRT] c723596 WebGroup E SRVE0026E: [Erro de
Servlet]-[javax.xml.namespace.QName: method
<init>(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V
not found]: java.lang.NoSuchMethodError: javax.xml.namespace.QName: method
<init>(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V not found
at at
org.apache.xmlbeans.impl.store.Locale.<clinit>(Locale.java:133).null(Unknown
Source)
at org.apache.xmlbeans.impl.schema.SchemaTypeLoaderBase.newInstance(
SchemaTypeLoaderBase.java:198)
at
br.com.unixsolutions.test.dto.saidaconsultepj.ConsultePjDocument$Factory.newInstance
(ConsultePjDocument.java:702)
at br.com.unixsolutions.test.servlet.EmpresarialCompletoServlet.doGet(
EmpresarialCompletoServlet.java:43)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at com.ibm.ws.webcontainer.servlet.StrictServletInstance.doService(
StrictServletInstance.java:110)
at com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet._service(
StrictLifecycleServlet.java:174)
at com.ibm.ws.webcontainer.servlet.IdleServletState.service(
StrictLifecycleServlet.java:313)
at com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet.service(
StrictLifecycleServlet.java:116)
at com.ibm.ws.webcontainer.servlet.ServletInstance.service(
ServletInstance.java:283)
at com.ibm.ws.webcontainer.servlet.ValidServletReferenceState.dispatch(
ValidServletReferenceState.java:42)
at com.ibm.ws.webcontainer.servlet.ServletInstanceReference.dispatch(
ServletInstanceReference.java:40)
at
com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.handleWebAppDispatch(
WebAppRequestDispatcher.java:983)
at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.dispatch(
WebAppRequestDispatcher.java:564)
at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.forward(
WebAppRequestDispatcher.java:200)
at com.ibm.ws.webcontainer.srt.WebAppInvoker.doForward(
WebAppInvoker.java:119)
at com.ibm.ws.webcontainer.srt.WebAppInvoker.handleInvocationHook(
WebAppInvoker.java:276)
at
com.ibm.ws.webcontainer.cache.invocation.CachedInvocation.handleInvocation(
CachedInvocation.java:71)
at com.ibm.ws.webcontainer.srp.ServletRequestProcessor.dispatchByURI(
ServletRequestProcessor.java:182)
at com.ibm.ws.webcontainer.oselistener.OSEListenerDispatcher.service(
OSEListener.java:334)
at com.ibm.ws.webcontainer.http.HttpConnection.handleRequest(
HttpConnection.java:56)
at com.ibm.ws.http.HttpConnection.readAndHandleRequest(
HttpConnection.java:618)
at com.ibm.ws.http.HttpConnection.run(HttpConnection.java:439)
at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:672)
Anybody knows what happends ?
Running this in TestCase, the code run perfect, but in WebSphere container,
this error is printed.
Thx.
Best Regards.