File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Tomcat and the fly likes Tomcat startup problem Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Tomcat
Bookmark "Tomcat startup problem" Watch "Tomcat startup problem" New topic

Tomcat startup problem

Kacee Saxena
Ranch Hand

Joined: Mar 04, 2008
Posts: 54
[img]Dear all,

I am pissed off with Tomcat
Problem started with "duplicate instance of application " -> " java binding error on default port" -> "Start /shutdown of tomcat"

I re-installed and configured tomcat multiple times on eclipse. Currently having all fresh instance and set up configured on eclipse. Still have following problem:

When i start my server - eclipse showing status as started, but can not open "http://localhost:8080"

And when status shows "stopped", i could see " "http://localhost:8080""

Scenarios attached with post.

Please help :banghead:[/img]

[Thumbnail for Tomcat-Stop.JPG]

[Thumbnail for Tomcat-start.JPG]

Kacee Saxena
Ranch Hand

Joined: Mar 04, 2008
Posts: 54
Somehow , issue is resolved.
Although i did not do anything new.

Now, on start status, i can see lcoalhost homepage.

Now, the problem is i am not able to deploy application when i select option - 'Run As " -> Run on server in eclipse for one of the working web applciation.

I checked physical location of tomcat_home/webapps directory and could not see my deployed application. Can someone suggest how to verify if the application is deployed through while runnign from eclipse?

Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 17417

You were pissed at Tomcat, but it's not Tomcat's fault that the WTP Tomcat subsystem in Eclipse is an abomination. I've gone back to the sysdeo plugin and life is much happier.

There is a Tomcat Manager webapp and a link to it on your Tomcat server's home page, assuming you didn't replace the default application.You might have to download and deploy the manager webapp, however. It's not provided with the basic Tomcat download anymore. For security reasons, I suspect.

You should also be able to use jconsole to check the status of deployed webapps.

Checking the webapp directory is meaningless. Yes, dropping a WAR in TOMCAT_HOME/webapps will deploy it (assuming that the app CAN be deployed), but it's possible to deploy webapps in tomcat without using the webapp directory at all. Most of my WARs aren't present in the webapps directory, in fact.

An IDE is no substitute for an Intelligent Developer.
Kacee Saxena
Ranch Hand

Joined: Mar 04, 2008
Posts: 54
Yes, I could see my application deployed on Tomcat Manager webpage , only when i am manually placing .war file to /webapps.

But I can not see application deployed, if I try to do deploy from Eclipse. Neither console is giving any error message.


Say if i go for manual option, while deploying through Tomcat Manager, correct URL is not gettign formed.
i.e. I have URL defined llike this in my wsdl file

<wsdlsoap:address location="http://localhost:8080/testService2/services/HelloService"/>

whereas, when i deploy it, the URL shows : http://localhost:8080/testService2/
I think somewhere other than wsdl file, i need to specify "the left over URL paramaters"
Can anyone please please help me.

I agree. Here's the link:
subject: Tomcat startup problem
jQuery in Action, 3rd edition