History | Log In     View a printable version of the current page.  
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
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.

 All   Comments   Change History   FishEye      Sort Order:
Matt Raible - 24/Nov/07 08:25 AM
Changed both dependencies to <scope>compile</scope> by removing the scope element.