aspose file tools*
The moose likes Tomcat and the fly likes problem in starting tomcat Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark "problem in starting tomcat" Watch "problem in starting tomcat" New topic
Author

problem in starting tomcat

soroush
Greenhorn

Joined: Sep 15, 2008
Posts: 13
I`m using tomcat6.0.14 on vista.
I`ve installed jdk1.6 and set environment variables:JAVA-HOME.Path,CATALINA-HOME,but i can not launch tomcat when i open startup.batch in bin directory.
[ September 15, 2008: Message edited by: Bear Bibeault ]
Martijn Verburg
author
Bartender

Joined: Jun 24, 2003
Posts: 3274
    
    5

Hi there,

What error messages are you getting?


Cheers, Martijn - Blog,
Twitter, PCGen, Ikasan, My The Well-Grounded Java Developer book!,
My start-up.
soroush
Greenhorn

Joined: Sep 15, 2008
Posts: 13
Hi
I can not launch tomcat,then firefox and bring up http://localhost:80(iset the default address to 80 port before) i get 404.4 error.
the Description is : The resource you are looking for does not have a handler associated with it.
Martijn Verburg
author
Bartender

Joined: Jun 24, 2003
Posts: 3274
    
    5

Can you try opening a command prompt and running:



and post the results here?
soroush
Greenhorn

Joined: Sep 15, 2008
Posts: 13
I opened the command prompt,after running the codes ( tomcat start up script [startup.bat] ), i got these messages:
using CATALINA_BASE: <where the tomcat startup script is>
using CATALINA_HOME:......
using CATALINA_TEMPDIR:..........
using JRE_HOME:.........
and when i brought up http://localhost with firefox,i got the previous error
Martijn Verburg
author
Bartender

Joined: Jun 24, 2003
Posts: 3274
    
    5

Originally posted by soroush:
I opened the command prompt,after running the codes ( tomcat start up script [startup.bat] ), i got these messages:
using CATALINA_BASE: <where the tomcat startup script is>
using CATALINA_HOME:......
using CATALINA_TEMPDIR:..........
using JRE_HOME:.........
and when i brought up http://localhost with firefox,i got the previous error


Hmm, that doesn't look right, the various variables should have real values (e.g. JRE_HOME: should point to an actual directory).

1.) Where do you have tomcat installed?
2.) What does the console say after using JRE_HOME:...... Can you post everything it prints out?
3.) Can you also post the contents of the log?
soroush
Greenhorn

Joined: Sep 15, 2008
Posts: 13
Using CATALINA_BASE: C:\tomcat\tomcat
Using CATALINA_HOME: C:\tomcat\tomcat
Using CATALINA_TMPDIR: C:\tomcat\tomcat\temp
Using JRE_HOME: C:\Program Files\Java\jdk1.6.0_05
in my mind the where are pointed are correspond location in my system.
after executing startup.bat tomcat dony launch.
after opening firefox:
the content of log is:
Description: The resource you are looking for does not have a handler associated with it.

Error Code: 0x80070002

Notification: MapRequestHandler

Module: IIS Web Core

Requested URL: http://localhost:80/

Physical Path: C:\inetpub\wwwroot

Logon User: Anonymous

Logon Method: Anonymous

Handler: Not yet determined

Most likely causes:

The file extension for the requested URL does not have a handler configured to process the request on the Web server.
Martijn Verburg
author
Bartender

Joined: Jun 24, 2003
Posts: 3274
    
    5

Sounds like you might have an IIS server running on port 80.... Try changing the tomcat back to port 8080 and restarting
soroush
Greenhorn

Joined: Sep 15, 2008
Posts: 13
after changing the tomcat back to 8080 port and opening firefox(bringing up http:localhost:8080/) i got :
Failed to Connect
Firefox can't establish a connection to the server at localhost:8080.













Martijn Verburg
author
Bartender

Joined: Jun 24, 2003
Posts: 3274
    
    5

Can you post the contents of the _tomcat_ log?
soroush
Greenhorn

Joined: Sep 15, 2008
Posts: 13
sorry,DO you mean log file in tomcar?the log file includes two java file :
capturelog.java & systemloghandeler.java
Martijn Verburg
author
Bartender

Joined: Jun 24, 2003
Posts: 3274
    
    5

Nope , I mean the logs files under TOMCAT_HOME/log or CATALINA_HOME/log, you should see a bunch of log files there (catalina.*,
manager,*. admin.*, ....).
soroush
Greenhorn

Joined: Sep 15, 2008
Posts: 13
thanks
i m really a begginer
my tomcat 6.0.14 doesnt have log file.
but my tomcat 5.5.15 have it
it try it but the same as happen so
the content of my log file is:
admin.2007-12-19
admin.2008-09-14,catalina.2007-12-19,catalina.2008-09-14,host-manager.2007-12-19,host-manager.2008-09-14,localhost.2007-12-19,localhost.2008-09-14,manager.2007-12-19,
manager.2008-09-14
Martijn Verburg
author
Bartender

Joined: Jun 24, 2003
Posts: 3274
    
    5

OK, for the 5.5.x version (since you have the logs), you need to psot the contents of the latest log (e.g admin.2008-09-14 etc).
soroush
Greenhorn

Joined: Sep 15, 2008
Posts: 13
the content of all file of my logs is empty!
soroush
Greenhorn

Joined: Sep 15, 2008
Posts: 13
i have another problem since changing my tomcat to 5.5.25.i changed all of environment variable to this version of tomcat
when i run:
echo %CLASSPATH%
echo %PATH%
echo %JAVA_HOME%
echo %CATALINA_HOME%
i got the path of previous tomcat
Martijn Verburg
author
Bartender

Joined: Jun 24, 2003
Posts: 3274
    
    5

OK, it sounds like your environment is a little topsy turvy. I'd recommend at this stage to back everything up and install Tomcat again from scratch following the instructions here and make sure you install in a directory structure _without_ spaces in it.
soroush
Greenhorn

Joined: Sep 15, 2008
Posts: 13
thanks for your help
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61434
    
  67

"soroush", please check your private messages for an important administrative matter.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: problem in starting tomcat