tomee-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Charles Christophe (EXT)" <christophe.charles-...@natixis.com>
Subject testFailure
Date Tue, 21 Oct 2014 07:57:27 GMT
Hello,

I try to use deltaSpike to test my appli with cdi :

Pom.xml :
...
...
<dependency>
            <groupId>org.apache.deltaspike.core</groupId>
            <artifactId>deltaspike-core-api</artifactId>
            <version>1.0.3</version>
        </dependency>
        <dependency>
            <groupId>org.apache.deltaspike.core</groupId>
            <artifactId>deltaspike-core-impl</artifactId>
            <version>1.0.3</version>
            <scope>runtime</scope>
        </dependency>
             <dependency>
            <groupId>org.apache.deltaspike.modules</groupId>
            <artifactId>deltaspike-test-control-module-api</artifactId>
            <version>1.0.3</version>
            <scope>test</scope>
        </dependency>
        <dependency>
            <groupId>org.apache.deltaspike.modules</groupId>
            <artifactId>deltaspike-test-control-module-impl</artifactId>
            <version>1.0.3</version>
            <scope>test</scope>
        </dependency>
        <dependency>
            <groupId>org.apache.deltaspike.cdictrl</groupId>
            <artifactId>deltaspike-cdictrl-api</artifactId>
            <version>1.0.3</version>
            <scope>test</scope>
        </dependency>
       <dependency>
            <groupId>org.apache.deltaspike.cdictrl</groupId>
            <artifactId>deltaspike-cdictrl-openejb</artifactId>
            <version>1.0.3</version>
            <scope>test</scope>
        </dependency>
        <dependency>
            <groupId>org.apache.openejb</groupId>
            <artifactId>openejb-core</artifactId>
            <version>4.6.0</version>
            <scope>test</scope>
        </dependency>
        <dependency>
             <groupId>commons-dbcp</groupId>
                    <artifactId>commons-dbcp</artifactId>
                    <version>1.4</version>
                    <scope>test</scope>
             </dependency>
...
...

Error Junit :

20 oct. 2014 18:09:25 org.apache.openejb.OpenEJB$Instance <init>
INFO: ********************************************************************************
20 oct. 2014 18:09:25 org.apache.openejb.OpenEJB$Instance <init>
INFO: OpenEJB http://openejb.apache.org/
20 oct. 2014 18:09:25 org.apache.openejb.OpenEJB$Instance <init>
INFO: Startup: Mon Oct 20 18:09:25 CEST 2014
20 oct. 2014 18:09:25 org.apache.openejb.OpenEJB$Instance <init>
INFO: Copyright 1999-2013 (C) Apache OpenEJB Project, All Rights Reserved.
20 oct. 2014 18:09:25 org.apache.openejb.OpenEJB$Instance <init>
INFO: Version: 4.6.0
20 oct. 2014 18:09:25 org.apache.openejb.OpenEJB$Instance <init>
INFO: Build date: 20131117
20 oct. 2014 18:09:25 org.apache.openejb.OpenEJB$Instance <init>
INFO: Build time: 06:49
20 oct. 2014 18:09:25 org.apache.openejb.OpenEJB$Instance <init>
INFO: ********************************************************************************
20 oct. 2014 18:09:25 org.apache.openejb.OpenEJB$Instance <init>
INFO: openejb.home = C:\work\workspace.ws4\sag-web
20 oct. 2014 18:09:25 org.apache.openejb.OpenEJB$Instance <init>
INFO: openejb.base = C:\work\workspace.ws4\sag-web
20 oct. 2014 18:09:25 org.apache.openejb.cdi.CdiBuilder initializeOWB
INFO: Created new singletonService org.apache.openejb.cdi.ThreadSingletonServiceImpl@1bd7848
20 oct. 2014 18:09:25 org.apache.openejb.cdi.CdiBuilder initializeOWB
INFO: Succeeded in installing singleton service
20 oct. 2014 18:09:25 org.apache.openejb.config.ConfigUtils searchForConfiguration
INFO: Cannot find the configuration file [conf/openejb.xml].  Will attempt to create one for
the beans deployed.
20 oct. 2014 18:09:25 org.apache.openejb.config.ConfigurationFactory configureService
INFO: Configuring Service(id=Default Security Service, type=SecurityService, provider-id=Default
Security Service)
20 oct. 2014 18:09:25 org.apache.openejb.config.ConfigurationFactory configureService
INFO: Configuring Service(id=Default Transaction Manager, type=TransactionManager, provider-id=Default
Transaction Manager)
20 oct. 2014 18:09:25 org.apache.openejb.config.DeploymentsResolver loadFromClasspath
INFO: Inspecting classpath for applications: 42 urls. Consider adjusting your exclude/include.
 Current settings: openejb.deployments.classpath.exclude='', openejb.deployments.classpath.include='.*'
20 oct. 2014 18:09:26 org.apache.openejb.config.DeploymentsResolver processUrls
INFO: Found EjbModule in classpath: c:\program files (x86)\developpements\.m2\repository\org\apache\deltaspike\core\deltaspike-core-api\1.0.3\deltaspike-core-api-1.0.3.jar
20 oct. 2014 18:09:26 org.apache.openejb.config.DeploymentsResolver processUrls
INFO: Found EjbModule in classpath: c:\program files (x86)\developpements\.m2\repository\org\apache\myfaces\extensions\cdi\bundles\myfaces-extcdi-bundle-jsf20\1.0.5.nxs1\myfaces-extcdi-bundle-jsf20-1.0.5.nxs1.jar
20 oct. 2014 18:09:26 org.apache.openejb.config.DeploymentsResolver processUrls
INFO: Found EjbModule in classpath: c:\program files (x86)\developpements\.m2\repository\com\natixis\sphinx\sphinx-jsf\6.0.0.ga\sphinx-jsf-6.0.0.ga.jar
20 oct. 2014 18:09:26 org.apache.openejb.config.DeploymentsResolver processUrls
INFO: Found EjbModule in classpath: c:\program files (x86)\developpements\.m2\repository\org\apache\deltaspike\modules\deltaspike-test-control-module-impl\1.0.3\deltaspike-test-control-module-impl-1.0.3.jar
20 oct. 2014 18:09:26 org.apache.openejb.config.DeploymentsResolver processUrls
INFO: Found EjbModule in classpath: c:\program files (x86)\developpements\.m2\repository\org\apache\deltaspike\cdictrl\deltaspike-cdictrl-openejb\1.0.3\deltaspike-cdictrl-openejb-1.0.3.jar
20 oct. 2014 18:09:27 org.apache.openejb.config.DeploymentsResolver processUrls
INFO: Found EjbModule in classpath: c:\work\workspace.ws4\sag-web\src\main\webapp\web-inf\classes
20 oct. 2014 18:09:27 org.apache.openejb.config.DeploymentsResolver processUrls
INFO: Found EjbModule in classpath: c:\program files (x86)\developpements\.m2\repository\javax\cache\implementation\cache-annotations-ri-cdi\0.4-nxs1\cache-annotations-ri-cdi-0.4-nxs1.jar
20 oct. 2014 18:09:27 org.apache.openejb.config.DeploymentsResolver processUrls
INFO: Found PersistenceModule in classpath: c:\work\workspace.ws4\sag-web\target\test-classes
20 oct. 2014 18:09:27 org.apache.openejb.config.DeploymentsResolver processUrls
INFO: Found EjbModule in classpath: c:\program files (x86)\developpements\.m2\repository\org\apache\deltaspike\core\deltaspike-core-impl\1.0.3\deltaspike-core-impl-1.0.3.jar
20 oct. 2014 18:09:27 org.apache.openejb.config.DeploymentsResolver loadFromClasspath
INFO: Searched 42 classpath urls in 1297 milliseconds.  Average 30 milliseconds per url.
20 oct. 2014 18:09:27 org.apache.openejb.config.ConfigurationFactory loadApplication
INFO: Beginning load: c:\program files (x86)\developpements\.m2\repository\org\apache\deltaspike\core\deltaspike-core-api\1.0.3\deltaspike-core-api-1.0.3.jar
20 oct. 2014 18:09:27 org.apache.openejb.config.ConfigurationFactory loadApplication
INFO: Beginning load: c:\program files (x86)\developpements\.m2\repository\org\apache\myfaces\extensions\cdi\bundles\myfaces-extcdi-bundle-jsf20\1.0.5.nxs1\myfaces-extcdi-bundle-jsf20-1.0.5.nxs1.jar
20 oct. 2014 18:09:27 org.apache.openejb.config.ConfigurationFactory loadApplication
INFO: Beginning load: c:\program files (x86)\developpements\.m2\repository\com\natixis\sphinx\sphinx-jsf\6.0.0.ga\sphinx-jsf-6.0.0.ga.jar
20 oct. 2014 18:09:27 org.apache.openejb.config.ConfigurationFactory loadApplication
INFO: Beginning load: c:\program files (x86)\developpements\.m2\repository\org\apache\deltaspike\modules\deltaspike-test-control-module-impl\1.0.3\deltaspike-test-control-module-impl-1.0.3.jar
20 oct. 2014 18:09:27 org.apache.openejb.config.ConfigurationFactory loadApplication
INFO: Beginning load: c:\program files (x86)\developpements\.m2\repository\org\apache\deltaspike\cdictrl\deltaspike-cdictrl-openejb\1.0.3\deltaspike-cdictrl-openejb-1.0.3.jar
20 oct. 2014 18:09:27 org.apache.openejb.config.ConfigurationFactory loadApplication
INFO: Beginning load: c:\work\workspace.ws4\sag-web\src\main\webapp\web-inf\classes
20 oct. 2014 18:09:27 org.apache.openejb.config.ConfigurationFactory loadApplication
INFO: Beginning load: c:\program files (x86)\developpements\.m2\repository\javax\cache\implementation\cache-annotations-ri-cdi\0.4-nxs1\cache-annotations-ri-cdi-0.4-nxs1.jar
20 oct. 2014 18:09:27 org.apache.openejb.config.ConfigurationFactory loadApplication
INFO: Beginning load: c:\work\workspace.ws4\sag-web\target\test-classes
20 oct. 2014 18:09:27 org.apache.openejb.config.ConfigurationFactory loadApplication
INFO: Beginning load: c:\program files (x86)\developpements\.m2\repository\org\apache\deltaspike\core\deltaspike-core-impl\1.0.3\deltaspike-core-impl-1.0.3.jar
20 oct. 2014 18:09:27 org.apache.openejb.config.ConfigurationFactory configureApplication
INFO: Configuring enterprise application: C:\work\workspace.ws4\sag-web\classpath.ear
20 oct. 2014 18:09:28 org.apache.openejb.config.AnnotationDeployer$ProcessAnnotatedBeans getLookupMethod
ATTENTION: Method 'lookup' is not available for 'javax.annotation.Resource'. Probably using
an older Runtime.
20 oct. 2014 18:09:28 org.apache.openejb.util.OpenEJBErrorHandler handleUnknownError
GRAVE: FATAL ERROR: Unknown error in Assembler.  Please send the following stack trace and
this message to users@openejb.apache.org :
java.lang.IllegalArgumentException: The com.natixis.kappa.frontend.typologie.ws.v2.ReferentielTypologieService
is not annotated
       at org.apache.openejb.core.webservices.JaxWsUtils.getServiceQName(JaxWsUtils.java:162)
       at org.apache.openejb.config.AnnotationDeployer$ProcessAnnotatedBeans.buildWebServiceRef(AnnotationDeployer.java:4592)
       at org.apache.openejb.config.AnnotationDeployer$ProcessAnnotatedBeans.buildAnnotatedRefs(AnnotationDeployer.java:3691)
       at org.apache.openejb.config.AnnotationDeployer$ProcessAnnotatedBeans.deploy(AnnotationDeployer.java:2695)
       at org.apache.openejb.config.AnnotationDeployer$ProcessAnnotatedBeans.deploy(AnnotationDeployer.java:1800)
       at org.apache.openejb.config.AnnotationDeployer.deploy(AnnotationDeployer.java:355)
       at org.apache.openejb.config.ConfigurationFactory$Chain.deploy(ConfigurationFactory.java:396)
       at org.apache.openejb.config.ConfigurationFactory.configureApplication(ConfigurationFactory.java:938)
       at org.apache.openejb.config.ConfigurationFactory.configureApplication(ConfigurationFactory.java:799)
       at org.apache.openejb.config.ConfigurationFactory.getOpenEjbConfiguration(ConfigurationFactory.java:531)
       at org.apache.openejb.config.ConfigurationFactory.getOpenEjbConfiguration(ConfigurationFactory.java:575)
       at org.apache.openejb.assembler.classic.Assembler.getOpenEjbConfiguration(Assembler.java:429)
       at org.apache.openejb.assembler.classic.Assembler.build(Assembler.java:408)
       at org.apache.openejb.OpenEJB$Instance.<init>(OpenEJB.java:148)
       at org.apache.openejb.OpenEJB$Instance.<init>(OpenEJB.java:65)
       at org.apache.openejb.OpenEJB.init(OpenEJB.java:296)
       at org.apache.openejb.OpenEJB.init(OpenEJB.java:276)
       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.openejb.loader.OpenEJBInstance.init(OpenEJBInstance.java:36)
       at org.apache.openejb.core.LocalInitialContextFactory.init(LocalInitialContextFactory.java:96)
       at org.apache.openejb.core.LocalInitialContextFactory.init(LocalInitialContextFactory.java:60)
       at org.apache.openejb.core.LocalInitialContextFactory.getInitialContext(LocalInitialContextFactory.java:44)
       at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:667)
       at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:288)
       at javax.naming.InitialContext.init(InitialContext.java:223)
       at javax.naming.InitialContext.<init>(InitialContext.java:197)
       at org.apache.deltaspike.cdise.openejb.OpenEjbContainerControl.boot(OpenEjbContainerControl.java:102)
       at org.apache.deltaspike.cdise.openejb.OpenEjbContainerControl.boot(OpenEjbContainerControl.java:84)
       at org.apache.deltaspike.testcontrol.api.junit.CdiTestRunner$ContainerAwareTestContext.applyBeforeClassConfig(CdiTestRunner.java:455)
       at org.apache.deltaspike.testcontrol.api.junit.CdiTestRunner$BeforeClassStatement.evaluate(CdiTestRunner.java:360)
       at org.apache.deltaspike.testcontrol.api.junit.CdiTestRunner$AfterClassStatement.evaluate(CdiTestRunner.java:387)
       at org.junit.runners.ParentRunner.run(ParentRunner.java:236)
       at org.apache.deltaspike.testcontrol.api.junit.CdiTestRunner.run(CdiTestRunner.java:136)
       at org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:50)
       at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)
       at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:467)
       at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:683)
       at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:390)
       at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:197)

20 oct. 2014 18:09:28 org.apache.openejb.OpenEJB$Instance <init>
GRAVE: OpenEJB has encountered a fatal error and cannot be started: Assembler failed to build
the container system.
org.apache.openejb.OpenEJBException: java.lang.IllegalArgumentException: The com.natixis.kappa.frontend.typologie.ws.v2.ReferentielTypologieService
is not annotated: The com.natixis.kappa.frontend.typologie.ws.v2.ReferentielTypologieService
is not annotated
       at org.apache.openejb.assembler.classic.Assembler.build(Assembler.java:422)
       at org.apache.openejb.OpenEJB$Instance.<init>(OpenEJB.java:148)
       at org.apache.openejb.OpenEJB$Instance.<init>(OpenEJB.java:65)
       at org.apache.openejb.OpenEJB.init(OpenEJB.java:296)
       at org.apache.openejb.OpenEJB.init(OpenEJB.java:276)
       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.openejb.loader.OpenEJBInstance.init(OpenEJBInstance.java:36)
       at org.apache.openejb.core.LocalInitialContextFactory.init(LocalInitialContextFactory.java:96)
       at org.apache.openejb.core.LocalInitialContextFactory.init(LocalInitialContextFactory.java:60)
       at org.apache.openejb.core.LocalInitialContextFactory.getInitialContext(LocalInitialContextFactory.java:44)
       at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:667)
       at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:288)
       at javax.naming.InitialContext.init(InitialContext.java:223)
       at javax.naming.InitialContext.<init>(InitialContext.java:197)
       at org.apache.deltaspike.cdise.openejb.OpenEjbContainerControl.boot(OpenEjbContainerControl.java:102)
       at org.apache.deltaspike.cdise.openejb.OpenEjbContainerControl.boot(OpenEjbContainerControl.java:84)
       at org.apache.deltaspike.testcontrol.api.junit.CdiTestRunner$ContainerAwareTestContext.applyBeforeClassConfig(CdiTestRunner.java:455)
       at org.apache.deltaspike.testcontrol.api.junit.CdiTestRunner$BeforeClassStatement.evaluate(CdiTestRunner.java:360)
       at org.apache.deltaspike.testcontrol.api.junit.CdiTestRunner$AfterClassStatement.evaluate(CdiTestRunner.java:387)
       at org.junit.runners.ParentRunner.run(ParentRunner.java:236)
       at org.apache.deltaspike.testcontrol.api.junit.CdiTestRunner.run(CdiTestRunner.java:136)
       at org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:50)
       at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)
       at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:467)
       at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:683)
       at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:390)
       at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:197)
Caused by: java.lang.IllegalArgumentException: The com.natixis.kappa.frontend.typologie.ws.v2.ReferentielTypologieService
is not annotated
       at org.apache.openejb.core.webservices.JaxWsUtils.getServiceQName(JaxWsUtils.java:162)
       at org.apache.openejb.config.AnnotationDeployer$ProcessAnnotatedBeans.buildWebServiceRef(AnnotationDeployer.java:4592)
       at org.apache.openejb.config.AnnotationDeployer$ProcessAnnotatedBeans.buildAnnotatedRefs(AnnotationDeployer.java:3691)
       at org.apache.openejb.config.AnnotationDeployer$ProcessAnnotatedBeans.deploy(AnnotationDeployer.java:2695)
       at org.apache.openejb.config.AnnotationDeployer$ProcessAnnotatedBeans.deploy(AnnotationDeployer.java:1800)
       at org.apache.openejb.config.AnnotationDeployer.deploy(AnnotationDeployer.java:355)
       at org.apache.openejb.config.ConfigurationFactory$Chain.deploy(ConfigurationFactory.java:396)
       at org.apache.openejb.config.ConfigurationFactory.configureApplication(ConfigurationFactory.java:938)
       at org.apache.openejb.config.ConfigurationFactory.configureApplication(ConfigurationFactory.java:799)
       at org.apache.openejb.config.ConfigurationFactory.getOpenEjbConfiguration(ConfigurationFactory.java:531)
       at org.apache.openejb.config.ConfigurationFactory.getOpenEjbConfiguration(ConfigurationFactory.java:575)
       at org.apache.openejb.assembler.classic.Assembler.getOpenEjbConfiguration(Assembler.java:429)
       at org.apache.openejb.assembler.classic.Assembler.build(Assembler.java:408)
       ... 29 more
20 oct. 2014 18:09:28 org.apache.deltaspike.testcontrol.api.junit.CdiTestSuiteRunner$LogRunListener
testFailure
INFO: [failed] com.natixis.assurance.sag.frontend.common.utils.WebServicesUtilTest#null message:
javax.naming.NamingException: Attempted to load OpenEJB. java.lang.IllegalArgumentException:
The com.natixis.kappa.frontend.typologie.ws.v2.ReferentielTypologieService is not annotated:
The com.natixis.kappa.frontend.typologie.ws.v2.ReferentielTypologieService is not annotated
[Root exception is org.apache.openejb.OpenEJBException: java.lang.IllegalArgumentException:
The com.natixis.kappa.frontend.typologie.ws.v2.ReferentielTypologieService is not annotated:
The com.natixis.kappa.frontend.typologie.ws.v2.ReferentielTypologieService is not annotated]


Thanks for your help.

Best Regards



Cordialement.

Gfi Informatique
Christophe CHARLES
Scrum Master / Architecte JEE
Banque Finance Assurance
christophe.charles-ext@natixis.com<mailto:christophe.charles-ext@natixis.com>
-
La Porte du Parc - 145 boulevard Victor Hugo - 93400 Saint-Ouen
Tél. : +33 (0)1 58 32 81 47
www.gfi.fr<http://www.gfi.fr/>

L'integrite de ce message n'etant pas assuree sur internet, Natixis ne peut etre tenu responsable
de son contenu. Toute utilisation ou diffusion non autorisee est interdite. Si
vous n'etes pas destinataire de ce message, merci de le detruire et d'avertir l'expediteur.
Ensemble, faisons un geste pour l'environnement : n'imprimons nos mails que si
necessaire.

The integrity of this message cannot be guaranteed on the Internet. Natixis can not therefore
be considered responsible for the contents. Any unauthorized use or dissemination is
prohibited. If you are not the intended recipient of this message, then please delete it and
notify the sender. Let us mind the environment : let's print our mails only when
necessary

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message