
|
If you were logged in you would be able to see more operations.
|
|
|
|
Environment:
|
WindowsXP (SP2), Cygwin (3.2.25_16), Java (1.6.0_03)
AppFuse 2.0, Tapestry, Spring, Modular, exploded/full-source
WindowsXP (SP2), Cygwin (3.2.25_16), Java (1.6.0_03)
AppFuse 2.0, Tapestry, Spring, Modular, exploded/full-source
|
|
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.
|
|
Description
|
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. |
Show » |
| There are no comments yet on this issue.
|
|