Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Java > EJB deployment problem

Thread Tools

EJB deployment problem

Posts: n/a
I am trying to deploy my first EJBs to Apache Tomcat 5.0 on Win2000. The
problem I have is an exception occurs in the deployment tool when I try to
generate the SQL for the beans which use CMP. I am using a mysql database
and I supply the database JNDI name (jdbc/InfoDb), user and password in the
database settings dialog. When I try to generate the SQL I get a
java.rmi.ServerException. The nested exceptions ultimately lead to:
Caused by: java.sql.SQLException: No suitable driver
at java.sql.DriverManager.getConnection(DriverManager .java:532)
at java.sql.DriverManager.getConnection(DriverManager .java:171)
com.sun.enterprise.resource.JdbcUrlAllocator.creat eResource(JdbcUrlAllocator
... 12 more

The j2ee server.log file (and also the launcher.server.log) shows the name
bound to the database url.
I have used j2eeadmin to add the mysql jdbc driver class name
(com.mysql.jdbc.Driver) to the server config.
I have put the path to the mysql connector jar in the file
in the j2sdkee1.4/bin directory. I also put it in launcher.xml in the
base.class.path element.
I don't know what to do.

Reply With Quote

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Possible to generate "ejb-jar.xml" from EJB class (source)? "ejb-jar.xml" appserver independent? Raymond Schanks Java 0 08-03-2010 08:21 AM
EJB-QL: writing a regular expression query using EJB QL Sriv Chakravarthy Java 0 09-18-2003 03:39 PM
To EJB or not to EJB Jeremy Haile Java 5 09-10-2003 03:52 AM
EJB on Weblogic7 : accessing Ejb thru *Local interface* fails due to JNDI lookup Mumbai Joe Java 0 07-29-2003 04:16 PM
Dynamically Access & Call An EJB From Another EJB? Steve Java 1 07-15-2003 06:47 PM