Hi, Jim.
Can you try this patch to see if it fixes the "ClassNotFoundException"?
Thanks,
Raymond
----- Original Message -----
From: "Jim Marino" <[EMAIL PROTECTED]>
To: <[email protected]>
Sent: Monday, July 10, 2006 9:44 AM
Subject: Re: Databinding patch r420514
On Jul 10, 2006, at 9:37 AM, Raymond Feng wrote:
Hi, Jim.
1) The Castor code-gen works fine in my environment (Windows XP w/
IBM JDK 5). I guess the Castor code references Apache Xerces
explicitly and it happens my JDK bundles Xerces while yous doesn't.
If it's the case, we may have to add Apache Xerces to the
dependency list.
Yea I'm on OS X. Can you add it as a dependency?
2) Now we have two databinding-sdo projects (one under folder "sdo"
and the other one under "databinding-sdo"), can you merge them into
one?
Could you do this and I'll patch it in for you?
Thanks,
Jim
Thanks,
Raymond
----- Original Message ----- From: "Jim Marino"
<[EMAIL PROTECTED]>
To: <[email protected]>
Sent: Monday, July 10, 2006 5:57 AM
Subject: Databinding patch r420514
I've committed the databinding patch from Raymond. Raymond, I had
to change some of the Axiom dependencies from SNAPSHOT to 1.0 (I
hope this is ok). Also, the Castor extension built was throwing
the following:
[ERROR] BUILD ERROR
INFO]
---------------------------------------------------------------------
---
[INFO] Error executing ant tasks
Embedded error: java.lang.RuntimeException: Could not instantiate
parser org.apache.xerces.parsers.SAXParser:
java.lang.ClassNotFoundException: org.apache.xerces.parsers.SAXParser
so I commented it out. Raymond, could you take a look?
Jim
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Index: pom.xml
===================================================================
--- pom.xml (revision 420565)
+++ pom.xml (working copy)
@@ -71,6 +71,13 @@
<artifactId>commons-logging</artifactId>
<version>1.0.4</version>
</dependency>
+ <!-- Adding Apache xerces to workaround
the castor references for SAX parser -->
+ <dependency>
+ <groupId>xerces</groupId>
+
<artifactId>xercesImpl</artifactId>
+ <version>2.8.0</version>
+ </dependency>
+
</dependencies>
<executions>
@@ -80,7 +87,7 @@
<configuration>
<tasks>
<taskdef name="castor-srcgen"
-
classname="org.exolab.castor.tools.ant.taskdefs.CastorSourceGenTask"
classpathref="maven.compile.classpath" />
+
classname="org.exolab.castor.tools.ant.taskdefs.CastorSourceGenTask"
classpathref="maven.plugin.classpath" />
<mkdir
dir="${project.build.directory}/castor-source"></mkdir>
<castor-srcgen
file="${basedir}/src/test/resources/ipo.xsd"
todir="${project.build.directory}/castor-source" package="com.example.ipo.castor" types="j2" warnings="false"
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]