I have mavenized the JBoss Seam DVD Store example to Maven2. It's more or less 
complete, but the test-cases fails (TestNG). The error seem to be caused by a 
jndi-configuration error. The jboss console doesn't show any thrown exceptions, 
but this is the output from the admin-test-case:


  | 
-------------------------------------------------------------------------------
  | Test set: admin beans
  | 
-------------------------------------------------------------------------------
  | Tests run: 1, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 0.356 sec 
<<< FAILURE!
  | testTopProducts  Time elapsed: 0.006 sec  <<< FAILURE!
  | org.jboss.seam.InstantiationException: Could not instantiate Seam 
component: stats
  |     at org.jboss.seam.Component.newInstance(Component.java:735)
  |     at org.jboss.seam.Component.newInstance(Component.java:1308)
  |     at org.jboss.seam.Component.getInstance(Component.java:1263)
  |     at org.jboss.seam.Component.getInstance(Component.java:1246)
  |     at org.jboss.seam.mock.SeamTest$Script.getInstance(SeamTest.java:125)
  |     at 
com.jboss.dvd.seam.test.StoreManagerTest$1.updateModelValues(StoreManagerTest.java:22)
  |     at org.jboss.seam.mock.SeamTest$Script.run(SeamTest.java:237)
  |     at 
com.jboss.dvd.seam.test.StoreManagerTest.testTopProducts(StoreManagerTest.java:17)
  | 

I have any clue what causes this? If you'd like to investigate, the the 
source-code is available at:

http://people.opera.com/over/maven2/seam-dvd-1.0.1.zip

I have updated the readme.txt with regards to  jboss-seam-server installation 
issues. This due to problems with running Seam 1.0.1.GA in JBoss 4.0.4 and Seam 
1.0.1.GA. Therefore you have to patch your jboss-installation. 

Everything is pre-configured, but you may configure the jboss properties in the 
bottom of the jboss-seam-dvd/pom.xml (EAR). If you are going to deploy on JBoss 
you should copy the datasource 
'jboss-seam-dvd-ejb/src/main/resources/META-INF/dvd-ds.xml' to deployment 
directory, before you issue 'mvn cargo:deploy'.

All the best,
Ove Ranheim


View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3955329#3955329

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3955329

Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to