[prev in list] [next in list] [prev in thread] [next in thread]
List: xmlbeans-dev
Subject: [jira] Updated: (XMLBEANS-425) Wrong class loaded
From: "Matej Perse (JIRA)" <xmlbeans-dev () xml ! apache ! org>
Date: 2009-12-14 9:52:18
Message-ID: 1774581092.1260784338421.JavaMail.jira () brutus
[Download RAW message or body]
[ https://issues.apache.org/jira/browse/XMLBEANS-425?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel \
]
Matej Perse updated XMLBEANS-425:
---------------------------------
Attachment: posebni_vplivi_2009-11-24.xsd
> Wrong class loaded
> ------------------
>
> Key: XMLBEANS-425
> URL: https://issues.apache.org/jira/browse/XMLBEANS-425
> Project: XMLBeans
> Issue Type: Bug
> Affects Versions: Version 2.4
> Reporter: Matej Perse
> Attachments: model_2009-11-24.xsd, model_2009-11-24.xsdconfig, \
> posebni_vplivi_2009-11-24.xsd, posebni_vplivi_2009-11-24.xsdconfig, \
> posebniVpliviSchema.jar, xmlSchema.jar
>
> Hi,
> We get an rather unusual exception. We building two separate packages \
> (posebniVpliviSchema and xmlSchema) from two different schemas. In both packegies \
> we have the same class name (PosebniVpliviDocumentImpl.class). When we include both \
> packages into the same project, we obtain the following error: \
> com.sinergise.pvn.xmlSchema.impl.PosebniVpliviDocumentImpl
> java.lang.ClassCastException: \
> com.sinergise.pvn.xmlSchema.impl.PosebniVpliviDocumentImpl at \
> com.sinergise.pvn.posebniVpliviSchema.PosebniVpliviDocument$Factory.parse(PosebniVpliviDocument.java:59)
> at com.sinergise.pvn.server.utils.XMLImporter.savePosebniVplivi(XMLImporter.java:280)
> at com.sinergise.pvn.server.main.PVNImporter.main(PVNImporter.java:60)
> As you can see from the error, we parse the xml document using the \
> "posebniVpliviSchema" package but in the parsing process the XMLBeans try to use \
> the class from the "xmlSchema" package. It looks like the package information is \
> completely ignored since when we invert the order of the linked project the above \
> error is resolved, but then we get the error in the other project. Regards,
> Matej
--
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
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic