I set up necessary env vars (JAVA_HOME, CATALINA_HOME), and java/bin is already in the path… have done Tomcat setup many times before, but now just need to know on what alternate port no. I can run it…
for this setting, Connector port=“8080”, tired port no. 8181… but Tomcat won’t start up (console appears very briefly then disappears when I hit that startup.bat…)
well, the “issue” was I just needed to know WHAT no. to use for port, since couldn’t use 8080… so read solution other person posted, last night at home… so just for the hell of it, tried it at home, changed to port 8007, it worked fine… but here, did the same, thing, changed port to 8007, Tomcat won’t start up, so following yr suggestion navigated to tomcat/bin/ in DOS shell and ran startup.bat from there, got the following:
C:\\Program Files\\apache-tomcat-6.0.36\\bin>startup.bat
Using CATALINA_BASE: "C:\\Program Files\\apache-tomcat-6.0.36\\"
Using CATALINA_HOME: "C:\\Program Files\\apache-tomcat-6.0.36\\"
Using CATALINA_TMPDIR: "C:\\Program Files\\apache-tomcat-6.0.36\\\ emp"
Using JRE_HOME: "C:\\Program Files\\Java\\jdk1.6.0_33\\"
Using CLASSPATH: "C:\\Program Files\\apache-tomcat-6.0.36\\\\bin\\bootstrap.jar"
JAVA_HOME is not mentioned here… only JRE_HOME, but I did not set that var… I set JAVA_HOME to C:\Program Files\Java\jdk1.6.0_33\
another DOS window opened very briefly then closed… server is still not running… have it on port 8007 now…
CLASSPATH is not an env var set in Windows… that’s an internal Tomcat thing… I searched for “bootstrap.jar” in all of Tomcat, found in some XML files, but nowhere with two back-slashes in front of “bootstrap.jar”… so where is that 2nd back-slash being added?
(in all the years I’ve been working with Tomcat I’ve never set classpath env var…)
not sure what you mean by “run as administrator”… (I do have admin privileges on this machine, but not sure what you mean…)
Windows has UAC which prevents even administrative users from writing files in protected places.
Looking at your paths I think I might see the problem — try installing tomcat outside of program files and see what happens. It is probably trying to write log files there and dying.
oh man… thank you for yr response… now am running it on c: drive… this is what I get when run startup.bat in DOS shell:
C:\apache-tomcat-6.0.36\bin>startup.bat
Using CATALINA_BASE: “C:\apache-tomcat-6.0.36\”
Using CATALINA_HOME: “C:\apache-tomcat-6.0.36\”
Using CATALINA_TMPDIR: “C:\apache-tomcat-6.0.36\\ emp”
Using JRE_HOME: “C:\Program Files\Java\jdk1.6.0_33\”
Using CLASSPATH: “C:\apache-tomcat-6.0.36\\bin\bootstrap.jar”
C:\apache-tomcat-6.0.36\bin>
there is some improvement, as I still see the console appear briefly and disappear, but it stays open a bit longer… in a about a sec. it closes…