This week's book giveaway is in the JDBC forum.
We're giving away four copies of Make it so: Java DB Connections & Transactions and have Marcho Behler on-line!
See this thread for details.
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

Win a copy of Make it so: Java DB Connections & Transactions this week in the JDBC forum!
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
subject: Struts 2 - Tiles Configration
jQuery in Action, 3rd edition