You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tiles.apache.org by "Kanade, Sayali" <Sa...@gs.com> on 2008/09/11 18:23:12 UTC

Jar file for class org.apache.tiles.listener.TilesListener

Hi,

This is the first time I am working on Struts 2 with Tiles 2.
I configured Tiles 2 in my application by adding the Listener as
follows:
	<listener>  
	
<listener-class>org.apache.struts2.tiles.StrutsTilesListener</listener-c
lass>
	</listener>

But, when I deploy my app on Tomcat, I get this runtime error:

[ERROR] qa-portal] - Error configuring application listener of class
org.apache.struts2.tiles.StrutsTilesListener
<java.lang.NoClassDefFoundError:
org/apache/tiles/listener/TilesListener>java.lang.NoClassDefFoundError:
org/apache/tiles/listener/TilesListener

I know that this class is missing in my classpath, but I am unable to
find this class in any of the jar files.

Can someone please help me locate the correct jar file for this class?

Configuration:
JDK - 1.6
Apache Tomcat - 6.0.10
Struts - 2.0.6
Tiles - 2.0.6

These are the jar files in WEB-INF/lib -
- xwork-2.0.5.jar
- tiles-jsp-2.0.6.jar
- tiles-core-2.0.6.jar
- tiles-api-2.0.6.jar
- struts2-tiles-plugin-2.0.6.jar
- struts2-core-2.0.6.jar
- ognl-2.6.11.jar
- freemarker-2.3.8.jar
- commons-logging-1.0.4.jar
- commons-beanutils-1.6.jar

Please let me know if more info is reqd.

Thanks a lot, please let me know if anyone faced this problem and the
steps taken to fix it.

Best Regards,
Sayali.
 

Re: Jar file for class org.apache.tiles.listener.TilesListener

Posted by Antonio Petrelli <an...@gmail.com>.
2008/9/12 Kanade, Sayali <Sa...@gs.com>:
> Thanks for the reply. The error was because my jar files were not
> consistent: With tiles jar 2.0.6 I should have used Struts2 jar
> 2.0.11.2.
> ...
> Apparently the TilesListener location changed from 2.0.3 to 2.0.6.

Sorry, I should have noticed it. In fact you are right: the API
stabilized only in Tiles 2.0.4.

Antonio

RE: Jar file for class org.apache.tiles.listener.TilesListener

Posted by "Kanade, Sayali" <Sa...@gs.com>.
Hi,

Thanks for the reply. The error was because my jar files were not
consistent: With tiles jar 2.0.6 I should have used Struts2 jar
2.0.11.2.
I guess this is a silly mistake, but I didn't see this documented
anywhere.

Apparently the TilesListener location changed from 2.0.3 to 2.0.6. 

Thanks Again!
Regards,
Sayali.
 

-----Original Message-----
From: Antonio Petrelli [mailto:antonio.petrelli@gmail.com] 
Sent: Thursday, September 11, 2008 2:52 PM
To: users@tiles.apache.org
Subject: Re: Jar file for class org.apache.tiles.listener.TilesListener

2008/9/11 Kanade, Sayali <Sa...@gs.com>:
> [ERROR] qa-portal] - Error configuring application listener of class
> org.apache.struts2.tiles.StrutsTilesListener
> <java.lang.NoClassDefFoundError:
>
org/apache/tiles/listener/TilesListener>java.lang.NoClassDefFoundError:
> org/apache/tiles/listener/TilesListener
>...
> - tiles-core-2.0.6.jar

That's strange, TilesListener is inside the "tiles-core-2.0.6.jar"
file...
Are you sure that you are not mixing up classloaders? For example, did
you put Struts 2 jars in some common place inside Tomcat?

Antonio

Re: Jar file for class org.apache.tiles.listener.TilesListener

Posted by Antonio Petrelli <an...@gmail.com>.
2008/9/11 Kanade, Sayali <Sa...@gs.com>:
> [ERROR] qa-portal] - Error configuring application listener of class
> org.apache.struts2.tiles.StrutsTilesListener
> <java.lang.NoClassDefFoundError:
> org/apache/tiles/listener/TilesListener>java.lang.NoClassDefFoundError:
> org/apache/tiles/listener/TilesListener
>...
> - tiles-core-2.0.6.jar

That's strange, TilesListener is inside the "tiles-core-2.0.6.jar" file...
Are you sure that you are not mixing up classloaders? For example, did
you put Struts 2 jars in some common place inside Tomcat?

Antonio