Issue Details (XML | Word | Printable)

Key: WW-1418
Type: Bug Bug
Status: Resolved Resolved
Resolution: Fixed
Priority: Major Major
Assignee: Don Brown
Reporter: Wendy Smoak
Votes: 1
Watchers: 1
Operations

If you were logged in you would be able to see more operations.
Struts 2

Struts 2 does not compile against Tiles 2.0-SNAPSHOT

Created: 27/Aug/06 04:33 PM   Updated: 05/Jan/07 03:07 PM
Return to search
Component/s: None
Affects Version/s: 2.0.0
Fix Version/s: 2.0.1

File Attachments:
  Size
Text File Licensed for inclusion in ASF works tiles-2.0.0.patch 2006-09-20 08:14 PM David H. DeWolf 5 kB
Issue Links:
Reference
 


 Description  « Hide
Updating the Tiles 2 dependency to the latest snapshot causes a compilation failure.

Index: core/pom.xml
===================================================================
--- core/pom.xml (revision 437389)
+++ core/pom.xml (working copy)
@@ -190,7 +190,7 @@
         <dependency>
             <groupId>org.apache.struts.tiles</groupId>
             <artifactId>tiles-core</artifactId>
- <version>0.2-SNAPSHOT</version>
+ <version>2.0-SNAPSHOT</version>
             <optional>true</optional>
         </dependency>
         <dependency>


Compiling 460 source files to e:\svn\struts\current\struts2\core\target\classes
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Compilation failure

e:\svn\struts\current\struts2\core\src\main\java\org\apache\struts2\views\tiles\
TilesResult.java:[112,24] setContext(org.apache.tiles.ComponentContext,org.apach
e.tiles.TilesContext) in org.apache.tiles.ComponentContext cannot be applied to
(org.apache.tiles.ComponentContext,javax.servlet.http.HttpServletRequest)

e:\svn\struts\current\struts2\core\src\main\java\org\apache\struts2\views\tiles\
TilesResult.java:[165,51] getContext(org.apache.tiles.TilesContext) in org.apach
e.tiles.ComponentContext cannot be applied to (javax.servlet.http.HttpServletReq
uest)

e:\svn\struts\current\struts2\core\src\main\java\org\apache\struts2\views\tiles\
TilesResult.java:[168,28] setContext(org.apache.tiles.ComponentContext,org.apach
e.tiles.TilesContext) in org.apache.tiles.ComponentContext cannot be applied to
(org.apache.tiles.ComponentContext,javax.servlet.http.HttpServletRequest)

e:\svn\struts\current\struts2\core\src\main\java\org\apache\struts2\views\tiles\
TilesResult.java:[201,18] execute(org.apache.tiles.TilesContext,org.apache.tiles
.ComponentContext) in org.apache.tiles.Controller cannot be applied to (org.apac
he.tiles.ComponentContext,javax.servlet.http.HttpServletRequest,javax.servlet.ht
tp.HttpServletResponse,javax.servlet.ServletContext)


 All   Comments   Change History   Subversion Commits      Sort Order: Ascending order - Click to sort in descending order
David H. DeWolf added a comment - 20/Sep/06 08:14 PM
Patch attached to resolve issue.

Don Brown added a comment - 29/Sep/06 05:50 AM
Fixed, thanks for the patch!

Zhiyong Li added a comment - 05/Jan/07 03:07 PM
in 2.0.3,class org.apache.struts2.tiles.StrutsTilesListener
the method createContainer() throws a org.apache.tile.TilesException,but int tile-core-2.0*,the class org.apache.tile.TilesException has been removed