maya90 — 2012-12-31T10:05:36-05:00 — #1
why is there no J2EE forum?????????
I just installed Tomcat 6 on Windows XP, can't run on port 8080 because another server on the same machine is using that...
what other port(s) can I use?
I mean for this setting....
<font face='Courier New'><Connector port="8080" protocol="HTTP/1.1"
(and there are other port-settings too.. do I need to change those also? like
<font face='Courier New'> <!-- Define an AJP 1.3 Connector on port 8009 -->
<Connector port="8009" protocol="AJP/1.3" redirectPort="8443" /></font>
<font face='Courier New'><Server port="8005" shutdown="SHUTDOWN"></font>
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....)
force — 2013-01-02T17:48:37-05:00 — #2
Take a look here:http://stackoverflow.com/questions/4756039/how-to-change-the-port-of-tomcat-from-8080-to-80
Or here: http://www.digizol.com/2008/06/tomcat-how-to-change-port-8080.html
wwb_99 — 2013-01-03T07:34:18-05:00 — #3
Run it from the command line to see the error message, or look in the logs folder, tomcat will tell you what the issue is.
Run netstat -a to see what is listening on your server there.
IIRC you just need to change the first one, you probably aren't running ajp.
maya90 — 2013-01-03T09:46:08-05:00 — #4
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:
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...
wwb_99 — 2013-01-03T14:21:29-05:00 — #5
Did you look at the logs?
The doubled slash in the classpath might be a problem too.
You might also need to run as administrator, the tomcat setup we have is on pre-modern versions of windows.
maya90 — 2013-01-03T15:57:50-05:00 — #6
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..)
wwb_99 — 2013-01-03T16:57:37-05:00 — #7
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.
maya90 — 2013-01-07T09:29:34-05:00 — #8
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:
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"
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..
wwb_99 — 2013-01-07T18:49:48-05:00 — #9
You should have a log in the c:\apache-tomcat-6.0.36\log folder, probably could help alot here.
maya90 — 2013-01-08T10:34:34-05:00 — #10
oh man.. the logs dir is EMPTY....