Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Web Tools Project (WTP) » jsp + jar
jsp + jar [message #499425] Sun, 22 November 2009 12:33 Go to next message
moshi  is currently offline moshi Friend
Messages: 28
Registered: November 2009
Junior Member
Hi, I'm trying to call a jar thru a jsp page.
The jsp is recognizing the class I use in the jar, but when I run the jsp, I get an exception that I really don't know how to deal with.
please help... :

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

exception
org.apache.jasper.JasperException: javax.servlet.ServletException: java.lang.NoClassDefFoundError: Hasp/hasp_demo
org.apache.jasper.servlet.JspServletWrapper.handleJspExcepti on(JspServletWrapper.java:541)
org.apache.jasper.servlet.JspServletWrapper.service(JspServl etWrapper.java:417)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServl et.java:320)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java :266)
javax.servlet.http.HttpServlet.service(HttpServlet.java:803)

root cause
javax.servlet.ServletException: java.lang.NoClassDefFoundError: Hasp/hasp_demo
org.apache.jasper.runtime.PageContextImpl.doHandlePageExcept ion(PageContextImpl.java:850)
org.apache.jasper.runtime.PageContextImpl.handlePageExceptio n(PageContextImpl.java:779)
org.apache.jsp.test_jsp._jspService(test_jsp.java:75)
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.ja va:70)
javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
org.apache.jasper.servlet.JspServletWrapper.service(JspServl etWrapper.java:393)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServl et.java:320)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java :266)
javax.servlet.http.HttpServlet.service(HttpServlet.java:803)

root cause
java.lang.NoClassDefFoundError: Hasp/hasp_demo
org.apache.jsp.test_jsp._jspService(test_jsp.java:65)
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.ja va:70)
javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
org.apache.jasper.servlet.JspServletWrapper.service(JspServl etWrapper.java:393)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServl et.java:320)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java :266)
javax.servlet.http.HttpServlet.service(HttpServlet.java:803)

Re: jsp + jar [message #499498 is a reply to message #499425] Mon, 23 November 2009 03:35 Go to previous message
Nitin Dahyabhai is currently offline Nitin DahyabhaiFriend
Messages: 2337
Registered: July 2009
Senior Member
moshi wrote:
> Hi, I'm trying to call a jar thru a jsp page.
> The jsp is recognizing the class I use in the jar, but when I run the
> jsp, I get an exception that I really don't know how to deal with.
> please help... :
>
> The server encountered an internal error () that prevented it from
> fulfilling this request.
>
> exception org.apache.jasper.JasperException:
> javax.servlet.ServletException: java.lang.NoClassDefFoundError:
> Hasp/hasp_demo
....

Usually this indicates that the jar hasn't been deployed to the
server. If it's not in the WEB-INF/lib folder of your Dynamic Web
Project, you might need to go to the project's Java EE Module
Dependencies property page (select Properties from the project's
context menu) and tell it to include the jar.

--
---
Nitin Dahyabhai
Eclipse WTP Source Editing
IBM Rational


---
Nitin Dahyabhai
Eclipse WTP, IBM
Previous Topic:Refreshing Tomcat Server state
Next Topic:Problem with annotations in a dynamic web project
Goto Forum:
  


Current Time: Fri Nov 28 13:42:10 GMT 2014

Powered by FUDForum. Page generated in 0.01698 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software