[ http://jira.codehaus.org/browse/MOJO-374?page=comments#action_65111 ]
Anagnostopoulos Kostis commented on MOJO-374:
---------------------------------------------
{quote}
I get the error
[WARNING] Unable to validate your schema. Most likely, the JVM has loaded an
incompatible XML parser implementation. You should fix this before relying on
the generated code. Please see the release notes for details.
{quote}
The JAXB RI release notes have an item about that error:
{quote}
The usual condition is that a version of xercesImpl.jar (as might be bundled
with ant, an IDE, or an AppServer e.g.) is in your CLASSPATH before the one
shipped with the Java WSDP. This deters xjc from resolving dependencies it has
on internal Xerces APIs. In previous releases of JAXB, this error condition
whttp://jira.codehaus.org/browse/MOJO-374?page=comments#ould manifest itself as
an IllegalAccessError.
To fix this, make sure jwsdp-1.6/jaxp/lib/endorsed/xercesImpl.jar precedes any
other version of Xerces in your CLASSPATH. Otherwise, xjc can't validate your
schema and you shouldn't rely on the generated code."
{quote}
That is my own mistake for not having added xercesImpl.jar under plugin's
dependencies.
I have also not included *dom.jar*, *sax.jar* and *xalan.jar* despite Release
Notes's instructions to do it.
I was curius to test them because my builds did not require those jars. Thank
you Anders for reporting the problem i caused you.
In order to add the dependencies to the pom.xml, the "groupId-naming-problem"
has to be solved. Hopefully i will include the corrected pom.xml in a
subsequent jira comment. Any help appreciated.
For now, here are the new suggested package names:
||jaxb lib || version required by JAXB RI || current or suggested groupId
|| included packages || notes |
|dom.jar | 2.3.0 | org.w3c | org.w3c | |
|jaxb-api-doc.zip | | javax.xml | javax.xml | not a plugin
dependency |
|jaxb-api.jar | | javax.xml | javax.xml | |
|jaxb-api-src.zip | | javax.xml | javax.xml | not a plugin
dependency |
|jaxb-impl.jar | | javax.xml | com.sun.xml | |
|jaxb-libs.jar | | javax.xml | com.sun.msv, jp.gr.relax,
org.iso_relax| |
|jaxb-xjc.jar | | javax.xml | com.sun.tools, com.sun.xml,
org.apache | |
|jaxp-api.jar | | javax.xml | javax.xml | *runtime*
dependency, among others usefull for JDK 1.4 clients using the
XMLGregorianCalendar class (included in JDK1.5 by default) |
|jax-qname.jar | | javax.xml | javax.xml | *runtime* dependency
(included in JDK1.5 by default) |
|namespace.jar | | javax.xml | javax.xml | *runtime* dependency
(included in JDK1.5 by default) |
|relaxngDatatype.jar | | javax.xml | org.relaxng.datatype | *runtime*
dependency |
|sax.jar | 2.3.0 | | org.xml.sax | suggested groupId found at
ibiblio but not the required version |
|xalan.jar | 2.6.0 | xalan | ... | suggested groupId found at
ibiblio |
|xercesImpl.jar | 2.6.3 | xerces | ... | suggested groupId found at
ibiblio but not the required version |
|xsdlib.jar | | javax.xml | com.sun.msv, com.sun.xml.util |
*runtime* dependency |
> JAXB1 maven plugin (using sun's lib)
> ------------------------------------
>
> Key: MOJO-374
> URL: http://jira.codehaus.org/browse/MOJO-374
> Project: Mojo
> Type: New Feature
> Components: Plugin Submission
> Reporter: Anagnostopoulos Kostis
> Priority: Minor
> Attachments: jaxb1-maven-plugin.tgz, pom.xml
>
>
> Dear housmates,
> this is the JAXB1 plugin for maven2 using sun's implementation libs for JAXB
> API.
> It's dependency libs are not uploaded to ibiblio yet but the poms exists that
> refer to sun for download
> due to licencing problems.
> That was before JAXB became an open-source project at
> https://jaxb.dev.java.net/.
> Now, all libs are CDDL or ASF licenced, so it is possible to upload them
> directly to ibiblio.
> The problem is under which groupId to upload them?
> I include the next matrix of all the JAXB1 libs as an aid to the discussion
> we had
> at the codehaus mailling lists concerning the placement of the dependency
> libs in ibiblio.org.
> I also hope that it would help anyone involved into uploading the actual libs
> to ibiblio,
> since i intend to spend my Easter vacations away from the PC.
> h4.JAXB1 Reference Implementation Libs
> ||jaxb lib || current or suggested groupId || included packages ||
> notes |
> |dom.jar | - | org.w3c | not a plugin dependency |
> |jaxb-api-doc.zip | javax.xml | javax.xml | not a plugin dependency |
> |jaxb-api-doc.zip | javax.xml | javax.xml | not a plugin dependency |
> |jaxb-api.jar | javax.xml | javax.xml | |
> |jaxb-api-src.zip | javax.xml | javax.xml | not a plugin dependency |
> |jaxb-impl.jar | javax.xml | com.sun.xml | |
> |jaxb-libs.jar | javax.xml | com.sun.msv, jp.gr.relax, org.iso_relax| |
> |jaxb-xjc.jar | javax.xml | com.sun.tools, com.sun.xml, org.apache | |
> |jaxp-api.jar | javax.xml | javax.xml | *runtime* dependency, among
> others usefull for JDK 1.4 clients using the XMLGregorianCalendar class
> (included in JDK1.5 by default) |
> |jax-qname.jar | javax.xml | javax.xml | *runtime* dependency
> (included in JDK1.5 by default) |
> |namespace.jar | javax.xml | javax.xml | *runtime* dependency
> (included in JDK1.5 by default) |
> |relaxngDatatype.jar | javax.xml | org.relaxng.datatype | *runtime*
> dependency |
> |sax.jar | - | org.xml.sax | not a plugin dependency |
> |xalan.jar | - | ... | not a plugin dependency |
> |xercesImpl.jar | - | ... | not a plugin dependency |
> |xsdlib.jar | javax.xml | com.sun.msv, com.sun.xml.util | *runtime*
> dependency |
> Of course the matrix would be more complete if it included the exact licence
> of each lib,
> but i think this is easy to figure out...
> ankostis
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira