FWIW, I've posted this to the Tapestry users mailing list:

http://www.nabble.com/Problem-with-jetty%3Arun-when-using-Tapestry-4.1.3-tf4489399.html#a12805568

Matt


mraible wrote:
> 
> That's certainly a strange one. I was able to reproduce it, but have
> no idea how to fix it. jetty:run-war works fine, as does tomcat:run. I
> don't think tomcat:run does directory scanning and auto-reloading, so
> I don't know if it's as good as the Jetty plugin. Here's the
> configuration for it:
> 
>             <plugin>
>                 <groupId>org.codehaus.mojo</groupId>
>                 <artifactId>tomcat-maven-plugin</artifactId>
>                 <version>1.0-alpha-1</version>
>                 <configuration>
>                     <path>/</path>
>                 </configuration>
>             </plugin>
> 
> Matt
> 
> On 9/19/07, Mark Rosenthal <[EMAIL PROTECTED]> wrote:
>> Hi,
>>
>> I'm running into the following error on certain tapestry pages after
>> login, including MainMenu. It looks as if the hivemind/spring wiring
>> is broken.  The app runs fine with jetty:run-war.
>>
>>
>>                                 [ +/- ] Exception: Error at
>> context:/WEB-INF/tapestry/mainMenu.page, line 9, column 72: Error
>> adding property userManager to class
>> org.appfuse.webapp.pages.MainMenu: Error at
>> context:/WEB-INF/tapestry/mainMenu.page, line 9, column 72: Unable to
>> create injected property userManager: injection type 'spring' is not
>> defined.
>>                         org.apache.hivemind.ApplicationRuntimeException
>>                         Error at context:/WEB-INF/tapestry/mainMenu.page,
>> line 9, column
>> 72: Error adding property userManager to class
>> org.appfuse.webapp.pages.MainMenu: Error at
>> context:/WEB-INF/tapestry/mainMenu.page, line 9, column 72: Unable to
>> create injected property userManager: injection type 'spring' is not
>> defined.
>>
>> Edit Profile, View Users, Reload Options all produce similar errors,
>> probably related to the above:
>>
>>         [ +/- ] Exception:         There was an error borrowing the page
>> with
>> key PageKey[_pageName='mainMenu' , _locale=en_US ] from the page pool.
>>                         org.apache.hivemind.ApplicationRuntimeException
>>                         There was an error borrowing the page with key
>> PageKey[_pageName='mainMenu' , _locale=en_US ] from the page pool.
>>                         location:                       Annotation
>> @org.apache.tapestry.annotations.InjectPage(value=mainMenu) of public
>> abstract org.appfuse.webapp.pages.MainMenu
>> org.appfuse.webapp.pages.BasePage.getMainMenu()
>>                                 [ +/- ] Exception: Error: An error
>> occured processing
>> annotation @org.apache.tapestry.annotations.InjectPage(value=mainMenu)
>> of public abstract org.appfuse.webapp.pages.MainMenu
>> org.appfuse.webapp.pages.BasePage.getMainMenu(): Property mainMenu has
>> already been accounted for by the element at Annotation
>> @org.apache.tapestry.annotations.InjectPage(value=mainMenu) of public
>> abstract org.appfuse.webapp.pages.MainMenu
>> org.appfuse.webapp.pages.BasePage.getMainMenu().
>>                         org.apache.hivemind.ApplicationRuntimeException
>>                         Error: An error occured processing annotation
>> @org.apache.tapestry.annotations.InjectPage(value=mainMenu) of public
>> abstract org.appfuse.webapp.pages.MainMenu
>> org.appfuse.webapp.pages.BasePage.getMainMenu(): Property mainMenu has
>> already been accounted for by the element at Annotation
>> @org.apache.tapestry.annotations.InjectPage(value=mainMenu) of public
>> abstract org.appfuse.webapp.pages.MainMenu
>> org.appfuse.webapp.pages.BasePage.getMainMenu().
>>
>>
>>
>> To reproduce:
>>
>> 1. mvn archetype:create -DarchetypeGroupId=org.appfuse.archetypes
>> -DarchetypeArtifactId=appfuse-basic-tapestry
>> -DremoteRepositories=http://static.appfuse.org/releases
>> -DarchetypeVersion=2.0 -DgroupId=com.mycompany.app
>> -DartifactId=myproject
>>
>> 2. cd myproject and run mvn (Fails on following error, but this seems
>> consistent with struts2-basic)
>> [echo] Testing 'myproject-1.0-SNAPSHOT' with locale 'en'
>> Login:
>> [INFO]
>> ------------------------------------------------------------------------
>> [ERROR] BUILD ERROR
>> [INFO]
>> ------------------------------------------------------------------------
>> [INFO] Error executing ant tasks
>> Embedded error: The following error occurred while executing this line:
>> C:\app\test\myproject\src\test\resources\login.xml:1: Step[invoke "get
>> Login Page" (1/6)]: HTTP error 400, at: invoke
>>
>> 3. mvn jetty:run-war and app works fine
>>
>> 4. mvn war:inplace
>>
>> 5. delete src/main/webapp/WEB-INF/classes &
>> src/main/webapp/WEB-INF/lib.  Omit either of these and jetty:run
>> fails.
>>
>> 6. mvn  jetty:run
>>
>> 7. hit http://localhost:8080 to see errors
>>
>> I'm running appfuse 2.0, on WinXP
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
> 
> 
> -- 
> http://raibledesigns.com
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Problem-with-jetty%3Arun-in-Tapestry-basic-archetype-tf4485474s2369.html#a12805673
Sent from the AppFuse - User mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to