History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: APF-960
Type: Bug Bug
Status: Open Open
Priority: Major Major
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 for issue: "Problem with jetty:run in Tapestry basic archetype"

Created: 21/Nov/07 09:57 PM   Updated: 21/Nov/07 09:57 PM
Component/s: Build, Test, or Deploy Process
Affects Version/s: None
Fix Version/s: None

Environment:
WindowsXP (SP2), Cygwin (3.2.25_16), Java (1.6.0_03)
AppFuse 2.0, Tapestry, Spring, Modular, exploded/full-source


 Description  « Hide
I think that I have found a fix/workaround for this issue:

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

Here's the fix (from the e-mail to the AppFuse list):


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:
There are no comments yet on this issue.