File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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

Struts 2 - Tiles Configration

sarbjeet sidhu

Joined: Jan 24, 2010
Posts: 11

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>(
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(
at java.lang.reflect.Constructor.newInstance(
at java.lang.Class.newInstance0(
at java.lang.Class.newInstance(
at org.apache.catalina.core.StandardContext.listenerStart(
at org.apache.catalina.core.StandardContext.start(
at org.apache.catalina.core.ContainerBase.addChildInternal(
at org.apache.catalina.core.ContainerBase.addChild(
at org.apache.catalina.core.StandardHost.addChild(
at sun.reflect.GeneratedMethodAccessor154.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(

I have added following jar files in my classpath

1. commons-fileupload-1.2.1.jar
2. struts2-core-
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-"

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:
subject: Struts 2 - Tiles Configration
It's not a secret anymore!