I downloaded the
http://appfuse-demos.googlecode.com/files/appfuse-demos-2.0.2.tar.gz from
http://code.google.com/p/appfuse-demos/
Unzipped "struts2-crud" in a folder then "mvn". I get this error:
...
[INFO] Scanning for projects...
[INFO] ------------------------------------------------------------------------
[INFO] Building AppFuse Struts 2 CRUD Example
[INFO] task-segment: [install]
[INFO] ------------------------------------------------------------------------
[INFO] [aspectj:compile {execution: default}]
[INFO] [native2ascii:native2ascii {execution: native2ascii-utf8}]
[INFO] [native2ascii:native2ascii {execution: native2ascii-8859_1}]
[INFO] [resources:resources]
[INFO] Using default encoding to copy filtered resources.
[INFO] [compiler:compile]
[INFO] Compiling 17 source files to D:\appfuse\struts2\struts2-crud\target\class
es
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Compilation failure
D:\appfuse\struts2\struts2-crud\src\main\java\com\mycompany\app\dao\hibernate\Us
erDaoHibernate.java:[85,37] <A>findAnnotation(java.lang.reflect.Method,java.lang
.Class<A>) in org.springframework.core.annotation.AnnotationUtils cannot be appl
ied to (java.lang.Class<com.mycompany.app.model.User>,java.lang.Class<javax.pers
istence.Table>)
Unzipped tutorial-struts2" in a folder then "mvn". I get this error:
...
[tutorial-struts2] WARN [main] PersonDaoHibernate.get(60) | Uh oh, 'class org.ap
pfuse.tutorial.model.Person' object with id '3' not found...
[tutorial-struts2] DEBUG [main] PersonDaoTest.testAddAndRemovePerson(40) | Expec
ted exception: Object of class [org.appfuse.tutorial.model.Person] with identifi
er [3]: not found
[tutorial-struts2] DEBUG [main] PersonDaoTest.endTransaction(360) | Rolled back
transaction after execution of test [testAddAndRemovePerson].
Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 1.812 sec
Results :
Tests in error:
testSearch(org.appfuse.tutorial.webapp.action.PersonActionTest)
testEdit(org.appfuse.tutorial.webapp.action.PersonActionTest)
testSave(org.appfuse.tutorial.webapp.action.PersonActionTest)
testRemove(org.appfuse.tutorial.webapp.action.PersonActionTest)
Tests run: 6, Failures: 0, Errors: 4, Skipped: 0
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] There are test failures.
Please refer to D:\appfuse\struts2\tutorial-struts2\target\surefire-reports for
the individual test results.