Hi, i want to install Tomcat 6.x on my PC so i've downloaded and installed: a) JDK SE v126.96.36.199 and set the JAVA_HOME variable b) Tomcat 6.0.14 and set the TOMCAT_HOME variable. When i want startup Tomcat in Tomcat/bin/startup.bat, a Dos window pops up shortly and that's it. When i do a "Netstat" command in the DOS Window i do not see Tomcat running and the browser on http://localhost:8080/ says "Cannot find Server". In addition to all helping advices, i would like to know the following: a) where can i find eventually created logs (the folder Tomcat/logs is empty) b) how can i make shure that JDK is running correctly so that it has to be related to Tomcat or it's environment? Thanks in advance, Patrick
click on "Internet Options -- connections tab -- LAN settings"
here check the option "Bypass proxy setting for local addresses"
This should work.
Joined: Oct 08, 2007
Hi, i checked your advice, but this option is available only if on that same window the option "Use a proxy Server for your LAN" is enabled, which isn't the case in my config. I could activate it and give the proxy the adress of my own host, but it doesn't seem to make sense. What do you think?
Perfect, it works, i'll get the Tomcat welcome page. Now i have another issue: when calling javac from my project directory (i'm doing Head First JSP/Servlets) to compile a Servlet, javac tella me it can't find the servlet classes:
Have a look again in your Head First Servlets book because it most likely explains how you should compile servlets and that you need to set your classpath correctly.
So, did you install Java 5 or 6 instead of Java 1.4.2? If you're still using Java 1.4.2 with Tomcat 6, you might run into unexpected problems, because Tomcat 6 really needs Java 5 or newer. [ November 28, 2007: Message edited by: Jesper Young ]
Yes, i had upgraded to JDK6U3 before i tested. In the HeadFirst Servlets book, it says to set 2 variables: JAVA_HOME & TOMCAT_HOME. I've set both in XP: JAVA_HOME=C:\Program Files\Java\jdk1.6.0_03 TOMCAT_HOME=C:\Program Files\apache-tomcat-6.0.14 Now, may be the TOMCAT_HOME needs to be extended, as servlet-api.jar is in TOMCAT_HOME\bin. Other info: when i try to compile my servlet, i would enter, according to the book: "javac -classpath C:\ProgramFiles\apache-tomcat-6.0.14\common\lib\servlet-api.jar -d classes src/Ch1Servlet.java". But the common subdirectory doesn't exist in my deployment of Tomcat 6.0.14! So, i need to enter: "javac -classpath C:\ProgramFiles\apache-tomcat-6.0.14\lib\servlet-api.jar -d classes src/Ch1Servlet.java". But javac still doesn't know about the servlet classes. I've added then to the end of the classpath the directory of the servlet-api.jar: "C:\Program Files\apache-tomcat-6.0.14\lib". Then i reboot -> no change!