[jboss-user] [JBoss Seam] - Maven2 example application for Seam2
do-not-reply at jboss.com
Tue Jan 1 22:07:44 EST 2008
I have made available for download a work in progress to getting a sample project going with Seam2 building and testing using Maven2 and JBossEmbedded. I thought a lot of the issues would be solved since there is a root pom provided for Seam (and hence the dependencies would be managed for me).
Alas, I always get the following error from the first unit test that attempts to start Embedded JBoss (using the provided SeamTest class in Seam).
anonymous wrote : ERROR [AbstractKernelController] Error installing to Instantiated: name=FileStructure state=Described
| java.lang.NoSuchMethodError: javassist.scopedpool.ScopedClassPool.(Ljava/lang/ClassLoader;Ljavassist/ClassPool;Ljavassist/scopedpool/ScopedClassPoolRepository;Z)V
| at org.jboss.aop.classpool.AOPClassPool.(AOPClassPool.java:69)
I have archived an example application and provided it for download so that perhaps others can point me towards the correct means of achieving this.
The project will build an EAR that successfully deploys and runs within Glassfish v2, however only if you skip the unit tests:
anonymous wrote : mvn -Dmaven.test.skip=true clean install
It uses the 2.0.1.CR1 root pom and the recently published beta3-SNAPSHOT of Embedded JBoss.
It also will enforce using Java5 and Maven 2.0.8+ to ensure the environment is supported correctly.
The archive can be obtained from here: http://www.users.on.net/~cory_prowse/seamMavenExample-20080102.zip
Would love to get some help in getting this to work from anyone capable.
Would it require the new version of JBoss Embedded to be released first?
Hopefully those working on Seam and/or JBossEmbedded can review this before their respective projects make their next releases.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4116298#4116298
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4116298
More information about the jboss-user