JSP 500 Errors

N

Nancy.Nicole

I apologize in advance if my question is easily answered (I've never
used JSP before). However, I've tried to fix this problem for days and
nothing I do seems to work. Please help if you can. Before you ask, I
have the jar file in both the WEB-INF\classes and \javalib directories.
Also, they are in a subfolder (my useBean id). I've tried to research
this but can't find an answer that seems to work.
Here's the error:

exception

org.apache.jasper.JasperException: Unable to load class for JSP
org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:510)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:375)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)

root cause

org.apache.jasper.JasperException: Unable to load class for JSP
org.apache.jasper.JspCompilationContext.load(JspCompilationContext.java:598)
org.apache.jasper.servlet.JspServletWrapper.getServlet(JspServletWrapper.java:147)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:315)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)

root cause

java.lang.ClassNotFoundException: org.apache.jsp.test2_jsp
java.net.URLClassLoader$1.run(Unknown Source)
java.security.AccessController.doPrivileged(Native Method)
java.net.URLClassLoader.findClass(Unknown Source)
org.apache.jasper.servlet.JasperLoader.loadClass(JasperLoader.java:133)
org.apache.jasper.servlet.JasperLoader.loadClass(JasperLoader.java:65)
org.apache.jasper.JspCompilationContext.load(JspCompilationContext.java:596)
org.apache.jasper.servlet.JspServletWrapper.getServlet(JspServletWrapper.java:147)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:315)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)


Thanks sooo much to anyone who can help!
-Nancy
 
?

=?ISO-8859-1?Q?Arne_Vajh=F8j?=

I apologize in advance if my question is easily answered (I've never
used JSP before). However, I've tried to fix this problem for days and
nothing I do seems to work. Please help if you can. Before you ask, I
have the jar file in both the WEB-INF\classes and \javalib directories.
Also, they are in a subfolder (my useBean id). I've tried to research
this but can't find an answer that seems to work.

I do not know if it is the cause of your problem, but jar files
should be in WEB-INF\lib !

If fixing that does not solve the problem, then you need
to post more info like code snippet and an overview of
files and directories.

Arne
 
N

Nancy.Nicole

Thank you for your response :) . This is my first time working with JAR
files. Is the *.jar file the only file that needs to go in the
WEB-INF\lib folder? The classes go in the WEB-INF\classes folder,
correct?

Thanks,
Nancy
 
?

=?ISO-8859-1?Q?Arne_Vajh=F8j?=

Thank you for your response :) . This is my first time working with JAR
files. Is the *.jar file the only file that needs to go in the
WEB-INF\lib folder? The classes go in the WEB-INF\classes folder,
correct?

class files goes on WEB-INF\classes\xxxx where xxxx
is the package of the classes.

Arne
 
A

Andrew Thompson

(e-mail address removed) wrote:

Please refrain from top-posting. It is very confusing.
Should the package be named the same as my jar file or does that
matter?

A Jar file might contain classes from many packages.
The name of the Jar is not connected with the name
of the package(s) it contains (though ideally, the Jar
name should be as 'meaningful' to the classes it contains).

Andrew T.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,773
Messages
2,569,594
Members
45,114
Latest member
GlucoPremiumReview
Top