This week's book giveaway is in the OCAJP forum.
We're giving away four copies of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) and have Khalid A Mughal & Rolf W Rasmussen on-line!
See this thread for details.
Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
rahulJ james
Ranch Hand
Posts: 123
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 123
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 123
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 129
Java Netbeans IDE Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
To use Tiles successfully, these 3 jars may also be required.

 
rahulJ james
Ranch Hand
Posts: 123
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I tried even after adding these jars.. I still get the same exception
 
Nitin Surana
Ranch Hand
Posts: 129
Java Netbeans IDE Windows
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic