[jboss-user] [JBoss Seam] - TestNG
Udo.Krass
do-not-reply at jboss.com
Fri Mar 16 18:23:30 EDT 2007
Hi,
i wanna use TestNG to test my seam webapp.
My classpath settings include my JAR, my EAR, the jndi-parameters and all jars i use in the project:
<testng outputdir="test-output">
| <classpath path="${build}/${ant.project.name}.ear/${ant.project.name}.jar"/>
| <classpath path="${build}/${ant.project.name}.ear"/>
| <classpath path="${res}/microcontainer/conf"/>
| <classpath refid="classpath" />
| <xmlfileset dir="${basedir}" includes="testng.xml" />
| </testng>
But when I invoke my test, i get following Exception:
java.lang.IllegalArgumentException: You must specify org.jboss.seam.core.init.jndiPattern or use @JndiName:
Which file is expected in the classpath?
e.g. I tried to add components.xml seperately, but with no success.
in this file i declare my jndiPattern:
| <core:init debug="true" jndi-pattern="MyProject/#{ejbName}/local"/>
|
My Webapp in the JBoss-Container work pretty well.
Any hints?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4028967#4028967
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4028967
More information about the jboss-user
mailing list