0 Replies Latest reply on Mar 6, 2011 11:11 AM by Tobias Koltsch

    Usage of Embedded JBoss 6 in Eclipse

    Tobias Koltsch Newbie

      Hi,

       

       

       

      I have a JUnit Test, which tests a simple EJB3. The test should run within Embedded JBoss 6 Container.This is configured in an maven profile:

       

       

      <profile>
       <id>jbossas-embedded-6</id>
       <properties>
       <arquillian.version>1.0.0.Alpha4</arquillian.version>
       <jboss.version>6.0.0.Final</jboss.version>
       <jboss.home>${project.build.directory}/jboss-${jboss.version}</jboss.home>
       </properties>
      
       <dependencyManagement>
       <dependencies>
       <dependency>
       <groupId>org.jboss.jbossas</groupId>
       <artifactId>jboss-as-depchain</artifactId>
       <version>${jboss.version}</version>
       <type>pom</type>
       <scope>import</scope>
       </dependency>
       </dependencies>
       </dependencyManagement>
       <dependencies>
       <dependency>
       <groupId>org.jboss.arquillian.container</groupId>
       <artifactId>arquillian-jbossas-embedded-6</artifactId>
       <version>${arquillian.version}</version>
       </dependency>
      
       <dependency>
       <groupId>org.jboss.jbossas</groupId>
       <artifactId>jboss-as-depchain</artifactId>
       <version>${jboss.version}</version>
       <type>pom</type>
       <scope>test</scope>
       </dependency>
       </dependencies>
      
       <build>
       <plugins>
       <plugin>
       <groupId>org.apache.maven.plugins</groupId>
       <artifactId>maven-dependency-plugin</artifactId>
       <executions>
       <execution>
       <id>unpack</id>
       <phase>generate-test-resources</phase>
       <goals>
       <goal>unpack</goal>
       </goals>
       <configuration>
       <artifactItems>
       <artifactItem>
       <groupId>org.jboss.jbossas</groupId>
       <artifactId>jboss-as-distribution</artifactId>
       <version>${jboss.version}</version>
       <type>zip</type>
       <overWrite>false</overWrite>
       <outputDirectory>${project.build.directory}</outputDirectory>
       </artifactItem>
       </artifactItems>
       </configuration>
       </execution>
       </executions>
       </plugin>
      
       <plugin>
       <artifactId>maven-surefire-plugin</artifactId>
       <version>2.6</version>
       <configuration>
       <additionalClasspathElements>
       <additionalClasspathElement>${jboss.home}/client/jbossws-native-client.jar</additionalClasspathElement>
       <additionalClasspathElement>${jboss.home}/server/default/deploy/jbossweb.sar</additionalClasspathElement>
       </additionalClasspathElements>
      
       <trimStackTrace>false</trimStackTrace>
       <printSummary>true</printSummary>
       <skip>false</skip>
      
       <argLine>-Xmx512m-XX:MaxPermSize=256m -Djava.net.preferIPv4Stack=true-Djava.util.logging.manager=org.jboss.logmanager.LogManager-Djava.endorsed.dirs=${jboss.home}/lib/endorsed-Djboss.home=${jboss.home} -Djboss.boot.server.log.dir=${jboss.home}-Dorg.jboss.reflect.spi.TypeInfoFactory=org.jboss.reflect.plugins.introspection.IntrospectionTypeInfoFactory
       </argLine>
       </configuration>
       </plugin>
       </plugins>
       </build>
      </profile>
      

       

       

      When I run the test with maven "mvn clean test -Pjbossas-embedded-6" everything works fine. But now I want to run the test in Eclipse. So I activate the maven profile for the project as described in http://docs.jboss.org/arquillian/reference/latest/en-US/html_single/#d0e569.Then right click on the test class "Run As … > JUnit test" and immediately an FileNotFoundException is thrown because of the lib/ directory doesn't exists. Obviously the configuration from the "maven-surefire-plugin" aren't used. Maybe this is a bug/not implemented feature in M2Eclipse(https://issues.sonatype.org/browse/MNGECLIPSE-1503)?

       

      So in "Run configurations" I manually configured the JunitTest launch with the "jboss.home" variable and the value of "argLine-tag" as JVM arguments. Anymore I manually unpack the "jboss-as-distribution-6.0.0.Final.zip" in the target/ directory. Right click on the test class "Run As … > JUnit test" and the embeddedJBoss startswith an exception:

       

      16:10:25,861 ERROR [AbstractKernelController] Error installing to Start: name=WebServer state=Create: java.lang.NullPointerException

          at java.util.Properties$LineReader.readLine(Properties.java:418) [:1.6.0_24]

          at java.util.Properties.load0(Properties.java:337) [:1.6.0_24]

          at java.util.Properties.load(Properties.java:325) [:1.6.0_24]

          at org.jboss.web.tomcat.service.deployers.TomcatService.startService(TomcatService.java:156) [jboss-as-tomcat-6.0.0.Final.jar:6.0.0.Final]

          at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:355) [jboss-jmx-mc-int-2.2.0.GA.jar:2.2.0.GA]

          at org.jboss.system.ServiceMBeanSupport.pojoStart(ServiceMBeanSupport.java:195) [jboss-jmx-mc-int-2.2.0.GA.jar:2.2.0.GA]

          at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [:1.6.0_24]

          at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) [:1.6.0_24]

          at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) [:1.6.0_24]

          at java.lang.reflect.Method.invoke(Method.java:597) [:1.6.0_24]

          at org.jboss.reflect.plugins.introspection.ReflectionUtils.invoke(ReflectionUtils.java:60) [jboss-reflect-2.2.0.GA.jar:2.2.0.GA]

          at org.jboss.reflect.plugins.introspection.ReflectMethodInfoImpl.invoke(ReflectMethodInfoImpl.java:168) [jboss-reflect-2.2.0.GA.jar:2.2.0.GA]

          at org.jboss.joinpoint.plugins.BasicMethodJoinPoint.dispatch(BasicMethodJoinPoint.java:66) [jboss-reflect-2.2.0.GA.jar:2.2.0.GA]

          at org.jboss.kernel.plugins.dependency.KernelControllerContextAction$JoinpointDispatchWrapper.execute(KernelControllerContextAction.java:257) [jboss-kernel-2.2.0.GA.jar:2.2.0.GA]

          at org.jboss.kernel.plugins.dependency.ExecutionWrapper.execute(ExecutionWrapper.java:47) [jboss-kernel-2.2.0.GA.jar:2.2.0.GA]

          at org.jboss.kernel.plugins.dependency.KernelControllerContextAction.dispatchExecutionWrapper(KernelControllerContextAction.java:125) [jboss-kernel-2.2.0.GA.jar:2.2.0.GA]

          at org.jboss.kernel.plugins.dependency.KernelControllerContextAction.dispatchJoinPoint(KernelControllerContextAction.java:72) [jboss-kernel-2.2.0.GA.jar:2.2.0.GA]

          at org.jboss.kernel.plugins.dependency.LifecycleAction.installActionInternal(LifecycleAction.java:202) [jboss-kernel-2.2.0.GA.jar:2.2.0.GA]

          at org.jboss.kernel.plugins.dependency.InstallsAwareAction.installAction(InstallsAwareAction.java:54) [jboss-kernel-2.2.0.GA.jar:2.2.0.GA]

          at org.jboss.kernel.plugins.dependency.InstallsAwareAction.installAction(InstallsAwareAction.java:42) [jboss-kernel-2.2.0.GA.jar:2.2.0.GA]

          at org.jboss.dependency.plugins.action.SimpleControllerContextAction.simpleInstallAction(SimpleControllerContextAction.java:62) [jboss-dependency-2.2.0.GA.jar:2.2.0.GA]

          at org.jboss.dependency.plugins.action.AccessControllerContextAction.install(AccessControllerContextAction.java:71) [jboss-dependency-2.2.0.GA.jar:2.2.0.GA]

          at org.jboss.dependency.plugins.AbstractControllerContextActions.install(AbstractControllerContextActions.java:51) [jboss-dependency-2.2.0.GA.jar:2.2.0.GA]

          at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:379) [jboss-dependency-2.2.0.GA.jar:2.2.0.GA]

          at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:2044) [jboss-dependency-2.2.0.GA.jar:2.2.0.GA]

          at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:1083) [jboss-dependency-2.2.0.GA.jar:2.2.0.GA]

          at org.jboss.dependency.plugins.AbstractController.executeOrIncrementStateDirectly(AbstractController.java:1322) [jboss-dependency-2.2.0.GA.jar:2.2.0.GA]

          at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1246) [jboss-dependency-2.2.0.GA.jar:2.2.0.GA]

          at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1139) [jboss-dependency-2.2.0.GA.jar:2.2.0.GA]

          at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:939) [jboss-dependency-2.2.0.GA.jar:2.2.0.GA]

          at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:654) [jboss-dependency-2.2.0.GA.jar:2.2.0.GA]

          at org.jboss.system.ServiceController.doChange(ServiceController.java:671) [jboss-jmx-mc-int-2.2.0.GA.jar:2.2.0.GA]

          at org.jboss.system.ServiceController.start(ServiceController.java:443) [jboss-jmx-mc-int-2.2.0.GA.jar:2.2.0.GA]

          at org.jboss.system.microcontainer.jmx.ServiceControllerStartStopLifecycleCallback.install(ServiceControllerStartStopLifecycleCallback.java:44) [jboss-as-system-jmx-6.0.0.Final.jar:6.0.0.Final]

          at sun.reflect.GeneratedMethodAccessor240.invoke(Unknown Source) [:1.6.0_24]

          at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) [:1.6.0_24]

          at java.lang.reflect.Method.invoke(Method.java:597) [:1.6.0_24]

          at org.jboss.reflect.plugins.introspection.ReflectionUtils.invoke(ReflectionUtils.java:60) [jboss-reflect-2.2.0.GA.jar:2.2.0.GA]

          at org.jboss.reflect.plugins.introspection.ReflectMethodInfoImpl.invoke(ReflectMethodInfoImpl.java:168) [jboss-reflect-2.2.0.GA.jar:2.2.0.GA]

          at org.jboss.joinpoint.plugins.BasicMethodJoinPoint.dispatch(BasicMethodJoinPoint.java:66) [jboss-reflect-2.2.0.GA.jar:2.2.0.GA]

          at org.jboss.beans.info.plugins.AbstractBeanInfo.invoke(AbstractBeanInfo.java:300) [jboss-reflect-2.2.0.GA.jar:2.2.0.GA]

          at org.jboss.kernel.plugins.dependency.AbstractKernelControllerContext.invoke(AbstractKernelControllerContext.java:305) [jboss-kernel-2.2.0.GA.jar:2.2.0.GA]

          at org.jboss.dependency.plugins.AbstractLifecycleCallbackItem.install(AbstractLifecycleCallbackItem.java:87) [jboss-dependency-2.2.0.GA.jar:2.2.0.GA]

          at org.jboss.dependency.plugins.AbstractController.handleLifecycleCallbacks(AbstractController.java:2018) [jboss-dependency-2.2.0.GA.jar:2.2.0.GA]

          at org.jboss.dependency.plugins.AbstractController.handleInstallLifecycleCallbacks(AbstractController.java:1983) [jboss-dependency-2.2.0.GA.jar:2.2.0.GA]

          at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:1091) [jboss-dependency-2.2.0.GA.jar:2.2.0.GA]

          at org.jboss.dependency.plugins.AbstractController.executeOrIncrementStateDirectly(AbstractController.java:1322) [jboss-dependency-2.2.0.GA.jar:2.2.0.GA]

          at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1246) [jboss-dependency-2.2.0.GA.jar:2.2.0.GA]

          at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1139) [jboss-dependency-2.2.0.GA.jar:2.2.0.GA]

          at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:894) [jboss-dependency-2.2.0.GA.jar:2.2.0.GA]

          at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:641) [jboss-dependency-2.2.0.GA.jar:2.2.0.GA]

          at org.jboss.system.ServiceController.doInstall(ServiceController.java:653) [jboss-jmx-mc-int-2.2.0.GA.jar:2.2.0.GA]

          at org.jboss.system.ServiceController.register(ServiceController.java:356) [jboss-jmx-mc-int-2.2.0.GA.jar:2.2.0.GA]

          at org.jboss.system.microcontainer.jmx.ServiceControllerRegistrationLifecycleCallback.install(ServiceControllerRegistrationLifecycleCallback.java:104) [jboss-as-system-jmx-6.0.0.Final.jar:6.0.0.Final]

          at sun.reflect.GeneratedMethodAccessor238.invoke(Unknown Source) [:1.6.0_24]

          at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) [:1.6.0_24]

          at java.lang.reflect.Method.invoke(Method.java:597) [:1.6.0_24]

          at org.jboss.reflect.plugins.introspection.ReflectionUtils.invoke(ReflectionUtils.java:60) [jboss-reflect-2.2.0.GA.jar:2.2.0.GA]

          at org.jboss.reflect.plugins.introspection.ReflectMethodInfoImpl.invoke(ReflectMethodInfoImpl.java:168) [jboss-reflect-2.2.0.GA.jar:2.2.0.GA]

          at org.jboss.joinpoint.plugins.BasicMethodJoinPoint.dispatch(BasicMethodJoinPoint.java:66) [jboss-reflect-2.2.0.GA.jar:2.2.0.GA]

          at org.jboss.beans.info.plugins.AbstractBeanInfo.invoke(AbstractBeanInfo.java:300) [jboss-reflect-2.2.0.GA.jar:2.2.0.GA]

          at org.jboss.kernel.plugins.dependency.AbstractKernelControllerContext.invoke(AbstractKernelControllerContext.java:305) [jboss-kernel-2.2.0.GA.jar:2.2.0.GA]

          at org.jboss.dependency.plugins.AbstractLifecycleCallbackItem.install(AbstractLifecycleCallbackItem.java:87) [jboss-dependency-2.2.0.GA.jar:2.2.0.GA]

          at org.jboss.dependency.plugins.AbstractController.handleLifecycleCallbacks(AbstractController.java:2018) [jboss-dependency-2.2.0.GA.jar:2.2.0.GA]

          at org.jboss.dependency.plugins.AbstractController.handleInstallLifecycleCallbacks(AbstractController.java:1983) [jboss-dependency-2.2.0.GA.jar:2.2.0.GA]

          at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:1091) [jboss-dependency-2.2.0.GA.jar:2.2.0.GA]

          at org.jboss.dependency.plugins.AbstractController.executeOrIncrementStateDirectly(AbstractController.java:1322) [jboss-dependency-2.2.0.GA.jar:2.2.0.GA]

          at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1246) [jboss-dependency-2.2.0.GA.jar:2.2.0.GA]

          at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1139) [jboss-dependency-2.2.0.GA.jar:2.2.0.GA]

          at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:939) [jboss-dependency-2.2.0.GA.jar:2.2.0.GA]

          at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:654) [jboss-dependency-2.2.0.GA.jar:2.2.0.GA]

          at org.jboss.system.ServiceController.doChange(ServiceController.java:671) [jboss-jmx-mc-int-2.2.0.GA.jar:2.2.0.GA]

          at org.jboss.system.ServiceController.start(ServiceController.java:443) [jboss-jmx-mc-int-2.2.0.GA.jar:2.2.0.GA]

          at org.jboss.system.microcontainer.jmx.ServiceControllerStartStopLifecycleCallback.install(ServiceControllerStartStopLifecycleCallback.java:44) [jboss-as-system-jmx-6.0.0.Final.jar:6.0.0.Final]

          at sun.reflect.GeneratedMethodAccessor240.invoke(Unknown Source) [:1.6.0_24]

          at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) [:1.6.0_24]

          at java.lang.reflect.Method.invoke(Method.java:597) [:1.6.0_24]

          at org.jboss.reflect.plugins.introspection.ReflectionUtils.invoke(ReflectionUtils.java:60) [jboss-reflect-2.2.0.GA.jar:2.2.0.GA]

          at org.jboss.reflect.plugins.introspection.ReflectMethodInfoImpl.invoke(ReflectMethodInfoImpl.java:168) [jboss-reflect-2.2.0.GA.jar:2.2.0.GA]

          at org.jboss.joinpoint.plugins.BasicMethodJoinPoint.dispatch(BasicMethodJoinPoint.java:66) [jboss-reflect-2.2.0.GA.jar:2.2.0.GA]

          at org.jboss.beans.info.plugins.AbstractBeanInfo.invoke(AbstractBeanInfo.java:300) [jboss-reflect-2.2.0.GA.jar:2.2.0.GA]

          at org.jboss.kernel.plugins.dependency.AbstractKernelControllerContext.invoke(AbstractKernelControllerContext.java:305) [jboss-kernel-2.2.0.GA.jar:2.2.0.GA]

          at org.jboss.dependency.plugins.AbstractLifecycleCallbackItem.install(AbstractLifecycleCallbackItem.java:87) [jboss-dependency-2.2.0.GA.jar:2.2.0.GA]

          at org.jboss.dependency.plugins.AbstractController.handleLifecycleCallbacks(AbstractController.java:2018) [jboss-dependency-2.2.0.GA.jar:2.2.0.GA]

          at org.jboss.dependency.plugins.AbstractController.handleInstallLifecycleCallbacks(AbstractController.java:1983) [jboss-dependency-2.2.0.GA.jar:2.2.0.GA]

          at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:1091) [jboss-dependency-2.2.0.GA.jar:2.2.0.GA]

          at org.jboss.dependency.plugins.AbstractController.executeOrIncrementStateDirectly(AbstractController.java:1322) [jboss-dependency-2.2.0.GA.jar:2.2.0.GA]

          at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1246) [jboss-dependency-2.2.0.GA.jar:2.2.0.GA]

          at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1139) [jboss-dependency-2.2.0.GA.jar:2.2.0.GA]

          at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:894) [jboss-dependency-2.2.0.GA.jar:2.2.0.GA]

          at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:641) [jboss-dependency-2.2.0.GA.jar:2.2.0.GA]

          at org.jboss.deployers.vfs.deployer.kernel.BeanMetaDataDeployer.deploy(BeanMetaDataDeployer.java:182) [jboss-deployers-vfs-2.2.0.GA.jar:2.2.0.GA]

          at org.jboss.deployers.vfs.deployer.kernel.BeanMetaDataDeployer.deploy(BeanMetaDataDeployer.java:58) [jboss-deployers-vfs-2.2.0.GA.jar:2.2.0.GA]

          at org.jboss.deployers.spi.deployer.helpers.AbstractSimpleRealDeployer.internalDeploy(AbstractSimpleRealDeployer.java:62) [jboss-deployers-spi-2.2.0.GA.jar:2.2.0.GA]

          at org.jboss.deployers.spi.deployer.helpers.AbstractRealDeployer.deploy(AbstractRealDeployer.java:55) [jboss-deployers-spi-2.2.0.GA.jar:2.2.0.GA]

          at org.jboss.deployers.plugins.deployers.DeployerWrapper.deploy(DeployerWrapper.java:179) [jboss-deployers-impl-2.2.0.GA.jar:2.2.0.GA]

          at org.jboss.deployers.plugins.deployers.DeployersImpl.doDeploy(DeployersImpl.java:1832) [jboss-deployers-impl-2.2.0.GA.jar:2.2.0.GA]

          at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1550) [jboss-deployers-impl-2.2.0.GA.jar:2.2.0.GA]

          at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1571) [jboss-deployers-impl-2.2.0.GA.jar:2.2.0.GA]

          at org.jboss.deployers.plugins.deployers.DeployersImpl.install(DeployersImpl.java:1491) [jboss-deployers-impl-2.2.0.GA.jar:2.2.0.GA]

          at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:379) [jboss-dependency-2.2.0.GA.jar:2.2.0.GA]

          at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:2044) [jboss-dependency-2.2.0.GA.jar:2.2.0.GA]

          at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:1083) [jboss-dependency-2.2.0.GA.jar:2.2.0.GA]

          at org.jboss.dependency.plugins.AbstractController.executeOrIncrementStateDirectly(AbstractController.java:1322) [jboss-dependency-2.2.0.GA.jar:2.2.0.GA]

          at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1246) [jboss-dependency-2.2.0.GA.jar:2.2.0.GA]

          at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1139) [jboss-dependency-2.2.0.GA.jar:2.2.0.GA]

          at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:939) [jboss-dependency-2.2.0.GA.jar:2.2.0.GA]

          at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:654) [jboss-dependency-2.2.0.GA.jar:2.2.0.GA]

          at org.jboss.deployers.plugins.deployers.DeployersImpl.change(DeployersImpl.java:1983) [jboss-deployers-impl-2.2.0.GA.jar:2.2.0.GA]

          at org.jboss.deployers.plugins.deployers.DeployersImpl.process(DeployersImpl.java:1076) [jboss-deployers-impl-2.2.0.GA.jar:2.2.0.GA]

          at org.jboss.deployers.plugins.main.MainDeployerImpl.process(MainDeployerImpl.java:679) [jboss-deployers-impl-2.2.0.GA.jar:2.2.0.GA]

          at org.jboss.system.server.profileservice.deployers.MainDeployerPlugin.process(MainDeployerPlugin.java:106) [jboss-as-system-6.0.0.Final.jar:6.0.0.Final]

          at org.jboss.profileservice.dependency.ProfileControllerContext$DelegateDeployer.process(ProfileControllerContext.java:143) [jboss-profileservice-core-0.2.2.jar:0.2.2]

          at org.jboss.profileservice.dependency.ProfileDeployAction.deploy(ProfileDeployAction.java:151) [jboss-profileservice-core-0.2.2.jar:0.2.2]

          at org.jboss.profileservice.dependency.ProfileDeployAction.installActionInternal(ProfileDeployAction.java:94) [jboss-profileservice-core-0.2.2.jar:0.2.2]

          at org.jboss.kernel.plugins.dependency.InstallsAwareAction.installAction(InstallsAwareAction.java:54) [jboss-kernel-2.2.0.GA.jar:2.2.0.GA]

          at org.jboss.kernel.plugins.dependency.InstallsAwareAction.installAction(InstallsAwareAction.java:42) [jboss-kernel-2.2.0.GA.jar:2.2.0.GA]

          at org.jboss.dependency.plugins.action.SimpleControllerContextAction.simpleInstallAction(SimpleControllerContextAction.java:62) [jboss-dependency-2.2.0.GA.jar:2.2.0.GA]

          at org.jboss.dependency.plugins.action.AccessControllerContextAction.install(AccessControllerContextAction.java:71) [jboss-dependency-2.2.0.GA.jar:2.2.0.GA]

          at org.jboss.dependency.plugins.AbstractControllerContextActions.install(AbstractControllerContextActions.java:51) [jboss-dependency-2.2.0.GA.jar:2.2.0.GA]

          at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:379) [jboss-dependency-2.2.0.GA.jar:2.2.0.GA]

          at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:2044) [jboss-dependency-2.2.0.GA.jar:2.2.0.GA]

          at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:1083) [jboss-dependency-2.2.0.GA.jar:2.2.0.GA]

          at org.jboss.dependency.plugins.AbstractController.executeOrIncrementStateDirectly(AbstractController.java:1322) [jboss-dependency-2.2.0.GA.jar:2.2.0.GA]

          at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1246) [jboss-dependency-2.2.0.GA.jar:2.2.0.GA]

          at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1139) [jboss-dependency-2.2.0.GA.jar:2.2.0.GA]

          at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:939) [jboss-dependency-2.2.0.GA.jar:2.2.0.GA]

          at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:654) [jboss-dependency-2.2.0.GA.jar:2.2.0.GA]

          at org.jboss.profileservice.dependency.ProfileActivationWrapper$BasicProfileActivation.start(ProfileActivationWrapper.java:190) [jboss-profileservice-core-0.2.2.jar:0.2.2]

          at org.jboss.profileservice.dependency.ProfileActivationWrapper.start(ProfileActivationWrapper.java:87) [jboss-profileservice-core-0.2.2.jar:0.2.2]

          at org.jboss.profileservice.dependency.ProfileActivationService.activateProfile(ProfileActivationService.java:215) [jboss-profileservice-core-0.2.2.jar:0.2.2]

          at org.jboss.profileservice.dependency.ProfileActivationService.activate(ProfileActivationService.java:159) [jboss-profileservice-core-0.2.2.jar:0.2.2]

          at org.jboss.profileservice.bootstrap.AbstractProfileServiceBootstrap.activate(AbstractProfileServiceBootstrap.java:112) [jboss-profileservice-core-0.2.2.jar:0.2.2]

          at org.jboss.profileservice.resolver.BasicResolverFactory$ProfileResolverFacade.deploy(BasicResolverFactory.java:87) [jboss-profileservice-core-0.2.2.jar:0.2.2]

          at org.jboss.profileservice.bootstrap.AbstractProfileServiceBootstrap.start(AbstractProfileServiceBootstrap.java:91) [jboss-profileservice-core-0.2.2.jar:0.2.2]

          at org.jboss.system.server.profileservice.bootstrap.BasicProfileServiceBootstrap.start(BasicProfileServiceBootstrap.java:132) [jboss-as-system-6.0.0.Final.jar:6.0.0.Final]

          at org.jboss.system.server.profileservice.bootstrap.BasicProfileServiceBootstrap.start(BasicProfileServiceBootstrap.java:56) [jboss-as-system-6.0.0.Final.jar:6.0.0.Final]

          at org.jboss.bootstrap.impl.base.server.AbstractServer.startBootstraps(AbstractServer.java:827) [jboss-bootstrap-impl-base-2.1.0-alpha-5.jar:2.1.0-alpha-5]

          at org.jboss.bootstrap.impl.base.server.AbstractServer$StartServerTask.run(AbstractServer.java:417) [jboss-bootstrap-impl-base-2.1.0-alpha-5.jar:2.1.0-alpha-5]

          at java.lang.Thread.run(Thread.java:662) [:1.6.0_24]

       

       

       

      Ithink this is because of the additionalClasspathElements"jbossws-native-client.jar" and "jbossweb.sar"are missing. But both files doesn't exists in the whole JBossdirectory?

       

       

       

      Isthere any possibility to run a JUnit test with usage of EmbeddedJBoss6 from within Eclipse?

       

       

       

      I use:

      Sun JDK 1.6.0_24

      Apache Maven 3.0.2

      Eclipse 3.6.1 with M2Eclipse 0.12.1

       

       

       

      Cheers,

      Tobias