This week's giveaway is in the Spring forum.
We're giving away four copies of Learn Spring Security (video course) and have Eugen Paraschiv on-line!
See this thread for details.
Win a copy of Learn Spring Security (video course) this week in the Spring forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Phantom error in Tomcat!

 
Reinaldo de Oliveira Castro
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi!

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.

Reinaldo.
 
Carl Trusiak
Sheriff
Posts: 3341
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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!
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64606
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 ]
 
Reinaldo de Oliveira Castro
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 17987
47
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic