Tomcat JDBC Realm problem
Posted by: Brian Barnett
Date: August 10, 2005 12:03AM

Hello, I'm new to mySQL. I'm getting the following error in the Tomcat logs as Tomcat loads my context file at startup:

JDBCRealm[/myapp]: Exception opening database connection
java.sql.SQLException: org/aspectj/lang/Signature
at org.apache.catalina.realm.JDBCRealm.open(JDBCRealm.java:589)
at org.apache.catalina.realm.JDBCRealm.start(JDBCRealm.java:663)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:4244)
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:823)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:807)

<<Tomcat context file snippet>>

<Realm className="org.apache.catalina.realm.JDBCRealm" debug="99"
driverName="com.mysql.jdbc.Driver"
connectionURL="jdbc:mysql://localhost:3306/my_db"
connectionName="root" connectionPassword="pass"
userTable="user" userNameCol="username" userCredCol="password"
userRoleTable="user" roleNameCol="role" />

<<end snippet>>

Using Connector/J 3.1.10
Tomcat 5.0.28

I put mysql-connector-java-3.1.10-bin.jar in Tomcat/common/lib, MySQL is running, there is a schema called my_db, user table exists, blah blah blah. What am I missing here?

Options: ReplyQuote


Subject
Written By
Posted
Tomcat JDBC Realm problem
August 10, 2005 12:03AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.