Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

javax.servlet.ServletException  RSS feed

 
nam pet
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I got the error message when moving the files from old mechine to a new mechine
this code for displaying captcha (cap.jsp)

error code is
type Exception report

message

description The server encountered an internal error () that prevented it from fulfilling this request.

exception

javax.servlet.ServletException
org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl.java:867)
org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:800)
org.apache.jsp.cap_jsp._jspService(cap_jsp.java:218)
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:133)
javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:311)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:301)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:248)
javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
root cause

java.lang.NoClassDefFoundError
org.apache.jsp.cap_jsp._jspService(cap_jsp.java:86)
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:133)
javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:311)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:301)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:248)
javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
note The full stack trace of the root cause is available in the Tomcat logs.

the env varibales of the new mechine is
PATH=/usr/kerberos/sbin:/usr/kerberos/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/opt/j2sdk_nb/j2sdk1.4.2/bin:/opt/j2sdk_nb/j2sdk1.4.2/jre/bin::/root/bin
INPUTRC=/etc/inputrc
PWD=/root
JAVA_HOME=/opt/j2sdk_nb/j2sdk1.4.2/

please help me
 
bhanu chowdary
Ranch Hand
Posts: 256
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
nam pet wrote:
java.lang.NoClassDefFoundError
org.apache.jsp.cap_jsp._jspService(cap_jsp.java:86)
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:133)
javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:311)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:301)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:248)
javax.servlet.http.HttpServlet.service(HttpServlet.java:856)


Classpath problem. Your JVM is not able to locate the .class files your are using. Make sure whatever you are using is on the classpath.
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 65828
134
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
bhanu chowdary wrote:
Classpath problem. Your JVM is not able to locate the .class files your are using. Make sure whatever you are using is on the classpath.

Not correct. At run time, containers ignore the classpath. Jars that the web app needs should be placed in WEB-INF/lib.
 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13078
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Tomcat installs typically have a class-loader-howto.html file under webapps/doc which explains in detail where Tomcat looks for library files.

Bill
 
bhanu chowdary
Ranch Hand
Posts: 256
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Bear Bibeault wrote:
bhanu chowdary wrote:
Classpath problem. Your JVM is not able to locate the .class files your are using. Make sure whatever you are using is on the classpath.

Not correct. At run time, containers ignore the classpath. Jars that the web app needs should be placed in WEB-INF/lib.

I should have been more careful while reading the post. The moment I saw the error I jumped on to this conclusion. Thanks Bear
 
nam pet
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thanks 4 the reply .

i m verify all the jar files in WEB-INF dir. all are same(new pc and Old one)
but still get the error message.
i m test with another code for recaptcha.
that time getting the same error message.
i think java graphics not displaying . is there any other settings needed (java graphics files/jar) ??
 
Paul Clapham
Sheriff
Posts: 22185
38
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Have you determined which class is missing yet?
 
nam pet
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
not determined yet.
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 65828
134
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
When you determine the missing class you'll know what you need to put into WEB-INF/lib.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!