Issue Details (XML | Word | Printable)

Key: APF-959
Type: Bug Bug
Status: Resolved Resolved
Resolution: Fixed
Priority: Minor Minor
Assignee: Matt Raible
Reporter: Matthew Sinclair
Votes: 0
Watchers: 0
Operations

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

Possible fix/workaround for this issue: "Problem with jetty:run in Tapestry basic archetype"

Created: 21/Nov/07 09:55 PM   Updated: 24/Nov/07 08:25 AM   Resolved: 24/Nov/07 08:25 AM
Component/s: Build, Test, or Deploy Process, Web - Spring, Web - Tapestry
Affects Version/s: 2.0 Final
Fix Version/s: 2.0.1

Environment: WindowsXP (SP2), Cygwin (3.2.25_16), Java (1.6.0_03)


 Description  « Hide
I think that I have found a workaround (or possibly a fix) for this issue:

http://www.nabble.com/Problem-with-jetty%3Arun-in-Tapestry-basic-archetype-tf4485474s2369.html#a13880808



I think I may have isolated the problem here (if not completely solved it). Because the code works as advertised when running jetty:run-war (and tomcat:run), it has to be something to do with the way packaging works for the container that causes the problem. So, after looking at this page:

http://static.appfuse.org/appfuse-tapestry/dependencies.html

And comparing that with my pom, I noticed that I had scope="compile" for tapestry-spring and scope="runtime" for tapestry-flash. Then it dawned on me, I'd changed the scope for tapestry-spring in an earlier attempt to hunt down this problem. What made me twig was the fact that the problem reported by tapestry had *moved* from not knowing about "type='spring'", to not knowing about "persist='flash'".

Changing the scope from "runtime" to "compile" time for both tapestry-spring and tapestry-flash in the web/pom.xml allowed jetty:run to work.

Wow, that took me a lot longer to work through than I had hoped, but at least it's fixed. I can't say I know *why* changing the scope from runtime to compile makes jetty:run work, but I'll leave that for another day.

Matt Raible made changes - 22/Nov/07 01:24 AM
Field Original Value New Value
Fix Version/s 2.0.1 [ 10092 ]
3047 by  Matt Raible (1 file)
24/Nov/07 08:21 AM (32 months, 21 days ago)
APF-959: Changed tapestry-flash and tapestry-spring to compile scope to solve issues with jetty:run.
appfuse: trunk/web/tapestry/pom.xml 3047 history download (+2 -2) diffs

3048 by  Matt Raible (1 file)
24/Nov/07 08:25 AM (32 months, 21 days ago)
APF-959: Changed tapestry-flash and tapestry-spring to compile scope to solve issues with jetty:run (removed scope since compile is the default).
appfuse: trunk/web/tapestry/pom.xml 3048 history download (+0 -2) diffs

Matt Raible added a comment - 24/Nov/07 08:25 AM
Changed both dependencies to <scope>compile</scope> by removing the scope element.

Matt Raible made changes - 24/Nov/07 08:25 AM
Status Open [ 1 ] Resolved [ 5 ]
Resolution Fixed [ 1 ]