• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

problem starting Tomcat.....pleae Advise

 
Ranch Hand
Posts: 51
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Friends!!
I have installed tomcat v4 in directory CATALINA_HOME (as per some java book). I have also set the environment variable JAVA_HOME. When i click on startup in Catalina_home/bin, the console screen comes and goes away.
To check whether the tomcat has started or not, i open the browser and type in http://localhost:8080 but the reply i get is web page not found.
Please help me what could be the problem.
Thanks,
FYI- I am using IE 5
 
Ranch Hand
Posts: 1953
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
1) Use DOS command to type catalina.bat start, you might see something readable.
2) Check the tomcat/logs directory, then you will know why in print...
3) Good luck!
 
Anil Jain
Ranch Hand
Posts: 51
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Roseanee, I did that but i still face the same problem , the console window goes away after i clik startp.bat in bin directory.
I have not setup iis or apache. Do i need to setup some web server first to get tomcat working??
Please help
 
Roseanne Zhang
Ranch Hand
Posts: 1953
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
You need to read the error message catalina tells you. Nobody can read them remotely.
The other way is uninstall it, then reintall it. Actually catalina is much easier than the old tomcat.
Oh, intall tomcat in directory called c:/tomcat, NOT C:/program files/apache group/jakarta-tomcat-4.0.3/...
You might get a command line too long error if you install them the other way around. Then, catalina will not have a chance to write anything in her log.
If necessary, you might need to uninstall/reinstall you Java to shorter the path too.
Good luck!!!
[ June 15, 2002: Message edited by: Roseanne Zhang ]
 
Roseanne Zhang
Ranch Hand
Posts: 1953
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
No, you don't need to have apache to start tomcat.
 
Anil Jain
Ranch Hand
Posts: 51
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks Roseanne. Atleast I came to know that i don't need apache.
My startup.bat file is installed in following location
c:\catalina\bin\bin\startup.bat
my java is installed in following location
c:\jdk1.3
I have the following environ ment variable setup
JAVA_HOME = C:\jdk1.3
And lastly when i go to command prompt and type in these command
c:\catalina\bin\bin\startup.bat
i get the following messages :
Using CATALINA_BASE: ..
Using CATALINA_HOME: ..
Using CATALINA_TMPDR: ..\temp
Using JAVA_HOME: C:\jdk1.3
after the one console windows with title "tomcat" comes for about 4 secs and goes away
after that to check if tomcat has started or not i open the browser and type in http://localhost:8080
i don't get the desired default webpage.
Please advise.
Thanks,
 
Roseanne Zhang
Ranch Hand
Posts: 1953
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Where is your bin/bin came from?
You can read the logs now, have you done that?
 
Anil Jain
Ranch Hand
Posts: 51
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks Roseanne for you help. Finally i got it straighten up. I downloaded a lower version i.e.tomcat v3.3.
Now it is working fine for me!!!
Thanks to all again!!
 
Saloon Keeper
Posts: 27763
196
Android Eclipse IDE Tomcat Server Redhat Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Actually, I'm not sure that 8080 is the right port for Catalina. It MAY be 8180. They set it up that way so you could run both Tomcat 3 and 4 on the same machine simultaneously while using the default config files.
Check your conf/server.xml file and you should be able to see what port you really need.
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic