fyi
I tested Spring-Appfuse + JPA using non modular artifact and it works smoothly.
So the problem is related only to the modular archetype.

Pablo

Pablo Alcaraz wrote:
Hi!

This mail is related to http://www.nabble.com/Big-exception-with-Modular-JPA-SpringMvc-Appfuse-tt16391314s2369.html

I created a new project using:

mvn archetype:create -DarchetypeGroupId=org.appfuse.archetypes -DarchetypeArtifactId=appfuse-modular-spring -DremoteRepositories=http://static.appfuse.org/releases^ -DarchetypeVersion=2.0.1 -DgroupId=com.mycompany.app -DartifactId=myproject

then without compile I modified all the things following the instruction on the web

http://www.appfuse.org/display/APF/Using+JPA

Finally I did

mvn test

and it past because there is no jpa entities

I ran

mvn install

and I get another big exception claming for hibernate classes and the hibernate.cfg.xml file.

I ran a

mvn dependency:tree

and this is the output

[INFO] Scanning for projects...
[INFO] Reactor build order:
[INFO]   AppFuse Modular Application
[INFO]   AppFuse Modular Application - Core
[INFO]   AppFuse Modular Application - Web (Spring MVC)
[INFO] Searching repository for plugin with prefix: 'dependency'.
[INFO] org.apache.maven.plugins: checking for updates from appfuse
[INFO] org.codehaus.mojo: checking for updates from appfuse
[INFO] artifact org.apache.maven.plugins:maven-dependency-plugin: checking for updates from appfuse [INFO] ------------------------------------------------------------------------
[INFO] Building AppFuse Modular Application
[INFO]    task-segment: [dependency:tree]
[INFO] ------------------------------------------------------------------------
[INFO] [dependency:tree]
[INFO] ar.com.dreamssoft.pos:pos-server:pom:1.0-SNAPSHOT
[INFO] +- mysql:mysql-connector-java:jar:5.0.5:compile
[INFO] +- jmock:jmock:jar:1.1.0:test
[INFO] +- junit:junit:jar:4.4:test
[INFO] +- org.springframework:spring-test:jar:2.5:test
[INFO] |  \- commons-logging:commons-logging:jar:1.1:test
[INFO] \- org.subethamail:subethasmtp-wiser:jar:1.2:test
[INFO]    +- org.subethamail:subethasmtp-smtp:jar:1.2:test
[INFO]    \- javax.mail:mail:jar:1.4:test
[INFO]       \- javax.activation:activation:jar:1.1:test
[INFO] ------------------------------------------------------------------------
[INFO] Building AppFuse Modular Application - Core
[INFO]    task-segment: [dependency:tree]
[INFO] ------------------------------------------------------------------------
[INFO] [dependency:tree]
[INFO] ar.com.dreamssoft.pos:pos-server-core:jar:1.0-SNAPSHOT
[INFO] +- mysql:mysql-connector-java:jar:5.0.5:compile
[INFO] +- jmock:jmock:jar:1.1.0:test
[INFO] +- junit:junit:jar:4.4:test (scope not updated to compile)
[INFO] +- org.springframework:spring-test:jar:2.5:test
[INFO] +- org.subethamail:subethasmtp-wiser:jar:1.2:test
[INFO] |  \- org.subethamail:subethasmtp-smtp:jar:1.2:test
[INFO] +- org.appfuse:appfuse-service:jar:2.0.1:compile
[INFO] |  +- commons-lang:commons-lang:jar:2.3:compile
[INFO] |  +- org.acegisecurity:acegi-security-tiger:jar:1.0.5:compile
[INFO] |  |  \- org.acegisecurity:acegi-security:jar:1.0.5:compile
[INFO] |  |     +- commons-codec:commons-codec:jar:1.3:compile
[INFO] |  |     \- oro:oro:jar:2.0.8:compile
[INFO] |  +- log4j:log4j:jar:1.2.13:compile
[INFO] |  +- aspectj:aspectjweaver:jar:1.5.2a:compile
[INFO] |  +- aspectj:aspectjrt:jar:1.5.2a:compile
[INFO] |  +- commons-beanutils:commons-beanutils:jar:1.7.0:compile
[INFO] |  |  \- commons-logging:commons-logging:jar:1.0.3:compile
[INFO] |  +- net.sf.ehcache:ehcache:jar:1.3.0:compile
[INFO] |  |  +- net.sf.jsr107cache:jsr107cache:jar:1.0:compile
[INFO] | | \- backport-util-concurrent:backport-util-concurrent:jar:3.0:compile
[INFO] |  +- javax.mail:mail:jar:1.4:compile
[INFO] |  |  \- javax.activation:activation:jar:1.1:compile
[INFO] |  +- velocity:velocity:jar:1.4:compile
[INFO] |  |  \- velocity:velocity-dep:jar:1.4:runtime
[INFO] |  +- org.codehaus.xfire:xfire-java5:jar:1.2.6:compile
[INFO] |  |  +- org.codehaus.xfire:xfire-aegis:jar:1.2.6:compile
[INFO] | | | \- net.java.dev.stax-utils:stax-utils:jar:20040917:compile
[INFO] |  |  +- org.codehaus.xfire:xfire-annotations:jar:1.2.6:compile
[INFO] |  |  +- xfire:xfire-jsr181-api:jar:1.0-M1:compile
[INFO] |  |  \- org.codehaus.xfire:xfire-core:jar:1.2.6:compile
[INFO] |  |     +- wsdl4j:wsdl4j:jar:1.6.1:compile
[INFO] |  |     +- stax:stax-api:jar:1.0.1:compile
[INFO] |  |     +- org.codehaus.woodstox:wstx-asl:jar:3.2.0:compile
[INFO] |  |     +- jdom:jdom:jar:1.0:compile
[INFO] |  |     \- commons-httpclient:commons-httpclient:jar:3.0:compile
[INFO] |  +- org.codehaus.xfire:xfire-spring:jar:1.2.6:compile
[INFO] |  |  +- org.apache.xbean:xbean-spring:jar:2.8:compile
[INFO] |  |  \- org.codehaus.xfire:xfire-xmlbeans:jar:1.2.6:compile
[INFO] |  |     \- xmlbeans:xbean:jar:2.2.0:compile
[INFO] |  +- org.springframework:spring-aop:jar:2.5:compile
[INFO] |  |  +- aopalliance:aopalliance:jar:1.0:compile
[INFO] |  |  +- org.springframework:spring-beans:jar:2.5:compile
[INFO] |  |  \- org.springframework:spring-core:jar:2.5:compile
[INFO] |  +- org.springframework:spring-aspects:jar:2.5:compile
[INFO] |  \- org.springframework:spring-context-support:jar:2.5:compile
[INFO] |     \- org.springframework:spring-context:jar:2.5:compile
[INFO] \- org.appfuse:appfuse-hibernate:jar:2.0.1:compile
[INFO]    +- org.springframework:spring-jdbc:jar:2.5:compile
[INFO]    |  \- org.springframework:spring-tx:jar:2.5:compile
[INFO]    +- org.springframework:spring-orm:jar:2.5:compile
[INFO]    +- org.appfuse:appfuse-data-common:jar:2.0.1:compile
[INFO]    |  \- javax.persistence:persistence-api:jar:1.0:compile
[INFO]    +- org.hibernate:hibernate:jar:3.2.5.ga:compile
[INFO]    |  +- javax.transaction:jta:jar:1.0.1B:compile
[INFO]    |  +- asm:asm-attrs:jar:1.5.3:compile
[INFO]    |  +- dom4j:dom4j:jar:1.6.1:compile
[INFO]    |  +- antlr:antlr:jar:2.7.6:compile
[INFO]    |  +- cglib:cglib:jar:2.1_3:compile
[INFO]    |  \- asm:asm:jar:1.5.3:compile
[INFO]    +- org.hibernate:hibernate-annotations:jar:3.3.0.ga:compile
[INFO] +- org.hibernate:hibernate-commons-annotations:jar:3.3.0.ga:compile
[INFO]    \- commons-collections:commons-collections:jar:3.2:compile
[INFO] ------------------------------------------------------------------------
[INFO] Building AppFuse Modular Application - Web (Spring MVC)
[INFO]    task-segment: [dependency:tree]
[INFO] ------------------------------------------------------------------------ [INFO] snapshot ar.com.dreamssoft.pos:pos-server-core:1.0-SNAPSHOT: checking for updates from central [INFO] snapshot ar.com.dreamssoft.pos:pos-server-core:1.0-SNAPSHOT: checking for updates from appfuse
[INFO] [dependency:tree]
[INFO] ar.com.dreamssoft.pos:pos-server-webapp:war:1.0-SNAPSHOT
[INFO] +- mysql:mysql-connector-java:jar:5.0.5:compile
[INFO] +- jmock:jmock:jar:1.1.0:test
[INFO] +- junit:junit:jar:4.4:test (scope not updated to compile)
[INFO] +- org.springframework:spring-test:jar:2.5:test
[INFO] +- org.subethamail:subethasmtp-wiser:jar:1.2:test
[INFO] |  \- org.subethamail:subethasmtp-smtp:jar:1.2:test
[INFO] +- javax.servlet:servlet-api:jar:2.4:provided (scope not updated to compile)
[INFO] +- javax.servlet:jsp-api:jar:2.0:provided
[INFO] +- org.appfuse:appfuse-spring:war:2.0.1:compile
[INFO] +- org.appfuse:appfuse-spring:warpath:2.0.1:compile
[INFO] |  +- commons-lang:commons-lang:jar:2.3:compile
[INFO] |  +- org.acegisecurity:acegi-security-tiger:jar:1.0.5:compile
[INFO] |  |  \- org.acegisecurity:acegi-security:jar:1.0.5:compile
[INFO] |  |     +- commons-codec:commons-codec:jar:1.3:compile
[INFO] |  |     \- oro:oro:jar:2.0.8:compile
[INFO] |  +- log4j:log4j:jar:1.2.13:compile
[INFO] |  +- org.appfuse:appfuse-service:jar:2.0.1:compile
[INFO] |  |  +- aspectj:aspectjweaver:jar:1.5.2a:compile
[INFO] |  |  +- aspectj:aspectjrt:jar:1.5.2a:compile
[INFO] |  |  +- commons-beanutils:commons-beanutils:jar:1.7.0:compile
[INFO] |  |  +- net.sf.ehcache:ehcache:jar:1.3.0:compile
[INFO] |  |  |  +- net.sf.jsr107cache:jsr107cache:jar:1.0:compile
[INFO] | | | \- backport-util-concurrent:backport-util-concurrent:jar:3.0:compile
[INFO] |  |  +- javax.mail:mail:jar:1.4:compile
[INFO] |  |  |  \- javax.activation:activation:jar:1.1:compile
[INFO] |  |  +- velocity:velocity:jar:1.4:compile
[INFO] |  |  |  \- velocity:velocity-dep:jar:1.4:runtime
[INFO] |  |  +- org.codehaus.xfire:xfire-java5:jar:1.2.6:compile
[INFO] |  |  |  +- org.codehaus.xfire:xfire-aegis:jar:1.2.6:compile
[INFO] | | | | \- net.java.dev.stax-utils:stax-utils:jar:20040917:compile
[INFO] |  |  |  +- org.codehaus.xfire:xfire-annotations:jar:1.2.6:compile
[INFO] |  |  |  +- xfire:xfire-jsr181-api:jar:1.0-M1:compile
[INFO] |  |  |  \- org.codehaus.xfire:xfire-core:jar:1.2.6:compile
[INFO] |  |  |     +- wsdl4j:wsdl4j:jar:1.6.1:compile
[INFO] |  |  |     +- stax:stax-api:jar:1.0.1:compile
[INFO] |  |  |     +- org.codehaus.woodstox:wstx-asl:jar:3.2.0:compile
[INFO] |  |  |     +- jdom:jdom:jar:1.0:compile
[INFO] | | | \- commons-httpclient:commons-httpclient:jar:3.0:compile
[INFO] |  |  +- org.codehaus.xfire:xfire-spring:jar:1.2.6:compile
[INFO] |  |  |  +- org.apache.xbean:xbean-spring:jar:2.8:compile
[INFO] |  |  |  \- org.codehaus.xfire:xfire-xmlbeans:jar:1.2.6:compile
[INFO] |  |  |     \- xmlbeans:xbean:jar:2.2.0:compile
[INFO] |  |  +- org.springframework:spring-aspects:jar:2.5:compile
[INFO] | | \- org.springframework:spring-context-support:jar:2.5:compile
[INFO] |  +- commons-dbcp:commons-dbcp:jar:1.2.2:compile
[INFO] |  |  \- commons-pool:commons-pool:jar:1.3:compile
[INFO] |  +- org.directwebremoting:dwr:jar:2.0.1:compile
[INFO] |  +- javax.servlet:jstl:jar:1.1.2:compile
[INFO] |  +- taglibs:standard:jar:1.1.2:compile
[INFO] |  +- struts-menu:struts-menu:jar:2.4.3:compile
[INFO] |  |  +- commons-collections:commons-collections:jar:3.0:compile
[INFO] |  |  +- commons-digester:commons-digester:jar:1.7:compile
[INFO] |  |  +- commons-logging:commons-logging:jar:1.0.4:compile
[INFO] |  |  \- velocity-tools:velocity-tools-view:jar:1.0:compile
[INFO] |  +- opensymphony:clickstream:jar:1.0.2:compile
[INFO] |  +- opensymphony:oscache:jar:2.3:compile
[INFO] |  +- opensymphony:sitemesh:jar:2.2.1:compile
[INFO] |  +- org.springframework:spring-aop:jar:2.5:compile
[INFO] |  |  +- aopalliance:aopalliance:jar:1.0:compile
[INFO] |  |  +- org.springframework:spring-beans:jar:2.5:compile
[INFO] |  |  \- org.springframework:spring-core:jar:2.5:compile
[INFO] |  +- org.springframework:spring-webmvc:jar:2.5:compile
[INFO] |  |  +- org.springframework:spring-context:jar:2.5:compile
[INFO] |  |  \- org.springframework:spring-web:jar:2.5:compile
[INFO] |  +- org.tuckey:urlrewritefilter:jar:3.0.4:compile
[INFO] |  +- org.springmodules:spring-modules-validation:jar:0.8:compile
[INFO] |  |  +- commons-validator:commons-validator:jar:1.3.0:compile
[INFO] |  |  +- antlr:antlr:jar:2.7.6:compile
[INFO] |  |  \- rhino:js:jar:1.6R2:compile
[INFO] |  +- commons-fileupload:commons-fileupload:jar:1.1.1:compile
[INFO] |  |  \- commons-io:commons-io:jar:1.1:compile
[INFO] |  +- org.appfuse:appfuse-web-common:war:2.0.1:compile
[INFO] |  +- displaytag:displaytag:jar:1.1.1:compile
[INFO] |  |  +- com.lowagie:itext:jar:1.3:compile
[INFO] |  |  +- org.slf4j:jcl104-over-slf4j:jar:1.4.2:compile
[INFO] |  |  \- org.slf4j:slf4j-log4j12:jar:1.4.2:compile
[INFO] |  |     \- org.slf4j:slf4j-api:jar:1.4.2:compile
[INFO] |  \- org.appfuse:appfuse-web-common:warpath:2.0.1:compile
[INFO] \- ar.com.dreamssoft.pos:pos-server-core:jar:1.0-SNAPSHOT:compile
[INFO]    \- org.appfuse:appfuse-hibernate:jar:2.0.1:compile
[INFO]       +- org.springframework:spring-jdbc:jar:2.5:compile
[INFO]       |  \- org.springframework:spring-tx:jar:2.5:compile
[INFO]       +- org.springframework:spring-orm:jar:2.5:compile
[INFO]       +- org.appfuse:appfuse-data-common:jar:2.0.1:compile
[INFO]       |  \- javax.persistence:persistence-api:jar:1.0:compile
[INFO]       +- org.hibernate:hibernate:jar:3.2.5.ga:compile
[INFO]       |  +- javax.transaction:jta:jar:1.0.1B:compile
[INFO]       |  +- asm:asm-attrs:jar:1.5.3:compile
[INFO]       |  +- dom4j:dom4j:jar:1.6.1:compile
[INFO]       |  +- cglib:cglib:jar:2.1_3:compile
[INFO]       |  \- asm:asm:jar:1.5.3:compile
[INFO]       +- org.hibernate:hibernate-annotations:jar:3.3.0.ga:compile
[INFO] \- org.hibernate:hibernate-commons-annotations:jar:3.3.0.ga:compile
[INFO]
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO] ------------------------------------------------------------------------ [INFO] AppFuse Modular Application ........................... SUCCESS [12.922s] [INFO] AppFuse Modular Application - Core .................... SUCCESS [4.234s] [INFO] AppFuse Modular Application - Web (Spring MVC) ........ SUCCESS [4.141s] [INFO] ------------------------------------------------------------------------ [INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESSFUL
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 25 seconds
[INFO] Finished at: Thu Apr 03 07:17:08 ART 2008
[INFO] Final Memory: 14M/25M
[INFO] ------------------------------------------------------------------------



I put an issue in Jira *APF-1041 <http://issues.appfuse.org/browse/APF-1041> ( http://issues.appfuse.org/browse/APF-1041 )

I hope this bug can be fixed soon. AppFuse rocks (except for this bug lol)!

Pablo
*

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to