I believe this is fixed for an upcoming 2.0.2 release, but will have to
defer to John. In any case, its not in JIRA, so if you want to file it
for fixing in 2.0.2 we'll look into it.
- Brett
Brian E. Fox wrote:
> I'm working on a kodo plugin in the codehaus mojo sandbox. Using 2.0, it
> works fine. In 2.1, it can't find xercesImpl, which is a transitive
> dependency of the plugin. Did something change to cause new behavior
> (aka a bug) related to this? Just eyeballing the info below, in 2.0, the
> instance of classloader was org.codehaus.classworlds.RealmClassLoader
> but in 2.0.1 it is org.codehaus.plexus.util.RealmDelegatingClassLoader
>
> I tried specifying xercesImpl as a direct dependency and that didn't
> work either so I'm not sure it's related to the transitivity.
>
> Output from 2.0.1: (2.0 follows further below)
>
> [DEBUG]
> org.codehaus.mojo:kodo-maven-plugin:maven-plugin:1.0-alpha-1-SNAPSHOT
> (selected for runtime)
> [DEBUG] org.apache.maven:maven-model:jar:2.0 (selected for runtime)
> [DEBUG] org.codehaus.plexus:plexus-utils:jar:1.0.4 (selected for
> runtime)
> [DEBUG] Skipping disabled repository snapshots
> [DEBUG] com.solarmetric:kodo-jdo:jar:3.3.3 (setting version to: 3.3.3
> from range: [3.0,])
> [DEBUG] com.solarmetric:kodo-jdo:jar:3.3.3 (selected for runtime)
> [DEBUG] com.solarmetric:kodo-wl81manage:jar:1.0 (selected for
> runtime)
> [DEBUG] com.solarmetric:kodo-workbench:jar:1.0 (selected for
> runtime)
> [DEBUG] org.hsqldb:jdbc-hsql:jar:1.7.0 (selected for runtime)
> [DEBUG] sqlline:sqlline:jar:1.0 (selected for runtime)
> [DEBUG] jcommon:jcommon:jar:0.9.1 (selected for runtime)
> [DEBUG] javax.jdo:jdo:jar:1.0.2 (selected for runtime)
> [DEBUG] xalan:xalan:jar:2.5.1 (selected for runtime)
> [DEBUG] jfreechart:jfreechart:jar:0.9.16 (selected for runtime)
> [DEBUG] com.solarmetric:kodo-jdo-runtime:jar:3.3.3 (selected for
> runtime)
> [DEBUG] javax.sql:jdbc-stdext:jar:2.0 (selected for runtime)
> [DEBUG] jline:jline:jar:0.9.1 (selected for runtime)
> [DEBUG] mx4j:mx4j-jmx:jar:1.1.1 (selected for runtime)
> [DEBUG] jta-spec:jta-spec:jar:1.0.1 (selected for runtime)
> [WARNING] While downloading xml-apis:xml-apis:2.0.0
> This artifact has been relocated to xml-apis:xml-apis:1.0.b2.
>
>
> [DEBUG] xml-apis:xml-apis:jar:1.0.b2 (selected for runtime)
> [DEBUG] xerces:xercesImpl:jar:2.5.0 (selected for runtime)
> [DEBUG] jca:jca:jar:1.0.0 (selected for runtime)
> [DEBUG] mx4j:mx4j-tools:jar:1.1.1 (selected for runtime)
> [DEBUG] jndi:jndi:jar:1.2.1 (selected for runtime)
> [DEBUG] Skipping disabled repository snapshots
> [DEBUG] log4j:log4j:jar:1.2.12 (setting version to: 1.2.12 from range:
> [1.2.9,])
> [DEBUG] log4j:log4j:jar:1.2.12 (selected for runtime)
> [DEBUG] org.apache.maven:maven-plugin-api:jar:2.0 (selected for
> runtime)
> [DEBUG] Configuring mojo
> 'org.codehaus.mojo:kodo-maven-plugin:1.0-alpha-1-SNAPSHOT:enhance' -->
> [DEBUG] (f) classDir =
> E:\STC\svn\modules\services\supplementaldata-jdo\trunk\target\classes
> [DEBUG] (f) resources = [EMAIL PROTECTED]
> [DEBUG] (f) searchDir =
> E:\STC\svn\modules\services\supplementaldata-jdo\trunk\target\classes
> [DEBUG] -- end configuration --
> [INFO] [kodo:enhance {execution: kodo-enhance}]
> [info] Found
> file:E:\STC\svn\modules\services\supplementaldata-jdo\trunk\target\class
> es\com\stchome\application\supplementalforms\persist\persist.jdo
> [info] [EMAIL PROTECTED]
> <mailto:[EMAIL PROTECTED]>
> [debug] Added to Classpath:
> [debug]
> /E:/STC/svn/modules/services/supplementaldata-jdo/trunk/src/main/resourc
> es/
> [debug]
> /E:/STC/svn/modules/services/supplementaldata-jdo/trunk/target/classes/
> [INFO]
> ------------------------------------------------------------------------
> ----
> [ERROR] FATAL ERROR
> [INFO]
> ------------------------------------------------------------------------
> ----
> [INFO] Provider org.apache.xerces.jaxp.SAXParserFactoryImpl not found
> [INFO]
> ------------------------------------------------------------------------
> ----
> [DEBUG] Trace
> javax.xml.parsers.FactoryConfigurationError: Provider
> org.apache.xerces.jaxp.SAXParserFactoryImpl not found
> at
> javax.xml.parsers.SAXParserFactory.newInstance(SAXParserFactory.java:93)
> at serp.xml.XMLFactory.checkSAXCache(XMLFactory.java:217)
> at serp.xml.XMLFactory.getSAXParser(XMLFactory.java:66)
> at
> com.solarmetric.meta.XMLMetaDataParser.parseNew(XMLMetaDataParser.java:3
> 54)
> at
> com.solarmetric.meta.XMLMetaDataParser.parse(XMLMetaDataParser.java:320)
> at
> com.solarmetric.meta.ClassArgParser.getFromMetaData(ClassArgParser.java:
> 182)
> at
> com.solarmetric.meta.ClassArgParser.parseClassNames(ClassArgParser.java:
> 98)
> at
> com.solarmetric.meta.ClassArgParser.parseClasses(ClassArgParser.java:74)
> at kodo.enhance.JDOEnhancer.run(JDOEnhancer.java:2657)
>
>
>
> 2.0 Output:
> [DEBUG]
> org.codehaus.mojo:kodo-maven-plugin:maven-plugin:1.0-alpha-1-SNAPSHOT
> (selected for runtime)
> [DEBUG] org.apache.maven:maven-model:jar:2.0 (selected for runtime)
> [DEBUG] org.codehaus.plexus:plexus-utils:jar:1.0.4 (selected for
> runtime)
> [DEBUG] Skipping disabled repository snapshots
> [DEBUG] com.solarmetric:kodo-jdo:jar:3.3.3 (setting version to: 3.3.3
> from range: [3.0,])
> [DEBUG] com.solarmetric:kodo-jdo:jar:3.3.3 (selected for runtime)
> [DEBUG] com.solarmetric:kodo-wl81manage:jar:1.0 (selected for
> runtime)
> [DEBUG] com.solarmetric:kodo-workbench:jar:1.0 (selected for
> runtime)
> [DEBUG] org.hsqldb:jdbc-hsql:jar:1.7.0 (selected for runtime)
> [DEBUG] sqlline:sqlline:jar:1.0 (selected for runtime)
> [DEBUG] jcommon:jcommon:jar:0.9.1 (selected for runtime)
> [DEBUG] javax.jdo:jdo:jar:1.0.2 (selected for runtime)
> [DEBUG] xalan:xalan:jar:2.5.1 (selected for runtime)
> [DEBUG] jfreechart:jfreechart:jar:0.9.16 (selected for runtime)
> [DEBUG] com.solarmetric:kodo-jdo-runtime:jar:3.3.3 (selected for
> runtime)
> [DEBUG] javax.sql:jdbc-stdext:jar:2.0 (selected for runtime)
> [DEBUG] jline:jline:jar:0.9.1 (selected for runtime)
> [DEBUG] mx4j:mx4j-jmx:jar:1.1.1 (selected for runtime)
> [DEBUG] jta-spec:jta-spec:jar:1.0.1 (selected for runtime)
> [WARNING]
> This artifact has been relocated to xml-apis:xml-apis:1.0.b2.
>
>
> [DEBUG] xml-apis:xml-apis:jar:1.0.b2 (selected for runtime)
> [DEBUG] xerces:xercesImpl:jar:2.5.0 (selected for runtime)
> [DEBUG] jca:jca:jar:1.0.0 (selected for runtime)
> [DEBUG] mx4j:mx4j-tools:jar:1.1.1 (selected for runtime)
> [DEBUG] jndi:jndi:jar:1.2.1 (selected for runtime)
> [DEBUG] Skipping disabled repository snapshots
> [DEBUG] log4j:log4j:jar:1.2.12 (setting version to: 1.2.12 from range:
> [1.2.9,])
> [DEBUG] log4j:log4j:jar:1.2.12 (selected for runtime)
> [DEBUG] org.apache.maven:maven-plugin-api:jar:2.0 (selected for
> runtime)
> [DEBUG] Configuring mojo
> 'org.codehaus.mojo:kodo-maven-plugin:1.0-alpha-1-SNAPSHOT:enhance' -->
> [DEBUG] (f) classDir =
> E:\STC\svn\modules\services\supplementaldata-jdo\trunk\target\classes
> [DEBUG] (f) resources = [EMAIL PROTECTED]
> [DEBUG] (f) searchDir =
> E:\STC\svn\modules\services\supplementaldata-jdo\trunk\target\classes
> [DEBUG] -- end configuration --
> [INFO] [kodo:enhance {execution: kodo-enhance}]
> [info] Found
> file:E:\STC\svn\modules\services\supplementaldata-jdo\trunk\target\class
> es\com\stchome\application\supplementalforms\persist\persist.jdo
> [info] [EMAIL PROTECTED]
> [debug] Added to Classpath:
> [debug]
> /E:/STC/svn/modules/services/supplementaldata-jdo/trunk/src/main/resourc
> es/
> [debug]
> /E:/STC/svn/modules/services/supplementaldata-jdo/trunk/target/classes/
> 0 INFO [main] kodo.Tool - JDO enhancer running on type "class
> com.stchome.application.supplementalforms.persist.FormOwnerAssociation".
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]