tomee-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Romain Manni-Bucau <rmannibu...@gmail.com>
Subject Re: Arquillian and Remote TomEE
Date Mon, 01 Sep 2014 09:54:59 GMT
our own ones or arquillian ones?

arquillian: org.jboss.arquillian.testenricher/arquillian-testenricher-ejb

our own is created dynamically


Romain Manni-Bucau
Twitter: @rmannibucau
Blog: http://rmannibucau.wordpress.com/
LinkedIn: http://fr.linkedin.com/in/rmannibucau
Github: https://github.com/rmannibucau


2014-09-01 11:49 GMT+02:00 Alex Soto <asotobu@gmail.com>:
> Do you know from memory the jar where arquillian enrichers are provided?
>
>
> 2014-09-01 11:47 GMT+02:00 Romain Manni-Bucau <rmannibucau@gmail.com>:
>
>> glassfish and wildfly needs enrichers as well. Maybe they provide them
>> as dependency to their adapter (didnt check). We don't rely on them by
>> default since we have a better enrichment system but for existing
>> tomee we don't want to modify them so we don't add it
>>
>>
>> Romain Manni-Bucau
>> Twitter: @rmannibucau
>> Blog: http://rmannibucau.wordpress.com/
>> LinkedIn: http://fr.linkedin.com/in/rmannibucau
>> Github: https://github.com/rmannibucau
>>
>>
>> 2014-09-01 10:35 GMT+02:00 Alex Soto <asotobu@gmail.com>:
>> > when you say adding Arquillian enrichers you mean the arquillian
>> dependency
>> > right? Ok thank you. But my question is what is the reason on why to do
>> > this when for example  Glassfish and Wildlfy does not require it?
>> >
>> >
>> > 2014-09-01 10:32 GMT+02:00 Romain Manni-Bucau <rmannibucau@gmail.com>:
>> >
>> >> in such cases we don't add our enricher to not modify the started
>> >> instance I guess, so you surely need to add arquillian enrichers (but
>> >> you can  then do a bit less than us)
>> >>
>> >>
>> >> Romain Manni-Bucau
>> >> Twitter: @rmannibucau
>> >> Blog: http://rmannibucau.wordpress.com/
>> >> LinkedIn: http://fr.linkedin.com/in/rmannibucau
>> >> Github: https://github.com/rmannibucau
>> >>
>> >>
>> >> 2014-09-01 10:26 GMT+02:00 Alex Soto <asotobu@gmail.com>:
>> >> > Well TomEE server is already running in remote host. My arquillian.xml
>> >> conf
>> >> >
>> >> > <arquillian xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
>> >> >     xmlns="http://jboss.org/schema/arquillian"
>> >> >     xsi:schemaLocation="http://jboss.org/schema/arquillian
>> >> > http://www.jboss.org/schema/arquillian/arquillian_1_0.xsd">
>> >> >
>> >> >     <container qualifier="tomee" default="true">
>> >> >     <configuration>
>> >> >         <property name="host">10.0.16.165</property>
>> >> >         <property name="stopHost">10.0.16.165</property>
>> >> >         <property name="properties">
>> >> >         openejb.deployer.binaries.use=true
>> >> >         </property>
>> >> >     </configuration>
>> >> > </container>
>> >> >
>> >> > </arquillian>
>> >> >
>> >> > and dependencies:
>> >> >
>> >> > <dependencyManagement>
>> >> > <dependencies>
>> >> > <dependency>
>> >> > <groupId>org.jboss.arquillian</groupId>
>> >> > <artifactId>arquillian-bom</artifactId>
>> >> > <version>1.1.5.Final</version>
>> >> > <scope>import</scope>
>> >> > <type>pom</type>
>> >> > </dependency>
>> >> > </dependencies>
>> >> > </dependencyManagement>
>> >> >
>> >> > <dependencies>
>> >> > <dependency>
>> >> > <groupId>junit</groupId>
>> >> > <artifactId>junit</artifactId>
>> >> > <version>4.11</version>
>> >> > <scope>test</scope>
>> >> > </dependency>
>> >> >
>> >> > <dependency>
>> >> > <groupId>org.jboss.arquillian.junit</groupId>
>> >> > <artifactId>arquillian-junit-container</artifactId>
>> >> > <scope>test</scope>
>> >> > </dependency>
>> >> >
>> >> > <dependency>
>> >> > <groupId>org.apache.openejb</groupId>
>> >> > <artifactId>arquillian-tomee-remote</artifactId>
>> >> > <version>1.7.0</version>
>> >> > <scope>test</scope>
>> >> > </dependency>
>> >> >
>> >> >
>> >> >
>> >> > 2014-09-01 10:22 GMT+02:00 Romain Manni-Bucau <rmannibucau@gmail.com
>> >:
>> >> >
>> >> >> <?xml version="1.0" encoding="UTF-8"?>
>> >> >> <project xmlns="http://maven.apache.org/POM/4.0.0"
>> >> >>          xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
>> >> >>          xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
>> >> >> http://maven.apache.org/xsd/maven-4.0.0.xsd">
>> >> >>     <modelVersion>4.0.0</modelVersion>
>> >> >>
>> >> >>     <groupId>orgtest</groupId>
>> >> >>     <artifactId>foo</artifactId>
>> >> >>     <version>1.0-SNAPSHOT</version>
>> >> >>
>> >> >>     <dependencies>
>> >> >>         <dependency>
>> >> >>             <groupId>org.apache.openejb</groupId>
>> >> >>             <artifactId>javaee-api</artifactId>
>> >> >>             <version>6.0-6</version>
>> >> >>             <scope>provided</scope>
>> >> >>         </dependency>
>> >> >>         <dependency>
>> >> >>             <groupId>org.apache.openejb</groupId>
>> >> >>             <artifactId>arquillian-tomee-remote</artifactId>
>> >> >>             <version>1.7.0</version>
>> >> >>             <scope>test</scope>
>> >> >>         </dependency>
>> >> >>         <dependency>
>> >> >>             <groupId>junit</groupId>
>> >> >>             <artifactId>junit</artifactId>
>> >> >>             <version>4.11</version>
>> >> >>             <scope>test</scope>
>> >> >>         </dependency>
>> >> >>         <dependency>
>> >> >>             <groupId>org.jboss.arquillian.junit</groupId>
>> >> >>             <artifactId>arquillian-junit-container</artifactId>
>> >> >>             <version>1.1.5.Final</version>
>> >> >>             <scope>test</scope>
>> >> >>         </dependency>
>> >> >>     </dependencies>
>> >> >> </project>
>> >> >>
>> >> >>
>> >> >> but instance is not started
>> >> >>
>> >> >>
>> >> >>
>> >> >> Romain Manni-Bucau
>> >> >> Twitter: @rmannibucau
>> >> >> Blog: http://rmannibucau.wordpress.com/
>> >> >> LinkedIn: http://fr.linkedin.com/in/rmannibucau
>> >> >> Github: https://github.com/rmannibucau
>> >> >>
>> >> >>
>> >> >> 2014-09-01 10:15 GMT+02:00 Alex Soto <asotobu@gmail.com>:
>> >> >> > Are you using embed adpater? In my case in embed adapter works as
>> well
>> >> >> but
>> >> >> > not in remote (when I say remote is a remote as Arquillian defines
>> an
>> >> >> > already started TomEE instance in remote host).
>> >> >> >
>> >> >> >
>> >> >> > 2014-09-01 10:11 GMT+02:00 Romain Manni-Bucau <
>> rmannibucau@gmail.com
>> >> >:
>> >> >> >
>> >> >> >> @RunWith(Arquillian.class)
>> >> >> >> public class TheTest {
>> >> >> >> @Deployment
>> >> >> >> public static JavaArchive deployment() {
>> >> >> >> return
>> ShrinkWrap.create(JavaArchive.class).addClass(HelloEJB.class);
>> >> >> >> }
>> >> >> >>
>> >> >> >> @EJB
>> >> >> >> private HelloEJB helloWorldEjb;
>> >> >> >>
>> >> >> >> @Test
>> >> >> >> public void testHelloWorld() {
>> >> >> >> System.out.println("");
>> >> >> >> System.out.println("");
>> >> >> >> System.out.println(">> " + helloWorldEjb);
>> >> >> >> System.out.println(">> " + helloWorldEjb.h());
>> >> >> >> System.out.println("");
>> >> >> >> System.out.println("");
>> >> >> >> System.out.println("");
>> >> >> >> Assert.assertThat(helloWorldEjb.h(), is("hello"));
>> >> >> >> }
>> >> >> >> }
>> >> >> >>
>> >> >> >>
>> >> >> >>
>> >> >> >> @Singleton
>> >> >> >> public class HelloEJB {
>> >> >> >> public String h() {
>> >> >> >> return "hello";
>> >> >> >> }
>> >> >> >> }
>> >> >> >>
>> >> >> >>
>> >> >> >> leads to
>> >> >> >>
>> >> >> >> sept. 01, 2014 10:10:18 AM
>> org.apache.openejb.arquillian.common.Setup
>> >> >> >> findHome
>> >> >> >> INFOS: Unable to find home in: /tmp/arquillian-apache-tomee
>> >> >> >> sept. 01, 2014 10:10:18 AM
>> >> >> >> org.apache.openejb.arquillian.common.MavenCache getArtifact
>> >> >> >> INFOS: Downloading
>> >> >> >> org.apache.openejb:apache-tomee:1.7.0:zip:webprofile please
>> wait...
>> >> >> >> sept. 01, 2014 10:10:18 AM
>> org.apache.openejb.arquillian.common.Zips
>> >> >> unzip
>> >> >> >> INFOS: Extracting
>> >> >> >>
>> >> >> >>
>> >> >>
>> >>
>> '/home/rmannibu/.m2/repository/org/apache/openejb/apache-tomee/1.7.0/apache-tomee-1.7.0-webprofile.zip'
>> >> >> >> to '/tmp/arquillian-apache-tomee'
>> >> >> >> sept. 01, 2014 10:10:19 AM
>> >> >> >> org.apache.tomee.arquillian.remote.RemoteTomEEContainer configure
>> >> >> >> INFOS: Downloaded container to:
>> >> >> >> /tmp/arquillian-apache-tomee/apache-tomee-webprofile-1.7.0
>> >> >> >> Started server process on port: 8080
>> >> >> >> sept. 01, 2014 10:10:19 AM
>> >> org.apache.catalina.core.AprLifecycleListener
>> >> >> >> init
>> >> >> >> INFOS: The APR based Apache Tomcat Native library which allows
>> >> optimal
>> >> >> >> performance in production environments was not found on the
>> >> >> >> java.library.path:
>> >> >> >>
>> >> >> >>
>> >> >>
>> >>
>> /home/rmannibu/softwares/idea/bin::/usr/java/packages/lib/amd64:/usr/lib64:/lib64:/lib:/usr/lib
>> >> >> >> sept. 01, 2014 10:10:19 AM org.apache.coyote.AbstractProtocol init
>> >> >> >> INFOS: Initializing ProtocolHandler ["http-bio-8080"]
>> >> >> >> sept. 01, 2014 10:10:19 AM org.apache.coyote.AbstractProtocol init
>> >> >> >> INFOS: Initializing ProtocolHandler ["ajp-bio-8009"]
>> >> >> >> sept. 01, 2014 10:10:20 AM org.apache.openejb.util.OptionsLog info
>> >> >> >> INFOS: Using
>> >> >> >>
>> >> >>
>> >>
>> 'openejb.jdbc.datasource-creator=org.apache.tomee.jdbc.TomEEDataSourceCreator'
>> >> >> >> sept. 01, 2014 10:10:20 AM org.apache.openejb.OpenEJB$Instance
>> <init>
>> >> >> >> INFOS:
>> >> >> >>
>> >> >>
>> >>
>> ********************************************************************************
>> >> >> >> sept. 01, 2014 10:10:20 AM org.apache.openejb.OpenEJB$Instance
>> <init>
>> >> >> >> INFOS: OpenEJB http://openejb.apache.org/
>> >> >> >> sept. 01, 2014 10:10:20 AM org.apache.openejb.OpenEJB$Instance
>> <init>
>> >> >> >> INFOS: Startup: Mon Sep 01 10:10:20 CEST 2014
>> >> >> >> sept. 01, 2014 10:10:20 AM org.apache.openejb.OpenEJB$Instance
>> <init>
>> >> >> >> INFOS: Copyright 1999-2013 (C) Apache OpenEJB Project, All Rights
>> >> >> Reserved.
>> >> >> >> sept. 01, 2014 10:10:20 AM org.apache.openejb.OpenEJB$Instance
>> <init>
>> >> >> >> INFOS: Version: 4.7.0
>> >> >> >> sept. 01, 2014 10:10:20 AM org.apache.openejb.OpenEJB$Instance
>> <init>
>> >> >> >> INFOS: Build date: 20140810
>> >> >> >> sept. 01, 2014 10:10:20 AM org.apache.openejb.OpenEJB$Instance
>> <init>
>> >> >> >> INFOS: Build time: 12:40
>> >> >> >> sept. 01, 2014 10:10:20 AM org.apache.openejb.OpenEJB$Instance
>> <init>
>> >> >> >> INFOS:
>> >> >> >>
>> >> >>
>> >>
>> ********************************************************************************
>> >> >> >> sept. 01, 2014 10:10:20 AM org.apache.openejb.OpenEJB$Instance
>> <init>
>> >> >> >> INFOS: openejb.home =
>> >> >> >> /tmp/arquillian-apache-tomee/apache-tomee-webprofile-1.7.0
>> >> >> >> sept. 01, 2014 10:10:20 AM org.apache.openejb.OpenEJB$Instance
>> <init>
>> >> >> >> INFOS: openejb.base =
>> >> >> >> /tmp/arquillian-apache-tomee/apache-tomee-webprofile-1.7.0
>> >> >> >> sept. 01, 2014 10:10:20 AM org.apache.openejb.cdi.CdiBuilder
>> >> >> initializeOWB
>> >> >> >> INFOS: Created new singletonService
>> >> >> >> org.apache.openejb.cdi.ThreadSingletonServiceImpl@336927e0
>> >> >> >> sept. 01, 2014 10:10:20 AM org.apache.openejb.cdi.CdiBuilder
>> >> >> initializeOWB
>> >> >> >> INFOS: Succeeded in installing singleton service
>> >> >> >> sept. 01, 2014 10:10:20 AM
>> >> >> org.apache.openejb.config.ConfigurationFactory
>> >> >> >> init
>> >> >> >> INFOS: openejb configuration file is
>> >> >> >>
>> >> >>
>> >>
>> '/tmp/arquillian-apache-tomee/apache-tomee-webprofile-1.7.0/conf/tomee.xml'
>> >> >> >> sept. 01, 2014 10:10:20 AM
>> >> >> >> org.apache.openejb.config.ConfigurationFactory configureService
>> >> >> >> INFOS: Configuring Service(id=Tomcat Security Service,
>> >> >> >> type=SecurityService, provider-id=Tomcat Security Service)
>> >> >> >> sept. 01, 2014 10:10:20 AM
>> >> >> >> org.apache.openejb.config.ConfigurationFactory configureService
>> >> >> >> INFOS: Configuring Service(id=Default Transaction Manager,
>> >> >> >> type=TransactionManager, provider-id=Default Transaction Manager)
>> >> >> >> sept. 01, 2014 10:10:20 AM org.apache.openejb.util.OptionsLog info
>> >> >> >> INFOS: Using 'openejb.system.apps=true'
>> >> >> >> sept. 01, 2014 10:10:20 AM
>> >> >> >> org.apache.openejb.config.ConfigurationFactory
>> configureApplication
>> >> >> >> INFOS: Configuring enterprise application: openejb
>> >> >> >> sept. 01, 2014 10:10:20 AM
>> >> org.apache.openejb.config.InitEjbDeployments
>> >> >> >> deploy
>> >> >> >> INFOS: Using openejb.deploymentId.format '{ejbName}'
>> >> >> >> sept. 01, 2014 10:10:20 AM
>> >> org.apache.openejb.config.InitEjbDeployments
>> >> >> >> deploy
>> >> >> >> INFOS: Auto-deploying ejb openejb/Deployer:
>> >> >> >> EjbDeployment(deployment-id=openejb/Deployer)
>> >> >> >> sept. 01, 2014 10:10:20 AM
>> >> org.apache.openejb.config.InitEjbDeployments
>> >> >> >> deploy
>> >> >> >> INFOS: Auto-deploying ejb openejb/ConfigurationInfo:
>> >> >> >> EjbDeployment(deployment-id=openejb/ConfigurationInfo)
>> >> >> >> sept. 01, 2014 10:10:20 AM
>> >> org.apache.openejb.config.InitEjbDeployments
>> >> >> >> deploy
>> >> >> >> INFOS: Auto-deploying ejb MEJB: EjbDeployment(deployment-id=MEJB)
>> >> >> >> sept. 01, 2014 10:10:20 AM
>> >> >> >> org.apache.openejb.config.ConfigurationFactory configureService
>> >> >> >> INFOS: Configuring Service(id=Default Stateless Container,
>> >> >> >> type=Container, provider-id=Default Stateless Container)
>> >> >> >> sept. 01, 2014 10:10:20 AM org.apache.openejb.config.AutoConfig
>> >> >> >> createContainer
>> >> >> >> INFOS: Auto-creating a container for bean openejb/Deployer:
>> >> >> >> Container(type=STATELESS, id=Default Stateless Container)
>> >> >> >> sept. 01, 2014 10:10:20 AM
>> org.apache.openejb.config.AppInfoBuilder
>> >> >> build
>> >> >> >> INFOS: Enterprise application "openejb" loaded.
>> >> >> >> sept. 01, 2014 10:10:20 AM
>> >> >> >> org.apache.openejb.assembler.classic.Assembler createRecipe
>> >> >> >> INFOS: Creating TransactionManager(id=Default Transaction Manager)
>> >> >> >> sept. 01, 2014 10:10:20 AM
>> >> >> >> org.apache.openejb.assembler.classic.Assembler createRecipe
>> >> >> >> INFOS: Creating SecurityService(id=Tomcat Security Service)
>> >> >> >> sept. 01, 2014 10:10:20 AM
>> >> >> >> org.apache.openejb.assembler.classic.Assembler createRecipe
>> >> >> >> INFOS: Creating Container(id=Default Stateless Container)
>> >> >> >> sept. 01, 2014 10:10:20 AM
>> >> >> >> org.apache.openejb.assembler.classic.Assembler createApplication
>> >> >> >> INFOS: Assembling app: openejb
>> >> >> >> sept. 01, 2014 10:10:20 AM org.apache.openejb.util.OptionsLog info
>> >> >> >> INFOS: Using
>> >> >> >>
>> >> >>
>> >>
>> 'openejb.jndiname.format={deploymentId}{interfaceType.openejbLegacyName}'
>> >> >> >> sept. 01, 2014 10:10:20 AM
>> >> >> >> org.apache.openejb.assembler.classic.JndiBuilder bind
>> >> >> >> INFOS: Jndi(name=openejb/DeployerBusinessRemote) -->
>> >> >> >> Ejb(deployment-id=openejb/Deployer)
>> >> >> >> sept. 01, 2014 10:10:20 AM
>> >> >> >> org.apache.openejb.assembler.classic.JndiBuilder bind
>> >> >> >> INFOS:
>> >> >> >>
>> >> >>
>> >>
>> Jndi(name=global/openejb/openejb/Deployer!org.apache.openejb.assembler.Deployer)
>> >> >> >> --> Ejb(deployment-id=openejb/Deployer)
>> >> >> >> sept. 01, 2014 10:10:20 AM
>> >> >> >> org.apache.openejb.assembler.classic.JndiBuilder bind
>> >> >> >> INFOS: Jndi(name=global/openejb/openejb/Deployer) -->
>> >> >> >> Ejb(deployment-id=openejb/Deployer)
>> >> >> >> sept. 01, 2014 10:10:20 AM
>> >> >> >> org.apache.openejb.assembler.classic.JndiBuilder bind
>> >> >> >> INFOS: Jndi(name=openejb/ConfigurationInfoBusinessRemote) -->
>> >> >> >> Ejb(deployment-id=openejb/ConfigurationInfo)
>> >> >> >> sept. 01, 2014 10:10:20 AM
>> >> >> >> org.apache.openejb.assembler.classic.JndiBuilder bind
>> >> >> >> INFOS:
>> >> >> >>
>> >> >>
>> >>
>> Jndi(name=global/openejb/openejb/ConfigurationInfo!org.apache.openejb.assembler.classic.cmd.ConfigurationInfo)
>> >> >> >> --> Ejb(deployment-id=openejb/ConfigurationInfo)
>> >> >> >> sept. 01, 2014 10:10:20 AM
>> >> >> >> org.apache.openejb.assembler.classic.JndiBuilder bind
>> >> >> >> INFOS: Jndi(name=global/openejb/openejb/ConfigurationInfo) -->
>> >> >> >> Ejb(deployment-id=openejb/ConfigurationInfo)
>> >> >> >> sept. 01, 2014 10:10:20 AM
>> >> >> >> org.apache.openejb.assembler.classic.JndiBuilder bind
>> >> >> >> INFOS: Jndi(name=MEJB) --> Ejb(deployment-id=MEJB)
>> >> >> >> sept. 01, 2014 10:10:20 AM
>> >> >> >> org.apache.openejb.assembler.classic.JndiBuilder bind
>> >> >> >> INFOS:
>> >> >> Jndi(name=global/openejb/MEJB!javax.management.j2ee.ManagementHome)
>> >> >> >> --> Ejb(deployment-id=MEJB)
>> >> >> >> sept. 01, 2014 10:10:20 AM
>> >> >> >> org.apache.openejb.assembler.classic.JndiBuilder bind
>> >> >> >> INFOS: Jndi(name=global/openejb/MEJB) --> Ejb(deployment-id=MEJB)
>> >> >> >> sept. 01, 2014 10:10:20 AM
>> >> >> >> org.apache.openejb.assembler.classic.Assembler startEjbs
>> >> >> >> INFOS: Created Ejb(deployment-id=openejb/Deployer,
>> >> >> >> ejb-name=openejb/Deployer, container=Default Stateless Container)
>> >> >> >> sept. 01, 2014 10:10:20 AM
>> >> >> >> org.apache.openejb.assembler.classic.Assembler startEjbs
>> >> >> >> INFOS: Created Ejb(deployment-id=MEJB, ejb-name=MEJB,
>> >> >> >> container=Default Stateless Container)
>> >> >> >> sept. 01, 2014 10:10:20 AM
>> >> >> >> org.apache.openejb.assembler.classic.Assembler startEjbs
>> >> >> >> INFOS: Created Ejb(deployment-id=openejb/ConfigurationInfo,
>> >> >> >> ejb-name=openejb/ConfigurationInfo, container=Default Stateless
>> >> >> >> Container)
>> >> >> >> sept. 01, 2014 10:10:20 AM
>> >> >> >> org.apache.openejb.assembler.classic.Assembler startEjbs
>> >> >> >> INFOS: Started Ejb(deployment-id=openejb/Deployer,
>> >> >> >> ejb-name=openejb/Deployer, container=Default Stateless Container)
>> >> >> >> sept. 01, 2014 10:10:20 AM
>> >> >> >> org.apache.openejb.assembler.classic.Assembler startEjbs
>> >> >> >> INFOS: Started Ejb(deployment-id=MEJB, ejb-name=MEJB,
>> >> >> >> container=Default Stateless Container)
>> >> >> >> sept. 01, 2014 10:10:20 AM
>> >> >> >> org.apache.openejb.assembler.classic.Assembler startEjbs
>> >> >> >> INFOS: Started Ejb(deployment-id=openejb/ConfigurationInfo,
>> >> >> >> ejb-name=openejb/ConfigurationInfo, container=Default Stateless
>> >> >> >> Container)
>> >> >> >> sept. 01, 2014 10:10:20 AM
>> >> >> >> org.apache.openejb.assembler.classic.Assembler deployMBean
>> >> >> >> INFOS: Deployed
>> >> >> >>
>> >> >> >>
>> >> >>
>> >>
>> MBean(openejb.user.mbeans:application=openejb,group=org.apache.openejb.assembler.monitoring,name=JMXDeployer)
>> >> >> >> sept. 01, 2014 10:10:20 AM
>> >> >> >> org.apache.openejb.assembler.classic.Assembler createApplication
>> >> >> >> INFOS: Deployed Application(path=openejb)
>> >> >> >> sept. 01, 2014 10:10:20 AM
>> >> >> org.apache.openejb.server.SimpleServiceManager
>> >> >> >> start
>> >> >> >> INFOS:   ** Bound Services **
>> >> >> >> sept. 01, 2014 10:10:20 AM
>> >> >> >> org.apache.openejb.server.SimpleServiceManager printRow
>> >> >> >> INFOS:   NAME                 IP              PORT
>> >> >> >> sept. 01, 2014 10:10:20 AM
>> >> >> org.apache.openejb.server.SimpleServiceManager
>> >> >> >> start
>> >> >> >> INFOS: -------
>> >> >> >> sept. 01, 2014 10:10:20 AM
>> >> >> org.apache.openejb.server.SimpleServiceManager
>> >> >> >> start
>> >> >> >> INFOS: Ready!
>> >> >> >> sept. 01, 2014 10:10:20 AM org.apache.catalina.startup.Catalina
>> load
>> >> >> >> INFOS: Initialization processed in 1608 ms
>> >> >> >> sept. 01, 2014 10:10:20 AM
>> >> >> >> org.apache.tomee.catalina.OpenEJBNamingContextListener
>> bindResource
>> >> >> >> INFOS: Importing a Tomcat Resource with id 'UserDatabase' of type
>> >> >> >> 'org.apache.catalina.UserDatabase'.
>> >> >> >> sept. 01, 2014 10:10:20 AM
>> >> >> >> org.apache.openejb.assembler.classic.Assembler createRecipe
>> >> >> >> INFOS: Creating Resource(id=UserDatabase)
>> >> >> >> sept. 01, 2014 10:10:20 AM
>> org.apache.catalina.core.StandardService
>> >> >> >> startInternal
>> >> >> >> INFOS: DĂ©marrage du service Catalina
>> >> >> >> sept. 01, 2014 10:10:20 AM org.apache.catalina.core.StandardEngine
>> >> >> >> startInternal
>> >> >> >> INFOS: Starting Servlet Engine: Apache Tomcat (TomEE)/7.0.55
>> (1.7.0)
>> >> >> >> sept. 01, 2014 10:10:21 AM org.apache.coyote.AbstractProtocol
>> start
>> >> >> >> INFOS: Starting ProtocolHandler ["http-bio-8080"]
>> >> >> >> sept. 01, 2014 10:10:21 AM org.apache.coyote.AbstractProtocol
>> start
>> >> >> >> INFOS: Starting ProtocolHandler ["ajp-bio-8009"]
>> >> >> >> sept. 01, 2014 10:10:21 AM org.apache.catalina.startup.Catalina
>> start
>> >> >> >> INFOS: Server startup in 71 ms
>> >> >> >> sept. 01, 2014 10:10:21 AM org.apache.openejb.client.EventLogger
>> log
>> >> >> >> INFOS: RemoteInitialContextCreated{providerUri=
>> >> >> >> http://localhost:8080/tomee/ejb}
>> >> >> >> sept. 01, 2014 10:10:21 AM org.apache.openejb.util.JarExtractor
>> >> extract
>> >> >> >> INFOS: Extracting jar:
>> >> /tmp/arquillian-tomee-app-working-dir/0/test.ear
>> >> >> >> sept. 01, 2014 10:10:21 AM org.apache.openejb.util.JarExtractor
>> >> extract
>> >> >> >> INFOS: Extracted path:
>> /tmp/arquillian-tomee-app-working-dir/0/test
>> >> >> >> sept. 01, 2014 10:10:21 AM org.apache.openejb.util.JarExtractor
>> >> extract
>> >> >> >> INFOS: Extracting jar:
>> >> >> >>
>> /tmp/arquillian-tomee-app-working-dir/0/test/arquillian-protocol.war
>> >> >> >> sept. 01, 2014 10:10:21 AM org.apache.openejb.util.JarExtractor
>> >> extract
>> >> >> >> INFOS: Extracted path:
>> >> >> >> /tmp/arquillian-tomee-app-working-dir/0/test/arquillian-protocol
>> >> >> >> sept. 01, 2014 10:10:21 AM org.apache.openejb.util.OptionsLog info
>> >> >> >> INFOS: Using
>> 'openejb.deployments.classpath.filter.systemapps=false'
>> >> >> >> sept. 01, 2014 10:10:21 AM org.apache.openejb.util.OptionsLog info
>> >> >> >> INFOS: Using
>> >> >> >>
>> >> 'openejb.default.deployment-module=org.apache.openejb.config.WebModule'
>> >> >> >> sept. 01, 2014 10:10:21 AM org.apache.openejb.util.OptionsLog info
>> >> >> >> INFOS: Using
>> >> >> >>
>> >> 'openejb.default.deployment-module=org.apache.openejb.config.WebModule'
>> >> >> >> sept. 01, 2014 10:10:21 AM
>> >> >> >> org.apache.openejb.config.DeploymentsResolver processUrls
>> >> >> >> INFOS: Found EjbModule in classpath:
>> >> >> >>
>> >> >> >>
>> >> >>
>> >>
>> /tmp/arquillian-tomee-app-working-dir/0/test/73565b72-4663-4c2d-9715-d889a3c560f8.jar
>> >> >> >> sept. 01, 2014 10:10:21 AM org.apache.openejb.util.OptionsLog info
>> >> >> >> INFOS: Using
>> >> >> >>
>> >> 'openejb.default.deployment-module=org.apache.openejb.config.WebModule'
>> >> >> >> sept. 01, 2014 10:10:22 AM org.apache.openejb.util.OptionsLog info
>> >> >> >> INFOS: Using
>> >> >> >>
>> >> 'openejb.default.deployment-module=org.apache.openejb.config.WebModule'
>> >> >> >> sept. 01, 2014 10:10:22 AM org.apache.openejb.util.OptionsLog info
>> >> >> >> INFOS: Using
>> >> >> >>
>> >> 'openejb.default.deployment-module=org.apache.openejb.config.WebModule'
>> >> >> >> sept. 01, 2014 10:10:22 AM
>> >> >> >> org.apache.openejb.config.ConfigurationFactory
>> configureApplication
>> >> >> >> INFOS: Configuring enterprise application:
>> >> >> >> /tmp/arquillian-tomee-app-working-dir/0/test
>> >> >> >> sept. 01, 2014 10:10:22 AM
>> >> org.apache.openejb.config.InitEjbDeployments
>> >> >> >> deploy
>> >> >> >> INFOS: Auto-deploying ejb HelloEJB:
>> >> >> EjbDeployment(deployment-id=HelloEJB)
>> >> >> >> sept. 01, 2014 10:10:22 AM
>> >> >> >> org.apache.openejb.config.ConfigurationFactory configureService
>> >> >> >> INFOS: Configuring Service(id=Default Singleton Container,
>> >> >> >> type=Container, provider-id=Default Singleton Container)
>> >> >> >> sept. 01, 2014 10:10:22 AM org.apache.openejb.config.AutoConfig
>> >> >> >> createContainer
>> >> >> >> INFOS: Auto-creating a container for bean HelloEJB:
>> >> >> >> Container(type=SINGLETON, id=Default Singleton Container)
>> >> >> >> sept. 01, 2014 10:10:22 AM
>> >> >> >> org.apache.openejb.assembler.classic.Assembler createRecipe
>> >> >> >> INFOS: Creating Container(id=Default Singleton Container)
>> >> >> >> sept. 01, 2014 10:10:22 AM
>> >> >> >> org.apache.openejb.config.ConfigurationFactory configureService
>> >> >> >> INFOS: Configuring Service(id=Default Managed Container,
>> >> >> >> type=Container, provider-id=Default Managed Container)
>> >> >> >> sept. 01, 2014 10:10:22 AM org.apache.openejb.config.AutoConfig
>> >> >> >> createContainer
>> >> >> >> INFOS: Auto-creating a container for bean test_org.TheTest:
>> >> >> >> Container(type=MANAGED, id=Default Managed Container)
>> >> >> >> sept. 01, 2014 10:10:22 AM
>> >> >> >> org.apache.openejb.assembler.classic.Assembler createRecipe
>> >> >> >> INFOS: Creating Container(id=Default Managed Container)
>> >> >> >> sept. 01, 2014 10:10:22 AM
>> >> >> >> org.apache.openejb.core.managed.SimplePassivater init
>> >> >> >> INFOS: Using directory
>> >> >> >> /tmp/arquillian-apache-tomee/apache-tomee-webprofile-1.7.0/temp
>> for
>> >> >> >> stateful session passivation
>> >> >> >> sept. 01, 2014 10:10:22 AM
>> org.apache.openejb.config.AppInfoBuilder
>> >> >> build
>> >> >> >> INFOS: Enterprise application
>> >> >> >> "/tmp/arquillian-tomee-app-working-dir/0/test" loaded.
>> >> >> >> sept. 01, 2014 10:10:22 AM
>> >> >> >> org.apache.openejb.assembler.classic.Assembler createApplication
>> >> >> >> INFOS: Assembling app:
>> /tmp/arquillian-tomee-app-working-dir/0/test
>> >> >> >> sept. 01, 2014 10:10:22 AM
>> >> >> >> org.apache.openejb.assembler.classic.JndiBuilder bind
>> >> >> >> INFOS: Jndi(name=HelloEJBLocalBean) -->
>> Ejb(deployment-id=HelloEJB)
>> >> >> >> sept. 01, 2014 10:10:22 AM
>> >> >> >> org.apache.openejb.assembler.classic.JndiBuilder bind
>> >> >> >> INFOS:
>> >> >> >>
>> >> >>
>> >>
>> Jndi(name=global/test/73565b72-4663-4c2d-9715-d889a3c560f8/HelloEJB!org.HelloEJB)
>> >> >> >> --> Ejb(deployment-id=HelloEJB)
>> >> >> >> sept. 01, 2014 10:10:22 AM
>> >> >> >> org.apache.openejb.assembler.classic.JndiBuilder bind
>> >> >> >> INFOS:
>> >> >> Jndi(name=global/test/73565b72-4663-4c2d-9715-d889a3c560f8/HelloEJB)
>> >> >> >> --> Ejb(deployment-id=HelloEJB)
>> >> >> >> sept. 01, 2014 10:10:22 AM org.apache.openejb.cdi.CdiBuilder
>> >> >> initSingleton
>> >> >> >> INFOS: Existing thread singleton service in SystemInstance():
>> >> >> >> org.apache.openejb.cdi.ThreadSingletonServiceImpl@336927e0
>> >> >> >> sept. 01, 2014 10:10:22 AM org.apache.openejb.cdi.OpenEJBLifecycle
>> >> >> >> startApplication
>> >> >> >> INFOS: OpenWebBeans Container is starting...
>> >> >> >> sept. 01, 2014 10:10:22 AM
>> org.apache.webbeans.plugins.PluginLoader
>> >> >> startUp
>> >> >> >> INFOS: Adding OpenWebBeansPlugin : [CdiPlugin]
>> >> >> >> sept. 01, 2014 10:10:22 AM
>> org.apache.webbeans.plugins.PluginLoader
>> >> >> startUp
>> >> >> >> INFOS: Adding OpenWebBeansPlugin : [OpenWebBeansJsfPlugin]
>> >> >> >> sept. 01, 2014 10:10:22 AM
>> org.apache.webbeans.config.BeansDeployer
>> >> >> >> validateInjectionPoints
>> >> >> >> INFOS: All injection points were validated successfully.
>> >> >> >> sept. 01, 2014 10:10:22 AM org.apache.openejb.cdi.OpenEJBLifecycle
>> >> >> >> startApplication
>> >> >> >> INFOS: OpenWebBeans Container has started, it took 54 ms.
>> >> >> >> sept. 01, 2014 10:10:22 AM
>> >> >> >> org.apache.openejb.assembler.classic.Assembler startEjbs
>> >> >> >> INFOS: Created Ejb(deployment-id=HelloEJB, ejb-name=HelloEJB,
>> >> >> >> container=Default Singleton Container)
>> >> >> >> sept. 01, 2014 10:10:22 AM
>> >> >> >> org.apache.openejb.assembler.classic.Assembler startEjbs
>> >> >> >> INFOS: Started Ejb(deployment-id=HelloEJB, ejb-name=HelloEJB,
>> >> >> >> container=Default Singleton Container)
>> >> >> >> sept. 01, 2014 10:10:22 AM
>> >> >> >> org.apache.tomee.catalina.TomcatWebAppBuilder deployWebApps
>> >> >> >> INFOS: using default host: localhost
>> >> >> >> sept. 01, 2014 10:10:22 AM
>> >> org.apache.tomee.catalina.TomcatWebAppBuilder
>> >> >> >> init
>> >> >> >> INFOS: ------------------------- localhost -> /arquillian-protocol
>> >> >> >> sept. 01, 2014 10:10:22 AM org.apache.openejb.util.OptionsLog info
>> >> >> >> INFOS: Using
>> >> >> >>
>> >> >>
>> >>
>> 'openejb.session.manager=org.apache.tomee.catalina.session.QuickSessionManager'
>> >> >> >> sept. 01, 2014 10:10:22 AM org.apache.openejb.cdi.CdiBuilder
>> >> >> initSingleton
>> >> >> >> INFOS: Existing thread singleton service in SystemInstance():
>> >> >> >> org.apache.openejb.cdi.ThreadSingletonServiceImpl@336927e0
>> >> >> >> sept. 01, 2014 10:10:22 AM org.apache.openejb.cdi.OpenEJBLifecycle
>> >> >> >> startApplication
>> >> >> >> INFOS: OpenWebBeans Container is starting...
>> >> >> >> sept. 01, 2014 10:10:22 AM
>> org.apache.webbeans.plugins.PluginLoader
>> >> >> startUp
>> >> >> >> INFOS: Adding OpenWebBeansPlugin : [CdiPlugin]
>> >> >> >> sept. 01, 2014 10:10:22 AM
>> org.apache.webbeans.plugins.PluginLoader
>> >> >> startUp
>> >> >> >> INFOS: Adding OpenWebBeansPlugin : [OpenWebBeansJsfPlugin]
>> >> >> >> sept. 01, 2014 10:10:22 AM
>> org.apache.webbeans.config.BeansDeployer
>> >> >> >> validateInjectionPoints
>> >> >> >> INFOS: All injection points were validated successfully.
>> >> >> >> sept. 01, 2014 10:10:22 AM org.apache.openejb.cdi.OpenEJBLifecycle
>> >> >> >> startApplication
>> >> >> >> INFOS: OpenWebBeans Container has started, it took 8 ms.
>> >> >> >> sept. 01, 2014 10:10:22 AM
>> >> >> >> org.apache.openejb.assembler.classic.Assembler createApplication
>> >> >> >> INFOS: Deployed
>> >> >> >> Application(path=/tmp/arquillian-tomee-app-working-dir/0/test)
>> >> >> >>
>> >> >> >>
>> >> >> >> >> proxy=org.HelloEJB;deployment=HelloEJB;pk=null
>> >> >> >> >> hello
>> >> >> >>
>> >> >> >>
>> >> >> >>
>> >> >> >> sept. 01, 2014 10:10:22 AM org.apache.openejb.client.EventLogger
>> log
>> >> >> >> INFOS: RemoteInitialContextCreated{providerUri=
>> >> >> >> http://localhost:8080/tomee/ejb}
>> >> >> >> sept. 01, 2014 10:10:22 AM
>> >> >> >> org.apache.openejb.assembler.classic.Assembler destroyApplication
>> >> >> >> INFOS: Undeploying app:
>> /tmp/arquillian-tomee-app-working-dir/0/test
>> >> >> >> sept. 01, 2014 10:10:23 AM
>> >> >> >> org.apache.openejb.arquillian.common.TomEEContainer undeploy
>> >> >> >> INFOS: cleaning /tmp/arquillian-tomee-app-working-dir/0
>> >> >> >> sept. 01, 2014 10:10:23 AM org.apache.catalina.core.StandardServer
>> >> await
>> >> >> >> INFOS: A valid shutdown command was received via the shutdown
>> port.
>> >> >> >> Stopping the Server instance.
>> >> >> >> sept. 01, 2014 10:10:23 AM org.apache.coyote.AbstractProtocol
>> pause
>> >> >> >> INFOS: Pausing ProtocolHandler ["http-bio-8080"]
>> >> >> >> sept. 01, 2014 10:10:23 AM org.apache.coyote.AbstractProtocol
>> pause
>> >> >> >> INFOS: Pausing ProtocolHandler ["ajp-bio-8009"]
>> >> >> >> sept. 01, 2014 10:10:23 AM
>> org.apache.catalina.core.StandardService
>> >> >> >> stopInternal
>> >> >> >> INFOS: ArrĂȘt du service Catalina
>> >> >> >> sept. 01, 2014 10:10:23 AM org.apache.coyote.AbstractProtocol stop
>> >> >> >> INFOS: Stopping ProtocolHandler ["http-bio-8080"]
>> >> >> >> sept. 01, 2014 10:10:23 AM org.apache.coyote.AbstractProtocol stop
>> >> >> >> INFOS: Stopping ProtocolHandler ["ajp-bio-8009"]
>> >> >> >> sept. 01, 2014 10:10:23 AM
>> >> >> org.apache.openejb.server.SimpleServiceManager
>> >> >> >> stop
>> >> >> >> INFOS: Stopping server services
>> >> >> >> sept. 01, 2014 10:10:23 AM
>> >> >> >> org.apache.openejb.assembler.classic.Assembler destroyApplication
>> >> >> >> INFOS: Undeploying app: openejb
>> >> >> >> sept. 01, 2014 10:10:23 AM org.apache.coyote.AbstractProtocol
>> destroy
>> >> >> >> INFOS: Destroying ProtocolHandler ["http-bio-8080"]
>> >> >> >> sept. 01, 2014 10:10:23 AM org.apache.coyote.AbstractProtocol
>> destroy
>> >> >> >> INFOS: Destroying ProtocolHandler ["ajp-bio-8009"]
>> >> >> >>
>> >> >> >>
>> >> >> >>
>> >> >> >> so it works fine
>> >> >> >>
>> >> >> >>
>> >> >> >> issue is surely elsewhere
>> >> >> >>
>> >> >> >>
>> >> >> >>
>> >> >> >> Romain Manni-Bucau
>> >> >> >> Twitter: @rmannibucau
>> >> >> >> Blog: http://rmannibucau.wordpress.com/
>> >> >> >> LinkedIn: http://fr.linkedin.com/in/rmannibucau
>> >> >> >> Github: https://github.com/rmannibucau
>> >> >> >>
>> >> >> >>
>> >> >> >> 2014-09-01 9:29 GMT+02:00 Alex Soto <asotobu@gmail.com>:
>> >> >> >> > After some time of vacation, today is my first day, and I have
>> >> >> upgraded
>> >> >> >> to
>> >> >> >> > Apache TomEE 1.7.0 and I have tried the same example. Now the
>> >> archive
>> >> >> is
>> >> >> >> > deployed correctly to remote server but the test execution does
>> not
>> >> >> >> > "inject" the EJB.
>> >> >> >> >
>> >> >> >> > In remote apache tomee I can see this log message:
>> >> >> >> > Sep 01, 2014 9:22:22 AM
>> >> >> org.apache.openejb.assembler.classic.JndiBuilder
>> >> >> >> > bind
>> >> >> >> > INFO: Jndi(name=HelloWorldEjbLocalBean) -->
>> >> >> >> Ejb(deployment-id=HelloWorldEjb)
>> >> >> >> >
>> >> >> >> > so Jar file is deployed correctly and EJB registered as expected
>> >> but
>> >> >> when
>> >> >> >> > the test is executed:
>> >> >> >> >
>> >> >> >> > @RunWith(Arquillian.class)
>> >> >> >> > public class HelloWorldTest {
>> >> >> >> >
>> >> >> >> > @Deployment
>> >> >> >> > public static JavaArchive deployment() {
>> >> >> >> > return
>> >> >> >>
>> ShrinkWrap.create(JavaArchive.class).addClass(HelloWorldEjb.class);
>> >> >> >> > }
>> >> >> >> >  @EJB
>> >> >> >> > HelloWorldEjb helloWorldEjb;
>> >> >> >> >  @Test
>> >> >> >> > public void testHelloWorld() {
>> >> >> >> > assertThat(helloWorldEjb.message(), is("Hello World"));
>> >> >> >> > }
>> >> >> >> > }
>> >> >> >> >
>> >> >> >> > A NPE is thrown because helloWorldEjb is null.
>> >> >> >> >
>> >> >> >> > I have tried the same with an embedded TomEE and it works, so it
>> >> >> seems a
>> >> >> >> > "problem?" with remote adapter?
>> >> >> >> >
>> >> >> >> > Thank you so much.
>> >> >> >> >
>> >> >> >> >
>> >> >> >> >
>> >> >> >> > 2014-08-13 17:13 GMT+02:00 Romain Manni-Bucau <
>> >> rmannibucau@gmail.com
>> >> >> >:
>> >> >> >> >
>> >> >> >> >> or the staging repo maybe (that's what I meant)?
>> >> >> >> >>
>> >> >> >> >>
>> >> >> >> >> Romain Manni-Bucau
>> >> >> >> >> Twitter: @rmannibucau
>> >> >> >> >> Blog: http://rmannibucau.wordpress.com/
>> >> >> >> >> LinkedIn: http://fr.linkedin.com/in/rmannibucau
>> >> >> >> >> Github: https://github.com/rmannibucau
>> >> >> >> >>
>> >> >> >> >>
>> >> >> >> >> 2014-08-13 14:37 GMT+02:00 Alex Soto <asotobu@gmail.com>:
>> >> >> >> >> > Cool now trying to use the snapshot, :) I will keep you
>> >> informed.
>> >> >> >> >> >
>> >> >> >> >> >
>> >> >> >> >> > 2014-08-13 14:36 GMT+02:00 Andy Gumbrecht <
>> >> >> agumbrecht@tomitribe.com>:
>> >> >> >> >> >
>> >> >> >> >> >> At least 1.6.0.2 - Not sure that will help, as I think what
>> you
>> >> >> need
>> >> >> >> is
>> >> >> >> >> >> only in 1.7.x - We may get a release tonight if some of the
>> >> other
>> >> >> PMC
>> >> >> >> >> >> members submit a vote.
>> >> >> >> >> >>
>> >> >> >> >> >> Andy.
>> >> >> >> >> >>
>> >> >> >> >> >> --
>> >> >> >> >> >>   Andy Gumbrecht
>> >> >> >> >> >>
>> >> >> >> >> >>   http://www.tomitribe.com
>> >> >> >> >> >>   agumbrecht@tomitribe.com
>> >> >> >> >> >>   https://twitter.com/AndyGeeDe
>> >> >> >> >> >>
>> >> >> >> >> >>   TomEE treibt Tomitribe! | http://tomee.apache.org
>> >> >> >> >> >>
>> >> >> >> >> >>
>> >> >> >> >> >
>> >> >> >> >> >
>> >> >> >> >> > --
>> >> >> >> >> > +----------------------------------------------------------+
>> >> >> >> >> >   Alex Soto Bueno - Computer Engineer
>> >> >> >> >> >   www.lordofthejars.com
>> >> >> >> >> > +----------------------------------------------------------+
>> >> >> >> >>
>> >> >> >> >
>> >> >> >> >
>> >> >> >> >
>> >> >> >> > --
>> >> >> >> > +----------------------------------------------------------+
>> >> >> >> >   Alex Soto Bueno - Computer Engineer
>> >> >> >> >   www.lordofthejars.com
>> >> >> >> > +----------------------------------------------------------+
>> >> >> >>
>> >> >> >
>> >> >> >
>> >> >> >
>> >> >> > --
>> >> >> > +----------------------------------------------------------+
>> >> >> >   Alex Soto Bueno - Computer Engineer
>> >> >> >   www.lordofthejars.com
>> >> >> > +----------------------------------------------------------+
>> >> >>
>> >> >
>> >> >
>> >> >
>> >> > --
>> >> > +----------------------------------------------------------+
>> >> >   Alex Soto Bueno - Computer Engineer
>> >> >   www.lordofthejars.com
>> >> > +----------------------------------------------------------+
>> >>
>> >
>> >
>> >
>> > --
>> > +----------------------------------------------------------+
>> >   Alex Soto Bueno - Computer Engineer
>> >   www.lordofthejars.com
>> > +----------------------------------------------------------+
>>
>
>
>
> --
> +----------------------------------------------------------+
>   Alex Soto Bueno - Computer Engineer
>   www.lordofthejars.com
> +----------------------------------------------------------+

Mime
View raw message