1 2 Previous Next 17 Replies Latest reply: Oct 17, 2011 3:06 AM by Joern Ohmen RSS

org.jboss.arquillian.container.impl.ContainerCreationException: Could not create Container jbossas

qtrin Newbie

Hello,

i have donloaded the SNAPSHOT version of arquillian (arquillian-arquillian-core-1.0.0.Alpha5-27-g2311296.zip).

Then i got the exception

Caused by: org.jboss.arquillian.container.impl.ContainerCreationException: Could not create Container jbossas

    at org.jboss.arquillian.container.impl.LocalContainerRegistry.create(LocalContainerRegistry.java:80)

    at org.jboss.arquillian.container.impl.client.container.ContainerRegistryCreator.createRegistry(ContainerRegistryCreator.java:68)

    .........................

Caused by: java.lang.IllegalArgumentException: DeployableContainer must be specified

    at org.jboss.arquillian.core.spi.Validate.notNull(Validate.java:44)

    at org.jboss.arquillian.container.impl.ContainerImpl.<init>(ContainerImpl.java:43)

    at org.jboss.arquillian.container.impl.LocalContainerRegistry.create(LocalContainerRegistry.java:72)

    ... 52 more

by running the example TemperatureConverterTestCase against 'jbossas-remote-5.1' which didn't occurr by the old version 1.0.0.Alpha5.

 

Here is my arquillian.xml

    <engine>

        <property name="deploymentExportPath">target/</property>

    </engine>

  <container qualifier="jbossas" default="true">

     <configuration>

        <property name="providerUrl">jnp://localhost:1099</property>

     </configuration>

     <protocol type="Servlet 2.5">

        <configuration>

            <property name="host">localhost</property>

            <property name="port">8080</property>

        </configuration>

     </protocol>

   </container>

 

Has anyone an idea?

 

Thanks in advance.

  • 1. org.jboss.arquillian.container.impl.ContainerCreationException: Could not create Container jbossas
    Aslak Knutsen Master

    The JBoss Container integrations has not been upgraded to the latest Arquillian Core SNAPSHOTs so it won't work.

     

    The module/artifact names / combinations has changed a bit as well in current SNAPSHOT. Stick to Alpha5 if you want something stable.

  • 2. org.jboss.arquillian.container.impl.ContainerCreationException: Could not create Container jbossas
    qtrin Newbie

    With the Alpha5 i got a NamingException by injection:

    AkteurAnonymizerBeanTestCase: Injection problem due to

       .....

       Caused by: javax.naming.NamingException: No EJB found in JNDI, tried the following names: java:global/test.ear/test/AkteurAnonymizerBeanRemoteBean, java:global/test.ear/test/AkteurAnonymizerBeanRemote, java:global/test/AkteurAnonymizerBeanRemote, java:global/test/AkteurAnonymizerBeanRemoteBean, java:global/test/AkteurAnonymizerBeanRemote/no-interface, test/AkteurAnonymizerBeanRemoteBean/local, test/AkteurAnonymizerBeanRemoteBean/remote, test/AkteurAnonymizerBeanRemote/no-interface, AkteurAnonymizerBeanRemoteBean/local, AkteurAnonymizerBeanRemoteBean/remote, AkteurAnonymizerBeanRemote/no-interface

     

    My bean is registered in JBoss under: test/AkteurAnonymizerBean/remote.

    Therefore i tried to use the SNAPSHOT with the hope that the problem was resolved.

  • 3. org.jboss.arquillian.container.impl.ContainerCreationException: Could not create Container jbossas
    Aslak Knutsen Master

    Auto resolution of EJB jndi names is a guessing game at the moment. There is no standard way of finding a EJBs JNDI name based on the injection point(interface) alone.

     

    But you can use the EJB.mappedName to specify the jndi name manually.

  • 4. Re: org.jboss.arquillian.container.impl.ContainerCreationException: Could not create Container jbossas
    Joern Ohmen Newbie

    Is that still an issue? I get that error running 'build' with a snapshot of SeamForge:

     

    org.jboss.arquillian.container.impl.ContainerCreationException: Could not create Container jboss

  • 5. Re: org.jboss.arquillian.container.impl.ContainerCreationException: Could not create Container jbossas
    Aslak Knutsen Master

    What version are you using of Forge and Arquillian? Which Container and v?

  • 6. Re: org.jboss.arquillian.container.impl.ContainerCreationException: Could not create Container jbossas
    Joern Ohmen Newbie

    I use JBoss AS 7.0.1, Seam Forge Snapshot(yesterday), Java 1.6.0_26 x64, Mac OS x64. My project includes arquillian, scaffolding/metawidget and persistence with hibernate. Build shows:

     

    INFO: Could not read active container configuration: null

    Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.229 sec <<< FAILURE!

    Results :

    Tests in error:

      de.bleedingedge.view.YoBeanTest: Could not create a new instance of class org.jboss.arquillian.test.impl.EventTestRunnerAdaptor see cause.

     

    In surefire-reports:

    java.lang.RuntimeException: Could not create a new instance of class org.jboss.arquillian.test.impl.EventTestRunnerAdaptor see cause.

        at org.jboss.arquillian.test.spi.SecurityActions.newInstance(SecurityActions.java:170)

        at org.jboss.arquillian.test.spi.TestRunnerAdaptorBuilder.build(TestRunnerAdaptorBuilder.java:52)

        at org.jboss.arquillian.junit.Arquillian.run(Arquillian.java:72)

        at org.apache.maven.surefire.junit4.JUnit4TestSet.execute(JUnit4TestSet.java:35)

        at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:115)

        at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:97)

        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.booter.ProviderFactory$ClassLoaderProxy.invoke(ProviderFactory.java:103)

        at $Proxy0.invoke(Unknown Source)

        at org.apache.maven.surefire.booter.SurefireStarter.invokeProvider(SurefireStarter.java:150)

        at org.apache.maven.surefire.booter.SurefireStarter.runSuitesInProcess(SurefireStarter.java:91)

        at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:69)

    Caused by: java.lang.reflect.InvocationTargetException

        at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)

        at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)

        at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)

        at java.lang.reflect.Constructor.newInstance(Constructor.java:513)

        at org.jboss.arquillian.test.spi.SecurityActions.newInstance(SecurityActions.java:166)

        ... 14 more

    Caused by: org.jboss.arquillian.container.impl.ContainerCreationException: Could not create Container jboss

        at org.jboss.arquillian.container.impl.LocalContainerRegistry.create(LocalContainerRegistry.java:80)

        at org.jboss.arquillian.container.impl.client.container.ContainerRegistryCreator.createRegistry(ContainerRegistryCreator.java:68)

        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.jboss.arquillian.core.impl.ObserverImpl.invoke(ObserverImpl.java:90)

        at org.jboss.arquillian.core.impl.EventContextImpl.invokeObservers(EventContextImpl.java:99)

        at org.jboss.arquillian.core.impl.EventContextImpl.proceed(EventContextImpl.java:81)

        at org.jboss.arquillian.core.impl.ManagerImpl.fire(ManagerImpl.java:134)

        at org.jboss.arquillian.core.impl.ManagerImpl.fire(ManagerImpl.java:114)

        at org.jboss.arquillian.core.impl.ManagerImpl.bindAndFire(ManagerImpl.java:235)

        at org.jboss.arquillian.core.impl.InstanceImpl.set(InstanceImpl.java:74)

        at org.jboss.arquillian.config.impl.extension.ConfigurationRegistrar.loadConfiguration(ConfigurationRegistrar.java:58)

        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.jboss.arquillian.core.impl.ObserverImpl.invoke(ObserverImpl.java:90)

        at org.jboss.arquillian.core.impl.EventContextImpl.invokeObservers(EventContextImpl.java:99)

        at org.jboss.arquillian.core.impl.EventContextImpl.proceed(EventContextImpl.java:81)

        at org.jboss.arquillian.core.impl.ManagerImpl.fire(ManagerImpl.java:134)

        at org.jboss.arquillian.core.impl.ManagerImpl.fire(ManagerImpl.java:114)

        at org.jboss.arquillian.core.impl.ManagerImpl.start(ManagerImpl.java:260)

        at org.jboss.arquillian.test.impl.EventTestRunnerAdaptor.<init>(EventTestRunnerAdaptor.java:56)

        ... 19 more

    Caused by: java.lang.IllegalArgumentException: DeployableContainer must be specified

        at org.jboss.arquillian.core.spi.Validate.notNull(Validate.java:44)

        at org.jboss.arquillian.container.impl.ContainerImpl.<init>(ContainerImpl.java:43)

        at org.jboss.arquillian.container.impl.LocalContainerRegistry.create(LocalContainerRegistry.java:72)

        ... 43 more

    Caused by: java.lang.reflect.InvocationTargetException

        at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)

        at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)

        at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)

        at java.lang.reflect.Constructor.newInstance(Constructor.java:513)

        at org.jboss.arquillian.test.spi.SecurityActions.newInstance(SecurityActions.java:166)

        ... 14 more

    Caused by: org.jboss.arquillian.container.impl.ContainerCreationException: Could not create Container jboss

        at org.jboss.arquillian.container.impl.LocalContainerRegistry.create(LocalContainerRegistry.java:80)

        at org.jboss.arquillian.container.impl.client.container.ContainerRegistryCreator.createRegistry(ContainerRegistryCreator.java:68)

        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.jboss.arquillian.core.impl.ObserverImpl.invoke(ObserverImpl.java:90)

        at org.jboss.arquillian.core.impl.EventContextImpl.invokeObservers(EventContextImpl.java:99)

        at org.jboss.arquillian.core.impl.EventContextImpl.proceed(EventContextImpl.java:81)

        at org.jboss.arquillian.core.impl.ManagerImpl.fire(ManagerImpl.java:134)

        at org.jboss.arquillian.core.impl.ManagerImpl.fire(ManagerImpl.java:114)

        at org.jboss.arquillian.core.impl.ManagerImpl.bindAndFire(ManagerImpl.java:235)

        at org.jboss.arquillian.core.impl.InstanceImpl.set(InstanceImpl.java:74)

        at org.jboss.arquillian.config.impl.extension.ConfigurationRegistrar.loadConfiguration(ConfigurationRegistrar.java:58)

        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.jboss.arquillian.core.impl.ObserverImpl.invoke(ObserverImpl.java:90)

        at org.jboss.arquillian.core.impl.EventContextImpl.invokeObservers(EventContextImpl.java:99)

        at org.jboss.arquillian.core.impl.EventContextImpl.proceed(EventContextImpl.java:81)

        at org.jboss.arquillian.core.impl.ManagerImpl.fire(ManagerImpl.java:134)

        at org.jboss.arquillian.core.impl.ManagerImpl.fire(ManagerImpl.java:114)

        at org.jboss.arquillian.core.impl.ManagerImpl.start(ManagerImpl.java:260)

        at org.jboss.arquillian.test.impl.EventTestRunnerAdaptor.<init>(EventTestRunnerAdaptor.java:56)

        ... 19 more

    Caused by: java.lang.IllegalArgumentException: DeployableContainer must be specified

        at org.jboss.arquillian.core.spi.Validate.notNull(Validate.java:44)

        at org.jboss.arquillian.container.impl.ContainerImpl.<init>(ContainerImpl.java:43)

        at org.jboss.arquillian.container.impl.LocalContainerRegistry.create(LocalContainerRegistry.java:72)

        ... 43 more

  • 7. Re: org.jboss.arquillian.container.impl.ContainerCreationException: Could not create Container jbossas
    Aslak Knutsen Master

    Do you have a Arquillian Container on classpath? org.jboss.arquillian.container:arquillian-xxxx-xxx-xx ?

  • 9. Re: org.jboss.arquillian.container.impl.ContainerCreationException: Could not create Container jbossas
    Joern Ohmen Newbie

    Sorry for th elate answer, I tried it with the latest snapshots of Seam Forge.

     

    The pom.xml of the Forge-Project contains:

     

    <profiles>

        <profile>

          <id>arq-jbossas-7-remote</id>

          <dependencies>

            <dependency>

              <groupId>org.jboss.as</groupId>

              <artifactId>jboss-as-arquillian-container-remote</artifactId>

              <version>7.0.1.Final</version>

              <scope>test</scope>

            </dependency>

          </dependencies>

        </profile>

      </profiles>

     

    the arquillian.xml of my project:

     

    <arquillian xmlns="http://jboss.org/schema/arquillian" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://jboss.org/schema/arquillian http://jboss.org/schema/arquillian/arquillian_1_0.xsd">

      <container default="true" qualifier="jboss">

        <configuration>

          <property name="jbossHome">/Users/myuser/Development/jboss-as-7.0.1.Final/</property>

        </configuration>

        <protocol type="jmx-as7">

          <property name="executionType">REMOTE</property>

        </protocol>

      </container>

    </arquillian>

     

    It only works in Seam Forge with

     

    'mvn clean test -Parq-jbossas-7-remote'

     

    but not with

     

    'build'

     

    Thanks a lot

  • 10. Re: org.jboss.arquillian.container.impl.ContainerCreationException: Could not create Container jbossas
    Aslak Knutsen Master

    You get the top post exception when you run:

     

    mvn clean test -Parq-jbossas-7-remote

     

    from the command line outside of forge?

  • 11. Re: org.jboss.arquillian.container.impl.ContainerCreationException: Could not create Container jbossas
    Joern Ohmen Newbie

    I get the top post exception when I run

     

    'build' in Forge.

     

     

     

    With

     

    'mvn clean test -Parq-jbossas-7-remote' it is working. Inside and outside of Forge .

     

  • 12. Re: org.jboss.arquillian.container.impl.ContainerCreationException: Could not create Container jbossas
    Aslak Knutsen Master

    aha, right.. build probably does not activate the arq-jbossas-7-remote container.

     

    build -Parq-jbossas-7-remote

     

    maybe ?

  • 14. Re: org.jboss.arquillian.container.impl.ContainerCreationException: Could not create Container jbossas
    Aslak Knutsen Master

    Lincoln says: Fixed in SNAPSHOT - will push and release beta3 today

1 2 Previous Next