This is definitely a bug, I've logged it in JIRA at:
http://issues.appfuse.org/browse/APF-652
A number of files are missing from the archetype.xml, even though
there in SVN at the proper location. I'm testing a fix now and should
have a new archetype uploaded in the next 15 minutes or so. You'll
need to change your mvn archetype:create command to use
1.0-m4-SNAPSHOT as the version #.
Thanks - I really appreciate you spending the time to find and verify this bug.
Matt
On 2/17/07, Trent <[EMAIL PROTECTED]> wrote:
On Sat, 17 Feb 2007 20:26:57 -0700, Matt Raible wrote
> I was looking for the following:
>
> <testResource>
> <directory>src/main/webapp</directory>
> <filtering>true</filtering>
> <includes>
> <include>**/*.xml</include>
> </includes>
> </testResource>
>
> Since that's in there, I'm not sure what the problem could be.
I rm'd my project and started again, following the instructions to the letter
(just in case I did
something screwy).
One thing I noticed was that there are a number of files missing from
src/main/webapp/WEB-INF/
compared to that of the tutorial.
step 1: created basic spring app "tutorialspring" (no dashes for convenience)
step 2: mvn eclipse:eclipse
step 3: mvn integration-test
step 4: created src/java/main/org/appfuse/tutorial/model/Person.java
step 5: edit src/main/resources/hibernate.cfg.xml
step 6: mvn compile hibernate3:hbm2ddl
step 7: created src/main/webapp/WEB-INF/applicationContext.xml
(only want CRUD functionality - skip rest of persistence page)
step 8: update src/main/webapp/WEB-INF/applicationContext.xml
(only want CRUD functionality - skip rest of service page)
step 9: create
src/test/java/org/appfuse/tutorial/webapp/controller/PersonControllerTest.java
step 10:create
src/main/java/org/appfuse/tutorial/webapp/controller/PersonController.java
step 11:try to open src/main/webapp/WEB-INF/dispatcher-servlet.xml and not find
file!
See only these files:
-rw-r--r-- 1 trentbar trentbar 673 Feb 18 15:05 applicationContext.xml
-rw-r--r-- 1 trentbar trentbar 1211 Feb 18 14:44 menu-config.xml
-rw-r--r-- 1 trentbar trentbar 190 Feb 18 14:44 urlrewrite.xml
-rw-r--r-- 1 trentbar trentbar 4947 Feb 18 14:44 validation.xml
-rw-r--r-- 1 trentbar trentbar 8045 Feb 18 14:44 web.xml
step 12: copy dispatcher-servlet.xml from
target/tutorialspring-1.0-SNAPSHOT/WEBINF/
step 13: add controller to bottom of file
step 14: mvn test -Dtest=PersonControllerTest
(got error: BeanCreationException: Error creating bean with name
'fileUploadController' defined
in ServletContext resource [/WEB-INF/dispatcher-servlet.xml]: Cannot resolve
reference to bean
'beanValidator' while setting bean property 'validator'; nested exception is
org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean named
'beanValidator'
is defined)
step 15: copy applicationContext-validation.xml and validator-rules* from
target/
step 16: mvn test -Dtest=PersonControllerTest
(got AssertionFailed on PersonControllerTest.java:19)
step 17: edit src/test/resources/sample-data.xml
step 18: mvn test -Dtest=PersonControllerTest
(got AssertionFailed on PersonControllerTest.java:19)
There's definitely a row in tutorialspring schema's Person table
though...
project is attached.
---------------------------------------------------------------------
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]