XAMPP 1.7.7 Can't start tomcat on Windows XP 64 [Solved]

Problems with the Windows version of XAMPP, questions, comments, and anything related.

XAMPP 1.7.7 Can't start tomcat on Windows XP 64 [Solved]

Postby mmt200575 » 18. June 2012 14:49

I reinstalled more times JRE and XAMPP but can't start comcat.
I tried catalina_start in this way:
I opened a cmd windows and pasted content of catalina start after
cd C:\xampp\tomcat
Code: Select all
cd C:\xampp\tomcat
@echo off
::::::::::::::::::::::::::::::::::::
::  Set JAVA_HOME and   ::
::::::::::::::::::::::::::::::::::::

IF EXIST tomcat\logs\catalina.pid (
  del /F/Q tomcat\logs\catalina.pid
)

echo.
echo [XAMPP]: Searching JDK HOME with reg query ...
set KeyName=HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java Development Kit

reg query "%KeyName%" /s
if %ERRORLEVEL% == 1 (
  echo . [XAMPP]: Cannot find current JDK installation!
  echo . [XAMPP]: Cannot set JAVA_HOME. Aborting ...
  goto :END
)

set "CURRENT_DIR=%cd%"
set "CATALINA_HOME=%CURRENT_DIR%"

:: only for windows 32 bit if you have problems with the tcnative-1.dll
:: set CATALINA_OPTS=-Djava.library.path="%CATALINA_HOME%\bin"

set Cmd=reg query "%KeyName%" /s
for /f "tokens=2*" %%i in ('%Cmd% ^| find "JavaHome"') do set JAVA_HOME=%%j

echo.
echo [XAMPP]: Seems fine!
echo [XAMPP]: Set JAVA_HOME : %JAVA_HOME%
echo [XAMPP]: Set CATALINA_HOME : %CATALINA_HOME%
echo.

if %ERRORLEVEL% == 0 (
echo run > logs\catalina.pid
)

"%CATALINA_HOME%\bin\catalina.bat" run


:END
echo done.
pause


This is what I got:
Code: Select all
Microsoft Windows [Version 5.2.3790]
(C) Copyright 1985-2003 Microsoft Corp.

C:\WINDOWS\system32>cd C:\xampp\tomcat

C:\xampp\tomcat>@echo off
::::::::::::::::::::::::::::::::::::
::  Set JAVA_HOME and   ::
::::::::::::::::::::::::::::::::::::

IF EXIST tomcat\logs\catalina.pid (
More?   del /F/Q tomcat\logs\catalina.pid
More? )

echo.

echo [XAMPP]: Searching JDK HOME with reg query ...
[XAMPP]: Searching JDK HOME with reg query ...
set KeyName=HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java Development Kit

reg query "%KeyName%" /s

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

HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java Development Kit\1.6
    JavaHome    REG_SZ    C:\Program Files\Java\jdk1.6.0_33
    MicroVersion    REG_SZ    0

HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java Development Kit\1.6.0_33
    JavaHome    REG_SZ    C:\Program Files\Java\jdk1.6.0_33
    MicroVersion    REG_SZ    0

if %ERRORLEVEL% == 1 (
More?   echo . [XAMPP]: Cannot find current JDK installation!
More?   echo . [XAMPP]: Cannot set JAVA_HOME. Aborting ...
More?   goto :END
More? )

set "CURRENT_DIR=%cd%"
set "CATALINA_HOME=%CURRENT_DIR%"

:: only for windows 32 bit if you have problems with the tcnative-1.dll
:: set CATALINA_OPTS=-Djava.library.path="%CATALINA_HOME%\bin"

set Cmd=reg query "%KeyName%" /s
for /f "tokens=2*" %%i in ('%Cmd% ^| find "JavaHome"') do set JAVA_HOME=%%j
%%i was unexpected at this time.

echo.

echo [XAMPP]: Seems fine!
[XAMPP]: Seems fine!
echo [XAMPP]: Set JAVA_HOME : %JAVA_HOME%
[XAMPP]: Set JAVA_HOME : C:\Program Files\Java\jdk1.6.0_33
echo [XAMPP]: Set CATALINA_HOME : %CATALINA_HOME%
[XAMPP]: Set CATALINA_HOME : C:\xampp\tomcat
echo.


if %ERRORLEVEL% == 0 (
More? echo run > logs\catalina.pid
More? )

"%CATALINA_HOME%\bin\catalina.bat" run
and was unexpected at this time.


:END
echo done.
done.
pause
Press any key to continue . . .

At this moment don't know what more to do.
Thanks for help.
M
mmt200575
 
Posts: 5
Joined: 18. June 2012 13:52
Operating System: windows xp 64

Re: XAMPP 1.7.7 Can't start tomcat on Windows XP 64

Postby JonB » 18. June 2012 18:22

Read (and work) through this topic:

viewtopic.php?f=16&t=49483

Good Luck
8)
User avatar
JonB
AF Moderator
 
Posts: 3210
Joined: 12. April 2010 16:41
Location: Land of the Blazing Sun
Operating System: Windows XP/7 - Fedora 15 1.7.7

Re: XAMPP 1.7.7 Can't start tomcat on Windows XP 64

Postby mmt200575 » 19. June 2012 07:00

Hey JohB or anyone,
Can I assume that JDK and JRE are installed and work correctly?
This is how I test it on cmd windows.
Code: Select all
Microsoft Windows [Version 5.2.3790]
(C) Copyright 1985-2003 Microsoft Corp.

C:\WINDOWS\system32>cd /D L:\L\2012-CR\IT\Java\01

L:\L\2012-CR\IT\Java\01>javac HelloWorldApp.java

L:\L\2012-CR\IT\Java\01>java HelloWorldApp
Hello World!

L:\L\2012-CR\IT\Java\01>

There is another better way to find out that JDK and JRE are installed and work correctly?
I also tried:
Code: Select all
cd C:\XAMPP
catalina_start


and got:
Code: Select all
Microsoft Windows [Version 5.2.3790]
(C) Copyright 1985-2003 Microsoft Corp.

C:\WINDOWS\system32>cd C:\XAMPP

C:\xampp>catalina_start

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

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

HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java Development Kit\1.6
    JavaHome    REG_SZ    C:\Program Files\Java\jdk1.6.0_33
    MicroVersion    REG_SZ    0

HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java Development Kit\1.6.0_33
    JavaHome    REG_SZ    C:\Program Files\Java\jdk1.6.0_33
    MicroVersion    REG_SZ    0


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

and was unexpected at this time.

C:\xampp>

Thanks
mmt200575
 
Posts: 5
Joined: 18. June 2012 13:52
Operating System: windows xp 64

Re: XAMPP 1.7.7 Can't start tomcat on Windows XP 64

Postby JonB » 19. June 2012 14:21

A. It certainly looks like you have Java SDK installed correctly.

B. Try directly running catalina.bat in \xampp\tomcat\bin and see what happens.

My answers here are based on grokking the setup and batch files, I'm not a tomcat expert.

I have been testing XAMPP 1.8 beta 4 (have not gotten to 5) AND on my Windows 7 64 bit machine -- which chokes on the 1.7.7 tomcat -- the 1.8 beta 4 runs tomcat apparently correctly, right from the Control Panel. I run several XAMPP/LAMPP versions on several machines/OS's

Image

If you DL and look at the beta, you will see the 'tomcat' part is all re-done. I "think" there is no reason you could not graft the beta tomcat onto a different install if you wanted. AGAIN, I am not an expert on Tomcat, however, AFAIK they are separte servers/processes. Also, you can certainly run more than one version of XAMPP on a machine, they just can't run concurrently (at least on standard ports).

Good Luck
8)
User avatar
JonB
AF Moderator
 
Posts: 3210
Joined: 12. April 2010 16:41
Location: Land of the Blazing Sun
Operating System: Windows XP/7 - Fedora 15 1.7.7

Re: XAMPP 1.7.7 Can't start tomcat on Windows XP 64

Postby mmt200575 » 19. June 2012 18:51

Hi JohB,
I tried:
Code: Select all
cd C:\xampp\tomcat\bin
catalina run


And I got:
Code: Select all
Microsoft Windows [Version 5.2.3790]
(C) Copyright 1985-2003 Microsoft Corp.

C:\WINDOWS\system32>cd C:\xampp\tomcat\bin

C:\xampp\tomcat\bin>catalina run
and was unexpected at this time.

C:\xampp\tomcat\bin>


I am not sure about what have to be installed.
Above is what I see in my Control Panel
Add or Remove Programs

Code: Select all
Java(TM) 6 Update 2

Java(TM) 6 Update 3

Java(TM) 6 Update 33

Java(TM) 6 Update 33(64-bit)

Java(TM) 6 Update 4

Java(TM) 6 Update 5

Java(TM) 6 Update 7

Java(TM) SE Development Kit 6 Update(64-bit)


Mostly I want to understend what I am doing.
About the 1.8 Beta I can't see a 64 bit version.
Thanks for your time.
mmt200575
 
Posts: 5
Joined: 18. June 2012 13:52
Operating System: windows xp 64

Re: XAMPP 1.7.7 Can't start tomcat on Windows XP 64

Postby JonB » 19. June 2012 19:19

XAMPP does not have 64 bit versions.
User avatar
JonB
AF Moderator
 
Posts: 3210
Joined: 12. April 2010 16:41
Location: Land of the Blazing Sun
Operating System: Windows XP/7 - Fedora 15 1.7.7

Re: XAMPP 1.7.7 Can't start tomcat on Windows XP 64

Postby mmt200575 » 20. June 2012 07:59

Tanks,
xampp-win32-1.8.0-beta7-vc9.7z work on my computer.
Thanks again,
mmt200575
mmt200575
 
Posts: 5
Joined: 18. June 2012 13:52
Operating System: windows xp 64

Re: XAMPP 1.7.7 Can't start tomcat on Windows XP 64 [Solved]

Postby JonB » 20. June 2012 15:41

OK Good luck

If you decide to run the final 1.8 version when it comes out, you probably will need to backup and install fresh. If it works 'ok' for you there is really no great reason to go to a final version. You should look at what is in the final package and see if it affects you.

Have fun with XAMPP & Tomcat
8)
User avatar
JonB
AF Moderator
 
Posts: 3210
Joined: 12. April 2010 16:41
Location: Land of the Blazing Sun
Operating System: Windows XP/7 - Fedora 15 1.7.7

Re: XAMPP 1.7.7 Can't start tomcat on Windows XP 64 [Solved]

Postby mmt200575 » 21. June 2012 13:33

Thanks again.
mmt200575
 
Posts: 5
Joined: 18. June 2012 13:52
Operating System: windows xp 64


Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 185 guests