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]

Reply via email to