Re: not suitable driver?
Hi Isak, the DriverManager has a method called availableDriver or so. Use this to show, if your driver is registered. If yes, your driver could be registered, but can not do his work with the database. This is no problem of Tomcat. If no, the driver.jar was not found by tomcat. Then try Class.forName(org.gjt.mm.mysql.Driver).getInstance(); If this doesn't help, look to your context. Do you have a own context for your webapplication. Create one and put the driver.jar to WEB-INF/lib. Anja -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: How do I define Tomcats CLASSPATH - tools.jar not found
Hi Tony, Tomcat uses another CLASSPATH than you system. You can change it in TOMCAT_HOME/bin/catalina.bat. You will have to look for the right position. But note: To change Tomcat-CLASSPATH is unsupported by jakarta. Anja PS: I have added the JDBC-Driver to Tomcat-CLASSPATH and is runs without problems. -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
WEB-INF/classes
Hello, at setting up a new context for Tomcat, I must have forgotten something, because tomcat doesn't find my classes in WEB-INF/classes. The following fault appears: login_0005ftest$jsp.java:71: Class org.apache.jsp.DBSConnect not found. DBSConnect connect = new DBSConnect(); Until now I thought: When Tomcat is restarted, it recognizes the content in WEB-INF/classes. But perhaps I have to make some entries in server.xml or web.xml referring to this classes? Thank you for any help Anja
Re: WEB-INF/classes
Hi Nancy, I am using Tomcat 4.0.1. What's to do here? Anja -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: WEB-INF/classes
Hi Reynir, but exactly this I have done! The strange is: My JSP-Files are found at this location with http://www.yourserver.com/nameofcontext ! But when the JSP-files use classes from WEB-INF, I get an error. I am really desperate! Anja -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
How to force Tomcat to compile?
Hi, is there a method, which forces Tomcat (4.0) to compile all my class-files in WEB-INF/classes? It is a little bit troublesome to rename the classes every time I have changed it... Anja
Re:Re: How to force Tomcat to compile?
Hi, thanks for your advice for recompiling classes. I think I have to explain the situation more exactly. (To Reynir): The context reloadable is set to true. (To Guido): I have tried to compile the classes in WEB-INF/classes with javac. Then I get an ClassDefNotFoundError. (To Marcelo): The compiled class-Files are not in the work-directory. Now I'm at a loss. Only if I rename my Java-Classes (a little bit of work), Tomcat notices changes in the Class. I were very grateful, if anyone can give me a hint... Anja -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: How to force Tomcat to compile?
Hello Reynir, my JSPs use some Java-Classes. This Java-Classes are positioned in WEB-INF/classes. Normally Tomcat compiles this classes by his own. But if I do some changes in *.java, Tomcat doesn't check, that *.java has changed and doesn't recompile. That's the problem. To found a solution, I have compiled the changed *.java with javac. The compilation runs without problems. Then, when I run my application I get a ClassDefNotFoundError. Tomcat don't want my self-compiled *.class Anja -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: How to force Tomcat to compile?
Hi all, thanks for your help. Now I'm going to try some things. I hope, that self-compiling and restarting Tomcat will do it. Anja -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: DB2 App Driver?
Hi Derek, we use the app-driver to connect to DB2 with Tomcat 4.0. If your application runs on another maschine than DB2, you must install a DB2-Client. Without that you can't use the app-driver. If your application runs on the same maschine than DB2, you must tell Tomcat where your driver is. To do that, you can either change Tomcat-Classpath or copy the driver to a directory in the Tomcat-Classpath. But on our system, the latter didn't run. Anja -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: Sessions Timeout
Hi Jason, the session method getMaxInactiveInterval() gives you the time-value, after that your inactive session is killed. You can change this value in the web.xml file. Anja -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: INSTALLING TOMCAT
Hello Rafael, you can download JDK from http://java.sun.com. The actual version ist J2SE at http://java.sun.com/j2se/1.3/ Greetings Anja -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: Binary Dist. tomcat 4.01 Win32 can't find jdk on installation
Hello Michael, are you sure, that you have added the java-bin directory to your PATH-variable? Anja -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: Problem with JDBC-Connection to DB2 from Tomcat4.0.1
Hi Remy, the problem with the driver is solved. I have changed catalina.bat (set the Tomcat-CLASSPATH to the original driver-directory) and now the driver is found. Thank you for your help Anja Falkner -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Problem with JDBC-Connection to DB2 from Tomcat4.0.1
Hello list, is there anyone, who has an idea or can explain me the following situation: My JSP-file imports a self-written class named 'Connect'. This class should connect to DB2 with using IBM-app-driver. If I start this application, I get a ClassNotFoundException because of the driver. I have tried, to copy the driver to the local directory and the WEB-INF\classes\-directory. Then Tomcat says: Can't find bundle for base name... BUT: My pure java-program 'Connect.java' on the same computer can connect to DB2 without problems. It uses the same driver as the Tomcat-Application. Is it possible, that Tomcat doesn't use the same CLASSPATH as the system? And if, how can I say Tomcat, where he can find the driver? Many greetings Anja Falkner
RE: RE: Problem with JDBC-Connection to DB2 from Tomcat4.0.1
Hi Randy, I have decided to change catalina.bat and it works!!! Thank you very much for your fast help! Anja -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]