Hey! i checked out fresh sources from the repo. Obviously, i forgot to check in the src/test/resources/META-INF/ejb-jar.xml Without that file, OpenEJB doesn't consider the target/test-classes as a module so no injection can be used.
Anyway, still don't understand why eclipse still don't see this new file on my filesystem. Gonna commit it ASAP. Jean-Louis kevan wrote: > > > On Mar 8, 2010, at 6:03 AM, [email protected] wrote: > >> Author: jlmonteiro >> Date: Mon Mar 8 11:03:56 2010 >> New Revision: 920267 >> >> URL: http://svn.apache.org/viewvc?rev=920267&view=rev >> Log: >> Add @WebServiceRef injection to the test case. > > Jean-Louis, > I'm seeing test failures which would seem related to your recent updates. > Are tests working for you? > > Tests run: 3, Failures: 0, Errors: 3, Skipped: 0, Time elapsed: 3.659 sec > <<< FAILURE! > testCalculatorViaWsInterface(org.superbiz.calculator.CalculatorTest) Time > elapsed: 3.631 sec <<< ERROR! > javax.naming.NamingException: Unable to find injection meta-data for > org.superbiz.calculator.CalculatorTest. Ensure that class was annotated > with @org.apache.openejb.api.LocalClient and was successfully discovered > and deployed. See > http://openejb.apache.org/3.0/local-client-injection.html > at > org.apache.openejb.client.LocalInitialContext.inject(LocalInitialContext.java:198) > at > org.apache.openejb.client.LocalInitialContext.bind(LocalInitialContext.java:172) > at javax.naming.InitialContext.bind(InitialContext.java:359) > at org.superbiz.calculator.CalculatorTest.setUp(CalculatorTest.java:55) > at junit.framework.TestCase.runBare(TestCase.java:128) > at junit.framework.TestResult$1.protect(TestResult.java:110) > at junit.framework.TestResult.runProtected(TestResult.java:128) > at junit.framework.TestResult.run(TestResult.java:113) > at junit.framework.TestCase.run(TestCase.java:120) > at junit.framework.TestSuite.runTest(TestSuite.java:228) > at junit.framework.TestSuite.run(TestSuite.java:223) > at > org.junit.internal.runners.OldTestClassRunner.run(OldTestClassRunner.java:35) > at > org.apache.maven.surefire.junit4.JUnit4TestSet.execute(JUnit4TestSet.java:62) > at > org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTestSet(AbstractDirectoryTestSuite.java:140) > at > org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(AbstractDirectoryTestSuite.java:127) > at org.apache.maven.surefire.Surefire.run(Surefire.java:177) > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) > at > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) > at java.lang.reflect.Method.invoke(Method.java:592) > at > org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(SurefireBooter.java:345) > at > org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:1009) > > --kevan > -- View this message in context: http://n4.nabble.com/Re-svn-commit-r920267-in-openejb-trunk-openejb3-examples-simple-webservice-src-main-java-org-superbia-tp1589044p1590423.html Sent from the OpenEJB Dev mailing list archive at Nabble.com.
