Java Mailing List Archive

http://www.junlu.com/

Google
Google
Mailing List
Home
Forum Home
JBoss - Java Application Server
Struts - A MVC web framework
Tomcat - JSP/Servlet container
iText - An open source PDF Java Library
JDOM - JDOM XML Parser
J2EE - A mailing list for Java(tm) 2 Platform, Enterprise Edition
J2EE Pattern - An interest list for Sun Java Center J2EE Pattern Catalog
Servlet - A mailing list for discussion about Sun Microsystem's Java Servlet API Technology
JSP - A mailing list about Java Server Pages specification and reference
Struts & Hibernate
Subjects
JSP editor plugin for eclipse ?
org apache jasper JasperException: Unable to compile class for JSP
Tomcat: Connection reset by peer: socket write error
Cannot retrieve definition for form bean null
Struts Tiles Tutorial (free Struts training)
Where do I download Tomcat 4 0 6?
Data Access Object (DAO) pattern, example DAO 's
Where to download Tomcat v 4 1 24 from?
Tomcat 5 0 16 Requested resource not available
Oracle Connection Pooling in 3 2 2
Servlet : Session invalidate
Servlet action is currently unavailable
Tomcat/Struts Unicode Encoding/Decoding problems
Tomcat and webapplication specific java library path
Running a Simple JMS Example
Mapping in workers2 properties
org apache jasper JasperException
Cannot find message resources under key org apache struts action
   MESSAGE
problem with html:text bean throwing exception
Cannot find message resources under key org apache struts action MESSAGE
invalid direct reference problem with solution
Tool for jsp debug Try Sysdeo Eclipse Plugin
Tomcat 5 Cannot load JDBC driver class 'null ' SQL state: null
weblogic ejbc
java properties file
Jboss 3 2 3 Coyote Can 't re
Tomcat 5, Apache2 and mod jk2 integration problem
JBoss example problem new to J2EE
url string for connecting jboss to oracle
Value attribute of <html:checkbox
javax servlet ServletException: BeanUtils populate
HTTP Status 404 The requested resource is not available
5 0 18: Windows XP Pro vs Windows 2000
 
Creating Database realm problem...

Creating Database realm problem...

2004-01-14       - By Richard Dean

 Back
Hi,

I am tearing my hair out at this one! I am attempting to set up JDBCRealm
for my tomcat installation (vers 4.1) and I keep getting the:

Catalina.start: LifecycleException: Exception Opening Database Connection:
Java.sql.SQLException: Com.ibm.db2.jdbc.app.DB2Driver

when I try and start tomcat.

My server.xml looks like:

<Realm className="org.apache.catalina.realm.JDBCRealm Source code of org.apache.catalina.realm.JDBCRealm" debug="99"
         driverName="COM.ibm.db2.jdbc.app.DB2Driver"
         connectionURL="jdbc:db2:antech"
         connectionName = "ausername"
         connectionPassword ="apassword"
         userTable="user"
         userNameCol="userid"
         userCredCol="pwd"
         userRoleTable="user_roles"
         roleNameCol="user_role" />

Things I have done include:

Put db2java.jar in : %CATALINA_HOME%/lib/ , /server/lib/, /common/lib/,
../web-inf/lib
Set JDBC_HOME to point to /server/lib/db2java.jar (also tried pointing
db2java.jar in sqllib/java directory for DB2)
Connecting to the database using the above driverName and connectionURL from
a java app - works no problem
Sacrificed an old mobile phone to the code gods!

This covers every other answer I have found to this problem on the internet,
if anyone can come up with any other solutions I would be a happy chappy!

Cheers

Richard

©2008 junlu.com - Jax Systems, LLC, U.S.A.