File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Servlets and the fly likes Tomcat 4.1 on Windows XP Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "Tomcat 4.1 on Windows XP" Watch "Tomcat 4.1 on Windows XP" New topic

Tomcat 4.1 on Windows XP

Andrew Babaian

Joined: May 16, 2002
Posts: 25
I used to run Tomcat 4.1 on Win98 without any problems. I've since upgraded to Windows XP, now after starting tomcat, the DOS server window pops up, then flickers out, and then server no longer runs.
I can't get anything up and running now, has anyone experienced similar issues? Do I need to make any changes to server.xml in the conf folder?
William Brogden
Author and all-around good cowpoke

Joined: Mar 22, 2000
Posts: 13036
It is probably hitting some sort of exception - due to the way startup.bat is set up you don't get a chance to see what happened before the window vanishes.
Here is what I do.
In catalina.bat - REM out the first statement so it will echo everything to the screen
In startup.bat - the next to final line that
now says
call "%EXECUTABLE%" start ....
replace start with run - now when you execute startup.bat in a command window, you will see everything and the window will stay open.
Ken Shamrock
Ranch Hand

Joined: Jan 23, 2002
Posts: 139
Were you make it as a service?
If so, it've already startup after initialized windows

Thanks everyone who helped me
Roberto Baggio

Joined: Apr 08, 2003
Posts: 1
Hi, I met same problem before, but I can't solve it now. Pls help me together.

<img src="smile.gif" border="0">
Eric Christensen

Joined: Jul 29, 2002
Posts: 15
I had the same problem. I uninstalled Tomcat and when I re-installed, I made sure to NOT check the box that has to do with services on NT and XP. After that, everything ran fine.

"No matter how hard you try, you cannot outthink a moron."
Andrew Babaian

Joined: May 16, 2002
Posts: 25
Thanks to everyone who responded. I'm a little embarassed to tell you why it wasn't working, but my simple error could shed some light on others problems.
I renamed a folder in my apps folder. I then coorespondingly changed the Root Context (path name) for that folder in server.xml. I decided I didn't like the name of the folder, so I changed it back, but forgot to also change the the path name.
Well I guess tomcat looks up all your path names to see if their legit and then starts the server. Once I corrected the path name, the server started without any problems.
Thanks again for everyone's help.
I agree. Here's the link:
subject: Tomcat 4.1 on Windows XP
jQuery in Action, 3rd edition