Bug#401222: tomcat5.5: Can't load JDBC driver jar when needed (more general problem ?)
Hi, i had the same problem with Tomcat 5.5 on Debian 4.0 Testing. The solution was changing the file and directory owner to the Tomcat user "tomcat55". I also added a Tomcat group named "tomcat55". chown -R tomcat55:tomcat55 /usr/share/tomcat5.5 chown -R tomcat55:tomcat55 /var/lib/tomcat5.5 After this all webapps work fine. Carsten -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Bug#401222: tomcat5.5: Can't load JDBC driver jar when needed (more general problem ?)
Hello Marcus, I'm using the package with a lot of data sources and it works fine. Maybe the problem is in the way you define and link the datasource. I use this in my virtual host: and the datasource is defined in the server.xml (or via admin interface) in a way similar to this: HTH, Alex -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Bug#401222: tomcat5.5: Can't load JDBC driver jar when needed (more general problem ?)
More specifically the steps I did to test MySQL connectivity were: 1. Download mysql-connector-java 5.0.4 (from the MySQL website) and put the jar file in /usr/share/tomcat5.5/common/lib. 2. Create the database exactly as in the Tomcat example for MySQL: http://tomcat.apache.org/tomcat-5.5-doc/jndi-datasource-examples-howto.html 3. Create a test webapp (see below). 4. Run Tomcat without a security manager. (Turning on the security manager requires granting the correct permissions, which should be straightforward.) 5. Deploy the webapp with the Ant manager task: "ant install". (You need to create a build.properties file with the required properties for the manager tasks first. See the Tomcat docs.) The test webapp is attached. dbtest.tar.gz Description: application/tgz pgpyGeAqRRXnX.pgp Description: PGP signature
Bug#401222: tomcat5.5: Can't load JDBC driver jar when needed (more general problem ?)
tag 401222 moreinfo severity 401222 normal thanks > I was trying to test a simple webapp using a jndi declared jdbc > datasource but i couldn't make it work. It does work for me, at least without security manager, but Tomcat appears to be fragile in this regard, and I had to try a number of things to make it work. Haven't quite figured out what is needed. Please provide more information on your problem, including source code for your webapp, details of configuration changes, and the log messages (especially from /var/log/tomcat5.5/localhost.*.log.) Marcus pgpeYLqacvWTN.pgp Description: PGP signature
Bug#401222: tomcat5.5: Can't load JDBC driver jar when needed (more general problem ?)
Package: tomcat5.5 Version: 5.5.20-2 Severity: important Hi, I was trying to test a simple webapp using a jndi declared jdbc datasource but i couldn't make it work. After a lot of test and the help of people on #tomcat on freenode, this is what i can say : 1) i am using tomcat 5.5 from unstable, with sun-java5-jdk and mysql5.0, i downloaded the mysql connectorJ 5.0.3 and i put it in /usr/share/tomcat5.5/common/lib like the tomcat website tells me to do. 2) my app works on a server installed by hand with the downloaded binaries from tomcat website. 3) my app doesnt work on debian with and without the security manager 4) i tried to run tomcat with -verbose:class in the CATALINA_OPTS and i can say that the class needed by the DriverManager (com.mysql.jdb.Driver) wasnt loaded, but other classes from common/lib were. I think there is a real problem with the debian tomcat package and a guy from #tomcat said to me the same thing. Thanks you for your work on tomcat, kaouete -- System Information: Debian Release: 4.0 APT prefers testing APT policy: (990, 'testing'), (400, 'unstable') Architecture: i386 (i686) Shell: /bin/sh linked to /bin/bash Kernel: Linux 2.6.18.2-walter Locale: [EMAIL PROTECTED], [EMAIL PROTECTED] (charmap=ISO-8859-15) Versions of packages tomcat5.5 depends on: ii adduser 3.99 Add and remove users and groups ii apache2-utils 2.2.3-3.1utility programs for webservers ii apache2.2-common2.2.3-3.1Next generation, scalable, extenda ii ecj-bootstrap 3.2.1-3 bootstrap version of the Eclipse J ii gij-4.1 [java2-runtime] 4.1.1-17 The GNU Java bytecode interpreter ii libtomcat5.5-java 5.5.20-2 Java Servlet engine -- core librar ii sun-java5-jre [java2-runtim 1.5.0-08-1.1 Sun Java(TM) Runtime Environment ( tomcat5.5 recommends no packages. -- no debconf information -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]