Ed,

Thanks. I read through the tomcat classloading page again, which was useful. I ended up moving everything to a server running tomcat 5.5.9 (other server was 5.0.27), and now it's working. Sorry for the trouble.

Paul

On Tue, 7 Feb 2006, Edward Frederick wrote:

Paul,

While it's true that Tomcat has a special classloader delegation model
(webapp classloader gets 'first crack'), there are special cases where
delegation proceeds as usual (parent classloaders, not the webapp
classloader, gets 'first crack'):

- 'endorsed' stuff. (tomcat/common/endorsed?)
- javax.*
- org.xml.sax.*
- org.w3c.dom.*
- org.apache.xerces.*
- org.apache.xalan.*

I'm not saying anything particular here--just that you may want to
take a closer look.

Best,

Ed


On 2/7/06, Paul Jamason <[EMAIL PROTECTED]> wrote:

Thanks for your quick reply Ann.  However, I'm using tomcat (I
should have indicated that earlier).  I assume that tomcat's
runtime classpath will use jars from my application's WEB-INF/lib
directory before those in tomcat's "common" and/or "shared" libs,
but I'll look into this further.

Paul


On Tue, 7 Feb 2006, Quynh-Anh Nguyen wrote:


Yes, I also ran into this problem with WebLogic.
In my case, weblogic.jar package an older version of QName class.
My solution to get around this problem is to have the two jars
xbean.jar and jsr173_1.0_api.jar before the weblogic.jar.

Check your classpath.
-ann

[EMAIL PROTECTED] 2/7/2006 1:18:13 PM >>>
Hi,

I'm getting the following error when I try to invoke a servlet that
calls
xmlbeans-generated class methods:


java.lang.NoSuchMethodError:
javax.xml.namespace.QName.<init>(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V

org.apache.xmlbeans.impl.store.Locale.<clinit>(Locale.java:133)

org.apache.xmlbeans.impl.schema.SchemaTypeLoaderBase.parse(SchemaTypeLoaderBase.java:345)

org.apache.xmlbeans.impl.schema.SchemaTypeLoaderBase.parse(SchemaTypeLoaderBase.java:309)

edu.ucsd.sopac.ns.geodesy.reason.asa.x2005.x10.ResourceContextCatalogDocument$Factory.parse(ResourceContextCatalogDocument.java:65)

edu.ucsd.sopac.reason.asa.resources.ResourceContextCatalog.setResourceContextCatalogDoc(ResourceContextCatalog.java:33)

edu.ucsd.sopac.reason.asa.resources.ResourceContextCatalog.isContextIdValid(ResourceContextCatalog.java:49)

edu.ucsd.sopac.reason.grws.client.GRWS_SubmitQuery.getResource(GRWS_SubmitQuery.java:362)

edu.ucsd.sopac.reason.grws.servlets.CoordinateQuery.doGet(CoordinateQuery.java:27)
      javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
      javax.servlet.http.HttpServlet.service(HttpServlet.java:802)


The above error occurs only once, after reloading the tomcat
application.
Subsequent page reloads return this error:


java.lang.NoClassDefFoundError

org.apache.xmlbeans.impl.schema.SchemaTypeLoaderBase.parse(SchemaTypeLoaderBase.java:345)

org.apache.xmlbeans.impl.schema.SchemaTypeLoaderBase.parse(SchemaTypeLoaderBase.java:309)

edu.ucsd.sopac.ns.geodesy.reason.asa.x2005.x10.ResourceContextCatalogDocument$Factory.parse(ResourceContextCatalogDocument.java:65)

edu.ucsd.sopac.reason.asa.resources.ResourceContextCatalog.setResourceContextCatalogDoc(ResourceContextCatalog.java:33)

edu.ucsd.sopac.reason.asa.resources.ResourceContextCatalog.isContextIdValid(ResourceContextCatalog.java:49)

edu.ucsd.sopac.reason.grws.client.GRWS_SubmitQuery.getResource(GRWS_SubmitQuery.java:362)

edu.ucsd.sopac.reason.grws.servlets.CoordinateQuery.doGet(CoordinateQuery.java:27)
      javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
      javax.servlet.http.HttpServlet.service(HttpServlet.java:802)


The xmlbeans jars that contain the above classes are present in my
application's WEB-INF/lib directory.

Has anyone seen this problem, or have any idea as to what might be
causing it?
Thanks.

Paul



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to