axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From j...@apache.org
Subject [jira] Created: (AXIS-1297) Axis's jaxrpc.jar includes some interfaces from JAXP, causing class cast exceptions in JBoss, possibly Tomcat
Date Sun, 11 Apr 2004 00:14:43 GMT
Message:

  A new issue has been created in JIRA.

---------------------------------------------------------------------
View the issue:
  http://issues.apache.org/jira/browse/AXIS-1297

Here is an overview of the issue:
---------------------------------------------------------------------
        Key: AXIS-1297
    Summary: Axis's jaxrpc.jar includes some interfaces from JAXP, causing class cast exceptions
in JBoss, possibly Tomcat
       Type: Bug

     Status: Unassigned
   Priority: Major

    Project: Axis
   Versions:
             1.1

   Assignee: 
   Reporter: John G. Norman

    Created: Sat, 10 Apr 2004 5:13 PM
    Updated: Sat, 10 Apr 2004 5:13 PM
Environment: Axis 1.1; JBoss 3.2.3, possibly Tomcat 4.x. Have seen on Windows XP and Linux.

Description:
The jaxrpc.jar shipped with Axis 1.1 includes interfaces that belong to JAXP. They are:

	javax/xml/transform/dom/DOMSource.class
	javax/xml/transform/sax/SAXSource.class
	javax/xml/transform/Source.class
	javax/xml/transform/stream/StreamSource.class

Because on some servers, namely JBoss, JAXP is loaded by a different classloader, class cast
exceptions are produced when other Axis classes expect these classes to be loaded by the same
classloader.

(Note that it can be tricky on JBoss to alter the classloading mechanism for a particular
.ear or .war, and impossible in some cases without access to the server setup.)

This is a blocker for many applications on JBoss, especially ones that need to use a particular
version of XML and also Axis. The presence of these JAXP interfaces in Axis's jaxrpc.jar creates
a conflict.

It seems very weird that the Axis jaxrpc.jar would include these interfaces, anyway: They
don't belong there. A developer should be able to put in place his favored XML parser implementation.

For what it's worth, I made my own version of Axis's jaxrpc.jar that simply omits these items,
so that Axis just uses the JAXP items that are available as part of normal JBoss startup.
It seems to eliminate the typical class cast exceptions.



---------------------------------------------------------------------
JIRA INFORMATION:
This message is automatically generated by JIRA.

If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa

If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira


Mime
View raw message