Newsgroup: it.comp.java
Titolo: Tomcat e struts 1.1

Uso tomcat 4.1.24 e sto provando ad utilizzare struts 1.1.
Purtroppo quando avvio l'applicazione nel log ottengo il messaggio 
riportato sotto. Se invece utilizzo struts 1.0 non si verifica nessun 
problema.
Grazie dell'aiuto che potrete darmi,
Andrea
...................
2003-07-29 15:51:13 StandardManager[/provastruts]: Seeding random number 
generator class java.security.SecureRandom
2003-07-29 15:51:13 StandardManager[/provastruts]: Seeding of random 
number generator has been completed
2003-07-29 15:51:13 StandardWrapper[/provastruts:action]: Marking 
servlet action as unavailable
2003-07-29 15:51:13 StandardContext[/provastruts]: Servlet /provastruts 
threw load() exception
javax.servlet.ServletException: Error instantiating servlet class 
org.apache.struts.action.ActionServlet
	at 
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:912)
	at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:823)
	at 
org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3420)
	at 
org.apache.catalina.core.StandardContext.start(StandardContext.java:3608)
	at 
org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:821)
	at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:807)
	at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:579)
	at 
org.apache.catalina.core.StandardHostDeployer.install(StandardHostDeployer.java:307)
	at org.apache.catalina.core.StandardHost.install(StandardHost.java:772)
	at org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:492)
	at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:400)
	at org.apache.catalina.startup.HostConfig.start(HostConfig.java:718)
	at 
org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:358)
	at 
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:166)
	at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1196)
	at org.apache.catalina.core.StandardHost.start(StandardHost.java:738)
	at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188)
	at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:347)
	at org.apache.catalina.core.StandardService.start(StandardService.java:497)
	at org.apache.catalina.core.StandardServer.start(StandardServer.java:2190)
	at org.apache.catalina.startup.Catalina.start(Catalina.java:512)
	at org.apache.catalina.startup.Catalina.execute(Catalina.java:400)
	at org.apache.catalina.startup.Catalina.process(Catalina.java:180)
	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:324)
	at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203)
----- Root Cause -----
java.lang.NoClassDefFoundError: org/apache/commons/digester/RuleSet
	at java.lang.Class.getDeclaredConstructors0(Native Method)
	at java.lang.Class.privateGetDeclaredConstructors(Class.java:1610)
	at java.lang.Class.getConstructor0(Class.java:1922)
	at java.lang.Class.newInstance0(Class.java:278)
	at java.lang.Class.newInstance(Class.java:261)
	at 
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:903)
	at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:823)
	at 
org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3420)
	at 
org.apache.catalina.core.StandardContext.start(StandardContext.java:3608)
	at 
org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:821)
	at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:807)
	at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:579)
	at 
org.apache.catalina.core.StandardHostDeployer.install(StandardHostDeployer.java:307)
	at org.apache.catalina.core.StandardHost.install(StandardHost.java:772)
	at org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:492)
	at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:400)
	at org.apache.catalina.startup.HostConfig.start(HostConfig.java:718)
	at 
org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:358)
	at 
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:166)
	at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1196)
	at org.apache.catalina.core.StandardHost.start(StandardHost.java:738)
	at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188)
	at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:347)
	at org.apache.catalina.core.StandardService.start(StandardService.java:497)
	at org.apache.catalina.core.StandardServer.start(StandardServer.java:2190)
	at org.apache.catalina.startup.Catalina.start(Catalina.java:512)
	at org.apache.catalina.startup.Catalina.execute(Catalina.java:400)
	at org.apache.catalina.startup.Catalina.process(Catalina.java:180)
	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:324)
	at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203)
2003-07-29 15:51:13 StandardWrapper[/provastruts:default]: Loading 
container servlet default
2003-07-29 15:51:13 StandardWrapper[/provastruts:invoker]: Loading 
container servlet invoker

 problema.
Non ho mai utilizzato Struts 1.0 (ho iniziato con Struts quando è uscita la
beta 2 di 1.1), ma a leggere sul loro sito, sono molte le cose che sono
cambiate (anche in preparazione delle JSF).
Vai a dare un occhio a questa pagina:
http://jakarta.apache.org/struts/userGuide/release-notes-1.1.html
Non vorrei che alcune delle cose modificate tocchino direttamente
l'implementazione delle actions
    Regards,
        Kazuma
--
I've got nothing against God. It's his fan club I can't stand.
Alex "Kazuma" Garbagnati, 
http://www.kazuma.net
EJB & Tomcat jGuru FAQ Manager, 
http://www.jGuru.com
Tutor "Progetto Scuole", 
http://www.JIA.it
Java Italian Association - SUN - MIUR

Grazie, ho risolto.
Semplicemente avevo messo in WEB-INF/lib solo il file struts.jar e non 
gli altri jar distribuiti con struts.
Andrea Polci