• 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

 
Greenhorn
Posts: 28
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hi,
i'm using Apache Tomcat/4.1.27 and j2sdk1.4.2
i've set the port to 8888 and every thing was working fine. but when i restarted my system and started tomcat.. there's an error saying that the specified port is being used by some other application.
when i changed the port, it's working fine until i again restart my system..
O.S used is windows2000.
please someone help me overcome this problem..this is urgent..
thanks.
--sumana
 
Ranch Hand
Posts: 362
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I think some application is using that port
 
Author and all-around good cowpoke
Posts: 13078
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Did you take that installation option that installs Tomcat as a service? If so, then Tomcat is being started when your system is rebooted. What happens when you address localhost:8888 ?
Bill
 
sumana ar
Greenhorn
Posts: 28
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hi,
i've installed Tomcat as a service. when i use http://localhost:8888 its displaying the home page of Tomcat..but when i try to run any application, i get a "page cannot be displayed" error. and then when i try to start tomcat from the startup.sh in bin directory, a page opens up and closes immediately before i could read the contents...
as suggested by someone ...i've increased also the environment space, but was of no use.
what could be the reason...
--sumana
 
Ranch Hand
Posts: 31
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
If you see the Tomcat page at http://localhost:8888 then Tomcat is running. Like William Brogden said, since you have Tomcat running as a service it is started when your system is rebooted. So startup.sh is unsuccessful because Tomcat is already running.
The problems with your application ("page cannot be displayed" error) are a separate problem.
 
William Brogden
Author and all-around good cowpoke
Posts: 13078
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
If you have tomcat running, and put a new application in the webapps directory, Tomcat will NOT notice it automatically. There is a lovely management interface that lets you dynamically tell Tomcat to load/unload etc. applications without having to restart. Look at the Manager App HOW-TO in the docs that are installed with Tomcat.
Bill
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic