6 Replies Latest reply on Feb 26, 2008 1:20 PM by Pete Muir

    Testing fails in Eclipse

    Ziphyre Marco Newbie

      Hi,


      I try to test an action class in a seam project both created with seam tools and with no modifications on the sources. But it fails with the following exceptions. For me it's very easy to duplicate, but I suspect it's a special case since nobody reported a similar problem before (or i missed it):




      • create a new seam project (ear) in eclipse

      • create a new seam action

      • run the ...test.xml file in ...-test project as a TestNG Test




      ERROR [org.jboss.remoting.transport.socket.SocketServerInvoker] Error starting ServerSocket.  Bind port: 3873, bind address: /0.0.0.0
      ERROR [org.jboss.remoting.transport.Connector] Error starting connector.
      java.net.BindException: Address already in use
           at java.net.PlainSocketImpl.socketBind(Native Method)
           at java.net.PlainSocketImpl.bind(PlainSocketImpl.java:359)
           at java.net.ServerSocket.bind(ServerSocket.java:319)
           at java.net.ServerSocket.<init>(ServerSocket.java:185)
           at javax.net.DefaultServerSocketFactory.createServerSocket(ServerSocketFactory.java:169)
           at org.jboss.remoting.transport.socket.SocketServerInvoker.createServerSocket(SocketServerInvoker.java:264)
           at org.jboss.remoting.transport.socket.SocketServerInvoker.start(SocketServerInvoker.java:193)
           at org.jboss.remoting.transport.Connector.start(Connector.java:322)
           at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
           at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
           at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)



      Thanks

        • 1. Re: Testing fails in Eclipse
          Keith Naas Novice

          Are you able to determine what application has that port in use?  You can use a tool like TcpView for Windows
          to see what process has that port open. 


          • 2. Re: Testing fails in Eclipse
            Ziphyre Marco Newbie

            I think it's the application server:


            ziphyre@neptune:~$ netstat -lp | grep 3873
            tcp        0      0 localhost:3873          *:*                     LISTEN     17251/java



            The process name is java, eclipse on the other hand runs on its own name, so it's probably JBoss AS...

            • 3. Re: Testing fails in Eclipse
              Ziphyre Marco Newbie

              Yep, it's the AS, when I stop it, netstat on port 3873 gives me nothing. And when I try to run the test with AS stopped:


              FAILED CONFIGURATION: @BeforeMethod begin
              org.jboss.seam.InstantiationException: Could not instantiate Seam component: org.jboss.seam.security.identity
                   at org.jboss.seam.Component.newInstance(Component.java:1970)
                   at org.jboss.seam.contexts.Contexts.startup(Contexts.java:304)
                   at org.jboss.seam.contexts.Contexts.startup(Contexts.java:278)
                   at org.jboss.seam.contexts.Lifecycle.beginSession(Lifecycle.java:191)
                   at org.jboss.seam.contexts.ServletLifecycle.beginSession(ServletLifecycle.java:124)
                   at org.jboss.seam.mock.BaseSeamTest.begin(BaseSeamTest.java:912)
                   at org.jboss.seam.mock.SeamTest.begin(SeamTest.java:28)
              Caused by: org.drools.RuntimeDroolsException: Unable to load dialect 'org.drools.rule.builder.dialect.java.JavaDialectConfiguration:java'
                   at org.drools.compiler.PackageBuilderConfiguration.addDialect(PackageBuilderConfiguration.java:152)
                   at org.drools.compiler.PackageBuilderConfiguration.buildDialectConfigurationMap(PackageBuilderConfiguration.java:140)
                   at org.drools.compiler.PackageBuilderConfiguration.init(PackageBuilderConfiguration.java:117)
                   at org.drools.compiler.PackageBuilderConfiguration.<init>(PackageBuilderConfiguration.java:94)
                   at org.jboss.seam.drools.RuleBase.compileRuleBase(RuleBase.java:40)
                   at org.jboss.seam.util.Reflections.invoke(Reflections.java:21)
                   at org.jboss.seam.util.Reflections.invokeAndWrap(Reflections.java:125)
                   at org.jboss.seam.Component.callComponentMethod(Component.java:2082)
                   at org.jboss.seam.Component.callCreateMethod(Component.java:2005)
                   at org.jboss.seam.Component.newInstance(Component.java:1976)
                   at org.jboss.seam.Component.getInstance(Component.java:1873)
                   at org.jboss.seam.Component.getInstance(Component.java:1840)
                   at org.jboss.seam.Namespace.getComponentInstance(Namespace.java:55)
                   at org.jboss.seam.Namespace.getComponentInstance(Namespace.java:50)
                   at org.jboss.seam.el.SeamELResolver.resolveBase(SeamELResolver.java:166)
                   at org.jboss.seam.el.SeamELResolver.getValue(SeamELResolver.java:53)
                   at javax.el.CompositeELResolver.getValue(CompositeELResolver.java:53)
                   at org.jboss.el.parser.AstIdentifier.getValue(AstIdentifier.java:44)
                   at org.jboss.el.ValueExpressionImpl.getValue(ValueExpressionImpl.java:186)
                   at org.jboss.seam.core.Expressions$1.getValue(Expressions.java:111)
                   at org.jboss.seam.Component$ELInitialValue.getValue(Component.java:2360)
                   at org.jboss.seam.Component.initialize(Component.java:1389)
                   at org.jboss.seam.Component.instantiateJavaBean(Component.java:1315)
                   at org.jboss.seam.Component.instantiate(Component.java:1268)
                   at org.jboss.seam.Component.newInstance(Component.java:1966)
                   ... 30 more
              Caused by: java.lang.RuntimeException: The Eclipse JDT Core jar is not in the classpath
                   at org.drools.rule.builder.dialect.java.JavaDialectConfiguration.setCompiler(JavaDialectConfiguration.java:93)
                   at org.drools.rule.builder.dialect.java.JavaDialectConfiguration.init(JavaDialectConfiguration.java:54)
                   at org.drools.compiler.PackageBuilderConfiguration.addDialect(PackageBuilderConfiguration.java:148)
                   ... 58 more


              • 4. Re: Testing fails in Eclipse
                Keith Naas Novice

                Hmmm, one other question.  Is the stack trace that shows the BindException the full stack trace?  If it isn't, could you provide the full stack trace?

                • 5. Re: Testing fails in Eclipse
                  Ziphyre Marco Newbie

                  Here, it is:



                  ERROR [org.jboss.remoting.transport.socket.SocketServerInvoker] Error starting ServerSocket.  Bind port: 3873, bind address: /0.0.0.0
                  ERROR [org.jboss.remoting.transport.Connector] Error starting connector.
                  java.net.BindException: Address already in use
                       at java.net.PlainSocketImpl.socketBind(Native Method)
                       at java.net.PlainSocketImpl.bind(PlainSocketImpl.java:359)
                       at java.net.ServerSocket.bind(ServerSocket.java:319)
                       at java.net.ServerSocket.<init>(ServerSocket.java:185)
                       at javax.net.DefaultServerSocketFactory.createServerSocket(ServerSocketFactory.java:169)
                       at org.jboss.remoting.transport.socket.SocketServerInvoker.createServerSocket(SocketServerInvoker.java:264)
                       at org.jboss.remoting.transport.socket.SocketServerInvoker.start(SocketServerInvoker.java:193)
                       at org.jboss.remoting.transport.Connector.start(Connector.java:322)
                       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:585)
                       at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:157)
                       at org.jboss.mx.server.Invocation.dispatch(Invocation.java:96)
                       at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
                       at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
                       at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:668)
                       at org.jboss.system.microcontainer.ServiceProxy.invoke(ServiceProxy.java:184)
                       at $Proxy9.start(Unknown Source)
                       at org.jboss.system.microcontainer.StartStopLifecycleAction.installAction(StartStopLifecycleAction.java:42)
                       at org.jboss.system.microcontainer.StartStopLifecycleAction.installAction(StartStopLifecycleAction.java:37)
                       at org.jboss.dependency.plugins.action.SimpleControllerContextAction.simpleInstallAction(SimpleControllerContextAction.java:62)
                       at org.jboss.dependency.plugins.action.AccessControllerContextAction.install(AccessControllerContextAction.java:71)
                       at org.jboss.dependency.plugins.AbstractControllerContextActions.install(AbstractControllerContextActions.java:51)
                       at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:327)
                       at org.jboss.system.microcontainer.ServiceControllerContext.install(ServiceControllerContext.java:255)
                       at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1309)
                       at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:734)
                       at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:862)
                       at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:784)
                       at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:622)
                       at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:411)
                       at org.jboss.system.ServiceController.doChange(ServiceController.java:659)
                       at org.jboss.system.ServiceController.start(ServiceController.java:431)
                       at org.jboss.system.deployers.ServiceDeployer.start(ServiceDeployer.java:149)
                       at org.jboss.system.deployers.ServiceDeployer.deploy(ServiceDeployer.java:107)
                       at org.jboss.system.deployers.ServiceDeployer.deploy(ServiceDeployer.java:46)
                       at org.jboss.deployers.spi.deployer.helpers.AbstractSimpleRealDeployer.internalDeploy(AbstractSimpleRealDeployer.java:65)
                       at org.jboss.deployers.spi.deployer.helpers.AbstractRealDeployer.deploy(AbstractRealDeployer.java:50)
                       at org.jboss.deployers.plugins.deployers.DeployerWrapper.deploy(DeployerWrapper.java:169)
                       at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:853)
                       at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:874)
                       at org.jboss.deployers.plugins.deployers.DeployersImpl.install(DeployersImpl.java:794)
                       at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:327)
                       at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1309)
                       at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:734)
                       at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:862)
                       at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:784)
                       at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:622)
                       at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:411)
                       at org.jboss.deployers.plugins.deployers.DeployersImpl.process(DeployersImpl.java:498)
                       at org.jboss.deployers.plugins.main.MainDeployerImpl.process(MainDeployerImpl.java:506)
                       at org.jboss.embedded.DeploymentScanner.start(DeploymentScanner.java:105)
                       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:585)
                       at org.jboss.reflect.plugins.introspection.ReflectionUtils.invoke(ReflectionUtils.java:56)
                       at org.jboss.reflect.plugins.introspection.ReflectMethodInfoImpl.invoke(ReflectMethodInfoImpl.java:110)
                       at org.jboss.joinpoint.plugins.BasicMethodJoinPoint.dispatch(BasicMethodJoinPoint.java:66)
                       at org.jboss.kernel.plugins.dependency.KernelControllerContextAction$JoinpointDispatchWrapper.execute(KernelControllerContextAction.java:214)
                       at org.jboss.kernel.plugins.dependency.ExecutionWrapper.execute(ExecutionWrapper.java:45)
                       at org.jboss.kernel.plugins.dependency.KernelControllerContextAction.dispatchExecutionWrapper(KernelControllerContextAction.java:108)
                       at org.jboss.kernel.plugins.dependency.KernelControllerContextAction.dispatchJoinPoint(KernelControllerContextAction.java:69)
                       at org.jboss.kernel.plugins.dependency.LifecycleAction.installActionInternal(LifecycleAction.java:221)
                       at org.jboss.kernel.plugins.dependency.KernelControllerContextAction.installAction(KernelControllerContextAction.java:135)
                       at org.jboss.kernel.plugins.dependency.KernelControllerContextAction.installAction(KernelControllerContextAction.java:46)
                       at org.jboss.dependency.plugins.action.SimpleControllerContextAction.simpleInstallAction(SimpleControllerContextAction.java:62)
                       at org.jboss.dependency.plugins.action.AccessControllerContextAction.install(AccessControllerContextAction.java:71)
                       at org.jboss.dependency.plugins.AbstractControllerContextActions.install(AbstractControllerContextActions.java:51)
                       at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:327)
                       at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1309)
                       at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:734)
                       at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:862)
                       at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:784)
                       at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:574)
                       at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:398)
                       at org.jboss.kernel.plugins.deployment.AbstractKernelDeployer.deployBean(AbstractKernelDeployer.java:309)
                       at org.jboss.kernel.plugins.deployment.AbstractKernelDeployer.deployBeans(AbstractKernelDeployer.java:279)
                       at org.jboss.kernel.plugins.deployment.AbstractKernelDeployer.deploy(AbstractKernelDeployer.java:130)
                       at org.jboss.kernel.plugins.deployment.xml.BeanXMLDeployer.deploy(BeanXMLDeployer.java:96)
                       at org.jboss.embedded.Bootstrap.deployBaseBootstrapUrl(Bootstrap.java:130)
                       at org.jboss.embedded.Bootstrap.bootstrapURL(Bootstrap.java:142)
                       at org.jboss.embedded.Bootstrap.bootstrap(Bootstrap.java:183)
                       at org.jboss.embedded.Bootstrap.bootstrap(Bootstrap.java:195)
                       at org.jboss.seam.mock.EmbeddedBootstrap.startAndDeployResources(EmbeddedBootstrap.java:11)
                       at org.jboss.seam.mock.BaseSeamTest.startJbossEmbeddedIfNecessary(BaseSeamTest.java:1041)
                       at org.jboss.seam.mock.BaseSeamTest.startSeam(BaseSeamTest.java:935)
                       at org.jboss.seam.mock.BaseSeamTest.init(BaseSeamTest.java:923)
                       at org.jboss.seam.mock.SeamTest.init(SeamTest.java:42)
                       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:585)
                       at org.testng.internal.MethodHelper.invokeMethod(MethodHelper.java:580)
                       at org.testng.internal.Invoker.invokeConfigurationMethod(Invoker.java:398)
                       at org.testng.internal.Invoker.invokeConfigurations(Invoker.java:145)
                       at org.testng.internal.Invoker.invokeConfigurations(Invoker.java:82)
                       at org.testng.internal.TestMethodWorker.invokeBeforeClassMethods(TestMethodWorker.java:166)
                       at org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:103)
                       at org.testng.TestRunner.runWorkers(TestRunner.java:689)
                       at org.testng.TestRunner.privateRun(TestRunner.java:566)
                       at org.testng.TestRunner.run(TestRunner.java:466)
                       at org.testng.SuiteRunner.runTest(SuiteRunner.java:301)
                       at org.testng.SuiteRunner.runSequentially(SuiteRunner.java:296)
                       at org.testng.SuiteRunner.privateRun(SuiteRunner.java:276)
                       at org.testng.SuiteRunner.run(SuiteRunner.java:191)
                       at org.testng.TestNG.createAndRunSuiteRunners(TestNG.java:808)
                       at org.testng.TestNG.runSuitesLocally(TestNG.java:776)
                       at org.testng.TestNG.run(TestNG.java:701)
                       at org.testng.remote.RemoteTestNG.run(RemoteTestNG.java:73)
                       at org.testng.remote.RemoteTestNG.main(RemoteTestNG.java:124)
                  ERROR [org.jboss.kernel.plugins.dependency.AbstractKernelController] Error installing to Start: name=jboss.remoting:handler=ejb3,name=DefaultEjb3Connector,type=Connector state=Create mode=Manual requiredState=Installed
                  java.net.BindException: Address already in use
                       at java.net.PlainSocketImpl.socketBind(Native Method)
                       at java.net.PlainSocketImpl.bind(PlainSocketImpl.java:359)
                       at java.net.ServerSocket.bind(ServerSocket.java:319)
                       at java.net.ServerSocket.<init>(ServerSocket.java:185)
                       at javax.net.DefaultServerSocketFactory.createServerSocket(ServerSocketFactory.java:169)
                       at org.jboss.remoting.transport.socket.SocketServerInvoker.createServerSocket(SocketServerInvoker.java:264)
                       at org.jboss.remoting.transport.socket.SocketServerInvoker.start(SocketServerInvoker.java:193)
                       at org.jboss.remoting.transport.Connector.start(Connector.java:322)
                       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:585)
                       at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:157)
                       at org.jboss.mx.server.Invocation.dispatch(Invocation.java:96)
                       at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
                       at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
                       at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:668)
                       at org.jboss.system.microcontainer.ServiceProxy.invoke(ServiceProxy.java:184)
                       at $Proxy9.start(Unknown Source)
                       at org.jboss.system.microcontainer.StartStopLifecycleAction.installAction(StartStopLifecycleAction.java:42)
                       at org.jboss.system.microcontainer.StartStopLifecycleAction.installAction(StartStopLifecycleAction.java:37)
                       at org.jboss.dependency.plugins.action.SimpleControllerContextAction.simpleInstallAction(SimpleControllerContextAction.java:62)
                       at org.jboss.dependency.plugins.action.AccessControllerContextAction.install(AccessControllerContextAction.java:71)
                       at org.jboss.dependency.plugins.AbstractControllerContextActions.install(AbstractControllerContextActions.java:51)
                       at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:327)
                       at org.jboss.system.microcontainer.ServiceControllerContext.install(ServiceControllerContext.java:255)
                       at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1309)
                       at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:734)
                       at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:862)
                       at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:784)
                       at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:622)
                       at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:411)
                       at org.jboss.system.ServiceController.doChange(ServiceController.java:659)
                       at org.jboss.system.ServiceController.start(ServiceController.java:431)
                       at org.jboss.system.deployers.ServiceDeployer.start(ServiceDeployer.java:149)
                       at org.jboss.system.deployers.ServiceDeployer.deploy(ServiceDeployer.java:107)
                       at org.jboss.system.deployers.ServiceDeployer.deploy(ServiceDeployer.java:46)
                       at org.jboss.deployers.spi.deployer.helpers.AbstractSimpleRealDeployer.internalDeploy(AbstractSimpleRealDeployer.java:65)
                       at org.jboss.deployers.spi.deployer.helpers.AbstractRealDeployer.deploy(AbstractRealDeployer.java:50)
                       at org.jboss.deployers.plugins.deployers.DeployerWrapper.deploy(DeployerWrapper.java:169)
                       at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:853)
                       at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:874)
                       at org.jboss.deployers.plugins.deployers.DeployersImpl.install(DeployersImpl.java:794)
                       at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:327)
                       at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1309)
                       at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:734)
                       at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:862)
                       at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:784)
                       at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:622)
                       at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:411)
                       at org.jboss.deployers.plugins.deployers.DeployersImpl.process(DeployersImpl.java:498)
                       at org.jboss.deployers.plugins.main.MainDeployerImpl.process(MainDeployerImpl.java:506)
                       at org.jboss.embedded.DeploymentScanner.start(DeploymentScanner.java:105)
                       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:585)
                       at org.jboss.reflect.plugins.introspection.ReflectionUtils.invoke(ReflectionUtils.java:56)
                       at org.jboss.reflect.plugins.introspection.ReflectMethodInfoImpl.invoke(ReflectMethodInfoImpl.java:110)
                       at org.jboss.joinpoint.plugins.BasicMethodJoinPoint.dispatch(BasicMethodJoinPoint.java:66)
                       at org.jboss.kernel.plugins.dependency.KernelControllerContextAction$JoinpointDispatchWrapper.execute(KernelControllerContextAction.java:214)
                       at org.jboss.kernel.plugins.dependency.ExecutionWrapper.execute(ExecutionWrapper.java:45)
                       at org.jboss.kernel.plugins.dependency.KernelControllerContextAction.dispatchExecutionWrapper(KernelControllerContextAction.java:108)
                       at org.jboss.kernel.plugins.dependency.KernelControllerContextAction.dispatchJoinPoint(KernelControllerContextAction.java:69)
                       at org.jboss.kernel.plugins.dependency.LifecycleAction.installActionInternal(LifecycleAction.java:221)
                       at org.jboss.kernel.plugins.dependency.KernelControllerContextAction.installAction(KernelControllerContextAction.java:135)
                       at org.jboss.kernel.plugins.dependency.KernelControllerContextAction.installAction(KernelControllerContextAction.java:46)
                       at org.jboss.dependency.plugins.action.SimpleControllerContextAction.simpleInstallAction(SimpleControllerContextAction.java:62)
                       at org.jboss.dependency.plugins.action.AccessControllerContextAction.install(AccessControllerContextAction.java:71)
                       at org.jboss.dependency.plugins.AbstractControllerContextActions.install(AbstractControllerContextActions.java:51)
                       at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:327)
                       at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1309)
                       at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:734)
                       at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:862)
                       at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:784)
                       at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:574)
                       at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:398)
                       at org.jboss.kernel.plugins.deployment.AbstractKernelDeployer.deployBean(AbstractKernelDeployer.java:309)
                       at org.jboss.kernel.plugins.deployment.AbstractKernelDeployer.deployBeans(AbstractKernelDeployer.java:279)
                       at org.jboss.kernel.plugins.deployment.AbstractKernelDeployer.deploy(AbstractKernelDeployer.java:130)
                       at org.jboss.kernel.plugins.deployment.xml.BeanXMLDeployer.deploy(BeanXMLDeployer.java:96)
                       at org.jboss.embedded.Bootstrap.deployBaseBootstrapUrl(Bootstrap.java:130)
                       at org.jboss.embedded.Bootstrap.bootstrapURL(Bootstrap.java:142)
                       at org.jboss.embedded.Bootstrap.bootstrap(Bootstrap.java:183)
                       at org.jboss.embedded.Bootstrap.bootstrap(Bootstrap.java:195)
                       at org.jboss.seam.mock.EmbeddedBootstrap.startAndDeployResources(EmbeddedBootstrap.java:11)
                       at org.jboss.seam.mock.BaseSeamTest.startJbossEmbeddedIfNecessary(BaseSeamTest.java:1041)
                       at org.jboss.seam.mock.BaseSeamTest.startSeam(BaseSeamTest.java:935)
                       at org.jboss.seam.mock.BaseSeamTest.init(BaseSeamTest.java:923)
                       at org.jboss.seam.mock.SeamTest.init(SeamTest.java:42)
                       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:585)
                       at org.testng.internal.MethodHelper.invokeMethod(MethodHelper.java:580)
                       at org.testng.internal.Invoker.invokeConfigurationMethod(Invoker.java:398)
                       at org.testng.internal.Invoker.invokeConfigurations(Invoker.java:145)
                       at org.testng.internal.Invoker.invokeConfigurations(Invoker.java:82)
                       at org.testng.internal.TestMethodWorker.invokeBeforeClassMethods(TestMethodWorker.java:166)
                       at org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:103)
                       at org.testng.TestRunner.runWorkers(TestRunner.java:689)
                       at org.testng.TestRunner.privateRun(TestRunner.java:566)
                       at org.testng.TestRunner.run(TestRunner.java:466)
                       at org.testng.SuiteRunner.runTest(SuiteRunner.java:301)
                       at org.testng.SuiteRunner.runSequentially(SuiteRunner.java:296)
                       at org.testng.SuiteRunner.privateRun(SuiteRunner.java:276)
                       at org.testng.SuiteRunner.run(SuiteRunner.java:191)
                       at org.testng.TestNG.createAndRunSuiteRunners(TestNG.java:808)
                       at org.testng.TestNG.runSuitesLocally(TestNG.java:776)
                       at org.testng.TestNG.run(TestNG.java:701)
                       at org.testng.remote.RemoteTestNG.run(RemoteTestNG.java:73)
                       at org.testng.remote.RemoteTestNG.main(RemoteTestNG.java:124)
                  ERROR [org.jboss.kernel.plugins.dependency.AbstractKernelController] Error installing to Real: name=vfsfile:/home/ziphyre/Dev/workspace/foca-test/bootstrap/deploy/remoting-service.xml state=PostClassLoader mode=Manual requiredState=Real
                  org.jboss.deployers.spi.DeploymentException: Error deploying: jboss.remoting:type=Connector,name=DefaultEjb3Connector,handler=ejb3
                       at org.jboss.deployers.spi.DeploymentException.rethrowAsDeploymentException(DeploymentException.java:49)
                       at org.jboss.system.deployers.ServiceDeployer.deploy(ServiceDeployer.java:126)
                       at org.jboss.system.deployers.ServiceDeployer.deploy(ServiceDeployer.java:46)
                       at org.jboss.deployers.spi.deployer.helpers.AbstractSimpleRealDeployer.internalDeploy(AbstractSimpleRealDeployer.java:65)
                       at org.jboss.deployers.spi.deployer.helpers.AbstractRealDeployer.deploy(AbstractRealDeployer.java:50)
                       at org.jboss.deployers.plugins.deployers.DeployerWrapper.deploy(DeployerWrapper.java:169)
                       at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:853)
                       at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:874)
                       at org.jboss.deployers.plugins.deployers.DeployersImpl.install(DeployersImpl.java:794)
                       at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:327)
                       at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1309)
                       at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:734)
                       at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:862)
                       at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:784)
                       at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:622)
                       at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:411)
                       at org.jboss.deployers.plugins.deployers.DeployersImpl.process(DeployersImpl.java:498)
                       at org.jboss.deployers.plugins.main.MainDeployerImpl.process(MainDeployerImpl.java:506)
                       at org.jboss.embedded.DeploymentScanner.start(DeploymentScanner.java:105)
                       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:585)
                       at org.jboss.reflect.plugins.introspection.ReflectionUtils.invoke(ReflectionUtils.java:56)
                       at org.jboss.reflect.plugins.introspection.ReflectMethodInfoImpl.invoke(ReflectMethodInfoImpl.java:110)
                       at org.jboss.joinpoint.plugins.BasicMethodJoinPoint.dispatch(BasicMethodJoinPoint.java:66)
                       at org.jboss.kernel.plugins.dependency.KernelControllerContextAction$JoinpointDispatchWrapper.execute(KernelControllerContextAction.java:214)
                       at org.jboss.kernel.plugins.dependency.ExecutionWrapper.execute(ExecutionWrapper.java:45)
                       at org.jboss.kernel.plugins.dependency.KernelControllerContextAction.dispatchExecutionWrapper(KernelControllerContextAction.java:108)
                       at org.jboss.kernel.plugins.dependency.KernelControllerContextAction.dispatchJoinPoint(KernelControllerContextAction.java:69)
                       at org.jboss.kernel.plugins.dependency.LifecycleAction.installActionInternal(LifecycleAction.java:221)
                       at org.jboss.kernel.plugins.dependency.KernelControllerContextAction.installAction(KernelControllerContextAction.java:135)
                       at org.jboss.kernel.plugins.dependency.KernelControllerContextAction.installAction(KernelControllerContextAction.java:46)
                       at org.jboss.dependency.plugins.action.SimpleControllerContextAction.simpleInstallAction(SimpleControllerContextAction.java:62)
                       at org.jboss.dependency.plugins.action.AccessControllerContextAction.install(AccessControllerContextAction.java:71)
                       at org.jboss.dependency.plugins.AbstractControllerContextActions.install(AbstractControllerContextActions.java:51)
                       at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:327)
                       at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1309)
                       at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:734)
                       at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:862)
                       at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:784)
                       at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:574)
                       at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:398)
                       at org.jboss.kernel.plugins.deployment.AbstractKernelDeployer.deployBean(AbstractKernelDeployer.java:309)
                       at org.jboss.kernel.plugins.deployment.AbstractKernelDeployer.deployBeans(AbstractKernelDeployer.java:279)
                       at org.jboss.kernel.plugins.deployment.AbstractKernelDeployer.deploy(AbstractKernelDeployer.java:130)
                       at org.jboss.kernel.plugins.deployment.xml.BeanXMLDeployer.deploy(BeanXMLDeployer.java:96)
                       at org.jboss.embedded.Bootstrap.deployBaseBootstrapUrl(Bootstrap.java:130)
                       at org.jboss.embedded.Bootstrap.bootstrapURL(Bootstrap.java:142)
                       at org.jboss.embedded.Bootstrap.bootstrap(Bootstrap.java:183)
                       at org.jboss.embedded.Bootstrap.bootstrap(Bootstrap.java:195)
                       at org.jboss.seam.mock.EmbeddedBootstrap.startAndDeployResources(EmbeddedBootstrap.java:11)
                       at org.jboss.seam.mock.BaseSeamTest.startJbossEmbeddedIfNecessary(BaseSeamTest.java:1041)
                       at org.jboss.seam.mock.BaseSeamTest.startSeam(BaseSeamTest.java:935)
                       at org.jboss.seam.mock.BaseSeamTest.init(BaseSeamTest.java:923)
                       at org.jboss.seam.mock.SeamTest.init(SeamTest.java:42)
                       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:585)
                       at org.testng.internal.MethodHelper.invokeMethod(MethodHelper.java:580)
                       at org.testng.internal.Invoker.invokeConfigurationMethod(Invoker.java:398)
                       at org.testng.internal.Invoker.invokeConfigurations(Invoker.java:145)
                       at org.testng.internal.Invoker.invokeConfigurations(Invoker.java:82)
                       at org.testng.internal.TestMethodWorker.invokeBeforeClassMethods(TestMethodWorker.java:166)
                       at org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:103)
                       at org.testng.TestRunner.runWorkers(TestRunner.java:689)
                       at org.testng.TestRunner.privateRun(TestRunner.java:566)
                       at org.testng.TestRunner.run(TestRunner.java:466)
                       at org.testng.SuiteRunner.runTest(SuiteRunner.java:301)
                       at org.testng.SuiteRunner.runSequentially(SuiteRunner.java:296)
                       at org.testng.SuiteRunner.privateRun(SuiteRunner.java:276)
                       at org.testng.SuiteRunner.run(SuiteRunner.java:191)
                       at org.testng.TestNG.createAndRunSuiteRunners(TestNG.java:808)
                       at org.testng.TestNG.runSuitesLocally(TestNG.java:776)
                       at org.testng.TestNG.run(TestNG.java:701)
                       at org.testng.remote.RemoteTestNG.run(RemoteTestNG.java:73)
                       at org.testng.remote.RemoteTestNG.main(RemoteTestNG.java:124)
                  Caused by: java.net.BindException: Address already in use
                       at java.net.PlainSocketImpl.socketBind(Native Method)
                       at java.net.PlainSocketImpl.bind(PlainSocketImpl.java:359)
                       at java.net.ServerSocket.bind(ServerSocket.java:319)
                       at java.net.ServerSocket.<init>(ServerSocket.java:185)
                       at javax.net.DefaultServerSocketFactory.createServerSocket(ServerSocketFactory.java:169)
                       at org.jboss.remoting.transport.socket.SocketServerInvoker.createServerSocket(SocketServerInvoker.java:264)
                       at org.jboss.remoting.transport.socket.SocketServerInvoker.start(SocketServerInvoker.java:193)
                       at org.jboss.remoting.transport.Connector.start(Connector.java:322)
                       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:585)
                       at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:157)
                       at org.jboss.mx.server.Invocation.dispatch(Invocation.java:96)
                       at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
                       at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
                       at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:668)
                       at org.jboss.system.microcontainer.ServiceProxy.invoke(ServiceProxy.java:184)
                       at $Proxy9.start(Unknown Source)
                       at org.jboss.system.microcontainer.StartStopLifecycleAction.installAction(StartStopLifecycleAction.java:42)
                       at org.jboss.system.microcontainer.StartStopLifecycleAction.installAction(StartStopLifecycleAction.java:37)
                       at org.jboss.dependency.plugins.action.SimpleControllerContextAction.simpleInstallAction(SimpleControllerContextAction.java:62)
                       at org.jboss.dependency.plugins.action.AccessControllerContextAction.install(AccessControllerContextAction.java:71)
                       at org.jboss.dependency.plugins.AbstractControllerContextActions.install(AbstractControllerContextActions.java:51)
                       at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:327)
                       at org.jboss.system.microcontainer.ServiceControllerContext.install(ServiceControllerContext.java:255)
                       at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1309)
                       at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:734)
                       at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:862)
                       at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:784)
                       at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:622)
                       at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:411)
                       at org.jboss.system.ServiceController.doChange(ServiceController.java:659)
                       at org.jboss.system.ServiceController.start(ServiceController.java:431)
                       at org.jboss.system.deployers.ServiceDeployer.start(ServiceDeployer.java:149)
                       at org.jboss.system.deployers.ServiceDeployer.deploy(ServiceDeployer.java:107)
                       ... 76 more
                  FAILED CONFIGURATION: @BeforeClass init
                  org.jboss.deployers.client.spi.IncompleteDeploymentException: Summary of incomplete deployments (SEE PREVIOUS ERRORS FOR DETAILS):
                  
                  *** CONTEXTS IN ERROR: Name -> Error
                  
                  vfsfile:/home/ziphyre/Dev/workspace/foca-test/bootstrap/deploy/remoting-service.xml -> java.net.BindException: Address already in use
                  
                  
                       at org.jboss.deployers.plugins.deployers.DeployersImpl.checkComplete(DeployersImpl.java:576)
                       at org.jboss.deployers.plugins.main.MainDeployerImpl.checkComplete(MainDeployerImpl.java:559)
                       at org.jboss.embedded.Bootstrap.bootstrapURL(Bootstrap.java:149)
                       at org.jboss.embedded.Bootstrap.bootstrap(Bootstrap.java:183)
                       at org.jboss.embedded.Bootstrap.bootstrap(Bootstrap.java:195)
                       at org.jboss.seam.mock.EmbeddedBootstrap.startAndDeployResources(EmbeddedBootstrap.java:11)
                       at org.jboss.seam.mock.BaseSeamTest.startJbossEmbeddedIfNecessary(BaseSeamTest.java:1041)
                       at org.jboss.seam.mock.BaseSeamTest.startSeam(BaseSeamTest.java:935)
                       at org.jboss.seam.mock.BaseSeamTest.init(BaseSeamTest.java:923)
                       at org.jboss.seam.mock.SeamTest.init(SeamTest.java:42)
                  ... Removed 22 stack frames


                  • 6. Re: Testing fails in Eclipse
                    Pete Muir Master

                    You can't run Embedded JBoss and JBoss AS at the same time currently.