aspose file tools*
The moose likes Struts and the fly likes java.lang.ClassNotFoundException: org.apache.struts2.tiles.StrutsTilesListener Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "java.lang.ClassNotFoundException: org.apache.struts2.tiles.StrutsTilesListener" Watch "java.lang.ClassNotFoundException: org.apache.struts2.tiles.StrutsTilesListener" New topic
Author

java.lang.ClassNotFoundException: org.apache.struts2.tiles.StrutsTilesListener

rahulJ james
Ranch Hand

Joined: Oct 03, 2008
Posts: 123
I am trying to run a simple application on struts framework and I end up with the below exception when I try to load the application.

I am using struts2.0 package and all the jars comes under the package. Can someone guide. And the jars used and I am using jRE 1.5 with tomcat 5.5

struts2-core-2.2.3.1.jar
tiles-api-2.0.6.jar
tiles-core-2.0.6.jar
tiles-jsp-2.0.6.jar
xwork-core-2.2.3.1.jar
commons-beanutils-1.7.0.jar
commons-digester-2.0.jar
commons-collections-3.1.jar

rahulJ james
Ranch Hand

Joined: Oct 03, 2008
Posts: 123
I have struts2-tiles-plugin-2.2.3.1.jar as well in my package in which I can see the class org.apache.struts2.tiles.StrutsTilesListener but not sure why it is throwing this error
This is my listener defined in my web.xml

rahulJ james
Ranch Hand

Joined: Oct 03, 2008
Posts: 123
I was able to figure out that problem as I was only providing reference to these jars. Now I get a different exception

Nitin Surana
Ranch Hand

Joined: Jan 21, 2011
Posts: 129

To use Tiles successfully, these 3 jars may also be required.

rahulJ james
Ranch Hand

Joined: Oct 03, 2008
Posts: 123
I tried even after adding these jars.. I still get the same exception
Nitin Surana
Ranch Hand

Joined: Jan 21, 2011
Posts: 129

here's a working struts2 tiles example.

http://www.onlinexamples.com/showfullexample.action?idexamples=16&title=Tiles%202%20Integration
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: java.lang.ClassNotFoundException: org.apache.struts2.tiles.StrutsTilesListener