Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Stack over flow exception

 
krish chandru
Ranch Hand
Posts: 39
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 13071
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 39
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Bill Will have a try.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic