You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Ezequiel Puig <e....@vivacances.fr> on 2007/10/03 16:56:23 UTC

RE : RE : Struts Application is not working

Uppps,
That's for Struts 2.

-----Message d'origine-----
De : Ezequiel Puig 
Envoyé : mercredi 3 octobre 2007 16:53
À : Struts Users Mailing List
Objet : RE : Struts Application is not working

Hi,

Take a look at: http://struts.apache.org/2.x/docs/simple-setup.html. There you will find the minimum configuration.

Regards,

Ezequiel.

-----Message d'origine-----
De : Rick Reumann [mailto:rick.reumann@gmail.com] 
Envoyé : mercredi 3 octobre 2007 16:42
À : Struts Users Mailing List
Objet : Re: Struts Application is not working

There are a ton of things that can cause the obscure error you are
witnessing. You have to make sure the doctype definitions are correct
as well for web.xml and struts-config. I'd start with a working
example web.xml and struts-config (maybe the example app struts comes
with - and then start swapping in your stuff.)

On 10/3/07, aum strut <au...@gmail.com> wrote:
> 1 antlr
> 2 commons-beanutils
> 3 commons-digester
> 4 commons-fileupload
> 5 commons-logging
> 6  commons-validator
> 7 jakarta-oro
> 8 struts
>
>
> These are the jar flies in the lib folder
>
>
> On 10/3/07, Dave Newton <ne...@yahoo.com> wrote:
> >
> > At first glance it seems okay; maybe somebody else
> > will chime in. What library / jar files do you have in
> > WEB-INF/lib?
> >
> > d.
> >
> > --- aum strut <au...@gmail.com> wrote:
> >
> > > hi dave i m pasting my struts-config file for the
> > > refrence.and as par the
> > > dependencies i have used myeclipse as developing
> > > enviornment so it might be
> > > possible that there is something wrong as i
> > > downloaded an example in warfile
> > > form and when i deploy it in tomcat it worked fine
> > > but when i put my class
> > > files and configuredthe struts-config file according
> > > to my application it
> > > stoped working.All this has put me in a strange
> > > condition as i haven't
> > > changed any library file.
> > >
> > > below is my struts config file..
> > >
> > >
> > > <struts-config>
> > >
> > > <form-beans>
> > >
> > > <form-bean name="registerForm"
> > > type="aum.struts.actionform.RegisterForm"/>
> > >
> > > </form-beans>
> > >
> > > <action-mappings>
> > >
> > > <action path="/register"
> > >
> > > type="aum.struts.action.RegisterAction"
> > >
> > > name="registerForm">
> > >
> > > <forward name="sucess" path="/sucess.html"
> > > redirect="true"/>
> > >
> > > <forward name="failure" path="/failure.html"
> > > redirect="true"/>
> > >
> > > </action>
> > >
> > > </action-mappings>
> > >
> > > </struts-config>
> > > Regards,
> > > Umesh
> > >
> > >
> > > On 10/3/07, Dave Newton <ne...@yahoo.com>
> > > wrote:
> > > >
> > > > --- aum strut <au...@gmail.com> wrote:
> > > > > thks ajay for helping me out but can u point out
> > > > > watcan be the cause of this error as pari know i
> > > > have
> > > > > configured the appliocation correctly...
> > > >
> > > > Without your struts config file we can't help very
> > > > much -- *something* is wrong with either your
> > > library
> > > > dependencies, a configuration file, etc. otherwise
> > > it
> > > > would work, no?
> > > >
> > > > d.
> > > >
> > > >
> > > >
> > >
> > ---------------------------------------------------------------------
> > > > To unsubscribe, e-mail:
> > > user-unsubscribe@struts.apache.org
> > > > For additional commands, e-mail:
> > > user-help@struts.apache.org
> > > >
> > > >
> > >
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> > For additional commands, e-mail: user-help@struts.apache.org
> >
> >
>


-- 
Rick

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Re: RE : RE : Struts Application is not working

Posted by aum strut <au...@gmail.com>.
I m getting the follwing exception in Tomcat

---- Root Cause -----
java.lang.ClassNotFoundException: org.apache.struts.action.ActionServlet
 at org.apache.catalina.loader.WebappClassLoader.loadClass(
WebappClassLoader.java:1340)
 at org.apache.catalina.loader.WebappClassLoader.loadClass(
WebappClassLoader.java:1189)
 at org.apache.catalina.core.StandardWrapper.loadServlet(
StandardWrapper.java:964)
 at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:862)
 at org.apache.catalina.core.StandardContext.loadOnStartup(
StandardContext.java:4013)
 at org.apache.catalina.core.StandardContext.start(StandardContext.java
:4357)
 at org.apache.catalina.core.ContainerBase.addChildInternal(
ContainerBase.java:823)
 at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:807)
 at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:595)
 at org.apache.catalina.core.StandardHostDeployer.install(
StandardHostDeployer.java:277)
 at org.apache.catalina.core.StandardHost.install(StandardHost.java:832)
 at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java
:701)
 at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:432)
 at org.apache.catalina.startup.HostConfig.start(HostConfig.java:983)
 at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java
:349)
 at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(
LifecycleSupport.java:119)
 at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1091)
 at org.apache.catalina.core.StandardHost.start(StandardHost.java:789)
 at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1083)
 at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:478)
 at org.apache.catalina.core.StandardService.start(StandardService.java:480)
 at org.apache.catalina.core.StandardServer.start(StandardServer.java:2313)
 at org.apache.catalina.startup.Catalina.start(Catalina.java:556)
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at sun.reflect.NativeMethodAccessorImpl.invoke(
NativeMethodAccessorImpl.java:39)
 at sun.reflect.DelegatingMethodAccessorImpl.invoke(
DelegatingMethodAccessorImpl.java:25)
 at java.lang.reflect.Method.invoke(Method.java:585)
 at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:287)
 at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:425)

Action Class
*

public* *class* RegisterAction *extends* Action{

*public* ActionForward execute(ActionForm form,ActionMapping
mapping,HttpServletRequest request,HttpServletResponse
response)*throws*Exception{

*

return* (mapping.findForward("success"));

}

}
Rest i have already pastedmy struts-config file.Please tell me where i am
wrong????
:(


On 10/3/07, Ezequiel Puig <e....@vivacances.fr> wrote:
>
> Uppps,
> That's for Struts 2.
>
> -----Message d'origine-----
> De: Ezequiel Puig
> Envoyé: mercredi 3 octobre 2007 16:53
> À: Struts Users Mailing List
> Objet: RE : Struts Application is not working
>
> Hi,
>
> Take a look at: http://struts.apache.org/2.x/docs/simple-setup.html. There
> you will find the minimum configuration.
>
> Regards,
>
> Ezequiel.
>
> -----Message d'origine-----
> De: Rick Reumann [mailto:rick.reumann@gmail.com]
> Envoyé: mercredi 3 octobre 2007 16:42
> À: Struts Users Mailing List
> Objet: Re: Struts Application is not working
>
> There are a ton of things that can cause the obscure error you are
> witnessing. You have to make sure the doctype definitions are correct
> as well for web.xml and struts-config. I'd start with a working
> example web.xml and struts-config (maybe the example app struts comes
> with - and then start swapping in your stuff.)
>
> On 10/3/07, aum strut <au...@gmail.com> wrote:
> > 1 antlr
> > 2 commons-beanutils
> > 3 commons-digester
> > 4 commons-fileupload
> > 5 commons-logging
> > 6  commons-validator
> > 7 jakarta-oro
> > 8 struts
> >
> >
> > These are the jar flies in the lib folder
> >
> >
> > On 10/3/07, Dave Newton <ne...@yahoo.com> wrote:
> > >
> > > At first glance it seems okay; maybe somebody else
> > > will chime in. What library / jar files do you have in
> > > WEB-INF/lib?
> > >
> > > d.
> > >
> > > --- aum strut <au...@gmail.com> wrote:
> > >
> > > > hi dave i m pasting my struts-config file for the
> > > > refrence.and as par the
> > > > dependencies i have used myeclipse as developing
> > > > enviornment so it might be
> > > > possible that there is something wrong as i
> > > > downloaded an example in warfile
> > > > form and when i deploy it in tomcat it worked fine
> > > > but when i put my class
> > > > files and configuredthe struts-config file according
> > > > to my application it
> > > > stoped working.All this has put me in a strange
> > > > condition as i haven't
> > > > changed any library file.
> > > >
> > > > below is my struts config file..
> > > >
> > > >
> > > > <struts-config>
> > > >
> > > > <form-beans>
> > > >
> > > > <form-bean name="registerForm"
> > > > type="aum.struts.actionform.RegisterForm"/>
> > > >
> > > > </form-beans>
> > > >
> > > > <action-mappings>
> > > >
> > > > <action path="/register"
> > > >
> > > > type="aum.struts.action.RegisterAction"
> > > >
> > > > name="registerForm">
> > > >
> > > > <forward name="sucess" path="/sucess.html"
> > > > redirect="true"/>
> > > >
> > > > <forward name="failure" path="/failure.html"
> > > > redirect="true"/>
> > > >
> > > > </action>
> > > >
> > > > </action-mappings>
> > > >
> > > > </struts-config>
> > > > Regards,
> > > > Umesh
> > > >
> > > >
> > > > On 10/3/07, Dave Newton <ne...@yahoo.com>
> > > > wrote:
> > > > >
> > > > > --- aum strut <au...@gmail.com> wrote:
> > > > > > thks ajay for helping me out but can u point out
> > > > > > watcan be the cause of this error as pari know i
> > > > > have
> > > > > > configured the appliocation correctly...
> > > > >
> > > > > Without your struts config file we can't help very
> > > > > much -- *something* is wrong with either your
> > > > library
> > > > > dependencies, a configuration file, etc. otherwise
> > > > it
> > > > > would work, no?
> > > > >
> > > > > d.
> > > > >
> > > > >
> > > > >
> > > >
> > > ---------------------------------------------------------------------
> > > > > To unsubscribe, e-mail:
> > > > user-unsubscribe@struts.apache.org
> > > > > For additional commands, e-mail:
> > > > user-help@struts.apache.org
> > > > >
> > > > >
> > > >
> > >
> > >
> > > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> > > For additional commands, e-mail: user-help@struts.apache.org
> > >
> > >
> >
>
>
> --
> Rick
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>