I'm experiencing two problems when attempting to start the Tomcat service with XAMPP:
1. The directory which "\XAMPP\catalina_start.bat" attempts to load tomcat from is "\XAMPP\tmp\tomcat" instead of "\XAMPP\tomcat"
2. After moving the tomcat directory to "XAMPP\tmp\", the file "\XAMPP\tmp\tomcat\catalina_start.bat" hangs.
System Background Information:
-Windows 7 64-bit
-All Visual C++ versions (from 2005 to 2012), both 32-bit & 64-bit (if applicable), are installed.
-FULL UAC enabled
-XAMPP Control Panel is set to run as administrator
-XAMPP CLEAN installation to folder C:\Programming\XAMPP
-Using XAMPP Control Panel v3.1.0 (latest)
-JRE/JDK 32-bit installed in "C:\Programming\Java\x86" in jre7/jdk1.7 respectively
-JRE/JDK 64-bit installed in "C:\Programming\Java\x64" in jre7/jdk1.7 respectively
-It appears XAMPP is defaulting to the 64-bit version.
These posts are relevant:
1. http://community.apachefriends.org/f/viewtopic.php?f=16&t=51780#p199317
2. http://community.apachefriends.org/f/viewtopic.php?f=16&t=49483&start=15#p190855
I tried changing the code in "\XAMPP\catalina_start.bat" to what was described in thread #1, but it didn't work. I had to move tomcat into XAMPP\tmp\
I attempted the steps in post #2, but it didn't help either.
Problem #1
CMD output:
- Code: Select all
[XAMPP]: Searching for JDK or JRE HOME with reg query ...
HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java Development Kit
CurrentVersion REG_SZ 1.7
HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java Development Kit\1.7
JavaHome REG_SZ C:\Programming\Java\x64\jdk1.7
MicroVersion REG_SZ 0
HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java Development Kit\1.7.0_10
JavaHome REG_SZ C:\Programming\Java\x64\jdk1.7
MicroVersion REG_SZ 0
[XAMPP]: Using JDK
[XAMPP]: Seems fine!
[XAMPP]: Set JAVA_HOME : C:\Programming\Java\x64\jdk1.7
[XAMPP]: Set CATALINA_HOME : C:\Programming\XAMPP\tmp\tomcat
The system cannot find the path specified.
The system cannot find the path specified.
done.
Press any key to continue . . .
Problem #2
It appears as though the service switches to "running", but the CMD window stays open as the bat file hangs. If I close the window, the service stops running.
Conrol Panel output:
- Code: Select all
10:27:37 AM [Tomcat] Executing "c:\Windows\sysnative\cmd.exe" "/c "c:\programming\xampp\catalina_start.bat""
10:27:39 AM [Tomcat] Status change detected: running
CMD output (Part 1):
- Code: Select all
[XAMPP]: Searching for JDK or JRE HOME with reg query ...
HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java Development Kit
CurrentVersion REG_SZ 1.7
HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java Development Kit\1.7
JavaHome REG_SZ C:\Programming\Java\x64\jdk1.7
MicroVersion REG_SZ 0
HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java Development Kit\1.7.0_10
JavaHome REG_SZ C:\Programming\Java\x64\jdk1.7
MicroVersion REG_SZ 0
[XAMPP]: Using JDK
[XAMPP]: Seems fine!
[XAMPP]: Set JAVA_HOME : C:\Programming\Java\x64\jdk1.7
[XAMPP]: Set CATALINA_HOME : C:\Programming\XAMPP\tmp\tomcat
Using CATALINA_BASE: "C:\Programming\XAMPP\tmp\tomcat"
Using CATALINA_HOME: "C:\Programming\XAMPP\tmp\tomcat"
Using CATALINA_TMPDIR: "C:\Programming\XAMPP\tmp\tomcat\temp"
Using JRE_HOME: "C:\Programming\Java\x64\jdk1.7"
Using CLASSPATH: "C:\Programming\XAMPP\tmp\tomcat\bin\bootstrap.jar;C:\Pro
gramming\XAMPP\tmp\tomcat\bin\tomcat-juli.jar"
Dec 15, 2012 10:27:38 AM org.apache.catalina.core.AprLifecycleListener init
INFO: The APR based Apache Tomcat Native library which allows optimal performanc
e in production environments was not found on the java.library.path:
It then lists all of my directories in my C:\Programming folder (not sure why). I removed it because it's irrelevant.
CMD output (Part 2):
- Code: Select all
Dec 15, 2012 10:27:39 AM org.apache.coyote.AbstractProtocol init
INFO: Initializing ProtocolHandler ["http-bio-8080"]
Dec 15, 2012 10:27:39 AM org.apache.coyote.AbstractProtocol init
INFO: Initializing ProtocolHandler ["ajp-bio-8009"]
Dec 15, 2012 10:27:39 AM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 506 ms
Dec 15, 2012 10:27:39 AM org.apache.catalina.core.StandardService startInternal
INFO: Starting service Catalina
Dec 15, 2012 10:27:39 AM org.apache.catalina.core.StandardEngine startInternal
INFO: Starting Servlet Engine: Apache Tomcat/7.0.30
Dec 15, 2012 10:27:39 AM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory C:\Programming\XAMPP\tmp\tomcat\webapp
s\docs
Dec 15, 2012 10:27:39 AM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory C:\Programming\XAMPP\tmp\tomcat\webapp
s\examples
Dec 15, 2012 10:27:39 AM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory C:\Programming\XAMPP\tmp\tomcat\webapp
s\host-manager
Dec 15, 2012 10:27:39 AM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory C:\Programming\XAMPP\tmp\tomcat\webapp
s\manager
Dec 15, 2012 10:27:39 AM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory C:\Programming\XAMPP\tmp\tomcat\webapp
s\ROOT
Dec 15, 2012 10:27:39 AM org.apache.coyote.AbstractProtocol start
INFO: Starting ProtocolHandler ["http-bio-8080"]
Dec 15, 2012 10:27:39 AM org.apache.coyote.AbstractProtocol start
INFO: Starting ProtocolHandler ["ajp-bio-8009"]
Dec 15, 2012 10:27:39 AM org.apache.catalina.startup.Catalina start
INFO: Server startup in 594 ms
Once again, this is a CLEAN installation of XAMPP.
Would appreciate any advice on these issues.
Another interesting thing to note:
The bat files appear to be executed without administrator privledges (my CMD screen text color is different for admin & non-admin CMD). I know that bat files can be run as administrator by setting a shortcut to them, then forcing that shortcut to execute as an administrator. Just throwing that out there; don't know if it really has anything to do with these problems.