[JIRA] Created: (APF-1072) Struts demo code in appfuse-demos-2.0.2.tar.gz needs to be updated for Appfuse 2.0.2

4 messages Options
Embed this post
Permalink
AppFuse - Issues mailing list

[JIRA] Created: (APF-1072) Struts demo code in appfuse-demos-2.0.2.tar.gz needs to be updated for Appfuse 2.0.2

Reply Threaded More More options
Print post
Permalink
Struts demo code in appfuse-demos-2.0.2.tar.gz needs to be updated for Appfuse 2.0.2
------------------------------------------------------------------------------------

                 Key: APF-1072
                 URL: http://issues.appfuse.org/browse/APF-1072
             Project: AppFuse
          Issue Type: Bug
    Affects Versions: 2.0.2
         Environment: Windows XP, MySQL
            Reporter: Harry Mark
            Assignee: Matt Raible


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.

--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.appfuse.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

AppFuse - Issues mailing list

[JIRA] Updated: (APF-1072) Struts demo code in appfuse-demos-2.0.2.tar.gz needs to be updated for Appfuse 2.0.2

Reply Threaded More More options
Print post
Permalink

     [ http://issues.appfuse.org/browse/APF-1072?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Matt Raible updated APF-1072:
-----------------------------

    Fix Version/s: 2.1
      Component/s: Documentation

> Struts demo code in appfuse-demos-2.0.2.tar.gz needs to be updated for Appfuse 2.0.2
> ------------------------------------------------------------------------------------
>
>                 Key: APF-1072
>                 URL: http://issues.appfuse.org/browse/APF-1072
>             Project: AppFuse
>          Issue Type: Bug
>          Components: Documentation
>    Affects Versions: 2.0.2
>         Environment: Windows XP, MySQL
>            Reporter: Harry Mark
>            Assignee: Matt Raible
>             Fix For: 2.1
>
>
> 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.

--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.appfuse.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

AppFuse - Issues mailing list

[JIRA] Commented: (APF-1072) Struts demo code in appfuse-demos-2.0.2.tar.gz needs to be updated for Appfuse 2.0.2

Reply Threaded More More options
Print post
Permalink
In reply to this post by AppFuse - Issues mailing list

    [ http://issues.appfuse.org/browse/APF-1072?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12688 ]

Yogish Shenoy commented on APF-1072:
------------------------------------

This error is caused by the older version of spring jars referenced by the struts2-spring plugin, so you will need to exclude the spring jars from here by adding the following exclusions to the struts2-spring-plugin in the pom.xml

<exclusions>
                                <exclusion>
                                                <artifactId>spring-beans</artifactId>
                                                <groupId>org.springframework</groupId>
                                </exclusion>
                                <exclusion>
                                                <artifactId>spring-core</artifactId>
                                                <groupId>org.springframework</groupId>
                                </exclusion>
                                <exclusion>
                                                <artifactId>spring-context</artifactId>
                                                <groupId>org.springframework</groupId>
                                </exclusion>
                                <exclusion>
                                                <artifactId>spring-web</artifactId>
                                                <groupId>org.springframework</groupId>
                                </exclusion>
                        </exclusions>

> Struts demo code in appfuse-demos-2.0.2.tar.gz needs to be updated for Appfuse 2.0.2
> ------------------------------------------------------------------------------------
>
>                 Key: APF-1072
>                 URL: http://issues.appfuse.org/browse/APF-1072
>             Project: AppFuse
>          Issue Type: Bug
>          Components: Documentation
>    Affects Versions: 2.0.2
>         Environment: Windows XP, MySQL
>            Reporter: Harry Mark
>            Assignee: Matt Raible
>            Priority: Minor
>             Fix For: 2.1
>
>
> 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.

--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.appfuse.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

AppFuse - Issues mailing list

[JIRA] Resolved: (APF-1072) Struts demo code in appfuse-demos-2.0.2.tar.gz needs to be updated for Appfuse 2.0.2

Reply Threaded More More options
Print post
Permalink
In reply to this post by AppFuse - Issues mailing list

     [ http://issues.appfuse.org/browse/APF-1072?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Matt Raible resolved APF-1072.
------------------------------

    Resolution: Fixed

> Struts demo code in appfuse-demos-2.0.2.tar.gz needs to be updated for Appfuse 2.0.2
> ------------------------------------------------------------------------------------
>
>                 Key: APF-1072
>                 URL: http://issues.appfuse.org/browse/APF-1072
>             Project: AppFuse
>          Issue Type: Bug
>          Components: Documentation
>    Affects Versions: 2.0.2
>         Environment: Windows XP, MySQL
>            Reporter: Harry Mark
>            Assignee: Matt Raible
>            Priority: Minor
>             Fix For: 2.1
>
>
> 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.

--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.appfuse.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]