Hi Scib,

you don't need to have j2ee.jar on your classpath just use jta1.0.1.jar
instead as this includes the required interfaces. You find that jar in
the lib directory of the full castor download.

Having said that I use castor myself in a tomcat environment without any
problem.

Regards
Ralf
Castor JDO, committer


Scib Ebel schrieb:
> I'm using castor-jdo to map objects to a mysql database for a java
> webapp on tomcat 5.5.  To use castor-jdo it seems I need to have
> j2ee.jar.  If I don't have this jar in the classpath an error saying it
> can't find javax.transaction.Synchronization.  The problem is that in
> tomcat, any JAR containing servlet API classes will be ignored by the
> classloader, and therefore, if I have j2ee.jar in my application's
> WEB-INF/lib directory, it is ignored and therefore can't find this class.
> When I start tomcat I get this message:
> INFO: validateJarFile(C:\Program Files\Apache Software Foundation\Tomcat
> 5.5\webapps\ahs96\WEB-INF\lib\j2ee.jar) - jar not loaded. See Servlet
> Spec 2.3, section 9.7.2. Offending class: javax/servlet/Servlet.class
> 
> I have found a workaround by putting j2ee.jar in my
> $TOMCAT_HOME/common/lib directory, however, this is not the correct way
> to do it.  Has anyone encountered this problem and is there a better
> solution?  Thank you.
> 
> 
> 
> -------------------------------------------------
> If you wish to unsubscribe from this list, please send an empty message
> to the following address:
> 
> [EMAIL PROTECTED]
> -------------------------------------------------

-- 

Syscon Ingenieurbüro für
Meß- und Datentechnik GmbH
Ralf Joachim
Raiffeisenstraße 11
D-72127 Kusterdingen
Germany

Tel.   +49 7071 3690 52
Mobil: +49 173 9630135
Fax    +49 7071 3690 98

Email: [EMAIL PROTECTED]
Web:   www.syscon-world.de

-------------------------------------------------
If you wish to unsubscribe from this list, please 
send an empty message to the following address:

[EMAIL PROTECTED]
-------------------------------------------------

Reply via email to