Hi,
I need help!!!
I'm trying to use castor under tomcat 3.1 with mysql database.
Firstly : my test application runs perfectly under shell.
Secondly : when i try to run my tests under tomcat 3.1, a problem occurs with
the following messages:
[Castor] The persistence factory class
org.exolab.castor.jdo.drivers.PostgreSQLFactory specified in the Castor
properties file does not exist in this configuration and will not be
supported.
[Castor] The persistence factory class
org.exolab.castor.jdo.drivers.MySQLFactory specified in the Castor properties
file does not exist in this configuration and will not be supported.
[Castor] The persistence factory class
org.exolab.castor.jdo.drivers.GenericFactory specified in the Castor
properties file does not exist in this configuration and will not be
supported.
org.castor.mapping.MappingException.
The persistence engine mysql is not
supported in this Castor configuration
at
org.exolab.org.jdo.engine.DatabaseRegistry.loadDatabase(DatabaseRegistry.java:252)
I've copied all the necessary libs (castor, xerces, jndi, jta) in the lib
directory in order to provide to tomcat the possibility to find all the
classes.
The jasper log contains :
2001-10-20 11:19:35 - JspEngine --> /samplejmp.jsp
2001-10-20 11:19:35 - ServletPath: /samplejmp.jsp
2001-10-20 11:19:35 - PathInfo: null
2001-10-20 11:19:35 - RealPath:
/root/anyj/tomcatproj/webapps/ROOT/samplejmp.jsp
2001-10-20 11:19:35 - RequestURI: /monproj/samplejmp.jsp
2001-10-20 11:19:35 - QueryString: null
2001-10-20 11:19:35 - Request Params:
2001-10-20 11:19:35 - Classpath according to the Servlet Engine is:
/root/anyj/tomcatproj/webapps/ROOT/WEB-INF/classes:/usr/local/castor-0.9.3src/lib/castor-0.9.3.jar:/usr/local/castor-0.9.3src/lib/jdbc-se2.0.jar:/usr/local/jdbcdriv/mm.mysql-2.0.4-bin.jar:/usr/local/castor-0.9.3src/lib/jndi_1.2.1.jar:/usr/local/castor-0.9.3src/lib/jta1.0.1.jar:/usr/local/castor-0.9.3src/lib/xerces-J_1.4.0.jar:/root/anyj/tomcatproj/webapps/ROOT/WEB-INF/lib/mestests.jar
1 first remark-------------------------------------------------
I'have put a castor.properties file under the root of tomcat application. It
is recognized correctly because, in this castor properties file i have
specified the following lines :
org.exolab.castor.jdo.engines=org.exolab.jdo.drivers.PostgreSQLFactory,\
org.exolab.jdo.drivers.MySQLFactory,\
org.exolab.jdo.drivers.GenericSQLFactory,\
But i d'ont understand why castor under tomcat 3.1 don't recognize those
engines factories.
2 second remark-----------------------------------------------
my file database.xml specifying a mysql datasource is founded but the mysql
engine is not recognized.
Conclusion :
Why does the engines factories are not recognized on my configuration !!!!!
--
JMP
-----------------------------------------------------------
If you wish to unsubscribe from this mailing, send mail to
[EMAIL PROTECTED] with a subject of:
unsubscribe castor-dev