I am investigating this. I just installed the JDK 7 Update 1 with JRE 7. The batch files do pick up the JDK and use it. I am getting an exception during the server initialization. Try opening up a command prompt window (start > run > cmd), change directory to the "C:\xampp" or where ever you have xampp installed to, and try to run the "catalina_start.bat" file. This will keep the window open if the server crashes so you can see the output. Look for any Java exceptions. I am getting a "SEVERE: StandardServer.await: create[localhost:8005]" I am investigating the issue further but the port does not appear to be in use.
Update:
After some investigation, this appears to be a Java 7 issue. In Java 7 they implemented new Socket code that adds and uses IPv6. Under the hood it maps IPv4 addresses to IPv6 and this can cause issues if the application does not support those types of sockets. I am sure the Tomcat files could be edited in some fashion to get around this (haven't found it yet) but the easier solution would be to stick with Java 6 for the meantime unless there is a specific reason you never version 7. I had not upgraded because I have heard version 7 is riddled with issues and was waiting until more updates were out.
Update 2:
Figured out how to fix it.
Open "xampp/tomcat/bin/catalina.bat" and change line 310 from this:
- Code: Select all
%_EXECJAVA% %JAVA_OPTS% %CATALINA_OPTS% %DEBUG_OPTS% -Djava.endorsed.dirs="%JAVA_ENDORSED_DIRS%" -classpath "%CLASSPATH%" -Dcatalina.base="%CATALINA_BASE%" -Dcatalina.home="%CATALINA_HOME%" -Djava.io.tmpdir="%CATALINA_TMPDIR%" %MAINCLASS% %CMD_LINE_ARGS% %ACTION%
to this
- Code: Select all
%_EXECJAVA% %JAVA_OPTS% %CATALINA_OPTS% %DEBUG_OPTS% -Djava.endorsed.dirs="%JAVA_ENDORSED_DIRS%" -classpath "%CLASSPATH%" -Dcatalina.base="%CATALINA_BASE%" -Dcatalina.home="%CATALINA_HOME%" -Djava.io.tmpdir="%CATALINA_TMPDIR%" -Djava.net.preferIPv4Stack="true" %MAINCLASS% %CMD_LINE_ARGS% %ACTION%