Page 1 of 1

Tomcat None Starter With JDK6 (Win7) 1.7.7

PostPosted: 05. November 2011 18:40
by moleculezz
Can't seem to get Tomcat running.
I installed the newer CP 3.0.7 and updated the catalina_start.bat and catalina_stop.bat which were included with the new CP.
I also set my JAVA_HOME variable, but it is still not working.
I get the following error
Code: Select all
[XAMPP]: Searching JDK HOME with reg query ...
ERROR: The system was unable to find the specified registry key or value.
. [XAMPP]: Cannot find current JDK installation!
. [XAMPP]: Cannot set JAVA_HOME. Aborting ...
done.
Press any key to continue . . .

Re: Tomcat None Starter With JDK7 (Win7) 1.7.7

PostPosted: 05. November 2011 19:05
by moleculezz
I forgot to update the catalina_start & stop files. But still it's not working.
Now at least I can see the error showing up in the CP.
Code: Select all
19:00:09  [tomcat]    Tomcat Started/Stopped with errors, return code: 1
19:00:09  [tomcat]    Make sure you have Java JDK or JRE installed


I don't understand why it's not picking up the JDK.

Re: Tomcat None Starter With JDK7 (Win7) 1.7.7

PostPosted: 07. November 2011 16:15
by moleculezz
Yeah... in my case it's different cause I am using JDK 1.6.29. So, I'm a bit confused.

Re: Tomcat None Starter With JDK7 (Win7) 1.7.7

PostPosted: 07. November 2011 17:16
by hackattack142
Could you please launch a command prompt window (Start > Run > cmd), browse to the "/xampp" directory and launch "catalina_start.bat". This will prevent the command prompt window from closing if it errors out. Could you post the contents of your window in Code tags (You can click the "C:\" graphic in the upper left corner of your command window title bar, it will open a menu, select 'Edit', then 'Select All'. You can then do the same process but instead go to 'Edit' and 'Copy'. You can also pipe the output to a file if that is easier by using: "catalina_start.bat > somefile.txt").

Re: Tomcat None Starter With JDK7 (Win7) 1.7.7

PostPosted: 08. November 2011 23:37
by moleculezz
This is the output I get

Code: Select all
C:\xampp>catalina_start.bat

[XAMPP]: Searching for JDK or JRE HOME with reg query ...
ERROR: The system was unable to find the specified registry key or value.
. [XAMPP]: Could not find 32 bit or 64 bit JDK
. [XAMPP]: Looking for 32 bit JDK on 64 bit machine

HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\JavaSoft\Java Development Kit
    CurrentVersion    REG_SZ    1.6

HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\JavaSoft\Java Development Kit\1.6
    JavaHome    REG_SZ    C:\Program Files (x86)\Java\jdk1.6.0_29
    MicroVersion    REG_SZ    0

HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\JavaSoft\Java Development Kit\1.6.0_29
    JavaHome    REG_SZ    C:\Program Files (x86)\Java\jdk1.6.0_29
    MicroVersion    REG_SZ    0


Using JDK

[XAMPP]: Seems fine!
[XAMPP]: Set JAVA_HOME : C:\Program Files (x86)\Java\jdk1.6.0_29
[XAMPP]: Set CATALINA_HOME : C:\xampp\tomcat

Using CATALINA_BASE:   "C:\xampp\tomcat"
Using CATALINA_HOME:   "C:\xampp\tomcat"
Using CATALINA_TMPDIR: "C:\xampp\tomcat\temp"
Using JRE_HOME:        "C:\Program Files (x86)\Java\jdk1.6.0_29"
Using CLASSPATH:       "C:\xampp\tomcat\bin\bootstrap.jar;C:\xampp\tomcat\bin\to
mcat-juli.jar"
Nov 8, 2011 11:32:24 PM 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: C:\Program
Files (x86)\Java\jdk1.6.0_29\bin;C:\Windows\Sun\Java\bin;C:\Windows\system32;C:\
Windows;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\Syste
m32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\ATI Technologies\ATI.ACE\Core
-Static;C:\Program Files (x86)\Common Files\Acronis\SnapAPI\;C:\Program Files (x
86)\MKVtoolnix;C:\wamp\bin\php\php5.3.5;C:\Program Files (x86)\QuickTime\QTSyste
m\;.
Nov 8, 2011 11:32:25 PM org.apache.coyote.AbstractProtocol init
INFO: Initializing ProtocolHandler ["http-bio-8080"]
Nov 8, 2011 11:32:25 PM org.apache.coyote.AbstractProtocol init
INFO: Initializing ProtocolHandler ["ajp-bio-8009"]
Nov 8, 2011 11:32:25 PM org.apache.coyote.AbstractProtocol init
SEVERE: Failed to initialize end point associated with ProtocolHandler ["ajp-bio
-8009"]
java.net.BindException: Address already in use: JVM_Bind <null>:8009
        at org.apache.tomcat.util.net.JIoEndpoint.bind(JIoEndpoint.java:384)
        at org.apache.tomcat.util.net.AbstractEndpoint.init(AbstractEndpoint.jav
a:492)
        at org.apache.coyote.AbstractProtocol.init(AbstractProtocol.java:369)
        at org.apache.catalina.connector.Connector.initInternal(Connector.java:9
09)
        at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:102)
        at org.apache.catalina.core.StandardService.initInternal(StandardService
.java:559)
        at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:102)
        at org.apache.catalina.core.StandardServer.initInternal(StandardServer.j
ava:781)
        at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:102)
        at org.apache.catalina.startup.Catalina.load(Catalina.java:573)
        at org.apache.catalina.startup.Catalina.load(Catalina.java:596)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:281)
        at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:449)
Caused by: java.net.BindException: Address already in use: JVM_Bind
        at java.net.PlainSocketImpl.socketBind(Native Method)
        at java.net.PlainSocketImpl.bind(PlainSocketImpl.java:383)
        at java.net.ServerSocket.bind(ServerSocket.java:328)
        at java.net.ServerSocket.<init>(ServerSocket.java:194)
        at java.net.ServerSocket.<init>(ServerSocket.java:150)
        at org.apache.tomcat.util.net.DefaultServerSocketFactory.createSocket(De
faultServerSocketFactory.java:48)
        at org.apache.tomcat.util.net.JIoEndpoint.bind(JIoEndpoint.java:371)
        ... 16 more
Nov 8, 2011 11:32:25 PM org.apache.catalina.core.StandardService initInternal
SEVERE: Failed to initialize connector [Connector[AJP/1.3-8009]]
org.apache.catalina.LifecycleException: Failed to initialize component [Connecto
r[AJP/1.3-8009]]
        at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:106)
        at org.apache.catalina.core.StandardService.initInternal(StandardService
.java:559)
        at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:102)
        at org.apache.catalina.core.StandardServer.initInternal(StandardServer.j
ava:781)
        at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:102)
        at org.apache.catalina.startup.Catalina.load(Catalina.java:573)
        at org.apache.catalina.startup.Catalina.load(Catalina.java:596)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:281)
        at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:449)
Caused by: org.apache.catalina.LifecycleException: Protocol handler initializati
on failed
        at org.apache.catalina.connector.Connector.initInternal(Connector.java:9
11)
        at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:102)
        ... 12 more
Caused by: java.net.BindException: Address already in use: JVM_Bind <null>:8009
        at org.apache.tomcat.util.net.JIoEndpoint.bind(JIoEndpoint.java:384)
        at org.apache.tomcat.util.net.AbstractEndpoint.init(AbstractEndpoint.jav
a:492)
        at org.apache.coyote.AbstractProtocol.init(AbstractProtocol.java:369)
        at org.apache.catalina.connector.Connector.initInternal(Connector.java:9
09)
        ... 13 more
Caused by: java.net.BindException: Address already in use: JVM_Bind
        at java.net.PlainSocketImpl.socketBind(Native Method)
        at java.net.PlainSocketImpl.bind(PlainSocketImpl.java:383)
        at java.net.ServerSocket.bind(ServerSocket.java:328)
        at java.net.ServerSocket.<init>(ServerSocket.java:194)
        at java.net.ServerSocket.<init>(ServerSocket.java:150)
        at org.apache.tomcat.util.net.DefaultServerSocketFactory.createSocket(De
faultServerSocketFactory.java:48)
        at org.apache.tomcat.util.net.JIoEndpoint.bind(JIoEndpoint.java:371)
        ... 16 more
Nov 8, 2011 11:32:25 PM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 685 ms
Nov 8, 2011 11:32:25 PM org.apache.catalina.core.StandardService startInternal
INFO: Starting service Catalina
Nov 8, 2011 11:32:25 PM org.apache.catalina.core.StandardEngine startInternal
INFO: Starting Servlet Engine: Apache Tomcat/7.0.21
Nov 8, 2011 11:32:25 PM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory docs
Nov 8, 2011 11:32:25 PM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory examples
Nov 8, 2011 11:32:25 PM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory host-manager
Nov 8, 2011 11:32:25 PM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory manager
Nov 8, 2011 11:32:25 PM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory ROOT
Nov 8, 2011 11:32:25 PM org.apache.coyote.AbstractProtocol start
INFO: Starting ProtocolHandler ["http-bio-8080"]
Nov 8, 2011 11:32:25 PM org.apache.catalina.startup.Catalina start
INFO: Server startup in 688 ms
Nov 8, 2011 11:32:25 PM org.apache.catalina.core.StandardServer await
SEVERE: StandardServer.await: create[localhost:8005]:
java.net.BindException: Address already in use: JVM_Bind
        at java.net.PlainSocketImpl.socketBind(Native Method)
        at java.net.PlainSocketImpl.bind(PlainSocketImpl.java:383)
        at java.net.ServerSocket.bind(ServerSocket.java:328)
        at java.net.ServerSocket.<init>(ServerSocket.java:194)
        at org.apache.catalina.core.StandardServer.await(StandardServer.java:422
)
        at org.apache.catalina.startup.Catalina.await(Catalina.java:709)
        at org.apache.catalina.startup.Catalina.start(Catalina.java:654)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:322)
        at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:450)
Nov 8, 2011 11:32:25 PM org.apache.coyote.AbstractProtocol pause
INFO: Pausing ProtocolHandler ["http-bio-8080"]
Nov 8, 2011 11:32:26 PM org.apache.coyote.AbstractProtocol pause
INFO: Pausing ProtocolHandler ["ajp-bio-8009"]
Nov 8, 2011 11:32:26 PM org.apache.catalina.core.StandardService stopInternal
INFO: Stopping service Catalina
Nov 8, 2011 11:32:26 PM org.apache.coyote.AbstractProtocol stop
INFO: Stopping ProtocolHandler ["http-bio-8080"]
Nov 8, 2011 11:32:26 PM org.apache.coyote.AbstractProtocol destroy
INFO: Destroying ProtocolHandler ["http-bio-8080"]
Nov 8, 2011 11:32:26 PM org.apache.coyote.AbstractProtocol destroy
INFO: Destroying ProtocolHandler ["ajp-bio-8009"]

C:\xampp>

Re: Tomcat None Starter With JDK7 (Win7) 1.7.7

PostPosted: 08. November 2011 23:46
by hackattack142
java.net.BindException: Address already in use: JVM_Bind <null>:8009
SEVERE: StandardServer.await: create[localhost:8005]:
java.net.BindException: Address already in use: JVM_Bind

You have multiple Java Bind exceptions in your output. These typically means that something is already using those ports. I do not have checks for those ports yet in a released Control Panel.
Use the "netstat" tool in the Control Panel and make sure port 8009 and port 8005 are not being used by anything.