List Info

Thread: RE: XMLBeans 2.3.0 with WebSphere 5.1 ERROR !




RE: XMLBeans 2.3.0 with WebSphere 5.1 ERROR !
country flaguser name
United States
2007-06-26 08:36:31
Hi Radu,

This could potentially affect our project as well.  However,
I see that this notice is listed under XMLBeans 2.3.0.  We
are using 2.2.0; does this requirement affect our version as
well when using with WebSphere and Java 1.4?

Regards,
Vance

> -------- Original Message --------
> Subject: RE: XMLBeans 2.3.0 with WebSphere 5.1 ERROR !
> From: "Radu Preotiuc-Pietro" <radupbea.com>
> Date: Mon, June 25, 2007 10:22 pm
> To: <userxmlbeans.apache.org>
> 
> See the Website for the JDK1.4 announcement: http://xmlbeans.apache.org

> You need xmlbeans-qname.jar on your classpath because
the version of
> QName that WebSphere 5.1.1 includes is (from the error
message) an old
> version that doesn't work with XMLBeans.
>  
> Hope this helps,
> Radu
> 
> 
> ________________________________
> 
> 	From: Gustavo Aquino [mailto:aquino.gustavogmail.com] 
> 	Sent: Monday, June 25, 2007 6:30 PM
> 	To: userxmlbeans.apache.org
> 	Subject: XMLBeans 2.3.0 with WebSphere 5.1 ERROR !
> 	
> 	
> 	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().s
etTelefone(1
> 185689635);
> 	
> 	
> 	        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(Unk
> nown Source)
> 	    at
>
org.apache.xmlbeans.impl.schema.SchemaTypeLoaderBase.newInst
ance(SchemaT
> ypeLoaderBase.java:198)
> 	    at
>
br.com.unixsolutions.test.dto.saidaconsultepj.ConsultePjDocu
ment$Factory
> .newInstance (ConsultePjDocument.java:702)
> 	    at br.com.unixsolutions
>
.test.servlet.EmpresarialCompletoServlet.doGet(EmpresarialCo
mpletoServle
> t.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.doServ
ice
> (StrictServletInstance.java:110)
> 	    at
>
com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet._serv
ice(StrictLi
> fecycleServlet.java:174)
> 	    at
>
com.ibm.ws.webcontainer.servlet.IdleServletState.service(Str
ictLifecycle
> Servlet.java:313)
> 	    at
>
com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet.servi
ce
> (StrictLifecycleServlet.java:116)
> 	    at
>
com.ibm.ws.webcontainer.servlet.ServletInstance.service(Serv
letInstance.
> java:283)
> 	    at
>
com.ibm.ws.webcontainer.servlet.ValidServletReferenceState.d
ispatch(Vali
> dServletReferenceState.java:42)
> 	    at
>
com.ibm.ws.webcontainer.servlet.ServletInstanceReference.dis
patch(Servle
> tInstanceReference.java:40)
> 	    at
>
com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.handl
eWebAppDispa
> tch (WebAppRequestDispatcher.java:983)
> 	    at
>
com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.dispa
tch(WebAppRe
> questDispatcher.java:564)
> 	    at
>
com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.forwa
rd(WebAppReq
> uestDispatcher.java:200)
> 	    at
com.ibm.ws.webcontainer.srt.WebAppInvoker.doForward
> (WebAppInvoker.java:119)
> 	    at
>
com.ibm.ws.webcontainer.srt.WebAppInvoker.handleInvocationHo
ok(WebAppInv
> oker.java:276)
> 	    at
>
com.ibm.ws.webcontainer.cache.invocation.CachedInvocation.ha
ndleInvocati
> on(CachedInvocation.java:71)
> 	    at
>
com.ibm.ws.webcontainer.srp.ServletRequestProcessor.dispatch
ByURI
> (ServletRequestProcessor.java:182)
> 	    at
>
com.ibm.ws.webcontainer.oselistener.OSEListenerDispatcher.se
rvice(OSELis
> tener.java:334)
> 	    at
>
com.ibm.ws.webcontainer.http.HttpConnection.handleRequest(Ht
tpConnection
> .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.
> 	
> 	
> 	
> 
> 
> Notice:  This email message, together with any
attachments, may
> contain information  of  BEA Systems,  Inc.,  its
subsidiaries  and 
> affiliated entities,  that may be confidential, 
proprietary, 
> copyrighted  and/or legally privileged, and is intended
solely for the
> use of the individual or entity named in this message.
If you are not
> the intended recipient, and have received this message
in error,
> please immediately return this by email and then delete
it.

------------------------------------------------------------
---------
To unsubscribe, e-mail: user-unsubscribexmlbeans.apache.org
For additional commands, e-mail: user-helpxmlbeans.apache.org


Re: XMLBeans 2.3.0 with WebSphere 5.1 ERROR !
user name
2007-06-26 12:40:12
Hi friends,

I resolve this problem, put xmlbeans-qname.jar in classpath does not resolve the problem because, WebSphere has a QName implementation in your library, to resolve this problem i configure my EAR to search objects in classloader local and if does not found search in load ob

I cant replace QName library of websphere with new Qname, because websphere does not working.

Anybody resolve this problem diferent ?

Obs:

I'm trying use XMLBeans 2.x and had a problem with all.

Best Regards


On 6/26/07, Vance Vagell < vancevancevagell.com">vancevancevagell.com> wrote:
Hi Radu,

This could potentially affect our project as well. ; However, I see that this notice is listed under XMLBeans 2.3.0.&nbsp; We are using 2.2.0; does this requirement affect our version as well when using with WebSphere and Java 1.4?

Regards,
Vance

> -------- Original Message --------
&gt; Subject: RE: XMLBeans 2.3.0 with WebSphere 5.1 ERROR !
> From: "Radu Preotiuc-Pietro" < radupbea.com"> radupbea.com&gt;
> Date: Mon, June 25, 2007 10:22 pm
> To: < userxmlbeans.apache.org">userxmlbeans.apache.org&gt;
>
&gt; See the Website for the JDK1.4 announcement: http://xmlbeans.apache.org
&gt; You need xmlbeans-qname.jar on your classpath because the version of
> QName that WebSphere 5.1.1 includes is (from the error message) an old
> version that doesn't work with XMLBeans.
>
> Hope this helps,
>; Radu
>
>
> ________________________________
>
>&nbsp;   ; &nbsp; From: Gustavo Aquino [mailto: aquino.gustavogmail.com">aquino.gustavogmail.com ]
>&nbsp; &nbsp; &nbsp;  Sent: Monday, June 25, 2007 6:30 PM
>&nbsp; &nbsp; &nbsp;  To: userxmlbeans.apache.org">userxmlbeans.apache.org
> &nbsp;   ;  Subject: XMLBeans 2.3.0 with WebSphere 5.1 ERROR !
>
&gt;
>&nbsp; &nbsp; &nbsp;  Hi friends,
&gt;
>&nbsp; &nbsp; &nbsp;  I'm a long time XMLBeans user, and i want to use new XMLBeans
&gt; 2.3.0 in my new Project, first time that i need run xmlbeans under
> WebSphere.
>
>; &nbsp; &nbsp; &nbsp; My WebSphere is 5.1.1 and Run under IBM JDK.
>
> &nbsp;   ;  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,
&gt; &nbsp; &nbsp; &nbsp; a servlet with this simple code:
>
  ; &nbsp; &nbsp; &nbsp; &nbsp;   ; ConsulteDocument consulteDoc =
> ConsultePjDocument.Factory.newInstance();
&gt; &nbsp; &nbsp;   ; &nbsp; &nbsp; &nbsp;  Consulte consulte = consulteDoc.addNewConsultePj ();
>
>  ; &nbsp; &nbsp; &nbsp; &nbsp;   ;  EmpresaConsultada empresaConsultada =
> consultePJ.addNewEmpresaConsultada();
>
> &nbsp;   ; &nbsp; &nbsp; &nbsp; &nbsp;  empresaConsultada.addNewEndereco();
>
&gt; &nbsp; &nbsp; &nbsp;   ; &nbsp; &nbsp;  Identificacao identificacao =
> empresaConsultada.addNewIdentificacao ();
>
&gt;
> identificacao.addNewNumeroTelefone().addNewListaTelefone().setTelefone(1
>; 185689635);
>
>
  ; &nbsp; &nbsp; &nbsp; &nbsp;   ; out.println(consulteDoc.xmlText ());
>
> &nbsp;   ;  Running this, WebSphere return this error :
>
>;
; &nbsp; &nbsp;  [25/06/07 22:01:55:904 BRT]  c723596 WebGroup&nbsp; &nbsp;   ;I SRVE0180I:
> [TestWeb] [/TestWeb] [Servlet.LOG]: &nbsp;init
&gt; &nbsp; &nbsp;   [25/06/07 22:01:58:763 BRT]  c723596 WebGroup&nbsp; &nbsp;   ;E SRVE0026E:
> [Erro de Servlet]-[ javax.xml.namespace.QName: method
>; <init&gt;(Ljava/lang/String;Ljava/lang/String;Ljava/lang/
> String;)V not found]: java.lang.NoSuchMethodError:
>; javax.xml.namespace.QName : method
>; <init&gt;(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V not
> found
>  ; &nbsp; &nbsp; &nbsp; &nbsp; at &nbsp; &nbsp; at
> org.apache.xmlbeans.impl.store.Locale.<clinit>(Locale.java:133).null(Unk
> nown Source)
&gt; &nbsp; &nbsp; &nbsp;   ;  at
> org.apache.xmlbeans.impl.schema.SchemaTypeLoaderBase.newInstance(SchemaT
>; ypeLoaderBase.java:198)
>&nbsp; &nbsp; &nbsp; &nbsp;   ; at
> br.com.unixsolutions.test.dto.saidaconsultepj.ConsultePjDocument$Factory
&gt; .newInstance (ConsultePjDocument.java:702)
&gt; &nbsp; &nbsp; &nbsp;   ;  at br.com.unixsolutions
> .test.servlet.EmpresarialCompletoServlet.doGet(EmpresarialCompletoServle
>; t.java:43)
  ; &nbsp; &nbsp; &nbsp;  at
> javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
&gt; &nbsp; &nbsp; &nbsp;   ;  at
> javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
>  ; &nbsp; &nbsp; &nbsp; &nbsp; at
> com.ibm.ws.webcontainer.servlet.StrictServletInstance.doService
> (StrictServletInstance.java:110)
  ; &nbsp; &nbsp; &nbsp;  at
> com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet._service(StrictLi
>; fecycleServlet.java:174)
>&nbsp; &nbsp; &nbsp;   ; &nbsp; at
> com.ibm.ws.webcontainer.servlet.IdleServletState.service (StrictLifecycle
&gt; Servlet.java:313)
>; &nbsp; &nbsp; &nbsp; &nbsp;   at
> com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet.service
&gt; (StrictLifecycleServlet.java:116)
; &nbsp; &nbsp; &nbsp; &nbsp;  at
> com.ibm.ws.webcontainer.servlet.ServletInstance.service (ServletInstance.
&gt; java:283)
> &nbsp;   ; &nbsp; &nbsp;  at
> com.ibm.ws.webcontainer.servlet.ValidServletReferenceState.dispatch(Vali
>; dServletReferenceState.java:42)
> &nbsp;   ; &nbsp; &nbsp;  at
> com.ibm.ws.webcontainer.servlet.ServletInstanceReference.dispatch (Servle
&gt; tInstanceReference.java:40)
>  ; &nbsp; &nbsp; &nbsp; &nbsp; at
> com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.handleWebAppDispa
>; tch (WebAppRequestDispatcher.java:983)
>&nbsp; &nbsp; &nbsp; &nbsp;   ; at
> com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.dispatch(WebAppRe
&gt; questDispatcher.java:564)
>&nbsp; &nbsp;   ; &nbsp; &nbsp; at
> com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.forward(WebAppReq
>; uestDispatcher.java :200)
>&nbsp;   ; &nbsp; &nbsp; &nbsp; at com.ibm.ws.webcontainer.srt.WebAppInvoker.doForward
&gt; (WebAppInvoker.java:119)
>&nbsp; &nbsp; &nbsp;   ; &nbsp; at
> com.ibm.ws.webcontainer.srt.WebAppInvoker.handleInvocationHook(WebAppInv
>; oker.java:276)
>  ; &nbsp; &nbsp; &nbsp; &nbsp; at
> com.ibm.ws.webcontainer.cache.invocation.CachedInvocation.handleInvocati
>; on(CachedInvocation.java:71)
>; &nbsp; &nbsp; &nbsp; &nbsp;   at
> com.ibm.ws.webcontainer.srp.ServletRequestProcessor.dispatchByURI
> (ServletRequestProcessor.java:182)
>&nbsp; &nbsp; &nbsp; &nbsp;   ; at
> com.ibm.ws.webcontainer.oselistener.OSEListenerDispatcher.service(OSELis
>; tener.java:334)
>&nbsp;   ; &nbsp; &nbsp; &nbsp; at
> com.ibm.ws.webcontainer.http.HttpConnection.handleRequest (HttpConnection
&gt; .java:56)
> &nbsp;   ; &nbsp; &nbsp;  at com.ibm.ws.http.HttpConnection.readAndHandleRequest
&gt; (HttpConnection.java:618)
>&nbsp; &nbsp;   ; &nbsp; &nbsp; at
> com.ibm.ws.http.HttpConnection.run(HttpConnection.java :439)
>; &nbsp; &nbsp; &nbsp; &nbsp;   at
> com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:672)
>
&gt;
>&nbsp; &nbsp; &nbsp;  Anybody knows what happends ?
>
>; &nbsp; &nbsp; &nbsp; Running this in TestCase, the code run perfect, but in WebSphere
> container, this error is printed.
&gt;
>&nbsp; &nbsp; &nbsp;  Thx.
>
> &nbsp;   ;  Best Regards.
&gt;
>
&gt;
>
>;
> Notice:&nbsp; This email message, together with any attachments, may
> contain information &nbsp;of &nbsp;BEA Systems,&nbsp; Inc., &nbsp;its subsidiaries &nbsp;and
> affiliated entities,&nbsp; that may be confidential, &nbsp;proprietary,
> copyrighted &nbsp;and/or legally privileged, and is intended solely for the
> use of the individual or entity named in this message. If you are not
> the intended recipient, and have received this message in error,
>; please immediately return this by email and then delete it.

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribexmlbeans.apache.org">user-unsubscribexmlbeans.apache.org
For additional commands, e-mail: user-helpxmlbeans.apache.org">user-helpxmlbeans.apache.org


[1-2]

about | contact  Other archives ( Real Estate discussion Medical topics )