I'm running Castor 0.9.5. I do have Tomcat 4.1.1.8 but I'm not using Castor with it yet. Also, I'm runnnig on Red Hat 8.0.
Here's the entire classpath - hope you don't get seasick reading it!
.:/usr/local/java/j2sdk1.4.1_02/jre:/usr/local/java/j2sdk1.4.1_02/jre/lib/ext:
/usr/local/java/j2sdkee1.4/lib/j2ee.jar:/usr/local/java/j2sdkee1.4/lib/cloudscape.jar:
/usr/local/tomcat/common/lib/servlet.jar:/usr/local/ant/lib/ant.jar:
/usr/local/xerces-1_4_4/xerces.jar:/usr/local/struts/lib/struts.jar:
/usr/local/struts/lib/commons-beanutils.jar:/usr/local/struts/commons-collections.jar:
/usr/local/struts/lib/commons-dbcp.jar:/usr/local/struts/lib/commons-fileupload.jar:
/usr/local/struts/lib/commons-lang.jar:/usr/local/struts/lib/commons-logging.jar:
/usr/local/struts/lib/commons-pool.jar:/usr/local/struts/lib/commons-resources.jar:
/usr/local/struts/lib/commons-validator.jar:/usr/local/struts/lib/jakarta-oro.jar:
/usr/local/axis-1_1RC2/lib/axis.jar:/usr/local/axis-1_1RC2/lib/jaxrpc.jar:
/usr/local/axis-1_1RC2/lib/saaj.jar:/usr/local/axis-1_1RC2/lib/commons-logging.jar:
/usr/local/axis-1_1RC2/lib/commons-discovery.jar:/usr/local/axis-1_1RC2/lib/tt-bytecode.jar:
/usr/local/axis-1_1RC2/lib/wsdl4j.jar:/usr/local/castor/castor-0.9.5.jar:/usr/local/JacORB/lib/idl.jar:
/usr/local/JacORB/lib/jacorb.jar:/usr/local/JacORB/classes:/usr/local/java/classes/com:
/usr/local/java/classes/org:/usr/local/poseidon/lib:/home/ron/classes:/usr/local/eclipse:
/usr/local/merlot/Merlot-1.0.1.jar
castor-0.9.5.jar is in the 4th line from the bottom.
I have castor itself unpacked in /usr/local (well, I guess you can see that from above). There isn't a lib directory. There are some jar files (jdbc-se2.0.jar, jta1.0.1.jar, and castor-0.9.5). Since everything compiles cleanly we know java is finding the castor jar file at least.
There is another castor.jar in the jBuilder tree but jBuilder isn't in the CLASSPATH or PATH for that matter as I'm not using it right now.
Ron
On Fri, 2003-06-13 at 13:51, Bruce Snyder wrote:
This one time, at band camp, Ron Dlugosz said: RD>I'm having trouble running any Castor-JDO programs. I tried several RD>example programs and keep getting the following message every time I try RD>to run the programs: RD> RD> xception in thread "main" java.lang.IncompatibleClassChangeError RD> at RD> RD>org.exolab.castor.persist.PersistenceFactoryRegistry.load(PersistenceFactoryRegistry.java:137) RD> at RD>org.exolab.castor.persist.PersistenceFactoryRegistry.getPersistenceFactory(PersistenceFactoryRegistry.java:98) RD> at RD>org.exolab.castor.jdo.engine.DatabaseRegistry.loadDatabase(DatabaseRegistry.java:250) RD> at org.exolab.castor.jdo.JDO.getDatabase(JDO.java:583) RD> at ShopTest.main(ShopTest.java:27) RD> RD>The program does compile clean and I have the castor jar file in the RD>path. Does anyone have any idea why this error is occuring? Ron, This error could be occurring because you're using an incompatible (older or newer) version of a lib that Castor needs. Make sure that you're using the libs provided with Castor in it's lib dir. What does your CLASSPATH look like? Are you using Castor with a Servlet or J2EE container? Bruce
|
-- Ron Dlugosz <[EMAIL PROTECTED]> |
