struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Li <ampyx...@gmail.com>
Subject Re: Problem in JSP. help me pls
Date Mon, 02 Jul 2007 06:07:06 GMT
Hi bindu,

you dont have to put your tomcat\lib, and your jre\lib onto your classpath,
when tomcat load up your JSP, its classloader will checkout libs that are
needed ... also, it is a very bad idea to export same jar from different
location ...

Clean up your classpath, it should work.

Regards

Li

On 7/2/07, gundakiran <gundakiran@gmail.com> wrote:
>
>
> If you see your classpath, you have two different versions of
> servlet-api.jar.. and moreover in the systems classpath, I suggest not to
> keep any tomcat or any specific jar files except your JDK/JRE jar files..
> and whe n you deploy your web-app and if you have all jars included in
> your
> web-inf/lib then container can properly load your application.. so cleanup
> your classpath.. and try..
>
> good luck
>
>
>
> bindhu wrote:
> >
> > hi kiran,
> >
> >    thank u for ut reply. i have all the dependencies in my WEB-INF\lib
> > directory. struts-trmplate, struts-logic, struts-form, struts-bean,
> > struts. still i face thsi same error.
> >
> > and my class path is as follows
> >
> > CLASSPATH=C:\apache-tomcat-6.0.13\lib\servlet-api.jar;C:\Program
> > Files\Java\jdk1
> > .6.0_01\lib\servlet-api.jar;C:\struts1.3.8\lib\*;C:\apache-
> tomcat-6.0.13\lib\*;C
> > :\Program Files\Java\jre1.6.0_01\lib\*
> >
> >
> > bindhu wrote:
> >>
> >> hai,
> >>
> >>     when trying to open my jsp page in browser i get this error. can
> >> anyone plas help me.
> >> type Exception report
> >>
> >> message
> >>
> >> description The server encountered an internal error () that prevented
> it
> >> from fulfilling this request.
> >>
> >> exception
> >>
> >> org.apache.jasper.JasperException: javax.servlet.ServletException:
> >> java.lang.NoClassDefFoundError: Could not initialize class
> >> org.apache.struts.taglib.html.FormTag
> >>
> >> org.apache.jasper.servlet.JspServletWrapper.handleJspException(
> JspServletWrapper.java:541)
> >>
> >> org.apache.jasper.servlet.JspServletWrapper.service(
> JspServletWrapper.java:417)
> >>      org.apache.jasper.servlet.JspServlet.serviceJspFile(
> JspServlet.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: Could
> not
> >> initialize class org.apache.struts.taglib.html.FormTag
> >>
> >> org.apache.jasper.runtime.PageContextImpl.doHandlePageException(
> PageContextImpl.java:850)
> >>
> >> org.apache.jasper.runtime.PageContextImpl.handlePageException(
> PageContextImpl.java:779)
> >>      org.apache.jsp.register_jsp._jspService(register_jsp.java:80)
> >>      org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
> >>      javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
> >>
> >> org.apache.jasper.servlet.JspServletWrapper.service(
> JspServletWrapper.java:393)
> >>      org.apache.jasper.servlet.JspServlet.serviceJspFile(
> JspServlet.java:320)
> >>      org.apache.jasper.servlet.JspServlet.service(JspServlet.java:266)
> >>      javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
> >>
> >>
> >> root cause
> >>
> >> java.lang.NoClassDefFoundError: Could not initialize class
> >> org.apache.struts.taglib.html.FormTag
> >>      sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native
> Method)
> >>
> >> sun.reflect.NativeConstructorAccessorImpl.newInstance(
> NativeConstructorAccessorImpl.java:39)
> >>
> >> sun.reflect.DelegatingConstructorAccessorImpl.newInstance(
> DelegatingConstructorAccessorImpl.java:27)
> >>      java.lang.reflect.Constructor.newInstance(Constructor.java:513)
> >>      java.lang.Class.newInstance0(Class.java:355)
> >>      java.lang.Class.newInstance(Class.java:308)
> >>      org.apache.jasper.runtime.TagHandlerPool.get(TagHandlerPool.java
> :126)
> >>
> >> org.apache.jsp.register_jsp._jspx_meth_form_005fform_005f0
> (register_jsp.java:92)
> >>      org.apache.jsp.register_jsp._jspService(register_jsp.java:73)
> >>      org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
> >>      javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
> >>
> >> org.apache.jasper.servlet.JspServletWrapper.service(
> JspServletWrapper.java:393)
> >>      org.apache.jasper.servlet.JspServlet.serviceJspFile(
> JspServlet.java:320)
> >>      org.apache.jasper.servlet.JspServlet.service(JspServlet.java:266)
> >>      javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
> >>
> >>
> >> note The full stack trace of the root cause is available in the Apache
> >> Tomcat/6.0.13 logs.
> >>
> >>
> >>
> >
> >
>
> --
> View this message in context:
> http://www.nabble.com/Problem-in-JSP.-help-me-pls-tf4010261.html#a11388727
> Sent from the Struts - User mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>


-- 
Small win by playing smart
Big win by playing honest

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message