Tomcat running, but not

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

Tomcat running, but not

Postby gertrudecm » 19. November 2006 00:37

Oh i am likely having a major blonde moment and should be shot but here goes anywho...

i've installed the newest version of the JDK 1.5.0.9?
i then installed xampp, and following that the tomcat addon

looking on the xampp home page it says on the java/tomcat page that the service is successfully running on port 8080

click the link to localhost:8080 and all it does is lag, until it gives up and i have a white screen of... nothing

clicking the link to the jsp-examples etc takes its time until finally it comes up with a 503 error, which i understand to be an overloaded server...

would really appreciate some help with this.

i enclose a snippet of the mod_jk.log it makes for fun reading

[Sat Nov 18 22:01:58 2006] [info] jk_open_socket::jk_connect.c (444): connect to 127.0.0.1:8009 failed with errno=61
[Sat Nov 18 22:01:58 2006] [info] ajp_connect_to_endpoint::jk_ajp_common.c (889): Failed opening socket to (127.0.0.1:8009) with (errno=61)
[Sat Nov 18 22:01:58 2006] [info] ajp_send_request::jk_ajp_common.c (1248): Error connecting to the Tomcat process.
[Sat Nov 18 22:01:58 2006] [info] ajp_service::jk_ajp_common.c (1749): Sending request to tomcat failed, recoverable operation attempt=1
[Sat Nov 18 22:01:59 2006] [info] jk_open_socket::jk_connect.c (444): connect to 127.0.0.1:8009 failed with errno=61
[Sat Nov 18 22:01:59 2006] [info] ajp_connect_to_endpoint::jk_ajp_common.c (889): Failed opening socket to (127.0.0.1:8009) with (errno=61)

thanks in advance guys and galls, flames appreciated as long as in between slagging off my noobness there is a little insight... :)
gertrudecm
 
Posts: 5
Joined: 19. November 2006 00:19

Postby gertrudecm » 19. November 2006 01:09

hmm, ok so the JSP-examples is now working, but the servlets and the /java are now producing 404s, the localhost:8080 is still not showing anyway...
gertrudecm
 
Posts: 5
Joined: 19. November 2006 00:19

Postby Izzy » 19. November 2006 10:52

Check that you have 'installed' Tomcat as a service. To do that:

Right click on the Taskbar and select Task Manager

Click on the Processes tab and look for tomcat5.exe

If it's not there go to:
xampp\tomcat
click on:
tomcat_service_install.bat

Check again for the tomcat5.exe file using Task Manager.

If its there now then you can try your Java menu items again.

Another couple of things to check are:
xampp\apache\conf\httpd.conf
Check that you have these 2 lines down near the bottom of the file:
# Java Tomcat
Include conf/extra/java.conf


Check that you indeed have the above java.conf file present:
xampp\apache\conf\extra\java.conf

Open it and it should look something like this:
<IfModule !mod_jk.c>
LoadModule jk_module modules/mod_jk.so
</IfModule>

<IfModule mod_jk.c>
JkWorkersFile "/xampp/tomcat/conf/workers.properties"
JkLogFile "/xampp/tomcat/logs/mod_jk.log"
JkLogLevel info
JkOptions +ForwardKeySize +ForwardURICompat -ForwardDirectories
# Alias /examples "/xampp/tomcat/webapps/examples"

#<Directory "/xampp/tomcat/webapps/examples">
# Options All
# </Directory>

JkMount /*.jsp ajp13
JkMount /java/* ajp13
JkMount /jsp-examples/* ajp13
JkMount /servlets-examples/* ajp13

#<VirtualHost 127.0.0.1:80>
# DocumentRoot /xampp/tomcat/webapps/examples
# ServerName test
# JkMount /*.jsp ajp13
# JkMount /servlet/* ajp13
# Alias /examples "/xampp/tomcat/webapps/examples"

# <Directory "/xampp/tomcat/webapps/examples/">
# Options All
# Order allow,deny
# Allow from all
# </Directory>
# </VirtualHost>
</IfModule>

Your paths in the above file may be different to mine.

If all is as it should be you should get the full complement of what Tomcat has to offer.

If all is as it should be above but you still are having issues then we can take it further.

The above setup is working fine on my PC so I will have to try and simulate your issues from here on in.
Last edited by Izzy on 19. November 2006 11:18, edited 1 time in total.
Izzy
 
Posts: 3344
Joined: 25. April 2006 17:06

Postby gertrudecm » 19. November 2006 11:16

hay, thanks for getting back to me on this topic,

i did what you said, and yes tomcat wasn't running as a service but it is now, i also checked that http.conf file had the line for tomcat in it which is does, and the java.conf is where its meant to be and is extremely similar if not identical to your quote...

buuuut, i still have the same problem, oh ignore my post about the jsp-examples working, thats was because of netbeans booting up its own tomcat version...

if you have any other ideas there appreciated, but anyway thanks for trying. :)

so yeah, still getting a blank screen at localhost:8080 and 503 service unavailables on the /jsp-examples, /servlet-examples and /java

but tomcat5.exe is now running as a service
gertrudecm
 
Posts: 5
Joined: 19. November 2006 00:19

Postby Izzy » 19. November 2006 11:27

Is there anything in your Apache error log with regard to the 503 error?
xampp\apache\logs\error.log

The Tomcat server conf is in:
xampp\tomcat\conf\server.xml
(just drag it into your text editor to read/edit it)
If you want to make changes make sure you back it up first.
It is well documented in the form of comments.

I did a Google using:
connect to 127.0.0.1:8009 failed with errno=61
which came up with some interesting results. Seems it is a common error.

It should all work 'out of the box' so not sure what is wrong here.

Make sure you have:
127.0.0.1 localhost
in your Windows hosts file
C:\WINDOWS\system32\drivers\etc\hosts

You could also try looking in the Windows Event Application Viewer for any clues.

And of course you did follow the installation instructions in the readme-addon-tomcat.txt file including running the setup_xampp.bat included in the addon archive to set your paths etc.
Izzy
 
Posts: 3344
Joined: 25. April 2006 17:06

Postby gertrudecm » 19. November 2006 12:05

error log was saying that it couldn't find the directories

[Sun Nov 19 00:03:17 2006] [error] [client 127.0.0.1] File does not exist: C:/Program Files/xampp/htdocs/java
[Sun Nov 19 00:03:30 2006] [error] [client 127.0.0.1] File does not exist: C:/Program Files/xampp/htdocs/xampp/java

so i created them, no joy...
check out the windows/system32/drivers/etc/hosts file, and thats had
127.0.0.1 localhost

the event viewer turned up nada, but i've now set apache tomcat service to start automatically, gona try another reboot see if its picky about not being started at the same time as apache...

dont wana play with the server.xml, like you said its meant to work outa the box so i think playing around would be foolish on my part...

ok, so gona try this reboot, if that doesn't work i might have to do as the French and surrender...
gertrudecm
 
Posts: 5
Joined: 19. November 2006 00:19

Postby Izzy » 19. November 2006 12:11

error log was saying that it couldn't find the directories

[Sun Nov 19 00:03:17 2006] [error] [client 127.0.0.1] File does not exist: C:/Program Files/xampp/htdocs/java
[Sun Nov 19 00:03:30 2006] [error] [client 127.0.0.1] File does not exist: C:/Program Files/xampp/htdocs/xampp/java

You have to track down this incorrect path. The server is looking incorrectly for /java and will not surrender until it looks for the correct path. How are your detective skills?
Izzy
 
Posts: 3344
Joined: 25. April 2006 17:06

Postby gertrudecm » 19. November 2006 12:15

*tomcat service looks over the mound*
"damn stupid humans, why don't they understand i'm 503..."
"hmm, looks like hes waving a white flag..."
"now, i think that means surrender"
"oh oh, now its a French flag, yes thats it, surrender..."

:)

thanks Izzy for trying.
gertrudecm
 
Posts: 5
Joined: 19. November 2006 00:19


Return to XAMPP for Windows

Who is online

Users browsing this forum: DarthSidus and 50 guests