• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

problem in starting tomcat

 
soroush
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 3275
5
Eclipse IDE Java Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi there,

What error messages are you getting?
 
soroush
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 3275
5
Eclipse IDE Java Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can you try opening a command prompt and running:



and post the results here?
 
soroush
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 3275
5
Eclipse IDE Java Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 13
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 3275
5
Eclipse IDE Java Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sounds like you might have an IIS server running on port 80.... Try changing the tomcat back to port 8080 and restarting
 
soroush
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 3275
5
Eclipse IDE Java Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can you post the contents of the _tomcat_ log?
 
soroush
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
sorry,DO you mean log file in tomcar?the log file includes two java file :
capturelog.java & systemloghandeler.java
 
Martijn Verburg
author
Bartender
Posts: 3275
5
Eclipse IDE Java Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 13
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 3275
5
Eclipse IDE Java Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 13
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
the content of all file of my logs is empty!
 
soroush
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 3275
5
Eclipse IDE Java Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 13
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thanks for your help
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 65216
95
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"soroush", please check your private messages for an important administrative matter.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic