aspose file tools*
The moose likes Struts and the fly likes Struts 2 - Tiles Configration Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Struts 2 - Tiles Configration" Watch "Struts 2 - Tiles Configration" New topic
Author

Struts 2 - Tiles Configration

sarbjeet sidhu
Greenhorn

Joined: Jan 24, 2010
Posts: 11
Hello,

I'm facing issue while configuring Struts 2 Tiles in my application here is the error details.

[org.apache.catalina.core.ContainerBase] Error configuring application listener of class org.apache.struts2.tiles.StrutsTilesListener
java.lang.NoClassDefFoundError: com/opensymphony/xwork2/util/logging/LoggerFactory
at org.apache.struts2.tiles.StrutsTilesListener.<clinit>(StrutsTilesListener.java:50)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:494)
at java.lang.Class.newInstance0(Class.java:350)
at java.lang.Class.newInstance(Class.java:303)
at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3798)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:4352)
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:752)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:732)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:553)
at sun.reflect.GeneratedMethodAccessor154.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)


I have added following jar files in my classpath

1. commons-fileupload-1.2.1.jar
2. struts2-core-2.1.8.1.jar
3. commons-logging.jar
4. freemarker-2.3.15.jar
5. ognl-2.7.3.jar
6. xwork-core-2.1.6.jar
7. benefitscommon.jar
8. tiles-api-2.1.2.jar
9. tiles-compat-2.1.2.jar
10. tiles-core-2.1.2.jar
11. tiles-jsp-2.1.2.jar
12. tiles-servlet-2.1.2.jar
13. commons-beanutils-1.6.jar
14. commons-digester-1.8.jar
15. struts2-tiles-plugin-2.1.8.1.jar"

Thanks
Harsha Ka
Ranch Hand

Joined: Mar 14, 2010
Posts: 45

I had faced a similar issue. This can occur if there is version mismatch in the jars you have used.This got resolved when I downloaded the libs from this tutorial's sample WAR file.


SCJP 1.6,Preparing (Tryin to prepare) for scwcd
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Struts 2 - Tiles Configration