You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@xmlbeans.apache.org by "Oskar Carlstedt (JIRA)" <xm...@xml.apache.org> on 2007/04/16 10:00:15 UTC

[jira] Created: (XMLBEANS-324) Strange contents of JAR-files

Strange contents of JAR-files
-----------------------------

                 Key: XMLBEANS-324
                 URL: https://issues.apache.org/jira/browse/XMLBEANS-324
             Project: XMLBeans
          Issue Type: Bug
    Affects Versions: Version 2.2
         Environment: All
            Reporter: Oskar Carlstedt


Hello!!

I have som deploying issues that are related to xml beans. Can someone tell me why javax.xml.namespae is included in xbean.jar and xmlpublic.jar. Also, why are these bundeled into xml beans. Isn't it better to leave them as a dependency to xml beans.

Ok, I know that people hate dependencies to other jars - but anyway, today's solution makes me (and a lot of other people too) getting a java.lang.LinkedError when using the QName class.

Is i tpossible to remove these classes ffrom the xml beans distribution.

Best Regards
Oskar Carlstedt


-- 
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


[jira] Commented: (XMLBEANS-324) Strange contents of JAR-files

Posted by "Radu Preotiuc-Pietro (JIRA)" <xm...@xml.apache.org>.
    [ https://issues.apache.org/jira/browse/XMLBEANS-324?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12492138 ] 

Radu Preotiuc-Pietro commented on XMLBEANS-324:
-----------------------------------------------

Yeah, and removing it in an XmlBeans release means that all the people who don't have any problems right now and use JDK1.4 will now have their apps break until the get the extra jar and add it to the classpath.

I think that the negatives far ouweigh the positives in this case and I would vote for not making this change.

When everybody moves to JDK1.5 and later, the class will be loaded by the bootstrap classloader and this will cease being a problem.


> Strange contents of JAR-files
> -----------------------------
>
>                 Key: XMLBEANS-324
>                 URL: https://issues.apache.org/jira/browse/XMLBEANS-324
>             Project: XMLBeans
>          Issue Type: Bug
>    Affects Versions: Version 2.2
>         Environment: All
>            Reporter: Oskar Carlstedt
>
> Hello!!
> I have som deploying issues that are related to xml beans. Can someone tell me why javax.xml.namespae is included in xbean.jar and xmlpublic.jar. Also, why are these bundeled into xml beans. Isn't it better to leave them as a dependency to xml beans.
> Ok, I know that people hate dependencies to other jars - but anyway, today's solution makes me (and a lot of other people too) getting a java.lang.LinkedError when using the QName class.
> Is i tpossible to remove these classes ffrom the xml beans distribution.
> Best Regards
> Oskar Carlstedt

-- 
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


[jira] Resolved: (XMLBEANS-324) Strange contents of JAR-files

Posted by "Radu Preotiuc-Pietro (JIRA)" <xm...@xml.apache.org>.
     [ https://issues.apache.org/jira/browse/XMLBEANS-324?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Radu Preotiuc-Pietro resolved XMLBEANS-324.
-------------------------------------------

       Resolution: Fixed
    Fix Version/s:  Version 2.3

It actually appears that this can still cause problems even with JDK 1.5 and as such we've decided to fix it. The fix has been comitted with SVN revision 537261 and will be part of the upcoming 2.3.0 release.


> Strange contents of JAR-files
> -----------------------------
>
>                 Key: XMLBEANS-324
>                 URL: https://issues.apache.org/jira/browse/XMLBEANS-324
>             Project: XMLBeans
>          Issue Type: Bug
>    Affects Versions: Version 2.2
>         Environment: All
>            Reporter: Oskar Carlstedt
>             Fix For:  Version 2.3
>
>
> Hello!!
> I have som deploying issues that are related to xml beans. Can someone tell me why javax.xml.namespae is included in xbean.jar and xmlpublic.jar. Also, why are these bundeled into xml beans. Isn't it better to leave them as a dependency to xml beans.
> Ok, I know that people hate dependencies to other jars - but anyway, today's solution makes me (and a lot of other people too) getting a java.lang.LinkedError when using the QName class.
> Is i tpossible to remove these classes ffrom the xml beans distribution.
> Best Regards
> Oskar Carlstedt

-- 
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


[jira] Commented: (XMLBEANS-324) Strange contents of JAR-files

Posted by "Radu Preotiuc-Pietro (JIRA)" <xm...@xml.apache.org>.
    [ https://issues.apache.org/jira/browse/XMLBEANS-324?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12490213 ] 

Radu Preotiuc-Pietro commented on XMLBEANS-324:
-----------------------------------------------

Problem is XmlBeans is designed to work with JDK1.4 and JDK1.4 doesn't have this class if I am not mistaken. Having that class in the jar allows users of both JDK1.4 and JDK1.5 and above to use XmlBeans without having to worry about a dependency that really is not available anywhere for download.

What environment are you in that makes this error happen? Is it possible for you to remove this class from the jar?


> Strange contents of JAR-files
> -----------------------------
>
>                 Key: XMLBEANS-324
>                 URL: https://issues.apache.org/jira/browse/XMLBEANS-324
>             Project: XMLBeans
>          Issue Type: Bug
>    Affects Versions: Version 2.2
>         Environment: All
>            Reporter: Oskar Carlstedt
>
> Hello!!
> I have som deploying issues that are related to xml beans. Can someone tell me why javax.xml.namespae is included in xbean.jar and xmlpublic.jar. Also, why are these bundeled into xml beans. Isn't it better to leave them as a dependency to xml beans.
> Ok, I know that people hate dependencies to other jars - but anyway, today's solution makes me (and a lot of other people too) getting a java.lang.LinkedError when using the QName class.
> Is i tpossible to remove these classes ffrom the xml beans distribution.
> Best Regards
> Oskar Carlstedt

-- 
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


[jira] Commented: (XMLBEANS-324) Strange contents of JAR-files

Posted by "Oskar Carlstedt (JIRA)" <xm...@xml.apache.org>.
    [ https://issues.apache.org/jira/browse/XMLBEANS-324?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12490243 ] 

Oskar Carlstedt commented on XMLBEANS-324:
------------------------------------------

Hello!

This happens i JBoss 4.0.x where I get a LinkedError when using isolated classloaders on earfiles (i.e. server/default/deploy/ear-deployer.xml has the value Isolated set to true). A better idea might be to not mix different things in the same jar file. What I mean is, it is better to provide a new jar file called javax-xml-namespace.jar with the javax.xml.namespace contents. Then it is up to the user to use this jar file as a dedpendency or not.

I have removed the selected packages fom the jar file and that solved my problem. But doing this way means that I have to patch my own xbean.jar everytime you provide a new version.

Best
Oskar

> Strange contents of JAR-files
> -----------------------------
>
>                 Key: XMLBEANS-324
>                 URL: https://issues.apache.org/jira/browse/XMLBEANS-324
>             Project: XMLBeans
>          Issue Type: Bug
>    Affects Versions: Version 2.2
>         Environment: All
>            Reporter: Oskar Carlstedt
>
> Hello!!
> I have som deploying issues that are related to xml beans. Can someone tell me why javax.xml.namespae is included in xbean.jar and xmlpublic.jar. Also, why are these bundeled into xml beans. Isn't it better to leave them as a dependency to xml beans.
> Ok, I know that people hate dependencies to other jars - but anyway, today's solution makes me (and a lot of other people too) getting a java.lang.LinkedError when using the QName class.
> Is i tpossible to remove these classes ffrom the xml beans distribution.
> Best Regards
> Oskar Carlstedt

-- 
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