You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@xmlbeans.apache.org by "Andreas Lenerz (JIRA)" <xm...@xml.apache.org> on 2014/10/15 14:28:34 UTC

[jira] [Commented] (XMLBEANS-499) xmlbeans2.6.0.jar contians duplicate class files

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

Andreas Lenerz commented on XMLBEANS-499:
-----------------------------------------

The problem appears for the target "xmlpublic.classes" of the build script where the classes are copied to a second location.

Changing the target to:
{code:xml}
<target name="xmlpublic.classes" depends="dirs, jsr173_1.0.jars, xmlinputstream.classes">
        <mkdir dir="build/classes/xmlpublic"/>
        <javac srcdir="src/xmlpublic" sourcepath="src/xmlinputstream" destdir="build/classes/xmlpublic" source="${javac.source}" target="${javac.target}" debug="on">
            <classpath>
                <pathelement location="build/lib/jsr173_1.0_api.jar"/>
                <pathelement location="build/classes/xmlinputstream/"/>
            </classpath>
        </javac>
...
{code}

solves the problem for me and allows to rebuild and sign the jar.

> xmlbeans2.6.0.jar contians duplicate class files
> ------------------------------------------------
>
>                 Key: XMLBEANS-499
>                 URL: https://issues.apache.org/jira/browse/XMLBEANS-499
>             Project: XMLBeans
>          Issue Type: Bug
>    Affects Versions: Version 2.6
>            Reporter: Peter Klerehag
>
> The xlmbeans-2.6.0.jar contains some duplicate class files which in some cases can generate problems with classloading.
> It is mainly under "/org/apache/xmlbeans/xml/stream/" but there is some other locations as well
> Did following and there you clearly see 2x of ReferenceResolver 
>  unzip -l xmlbeans-2.6.0.jar | grep Resolver.class
>       394  2012-07-23 15:42   org/apache/xmlbeans/xml/stream/ReferenceResolver.class
>       394  2012-07-23 15:42   org/apache/xmlbeans/xml/stream/ReferenceResolver.class
>       214  2012-07-23 15:42   org/apache/xmlbeans/impl/common/PrefixResolver.class
>     45339  2012-07-23 15:42   org/apache/xmlbeans/impl/schema/StscComplexTypeResolver.class
>     11284  2012-07-23 15:42   org/apache/xmlbeans/impl/schema/StscResolver.class
>     26162  2012-07-23 15:42   org/apache/xmlbeans/impl/schema/StscSimpleTypeResolver.class
>      3524  2012-07-23 15:42   org/apache/xmlbeans/impl/tool/SchemaImportResolver.class
>      1069  2012-07-23 15:42   org/apache/xmlbeans/impl/store/Locale$DefaultEntityResolver.class



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

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