You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by sheetal <sh...@hsc.com> on 2006/08/23 11:56:10 UTC
When my JSP calls the action class SErvlet Exception is thrown.
Hi,
During deployment on tomcat,
when my jsp ties to invoke action class,
following error is flashed..
*type* Exception report
*message*
*description* _The server encountered an internal error () that
prevented it from fulfilling this request._
*exception*
javax.servlet.ServletException: Servlet execution threw an exception
*root cause*
java.lang.NoClassDefFoundError
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:494)
java.lang.Class.newInstance0(Class.java:350)
java.lang.Class.newInstance(Class.java:303)
org.apache.struts.util.RequestUtils.applicationInstance(RequestUtils.java:143)
org.apache.struts.action.RequestProcessor.processActionCreate(RequestProcessor.java:280)
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:218)
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1194)
org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:432)
javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
*note* _The full stack trace of the root cause is available in the
Apache Tomcat/5.5.17 logs.
_
_Does anybody has any idea why is it so...(Why is the servlet exceotion
thrown)
REgards,
Sheetal
_
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
Re: When my JSP calls the action class SErvlet Exception is thrown.
Posted by Monkeyden <mo...@gmail.com>.
You should really look at the Tomcat logs, as the message mentions. Perhaps
if you posted the root cause of the exception, and more context, someone
could help you. That said, what gives you the impression that it's the
Action and not something else, like the ActionForm? Did it manifest itself
on submit of the form? On load of the JSP? Is the ActionForm on the
classpath? What about the Action?
On 8/23/06, sheetal <sh...@hsc.com> wrote:
>
> Hi,
> During deployment on tomcat,
> when my jsp ties to invoke action class,
> following error is flashed..
>
> *type* Exception report
>
> *message*
>
> *description* _The server encountered an internal error () that
> prevented it from fulfilling this request._
>
> *exception*
>
> javax.servlet.ServletException: Servlet execution threw an exception
>
> *root cause*
>
> java.lang.NoClassDefFoundError
> 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:494)
> java.lang.Class.newInstance0(Class.java:350)
> java.lang.Class.newInstance(Class.java:303)
> org.apache.struts.util.RequestUtils.applicationInstance(
> RequestUtils.java:143)
> org.apache.struts.action.RequestProcessor.processActionCreate(
> RequestProcessor.java:280)
> org.apache.struts.action.RequestProcessor.process(
> RequestProcessor.java:218)
> org.apache.struts.action.ActionServlet.process(ActionServlet.java
> :1194)
> org.apache.struts.action.ActionServlet.doPost(ActionServlet.java
> :432)
> javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
> javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
>
> *note* _The full stack trace of the root cause is available in the
> Apache Tomcat/5.5.17 logs.
> _
>
> _Does anybody has any idea why is it so...(Why is the servlet exceotion
> thrown)
> REgards,
> Sheetal
> _
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>
Re: When my JSP calls the action class SErvlet Exception is thrown.
Posted by Scott Van Wart <sc...@indosoft.com>.
sheetal wrote:
>
> _Does anybody has any idea why is it so...(Why is the servlet
> exceotion thrown)
Couple of things to check:
- In struts-config.xml, make sure your package names and class names of
your <form-bean ...> and <action...> tags are all spelled correctly,
including case.
- Do the same for your ActionForm and Action classes, and make sure
they're in the packages you expect them to be in.
- As a last resort, try cleaning the deployment context (undeploying),
then clean->build your project and redeploy.
In short, it's probably a typo.
- Scott
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org