Page 1 of 1

Tomcat Error While Trying to Start

PostPosted: 01. July 2016 14:59
by Arshia Aghaei
I tried to run Tomcat and i got this log :

[Tomcat] Checking default ports...
5:53:47 PM [Tomcat] Attempting to start Tomcat app...
5:53:47 PM [Tomcat] Executing "cmd" "/c "c:\xampp\catalina_start.bat""
5:54:11 PM [Tomcat] Return code: 1
[color=#FF0000]5:54:11 PM [Tomcat] Tomcat Started/Stopped with errors, return code: 1
5:54:11 PM [Tomcat] Make sure you have Java JDK or JRE installed and the required ports are free

5:54:11 PM [Tomcat] Check the "/xampp/tomcat/logs" folder for more information

Also i checked the catalina.pid file and just this word :

run

After searching in Google i saw https://community.apachefriends.org/f/viewtopic.php?f=16&t=48842&sid=fe1bdb9764f174ca76586e9c2e4d27e8 and changed that line (for me it was 309) .

Then I ran catalina_start.bat in CMD and saw this :

C:\XAMPP\tomcat>catalina_start.bat

[XAMPP]: Searching JDK HOME with reg query ...

HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java Development Kit
CurrentVersion REG_SZ 1.8

HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java Development Kit\1.8
JavaHome REG_SZ C:\Program Files\Java\JDK
MicroVersion REG_SZ 0

HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java Development Kit\1.8.0
JavaHome REG_SZ C:\Program Files\Java\jdk1.8.0
MicroVersion REG_SZ 0

HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java Development Kit\1.8.0\MSI
INSTALLDIR REG_SZ C:\Program Files\Java\jdk1.8.0\

HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java Development Kit\1.8.0_74
JavaHome REG_SZ C:\Program Files\Java\JDK
MicroVersion REG_SZ 0

HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java Development Kit\1.8.0_74\MSI
INSTALLDIR REG_SZ C:\Program Files\Java\JDK\
NOSTARTMENU REG_SZ 0

HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java Development Kit\1.9.0
JavaHome REG_SZ C:\Program Files\Java\Java Development Kit
MicroVersion REG_SZ 0
BuildNumber REG_SZ 52

HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java Development Kit\1.9.0\MSI
NOSTARTMENU REG_SZ 0


[XAMPP]: Seems fine!
[XAMPP]: Set JAVA_HOME : C:\Program Files\Java\Java Development Kit
[XAMPP]: Set CATALINA_HOME : C:\XAMPP\tomcat

The JRE_HOME environment variable is not defined correctly
This environment variable is needed to run this program[/color]

So that means JRE_HOME is not set.

But also JAVA_HOME is set to a wrong path. C:\Program Files\Java\Java Development Kit path contains nothing now and that folder does not exist. Instead C:\Program Files\Java\JDK exists.

I saw http://stackoverflow.com/questions/28991391/getting-errorjre-home-variable-is-not-defined-correctly-when-trying-to-run-star after searching for that and done the steps for the accepted answer on both System and User Environment Variables so the variables are :

CATALINA_HOME = C:\XAMPP\tomcat
JAVA_HOME = C:\Program Files\Java\JDK
JRE_HOME = C:\Program Files\Java\JRE
CLASSPATH = %JAVA_HOME%\bin;%JRE_HOME%\bin;%CATALINA_HOME%\lib

Also I added JAVA_HOME to PATH again in both System and User Environment Variables.\

But i got the error again.

Now I run the tomcat again (when writing this but not for the first time after the steps above) and that word in log is now 356.

Can anyone tell me where is the problem ?

Thanks everyone.

Re: Tomcat Error While Trying to Start

PostPosted: 02. July 2016 12:17
by Arshia Aghaei
Sorry , I didn't find any edit button. Did I miss it ?

Things are getting more strange :

After I posted the thread , I tried running catalina_start.baat more times and finally tomcat service started.
But the problem was that the service was only getting started with running the bat file and clicking start button wasn't working.
Also catalina_start.bat was showing that the JRE_HOME was set.

But today , When I started catalina_start.bat , Tomcat almost immidetly stopped after starting with this log :


3:13:17 PM [Tomcat] Status change detected: running
3:13:19 PM [Tomcat] Status change detected: stopped
3:13:19 PM [Tomcat] Error: Tomcat shutdown unexpectedly.
3:13:19 PM [Tomcat] This may be due to a blocked port, missing dependencies,
3:13:19 PM [Tomcat] improper privileges, a crash, or a shutdown by another method.
3:13:19 PM [Tomcat] Press the Logs button to view error logs and check
3:13:19 PM [Tomcat] the Windows Event Viewer for more clues
3:13:19 PM [Tomcat] If you need more help, copy and post this
3:13:19 PM [Tomcat] entire log window on the forums



Also , got some logs :

http://s000.tinyupload.com/index.php?file_id=16110268199052489579

And even more strange : a few minutes ago , I was able to successfully run catalina_start.bat
And right now , I started tomcat with the button.

You guys might say that the problem is solved , but presumably it will return...

Also catalina_start.bat log is :


[XAMPP]: Searching for JDK or JRE HOME with reg query ...

HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java Development Kit
CurrentVersion REG_SZ 1.8

HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java Development Kit\1.8
JavaHome REG_SZ C:\Program Files\Java\JDK
MicroVersion REG_SZ 0

HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java Development Kit\1.8.0
JavaHome REG_SZ C:\Program Files\Java\jdk1.8.0
MicroVersion REG_SZ 0

HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java Development Kit\1.8.0\MSI
INSTALLDIR REG_SZ C:\Program Files\Java\jdk1.8.0\

HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java Development Kit\1.8.0_74
JavaHome REG_SZ C:\Program Files\Java\JDK
MicroVersion REG_SZ 0

HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java Development Kit\1.8.0_74\MSI
INSTALLDIR REG_SZ C:\Program Files\Java\JDK\
NOSTARTMENU REG_SZ 0

HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java Development Kit\1.9.0
JavaHome REG_SZ C:\Program Files\Java\Java Development Kit
MicroVersion REG_SZ 0
BuildNumber REG_SZ 52

HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java Development Kit\1.9.0\MSI
NOSTARTMENU REG_SZ 0


[XAMPP]: Using JDK

[XAMPP]: Seems fine!
[XAMPP]: Set JAVA_HOME : C:\Program Files\Java\Java Development Kit
[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\Java\JRE"
Using CLASSPATH: "c:\XAMPP\tomcat\bin\bootstrap.jar;c:\XAMPP\tomcat\bin\tomcat-juli.jar"
Jul 02, 2016 3:46:27 PM org.apache.catalina.core.AprLifecycleListener init
INFO: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: C:\Program Files\Java\JRE\bin;C:\Windows\Sun\Java\bin;C:\Windows\system32;C:\Windows;c:\MinGW\bin;c:\MinGW\libexec\gcc\i686-pc-mingw32\5.3.0;C:\ProgramData\Oracle\Java\javapath;C:\Watcom\binnt;C:\Watcom\binw;c:\MinGW\libexec\gcc\i686-pc-mingw32\4.8.2;c:\MinGW\libexec\gcc\i686-pc-mingw32\4.9.1;C:\MinGW\libexec\gcc\i686-pc-mingw32\4.7.0;C:\GCC 4.7\bin;C:\GCC 4.7\libexec\gcc\i686-pc-mingw32\4.7.0;C:\Program Files\Python3.4.2\;C:\Program Files\Python3.4.2\Scripts;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files\Windows Kits\8.1\Windows Performance Toolkit\;C:\Program Files\Microsoft SQL Server\110\Tools\Binn\;C:\TDM-GCC-32\bin;C:\Program Files\Code Blocks(ctalk)\MinGW;C:\MinGW;C:\Program Files\GtkSharp 2.12\bin;C:\Program Files\Microsoft SQL Server\120\DTS\Binn\;C:\Program Fil
es\Microsoft SQL Server\Client SDK\ODBC\110\Tools\Binn\;C:\Program Files\Microsoft SQL Server\120\Tools\Binn\;C:\Program Files\Microsoft SQL Server\120\Tools\Binn\ManagementStudio\;C:\Program Files\Brackets\command;C:\Program Files\Node.JS\;C:\Program Files\Xuggle\bin;C:\Program Files\nodejs\;C:\Program Files\Git\cmd;C:\Program Files\CMake\bin;C:\Program Files\Java\JDK;C:\Program Files\Microsoft Visual Studio 6\Visual C++ 6\bin;C:\Program Files\Microsoft Visual Studio 6\Common\Tools\WinNT;C:\Program Files\Microsoft Visual Studio 6\Common\MSDev98\Bin;C:\Program Files\Microsoft Visual Studio 6\Common\Tools;C:\Program Files\Microsoft Visual Studio 6.0\VC98\bin;C:\Users\Chizari\AppData\Roaming\npm;C:\Program Files\Java\JDK;.
Jul 02, 2016 3:46:29 PM org.apache.coyote.AbstractProtocol init
INFO: Initializing ProtocolHandler ["http-bio-8080"]
Jul 02, 2016 3:46:29 PM org.apache.coyote.AbstractProtocol init
INFO: Initializing ProtocolHandler ["ajp-bio-8009"]
Jul 02, 2016 3:46:29 PM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 3472 ms
Jul 02, 2016 3:46:29 PM org.apache.catalina.core.StandardService startInternal
INFO: Starting service Catalina
Jul 02, 2016 3:46:29 PM org.apache.catalina.core.StandardEngine startInternal
INFO: Starting Servlet Engine: Apache Tomcat/7.0.56
Jul 02, 2016 3:46:29 PM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory C:\XAMPP\tomcat\webapps\docs
Jul 02, 2016 3:46:30 PM org.apache.catalina.util.SessionIdGenerator createSecureRandom
INFO: Creation of SecureRandom instance for session ID generation using [SHA1PRNG] took [401] milliseconds.
Jul 02, 2016 3:46:30 PM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deployment of web application directory C:\XAMPP\tomcat\webapps\docs has finished in 1,196 ms
Jul 02, 2016 3:46:30 PM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory C:\XAMPP\tomcat\webapps\examples
Jul 02, 2016 3:46:32 PM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deployment of web application directory C:\XAMPP\tomcat\webapps\examples has finished in 1,576 ms
Jul 02, 2016 3:46:32 PM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory C:\XAMPP\tomcat\webapps\host-manager
Jul 02, 2016 3:46:32 PM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deployment of web application directory C:\XAMPP\tomcat\webapps\host-manager has finished in 211 ms
Jul 02, 2016 3:46:32 PM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory C:\XAMPP\tomcat\webapps\manager
Jul 02, 2016 3:46:32 PM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deployment of web application directory C:\XAMPP\tomcat\webapps\manager has finished in 155 ms
Jul 02, 2016 3:46:32 PM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory C:\XAMPP\tomcat\webapps\ROOT
Jul 02, 2016 3:46:32 PM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deployment of web application directory C:\XAMPP\tomcat\webapps\ROOT has finished in 122 ms
Jul 02, 2016 3:46:32 PM org.apache.coyote.AbstractProtocol start
INFO: Starting ProtocolHandler ["http-bio-8080"]
Jul 02, 2016 3:46:32 PM org.apache.coyote.AbstractProtocol start
INFO: Starting ProtocolHandler ["ajp-bio-8009"]
Jul 02, 2016 3:46:32 PM org.apache.catalina.startup.Catalina start
INFO: Server startup in 3517 ms


So , what is just going on ?

Re: Tomcat Error While Trying to Start

PostPosted: 02. July 2016 12:29
by Nobbie
I cannot read this green stuff.

Re: Tomcat Error While Trying to Start

PostPosted: 02. July 2016 14:25
by Arshia Aghaei
Sure :



[XAMPP]: Searching for JDK or JRE HOME with reg query ...

HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java Development Kit
CurrentVersion REG_SZ 1.8

HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java Development Kit\1.8
JavaHome REG_SZ C:\Program Files\Java\JDK
MicroVersion REG_SZ 0

HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java Development Kit\1.8.0
JavaHome REG_SZ C:\Program Files\Java\jdk1.8.0
MicroVersion REG_SZ 0

HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java Development Kit\1.8.0\MSI
INSTALLDIR REG_SZ C:\Program Files\Java\jdk1.8.0\

HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java Development Kit\1.8.0_74
JavaHome REG_SZ C:\Program Files\Java\JDK
MicroVersion REG_SZ 0

HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java Development Kit\1.8.0_74\MSI
INSTALLDIR REG_SZ C:\Program Files\Java\JDK\
NOSTARTMENU REG_SZ 0

HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java Development Kit\1.9.0
JavaHome REG_SZ C:\Program Files\Java\Java Development Kit
MicroVersion REG_SZ 0
BuildNumber REG_SZ 52

HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java Development Kit\1.9.0\MSI
NOSTARTMENU REG_SZ 0


[XAMPP]: Using JDK

[XAMPP]: Seems fine!
[XAMPP]: Set JAVA_HOME : C:\Program Files\Java\Java Development Kit
[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\Java\JRE"
Using CLASSPATH: "c:\XAMPP\tomcat\bin\bootstrap.jar;c:\XAMPP\tomcat\bin\tomcat-juli.jar"
Jul 02, 2016 3:46:27 PM org.apache.catalina.core.AprLifecycleListener init
INFO: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: C:\Program Files\Java\JRE\bin;C:\Windows\Sun\Java\bin;C:\Windows\system32;C:\Windows;c:\MinGW\bin;c:\MinGW\libexec\gcc\i686-pc-mingw32\5.3.0;C:\ProgramData\Oracle\Java\javapath;C:\Watcom\binnt;C:\Watcom\binw;c:\MinGW\libexec\gcc\i686-pc-mingw32\4.8.2;c:\MinGW\libexec\gcc\i686-pc-mingw32\4.9.1;C:\MinGW\libexec\gcc\i686-pc-mingw32\4.7.0;C:\GCC 4.7\bin;C:\GCC 4.7\libexec\gcc\i686-pc-mingw32\4.7.0;C:\Program Files\Python3.4.2\;C:\Program Files\Python3.4.2\Scripts;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files\Windows Kits\8.1\Windows Performance Toolkit\;C:\Program Files\Microsoft SQL Server\110\Tools\Binn\;C:\TDM-GCC-32\bin;C:\Program Files\Code Blocks(ctalk)\MinGW;C:\MinGW;C:\Program Files\GtkSharp 2.12\bin;C:\Program Files\Microsoft SQL Server\120\DTS\Binn\;C:\Program Fil
es\Microsoft SQL Server\Client SDK\ODBC\110\Tools\Binn\;C:\Program Files\Microsoft SQL Server\120\Tools\Binn\;C:\Program Files\Microsoft SQL Server\120\Tools\Binn\ManagementStudio\;C:\Program Files\Brackets\command;C:\Program Files\Node.JS\;C:\Program Files\Xuggle\bin;C:\Program Files\nodejs\;C:\Program Files\Git\cmd;C:\Program Files\CMake\bin;C:\Program Files\Java\JDK;C:\Program Files\Microsoft Visual Studio 6\Visual C++ 6\bin;C:\Program Files\Microsoft Visual Studio 6\Common\Tools\WinNT;C:\Program Files\Microsoft Visual Studio 6\Common\MSDev98\Bin;C:\Program Files\Microsoft Visual Studio 6\Common\Tools;C:\Program Files\Microsoft Visual Studio 6.0\VC98\bin;C:\Users\Chizari\AppData\Roaming\npm;C:\Program Files\Java\JDK;.
Jul 02, 2016 3:46:29 PM org.apache.coyote.AbstractProtocol init
INFO: Initializing ProtocolHandler ["http-bio-8080"]
Jul 02, 2016 3:46:29 PM org.apache.coyote.AbstractProtocol init
INFO: Initializing ProtocolHandler ["ajp-bio-8009"]
Jul 02, 2016 3:46:29 PM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 3472 ms
Jul 02, 2016 3:46:29 PM org.apache.catalina.core.StandardService startInternal
INFO: Starting service Catalina
Jul 02, 2016 3:46:29 PM org.apache.catalina.core.StandardEngine startInternal
INFO: Starting Servlet Engine: Apache Tomcat/7.0.56
Jul 02, 2016 3:46:29 PM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory C:\XAMPP\tomcat\webapps\docs
Jul 02, 2016 3:46:30 PM org.apache.catalina.util.SessionIdGenerator createSecureRandom
INFO: Creation of SecureRandom instance for session ID generation using [SHA1PRNG] took [401] milliseconds.
Jul 02, 2016 3:46:30 PM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deployment of web application directory C:\XAMPP\tomcat\webapps\docs has finished in 1,196 ms
Jul 02, 2016 3:46:30 PM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory C:\XAMPP\tomcat\webapps\examples
Jul 02, 2016 3:46:32 PM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deployment of web application directory C:\XAMPP\tomcat\webapps\examples has finished in 1,576 ms
Jul 02, 2016 3:46:32 PM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory C:\XAMPP\tomcat\webapps\host-manager
Jul 02, 2016 3:46:32 PM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deployment of web application directory C:\XAMPP\tomcat\webapps\host-manager has finished in 211 ms
Jul 02, 2016 3:46:32 PM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory C:\XAMPP\tomcat\webapps\manager
Jul 02, 2016 3:46:32 PM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deployment of web application directory C:\XAMPP\tomcat\webapps\manager has finished in 155 ms
Jul 02, 2016 3:46:32 PM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory C:\XAMPP\tomcat\webapps\ROOT
Jul 02, 2016 3:46:32 PM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deployment of web application directory C:\XAMPP\tomcat\webapps\ROOT has finished in 122 ms
Jul 02, 2016 3:46:32 PM org.apache.coyote.AbstractProtocol start
INFO: Starting ProtocolHandler ["http-bio-8080"]
Jul 02, 2016 3:46:32 PM org.apache.coyote.AbstractProtocol start
INFO: Starting ProtocolHandler ["ajp-bio-8009"]
Jul 02, 2016 3:46:32 PM org.apache.catalina.startup.Catalina start
INFO: Server startup in 3517 ms



Re: Tomcat Error While Trying to Start

PostPosted: 02. July 2016 15:06
by Nobbie
Seems to be no error, Tomcat is running (as you said), i would say, lets wait and see.

Re: Tomcat Error While Trying to Start

PostPosted: 04. July 2016 11:57
by Arshia Aghaei
Tried to start tomcat today two times and here is the log :

3:13:28 PM [Tomcat] Checking default ports...
3:13:28 PM [Tomcat] Attempting to start Tomcat app...
3:13:28 PM [Tomcat] Executing "cmd" "/c "c:\xampp\catalina_start.bat""
3:14:33 PM [Tomcat] Status change detected: running
3:14:43 PM [Tomcat] Status change detected: stopped
3:14:43 PM [Tomcat] Error: Tomcat shutdown unexpectedly.
3:14:43 PM [Tomcat] This may be due to a blocked port, missing dependencies,
3:14:43 PM [Tomcat] improper privileges, a crash, or a shutdown by another method.
3:14:43 PM [Tomcat] Press the Logs button to view error logs and check
3:14:43 PM [Tomcat] the Windows Event Viewer for more clues
3:14:43 PM [Tomcat] If you need more help, copy and post this
3:14:43 PM [Tomcat] entire log window on the forums
3:14:43 PM [Tomcat] Return code: 0
3:15:32 PM [Tomcat] Checking default ports...
3:15:32 PM [Tomcat] Portblocker Detected: java.exe
3:15:32 PM [Tomcat] Checking for App: c:\xampp\tomcat\bin\tomcat7.exe
3:15:32 PM [Tomcat] Portblocker Path: C:\Program Files\Java\JRE\bin\java.exe
3:15:32 PM [Tomcat] Portblocker Service Path:
3:15:32 PM [Tomcat] Java is already running on port 8005!
3:15:32 PM [Tomcat] Is Tomcat already running?
3:15:32 PM [Tomcat] Attempting to start Tomcat app...
3:15:32 PM [Tomcat] Executing "cmd" "/c "c:\xampp\catalina_start.bat""
3:16:23 PM [Tomcat] Status change detected: running
3:16:30 PM [Tomcat] Status change detected: stopped
3:16:30 PM [Tomcat] Error: Tomcat shutdown unexpectedly.
3:16:30 PM [Tomcat] This may be due to a blocked port, missing dependencies,
3:16:30 PM [Tomcat] improper privileges, a crash, or a shutdown by another method.
3:16:30 PM [Tomcat] Press the Logs button to view error logs and check
3:16:30 PM [Tomcat] the Windows Event Viewer for more clues
3:16:30 PM [Tomcat] If you need more help, copy and post this
3:16:30 PM [Tomcat] entire log window on the forums
3:16:30 PM [Tomcat] Return code: 0

Re: Tomcat Error While Trying to Start

PostPosted: 05. July 2016 08:42
by Arshia Aghaei
Arshia Aghaei wrote:Tried to start tomcat today two times and here is the log :

3:13:28 PM [Tomcat] Checking default ports...
3:13:28 PM [Tomcat] Attempting to start Tomcat app...
3:13:28 PM [Tomcat] Executing "cmd" "/c "c:\xampp\catalina_start.bat""
3:14:33 PM [Tomcat] Status change detected: running
3:14:43 PM [Tomcat] Status change detected: stopped
3:14:43 PM [Tomcat] Error: Tomcat shutdown unexpectedly.
3:14:43 PM [Tomcat] This may be due to a blocked port, missing dependencies,
3:14:43 PM [Tomcat] improper privileges, a crash, or a shutdown by another method.
3:14:43 PM [Tomcat] Press the Logs button to view error logs and check
3:14:43 PM [Tomcat] the Windows Event Viewer for more clues
3:14:43 PM [Tomcat] If you need more help, copy and post this
3:14:43 PM [Tomcat] entire log window on the forums
3:14:43 PM [Tomcat] Return code: 0
3:15:32 PM [Tomcat] Checking default ports...
3:15:32 PM [Tomcat] Portblocker Detected: java.exe
3:15:32 PM [Tomcat] Checking for App: c:\xampp\tomcat\bin\tomcat7.exe
3:15:32 PM [Tomcat] Portblocker Path: C:\Program Files\Java\JRE\bin\java.exe
3:15:32 PM [Tomcat] Portblocker Service Path:
3:15:32 PM [Tomcat] Java is already running on port 8005!
3:15:32 PM [Tomcat] Is Tomcat already running?
3:15:32 PM [Tomcat] Attempting to start Tomcat app...
3:15:32 PM [Tomcat] Executing "cmd" "/c "c:\xampp\catalina_start.bat""
3:16:23 PM [Tomcat] Status change detected: running
3:16:30 PM [Tomcat] Status change detected: stopped
3:16:30 PM [Tomcat] Error: Tomcat shutdown unexpectedly.
3:16:30 PM [Tomcat] This may be due to a blocked port, missing dependencies,
3:16:30 PM [Tomcat] improper privileges, a crash, or a shutdown by another method.
3:16:30 PM [Tomcat] Press the Logs button to view error logs and check
3:16:30 PM [Tomcat] the Windows Event Viewer for more clues
3:16:30 PM [Tomcat] If you need more help, copy and post this
3:16:30 PM [Tomcat] entire log window on the forums
3:16:30 PM [Tomcat] Return code: 0


It seems there is a problem with the service start.
Apache and Tomcat are both active but on different ports. (I know they do the same job , but for testing with different servers I want to active both of them.)

I'll put the logs for more details :

http://s000.tinyupload.com/index.php?file_id=85371919446592012103