This week's book giveaway is in the Mac OS forum.
We're giving away four copies of a choice of "Take Control of Upgrading to Yosemite" or "Take Control of Automating Your Mac" and have Joe Kissell on-line!
See this thread for details.
The moose likes Tomcat and the fly likes Stack over flow exception Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Products » Tomcat
Bookmark "Stack over flow exception" Watch "Stack over flow exception" New topic
Author

Stack over flow exception

krish chandru
Ranch Hand

Joined: Apr 27, 2001
Posts: 39
Dear All,
I am running Apache Tom cat 5.0.2. I am trying to deploy the application that contains, Classes and jsps. I copied all the classes to WEB-INF\classes. The Jsp fils are in the root of the web app. My web app is directly under the folder Webapps.

My folder structure
webapps\<MYAPP>\*.jsp
webapps\<MYAPP>\WEB-INF\classes\*.class
webapps\<MYAPP>\WEB-INF\web.xml

But I dont have any mapping to the controller servlet I have, as one of my friends told I dont have to have that entry in the web.xml as all the files are directly under webapps.

Now When I try to launch the page, I am getting the following error in catalina log. *I dont have clues abt this one*. Kindly throw some light.

Dec 10, 2004 5:56:42 PM org.apache.jasper.runtime.JspFactoryImpl internalGetPageContext
SEVERE: Exception initializing page context
java.lang.StackOverflowError

kaycee
William Brogden
Author and all-around good cowpoke
Rancher

Joined: Mar 22, 2000
Posts: 12791
    
    5
That sounds like some sort of error in the JSP page initialization code. Try a much simpler page or even back off to a static HTML page.

But I dont have any mapping to the controller servlet I have, as one of my friends told I dont have to have that entry in the web.xml as all the files are directly under webapps.

Your friend is confusing you. Your controller servlet should be configured in web.xml - including the URL mapping that will lead to it.
Bill
krish chandru
Ranch Hand

Joined: Apr 27, 2001
Posts: 39
Thanks Bill Will have a try.
 
GeeCON Prague 2014
 
subject: Stack over flow exception