aspose file tools*
The moose likes Tomcat and the fly likes No Context Configured To Process This Request Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark "No Context Configured To Process This Request" Watch "No Context Configured To Process This Request" New topic
Author

No Context Configured To Process This Request

Luke Shannon
Ranch Hand

Joined: Sep 30, 2004
Posts: 239
Hello;

I have a Java Application running on Tomcat. Twice now, I will go to call a servlet during a period of time when everything was working fine and get a HTTP Status 500: No Context Configured To Process This Request.

When I check the processes running there is no Java process running.

A restart of Tomcat fixes it.

Is something not configured correctly? How can this happen during processing? Could a process hogging too much memory cause this?

Thanks,

Luke

[ October 05, 2005: Message edited by: Luke Shannon ]
[ October 05, 2005: Message edited by: Luke Shannon ]

Luke
SCJP
Ben Souther
Sheriff

Joined: Dec 11, 2004
Posts: 13410

It sounds like Tomcat crashed but your webserver & connector were still recieving the requests.
Or... are you running Tomcat as a standalone?


Java API J2EE API Servlet Spec JSP Spec How to ask a question... Simple Servlet Examples jsonf
Luke Shannon
Ranch Hand

Joined: Sep 30, 2004
Posts: 239
What does that mean running it as a stand alone?
clive jordan
Ranch Hand

Joined: Apr 27, 2005
Posts: 39
standalone:

This means you are running Tomcat in isolation rather than piggy-backing it to Apache.
Luke Shannon
Ranch Hand

Joined: Sep 30, 2004
Posts: 239
Ah, ok.

I am using mod_jk to forward request from Apache to Tomcat, so I guess the answer is no.

I guess what I am looking for is the best way to go about trouble shooting this. It happens intermittently and the logs aren't telling me anything. Could this be a mod_jk config issue? Could a very heavy Java process being repeated cause Tomcat to crash?

Thanks,

Luke
Ben Souther
Sheriff

Joined: Dec 11, 2004
Posts: 13410

I'm surprised that Tomcat is crashing without anything going to the logs.
Are they empty?
Luke Shannon
Ranch Hand

Joined: Sep 30, 2004
Posts: 239
Well the localhost log doesn't contain a whole lot.

I have log4j configured.

All my packages have appenders and write to specific files. I have search them for errors and not found anything.

I hope I am not losing any log information the way I have it set up.

Luke
Ben Souther
Sheriff

Joined: Dec 11, 2004
Posts: 13410

This is probably a dumb question but I've thrown it out before and had it hit the target really.:

Is there anyone on that machine who might be typing "killall java" to stop a process?
Luke Shannon
Ranch Hand

Joined: Sep 30, 2004
Posts: 239
I don't think this is the case.

I think I have a memory leak somewhere in my application. After a couple of days I think the whole thing just crashes.

My solution for now is I am going to put a cron job on the server that restarts Tomcat every 48hrs very late at night.

This should take care of it.

Thanks for the help,

Luke
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: No Context Configured To Process This Request
 
Similar Threads
Frame Work For Handling Forms
Selecting Multiple Files For Upload
File Selector
Java Version Of Majordomo?
WSAD+tomcat