• 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

Tomcat Problem

 
Ranch Hand
Posts: 30
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi everybody,

I have a problem with execution of Tomcat.In my computer (Windows XP) Tomcat 4.0 is running fine but Tomcat 5.0 is not running properly. The tomcat window is showing up but after few moments it is vanishing. Please help me.

Regards,
Jyothi.
 
Ranch Hand
Posts: 136
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hi,

I have a problem with execution of Tomcat.In my computer (Windows XP) Tomcat 4.0 is running fine but Tomcat 5.0 is not running properly. The tomcat window is showing up but after few moments it is vanishing. Please help me.



I think there must be some application(may be some other server ) running on(precisely listening) on port 8080.So u can do two things
1)either shutdown that server/application(throgh task manager) or
2)goto Tomcat 5.5\conf\server.xml and change the default port(8080) to some other port.Look for this into server.xml



regards
-santosh
 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Try to change the Connector port number in server.xml and restart Tomcat
 
Jyothi Pathuri
Ranch Hand
Posts: 30
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thank you Santosh and Anand. but i am facing this problem only with Tomcat 5.0 . Tomcat 4.0 is working perfectly fine. I changed the port number of 5.0 but the problem is still persisting. Can u please tell me as what I can do?
 
singh santosh
Ranch Hand
Posts: 136
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hi jyothi,
can u tell us what exception u r getting (just go and look into the Tomcat5.0/logs folder for the log)
and one more thing ,as u have said u r able to run tomcat4 but not 5 ,so
have u changed the environment variable(catalina_home) for tomcat5.0 correctly??

regards
-santosh
[ May 04, 2006: Message edited by: singh santosh ]
 
Jyothi Pathuri
Ranch Hand
Posts: 30
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Santosh,

There are no logs files in tomcat5.0\logs folder. Also there are no exceptions. I have set the CATALINA_HOME to the tomcat5.0 folder. The tomcat window is appearing for a moment but vanishing immediately.
 
Jyothi Pathuri
Ranch Hand
Posts: 30
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Santosh,

There are no logs files in tomcat5.0\logs folder. Also there are no exceptions. I have set the CATALINA_HOME to the tomcat5.0 folder. The tomcat window is appearing for a moment but vanishing immediately.
 
pie sneak
Posts: 4727
Mac VI Editor Ruby
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Jyothi, when I've used the more recent (5.x) versions of Tomcat I think I've used the Service Manager that comes with it, which appears as an icon in your Windows toolbar (bottom-right of screen). Have you tried that?
 
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I think the problem is your tomcat doesnot support the jdk which you are running. Try to check the compatiable jdk for your version of tomcat 5.
 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,
To see the exception run tomact by using catalina script as-
Run cammand 'catalina run' from bin directory so that the tomcat run in same window where you type the command and you can see the exception.

Hope this help you,
From,
sanjay
 
Ranch Hand
Posts: 100
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

You may not have set JAVA_HOME. Before installing tomcat5, u have to set JAVA_HOME in environmrnt variables. SO better way u uninstall tomcat5 & first set JAVA_HOME & then install Tomcat5. After completion of installation u set CATALINA_HOME to ur tomcat5 directory.
 
Ranch Hand
Posts: 35
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Did u try installing JDK1.5 and running TOMCAT5.0 in that ??
i think this will solve all u r problems ..

Tomcat5 specifically needs JAVA5 to work with ..
 
Ranch Hand
Posts: 168
Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by Narendran Nair:
Tomcat5 specifically needs JAVA5 to work with ..



I don't think so. I only have Java 1.4.2, but my Tomcat 5 is working well. And I don't have CATALINA_HOME in my environment variables.
[ May 10, 2006: Message edited by: Yosi Hendarsjah ]
 
Narendran Nair
Ranch Hand
Posts: 35
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Tomcat5 has shown these kind of problems when u have JDK1.4 in your system ..

I am not sure Yosi Hendarsjah why u r tomcat is working properly..
i had problems with tomcat5 and java1.4

please check whether u have the 1.5 as the JRE . run time .. (this is a strange guess of mine) ..
 
Ranch Hand
Posts: 96
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I have Tomcat 5 running on my machine at work, and I use J2SDK 1.4.2 to run it. There's a compatibility pack that I had to install to allow Tomcat 5.x to run using the Java 1.4. Check the Tomcat 5.x site and installation guide for more details on this.

Try that and see if it works.
 
Yosi Hendarsjah
Ranch Hand
Posts: 168
Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by Narendran Nair:
please check whether u have the 1.5 as the JRE . run time .. (this is a strange guess of mine) ..


I've created a JSP file that contains:

In the browser it displays:
JVM Version 1.4.2_06-b03

BTW, should this thread be moved to Products>>Tomcat/Apache forum?
 
Jyothi Pathuri
Ranch Hand
Posts: 30
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi ,

Thank you , thank you everybody. My tomcat5.0 is up and running fine. As Narendran Nair said, I have removed jdk1.4 and installed jdk1.5 . and set the CATALINA_HOME and JAVA_HOME paths. So i think tomcat5.0 needs jdk1.5.

Regards,
Jyothi
 
Yosi Hendarsjah
Ranch Hand
Posts: 168
Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by Jyothi Pathuri:
So i think tomcat5.0 needs jdk1.5.



No, it doesn't.
 
Narendran Nair
Ranch Hand
Posts: 35
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hello Yosi Hendarsjah,

Michael Valentino
I have Tomcat 5 running on my machine at work, and I use J2SDK 1.4.2 to run it. There's a compatibility pack that I had to install to allow Tomcat 5.x to run using the Java 1.4. Check the Tomcat 5.x site and installation guide for more details on this.



i think Michael made a point here .. you need to get the compatibility pack.. look like you have that thing in your system. that is why your Tomcat is working properly.. any way .. Tomcat is there, so that we can test our servlets .. jsp's .. jsf etc ... if its working . carry on with it man...

have a good day ..
reply
    Bookmark Topic Watch Topic
  • New Topic