Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

No Context Configured To Process This Request  RSS feed

 
Luke Shannon
Ranch Hand
Posts: 239
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 ]
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It sounds like Tomcat crashed but your webserver & connector were still recieving the requests.
Or... are you running Tomcat as a standalone?
 
Luke Shannon
Ranch Hand
Posts: 239
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What does that mean running it as a stand alone?
 
clive jordan
Ranch Hand
Posts: 39
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
standalone:

This means you are running Tomcat in isolation rather than piggy-backing it to Apache.
 
Luke Shannon
Ranch Hand
Posts: 239
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 13411
Firefox Browser Redhat VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm surprised that Tomcat is crashing without anything going to the logs.
Are they empty?
 
Luke Shannon
Ranch Hand
Posts: 239
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 13411
Firefox Browser Redhat VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 239
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!