• 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Devaka Cooray
  • Knute Snortum
  • Paul Clapham
  • Tim Cooke
Sheriffs:
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Bear Bibeault
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Ron McLeod
  • Piet Souris
  • Frits Walraven
Bartenders:
  • Ganesh Patekar
  • Tim Holloway
  • salvin francis

Tomcat doesn't start automatically in windows  RSS feed

 
Ranch Hand
Posts: 36
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I installed Tomcat 6.0 in my windows server 2008 R2.I setted CATALINA_HOME=C:\Program Files\Apache Software Foundation\Tomcat 6.0 JAVA_HOME=C:\Program Files\Java\jdk1.6.0_21. When I try to open with startup.bat.Tomcat is running.I can reach the localhost.But I want to get these things with automatically.When I open the start task manager.I cant see any tomcat or apache services.Just I can reach only with command prompt method(you can see the running black screen to below).How to open automatically without entering this parameter.

 
Ranch Hand
Posts: 624
9
BSD Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How did you "install"?
Did you run any .exe or you extracted tomcat from zip?
If you ran .exe, then I think it will automatically add the tomcat service in the windows services.
On a different note, I was never comfortable with tomcat as a service. I always use startup.bat in Windows.
 
dylan payne
Ranch Hand
Posts: 36
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I try to open with bin/tomcat6.exe but still same,I want to start tomcat with my System starts
 
Bartender
Posts: 11445
18
Android Eclipse IDE Google Web Toolkit Java Mac Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Did you check out the logs?
For Tomcat 6 I think they should be under TOMCAT_HOME/logs
Try to look for a file called catalina***.log
 
dylan payne
Ranch Hand
Posts: 36
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Maneesh Godbole wrote:Did you check out the logs?
For Tomcat 6 I think they should be under TOMCAT_HOME/logs
Try to look for a file called catalina***.log



What should look specificly in log file? I see the set get and connect methods?
 
Maneesh Godbole
Bartender
Posts: 11445
18
Android Eclipse IDE Google Web Toolkit Java Mac Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Check for the latest logfile by date. It should contain an output like the screenshot you posted.
Copy past the content here (Please UseCodeTags)
 
dylan payne
Ranch Hand
Posts: 36
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Maneesh Godbole wrote:Check for the latest logfile by date. It should contain an output like the screenshot you posted.
Copy past the content here (Please UseCodeTags)




 
Bartender
Posts: 20742
124
Android Eclipse IDE Java Linux Redhat Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Actually, it sounds like what you want is to run Tomcat as a windows System Service.

The standard Tomcat installable is a simple ZIP file that can be unzipped and launched manually under any OS. The Windows-specific distro has extra OS-specific stuff needed to register Tomcat as a system service. You would then use the Windows Service Manager (or whatever they call it this month) to handle both automatic and manual start/stop of Tomcat.

Note that if you installed the Windows service manager capable Tomcat and then launch Tomcat from the command line, you would likely end up with 2 copies of Tomcat running. And unless you explicitly defined an alternative configuration, they'd both be fighting for ownership of the Tomcat ports (8080, 8005, 8009 and 8443 by default).
 
dylan payne
Ranch Hand
Posts: 36
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Tim Holloway wrote:Actually, it sounds like what you want is to run Tomcat as a windows System Service.

The standard Tomcat installable is a simple ZIP file that can be unzipped and launched manually under any OS. The Windows-specific distro has extra OS-specific stuff needed to register Tomcat as a system service. You would then use the Windows Service Manager (or whatever they call it this month) to handle both automatic and manual start/stop of Tomcat.

Note that if you installed the Windows service manager capable Tomcat and then launch Tomcat from the command line, you would likely end up with 2 copies of Tomcat running. And unless you explicitly defined an alternative configuration, they'd both be fighting for ownership of the Tomcat ports (8080, 8005, 8009 and 8443 by default).




I found the main error.System doesnt know the tomcat.Tomcat is not a service in windows.Because I just copied rar files in this folder.How to define tomcat to windows as a service?(by the way ty for your helps)
 
Tim Holloway
Bartender
Posts: 20742
124
Android Eclipse IDE Java Linux Redhat Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Download and install the "32bit/64bit Windows Service Installer" from the Tomcat downloads page.
 
dylan payne
Ranch Hand
Posts: 36
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Tim Holloway wrote:Download and install the "32bit/64bit Windows Service Installer" from the Tomcat downloads page.



I coudlnt do that because system not mine.But I found the solution.I added shortcut Bootstrap jar file in to the startup file and its works.Ty so much for your helps
 
WHAT is your favorite color? Blue, no yellow, ahhhhhhh! Tiny ad:
how do I do my own kindle-like thing - without amazon
https://coderanch.com/t/711421/engineering/kindle-amazon
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!