File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes IDEs, Version Control and other tools and the fly likes Phantom error in Tomcat! Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » IDEs, Version Control and other tools
Bookmark "Phantom error in Tomcat!" Watch "Phantom error in Tomcat!" New topic

Phantom error in Tomcat!

Reinaldo de Oliveira Castro

Joined: Jul 06, 2006
Posts: 3

I have a big problem in Tomcat that I already spent two days and didn't find any solution.

This is the error:

It's really unusual because the error only happens in my computer! When I put the same .war in other computers (same and diferent versions of Tomcat), the application run without problems. Other web applications run without problem in my computer.

Nothing is wrote in Tomcat's log. The last message is that the server was initialized with success.

I'm executing the application in Netbeans 5.0, but I alredy installed another Tomcat separated from the Netbeans. The error continues.

I alredy clean and rebuild (Netbeans command) the application many, many times, I'm alredy undeploy and deploy the application many, many times. The error continues.

I alredy reinstalled different versions of JDK. The error continues.

I alredy reinstalled Netbeans. The error continues.

I carried the source code into another computer and recompiled it. It works very well...

Any suggestions will be appreciated.

Softwares in use:

- Jdk 1.5.0_07
- Netbeans 5.0
- Struts 1.2.7
- Hibernate 3.0.5

Thanks in advance.

Carl Trusiak

Joined: Jun 13, 2000
Posts: 3340
If you already have a Tomcat running and are trying to run the Tomcat inside Netbeans, more than likely it is failing to start because the port is already bound. You need to specify different port numbers for the Tomcat in Netbeans to use to prevent this from occurring or, shutdown the other running Tomcat before attempting this.

The 503 is probably coming from the other running Tomcat which doesn't have that webapp installed!

I Hope This Helps
Carl Trusiak, SCJP2, SCWCD
Bear Bibeault
Author and ninkuma

Joined: Jan 10, 2002
Posts: 63866

Moved to the IDEs forum since this is not a general servlets questions, but one on using Netbeans.
[ July 06, 2006: Message edited by: Bear Bibeault ]

[Asking smart questions] [About Bear] [Books by Bear]
Reinaldo de Oliveira Castro

Joined: Jul 06, 2006
Posts: 3
Thanks, Carl, but the ports aren't the same (8080 in console and 8084 in ide). And I had try use just the console before (the ide was closed for sure), but still don't work.

Thanks by your atention again.
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 17417

If you've reinstalled everything, the problem is the same on both Netbeans and standalone Tomcat and it's ONLY on your computer, I'd recommend running a memory test.

But you should have gotten a log message when the servlet context was mapped - or when the initialization failed and the mapping was cancelled.

Also, check to see if you have enough RAM. When memory gets tight, things tend to close down in mysterious ways.

An IDE is no substitute for an Intelligent Developer.
I agree. Here's the link:
subject: Phantom error in Tomcat!
jQuery in Action, 3rd edition