I'm executing the standard Wicket maven archetype's test target and it is
having trouble finding my JNDI datasource.

*mvn jetty:run* works just fine but when I execute the *"mvn test"* target
from within m2eclipse, I get a huge stracktrace with the following excerpt:

        Caused by: javax.naming.NameNotFoundException; remaining name
'jdbc/ds'

My pom references a jetty-env.xml file which includes the definition for
this datasource but that entry is in the Jetty plugin section and I don't
think it is is getting sourced when exec'ing the *"mvn test" *target. I will
post to the Maven forum but before doing so was hoping someone here could
suggest how to have maven test corectly see the datasource in my
jetty-env.xml file while execing the *"mvn test"* target.

Thanks,

-Luther

Reply via email to