xmlbeans-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "David J. M. Karlsen (JIRA)" <xmlbeans-...@xml.apache.org>
Subject [jira] Commented: (XMLBEANS-330) javax.xml.namespace classes included in archive
Date Wed, 09 May 2007 19:06:15 GMT

    [ https://issues.apache.org/jira/browse/XMLBEANS-330?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12494558
] 

David J. M. Karlsen commented on XMLBEANS-330:
----------------------------------------------

Yes - I'm focusing a little on the "maven release" - beacuse it can save me so much time to
automate building++

The stack trace:

   Delegation Mode: PARENT_LAST
   [1] com.ibm.ws.classloader.ProtectionClassLoader@1ad3fba
   [2] com.ibm.ws.bootstrap.ExtClassLoader@16dfa45
   [3] org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader@1060478
   [4] sun.misc.Launcher$AppClassLoader@169e11
   [5] sun.misc.Launcher$ExtClassLoader@e39a3e
---Original exception---
java.lang.LinkageError: Class javax/xml/namespace/QName violates loader constraints
        at java.lang.ClassLoader.defineClass1&#40;Native Method&#41;
        at java.lang.ClassLoader.defineClass&#40;ClassLoader.java:620&#41;
        at java.security.SecureClassLoader.defineClass&#40;SecureClassLoader.java:124&#41;
        at com.ibm.ws.classloader.CompoundClassLoader._defineClass&#40;CompoundClassLoader.java:526&#41;
        at com.ibm.ws.classloader.CompoundClassLoader.findClass&#40;CompoundClassLoader.java:477&#41;
        at com.ibm.ws.classloader.CompoundClassLoader.loadClass&#40;CompoundClassLoader.java:382&#41;
        at java.lang.ClassLoader.loadClass&#40;ClassLoader.java:251&#41;
        at java.lang.ClassLoader.loadClassInternal&#40;ClassLoader.java:319&#41;


I'll do a search for the classes in API jars.

We need parent_last delegation (using the application classloader before appsrv classloader)
because we need newer aspectj libraries than the ones included in the appserver (WebSphere
6.1 / JDK 1.5)

> javax.xml.namespace classes included in archive
> -----------------------------------------------
>
>                 Key: XMLBEANS-330
>                 URL: https://issues.apache.org/jira/browse/XMLBEANS-330
>             Project: XMLBeans
>          Issue Type: Bug
>    Affects Versions: Version 2.2
>         Environment: N/A
>            Reporter: David J. M. Karlsen
>         Assigned To: Jacob Danner
>            Priority: Blocker
>
> The archive at http://repo1.maven.org/maven2/xmlbeans/xbean/2.2.0/ includes javax.xml.namespace
classes (QName and NamespaceContext) - which are part of the API specification - and thus
should not be included in the archive.
> This is especially problematic when using xbeans inside containers which also loads these
classes, ending up in ClassCast exceptions, LinkageError and the likes.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


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


Mime
View raw message