tomee-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From amber <ambe...@hotmail.fr>
Subject Cobertura error
Date Fri, 05 Oct 2012 09:44:55 GMT
Hi,

just testing cobertura plugin
(http://mojo.codehaus.org/cobertura-maven-plugin/usage.html)  on moviefun
example and I get an error :

-------------------------------------------------------------------------------
Test set: org.superbiz.moviefun.MoviesTest
-------------------------------------------------------------------------------
Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 4.201 sec
<<< FAILURE!
test(org.superbiz.moviefun.MoviesTest)  Time elapsed: 4.165 sec  <<< ERROR!
javax.naming.NamingException: Injection failed [Root exception is
org.apache.openejb.OpenEJBException: Unable to find injection meta-data for
org.superbiz.moviefun.MoviesTest.  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.core.LocalInitialContext.inject(LocalInitialContext.java:189)
	at
org.apache.openejb.core.LocalInitialContext.bind(LocalInitialContext.java:179)
	at javax.naming.InitialContext.bind(InitialContext.java:400)
	at org.superbiz.moviefun.MoviesTest.setUp(MoviesTest.java:54)
	at junit.framework.TestCase.runBare(TestCase.java:132)
	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:124)
	at junit.framework.TestSuite.runTest(TestSuite.java:243)
	at junit.framework.TestSuite.run(TestSuite.java:238)
	at
org.junit.internal.runners.JUnit38ClassRunner.run(JUnit38ClassRunner.java:83)
	at
org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:236)
	at
org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:134)
	at
org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:113)
	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:597)
	at
org.apache.maven.surefire.util.ReflectionUtils.invokeMethodWithArray(ReflectionUtils.java:189)
	at
org.apache.maven.surefire.booter.ProviderFactory$ProviderProxy.invoke(ProviderFactory.java:165)
	at
org.apache.maven.surefire.booter.ProviderFactory.invokeProvider(ProviderFactory.java:85)
	at
org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:103)
	at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:74)
Caused by: org.apache.openejb.OpenEJBException: Unable to find injection
meta-data for org.superbiz.moviefun.MoviesTest.  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.ClientInjections.clientInjector(ClientInjections.java:61)
	at
org.apache.openejb.core.LocalInitialContext.inject(LocalInitialContext.java:187)
	... 23 more


I've got this error on my project within SOnar/Cobertura plugin, and wanted
to be sure .... 

did I miss something?





--
View this message in context: http://openejb.979440.n4.nabble.com/Cobertura-error-tp4657791.html
Sent from the OpenEJB User mailing list archive at Nabble.com.

Mime
View raw message