You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Marcin Pietraszek <m....@gmail.com> on 2008/01/03 08:50:56 UTC

Struts 2.0.11 + Tiles 2.0.5

Hello,

with this configuration in pom.xml

...
<dependency>
        <groupId>org.apache.struts</groupId>
        <artifactId>struts2-core</artifactId>
        <version>2.0.11</version>
</dependency>
<dependency>
        <groupId>org.apache.tiles</groupId>
        <artifactId>tiles-core</artifactId>
        <version>2.0.5</version>
</dependency>
<dependency>
        <groupId>org.apache.tiles</groupId>
        <artifactId>tiles-jsp</artifactId>
        <version>2.0.5</version>
</dependency>
<dependency>
        <groupId>org.apache.struts</groupId>
        <artifactId>struts2-tiles-plugin</artifactId>
        <version>2.0.5</version>
</dependency>
...

and following in web.xml
<listener>
  	<listener-class>org.apache.tiles.web.startup.TilesListener</listener-class>
</listener>

I get this error
exception
javax.servlet.ServletException: Filter execution threw an exception

root cause
java.lang.NoSuchMethodError:
org.apache.tiles.TilesContainer.render(Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/String;)V
	org.apache.struts2.views.tiles.TilesResult.doExecute(TilesResult.java:104)
	org.apache.struts2.dispatcher.StrutsResultSupport.execute(StrutsResultSupport.java:178)
	com.opensymphony.xwork2.DefaultActionInvocation.executeResult(DefaultActionInvocation.java:348)...

I supose problem is with some dependencies, but unfortunately I cant
figure out which are bad. I dont know that this could be importat -
I'm using Tomcat 6.0.14.

TIAFAA

-- 
greetings!
marcin.pietraszek.pl

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Re: Struts 2.0.11 + Tiles 2.0.5

Posted by Vinny <xa...@gmail.com>.
Did you by chance build your project from the info on this page?
http://struts.apache.org/2.0.11/docs/struts-maven-archetypes.html
the archetype is uses as an example is old (2.0.5). Should a Jira be opened
to correct this?

On Jan 3, 2008 9:02 AM, Marcin Pietraszek <m....@gmail.com> wrote:

> 2008/1/3, Antonio Petrelli <an...@gmail.com>:
> > I think that the wrong dependency is in the struts2-tiles-plugin
> > because it seems to reference an old version of the "render" method.
>
> Of course this was my problem! I should use
> <dependency>
>       <groupId>org.apache.struts</groupId>
>       <artifactId>struts2-tiles-plugin</artifactId>
>       <version>2.0.11</version> (not 2.0.5)
> </dependency>
>
> Thanks!
>
> --
> greetings! kbl/Cinek/greengoo
> marcin.pietraszek.pl
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>


-- 
The Street Programmer http://streetprogrammer.com

Re: Struts 2.0.11 + Tiles 2.0.5

Posted by Marcin Pietraszek <m....@gmail.com>.
2008/1/3, Antonio Petrelli <an...@gmail.com>:
> I think that the wrong dependency is in the struts2-tiles-plugin
> because it seems to reference an old version of the "render" method.

Of course this was my problem! I should use
<dependency>
       <groupId>org.apache.struts</groupId>
       <artifactId>struts2-tiles-plugin</artifactId>
       <version>2.0.11</version> (not 2.0.5)
</dependency>

Thanks!

-- 
greetings! kbl/Cinek/greengoo
marcin.pietraszek.pl

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Re: Struts 2.0.11 + Tiles 2.0.5

Posted by Antonio Petrelli <an...@gmail.com>.
2008/1/3, Marcin Pietraszek <m....@gmail.com>:
org.apache.tiles.TilesContainer.render(Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/String;)V
>         org.apache.struts2.views.tiles.TilesResult.doExecute(TilesResult.java:104)
>         org.apache.struts2.dispatcher.StrutsResultSupport.execute(StrutsResultSupport.java:178)
>         com.opensymphony.xwork2.DefaultActionInvocation.executeResult(DefaultActionInvocation.java:348)...

I think that the wrong dependency is in the struts2-tiles-plugin
because it seems to reference an old version of the "render" method.

Antonio

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org