History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: APF-1072
Type: Bug Bug
Status: Open Open
Priority: Major Major
Assignee: Matt Raible
Reporter: Harry Mark
Votes: 0
Watchers: 1
Operations

If you were logged in you would be able to see more operations.
AppFuse

Struts demo code in appfuse-demos-2.0.2.tar.gz needs to be updated for Appfuse 2.0.2

Created: 21/May/08 09:10 AM   Updated: 29/May/08 08:15 AM
Component/s: Documentation
Affects Version/s: 2.0.2
Fix Version/s: 2.1

Environment: Windows XP, MySQL


 Description  « Hide
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.

 All   Comments   Change History   FishEye      Sort Order:
There are no comments yet on this issue.