It's not a secret anymore!*
The moose likes Struts and the fly likes Getting error for org.apache.struts2.tiles.StrutsTilesListener Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Getting error for org.apache.struts2.tiles.StrutsTilesListener" Watch "Getting error for org.apache.struts2.tiles.StrutsTilesListener" New topic
Author

Getting error for org.apache.struts2.tiles.StrutsTilesListener

Shwetank Rastogi
Greenhorn

Joined: Oct 17, 2012
Posts: 1
Hi, I am getting errror for struts tiles lister class. Below is the exception I am getting...
:
SEVERE: Error configuring application listener of class org.apache.struts2.tiles.StrutsTilesListener
java.lang.NoClassDefFoundError: org/apache/tiles/web/startup/TilesListener
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClassCond(Unknown Source)
at java.lang.ClassLoader.defineClass(Unknown Source)
at java.security.SecureClassLoader.defineClass(Unknown Source)
at org.apache.catalina.loader.WebappClassLoader.findClassInternal(WebappClassLoader.java:2733)
at org.apache.catalina.loader.WebappClassLoader.findClass(WebappClassLoader.java:1124)
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1612)
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1491)
at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4078)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:4630)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
at org.apache.catalina.core.StandardHost.start(StandardHost.java:785)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:445)
at org.apache.catalina.core.StandardService.start(StandardService.java:519)
at org.apache.catalina.core.StandardServer.start(StandardServer.java:710)
at org.apache.catalina.startup.Catalina.start(Catalina.java:581)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)
Caused by: java.lang.ClassNotFoundException: org.apache.tiles.web.startup.TilesListener
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1645)
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1491)

Below are the jars I am using for this..:

commons-beanutils-1.8.0.jar
commons-digester.jar
commons-fileupload-1.2.1.jar
commons-io-1.3.2.jar
commons-lang-2.2.jar
commons-logging-1.0.4.jar
derbyclient.jar
freemarker-2.3.13.jar
ognl-2.6.11.jar
struts-taglib-1.3.8.jar
struts2-core-2.1.6.jar
struts2-dojo-plugin-2.1.8.1.jar
struts2-tiles-plugin-2.1.2.jar
tiles-1.1.jar
tiles-api-2.1.2.jar
tiles-core-2.1.2.jar
tiles-jsp-2.1.2.jar
xwork-2.1.2.jar

Below are the listener and filter tags I am using in Web.xml :
<listener>
<listener-class>
org.apache.struts2.tiles.StrutsTilesListener
</listener-class>
</listener>

<filter>
<filter-name>struts2</filter-name>
<filter-class>
org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter
</filter-class>
</filter>

Could anybody please help me out for this? I have tried a lot,, but nothing works for this.
Please help me out and give me solution.

Thanks in advance,
Shwetank R.








 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Getting error for org.apache.struts2.tiles.StrutsTilesListener
 
Similar Threads
Error filterStart ... Struts2
java.lang.ClassNotFoundException: org.apache.struts2.tiles.StrutsTilesListener
Exception in struts2 server startup
Struts2 filter not starting, javassist jar already in classpath
SEVERE: Dispatcher initialization failed