You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commons-dev@ws.apache.org by "Jeremy Boynes (JIRA)" <ji...@apache.org> on 2006/08/09 15:48:13 UTC

[jira] Created: (WSCOMMONS-70) AXIOM does not specify the classloader used to locate StAX implementation

AXIOM does not specify the classloader used to locate StAX implementation
-------------------------------------------------------------------------

                 Key: WSCOMMONS-70
                 URL: http://issues.apache.org/jira/browse/WSCOMMONS-70
             Project: WS-Commons
          Issue Type: Bug
          Components: AXIOM
            Reporter: Jeremy Boynes


The implementation in StAXUtils uses XMLInputFactory.newInstance() to load the pool which, with the stax-api version used, uses the current classloader to locate the StAX implementation. This has two problems:
* it requires the implementation to be on the application's classpath
* it may result in factories from different implementations being in the pool as different classloaders may be present when the factory is instantiated

-- 
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
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: commons-dev-help@ws.apache.org


[jira] Resolved: (WSCOMMONS-70) AXIOM does not specify the classloader used to locate StAX implementation

Posted by "Davanum Srinivas (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/WSCOMMONS-70?page=all ]

Davanum Srinivas resolved WSCOMMONS-70.
---------------------------------------

    Resolution: Fixed

Fixed.

-- dims

> AXIOM does not specify the classloader used to locate StAX implementation
> -------------------------------------------------------------------------
>
>                 Key: WSCOMMONS-70
>                 URL: http://issues.apache.org/jira/browse/WSCOMMONS-70
>             Project: WS-Commons
>          Issue Type: Bug
>          Components: AXIOM
>            Reporter: Jeremy Boynes
>         Attachments: axiom.patch
>
>
> The implementation in StAXUtils uses XMLInputFactory.newInstance() to load the pool which, with the stax-api version used, uses the current classloader to locate the StAX implementation. This has two problems:
> * it requires the implementation to be on the application's classpath
> * it may result in factories from different implementations being in the pool as different classloaders may be present when the factory is instantiated

-- 
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
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: commons-dev-help@ws.apache.org


[jira] Updated: (WSCOMMONS-70) AXIOM does not specify the classloader used to locate StAX implementation

Posted by "Jeremy Boynes (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/WSCOMMONS-70?page=all ]

Jeremy Boynes updated WSCOMMONS-70:
-----------------------------------

    Attachment: axiom.patch

This patch specifies the classloader to use and uses the classloader used to load StAXUtils. In most applications this will be the same one originally contained on the thread (for example, in a webapp where Axis is bundled in the war).

Due to a defect in the stax-api library where XMLOutputFactory.newInstace(String, ClassLoader) had the wrong return type, the patch also upgrades to use version 1.0.1

> AXIOM does not specify the classloader used to locate StAX implementation
> -------------------------------------------------------------------------
>
>                 Key: WSCOMMONS-70
>                 URL: http://issues.apache.org/jira/browse/WSCOMMONS-70
>             Project: WS-Commons
>          Issue Type: Bug
>          Components: AXIOM
>            Reporter: Jeremy Boynes
>         Attachments: axiom.patch
>
>
> The implementation in StAXUtils uses XMLInputFactory.newInstance() to load the pool which, with the stax-api version used, uses the current classloader to locate the StAX implementation. This has two problems:
> * it requires the implementation to be on the application's classpath
> * it may result in factories from different implementations being in the pool as different classloaders may be present when the factory is instantiated

-- 
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
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: commons-dev-help@ws.apache.org