0 Replies Latest reply on Jun 8, 2009 7:28 AM by Senthil Vinayagam

    Seam example tests fail with connection timeout

    Senthil Vinayagam Newbie

      None of the seam tests are working for me(for both Seam 2.1.1 or 2.1.2). The funny thing is they work in the laptop at home but not at work. I suspect some proxy issues. I put the proxy details in the settings.xml and maven errors went away. Seam still wouldn't work.


      Can someone please help? Thanks in advance..


      D:\jboss-seam-2.1.1.GA\examples\booking>ant test
      Buildfile: build.xml
      
      initcopy:
      
      initpoms:
           [echo] Setting up dependencies
           [copy] Copying 1 file to D:\jboss-seam-2.1.1.GA\classes\poms
      Terminate batch job (Y/N)? y
      
      D:\jboss-seam-2.1.1.GA\examples\booking>ant test
      Buildfile: build.xml
      
      initcopy:
      
      initpoms:
           [echo] Setting up dependencies
           [copy] Copying 1 file to D:\jboss-seam-2.1.1.GA\classes\poms
      [artifact:install] [INFO] Installing D:\jboss-seam-2.1.1.GA\classes\poms\root.po
      m to C:\Documents and Settings\All Users\Application Data\DSA\.m2\repository\org
      \jboss\seam\root\2.1.1.GA\root-2.1.1.GA.pom
           [copy] Copying 1 file to D:\jboss-seam-2.1.1.GA\classes\poms
      [artifact:install] [INFO] Installing D:\jboss-seam-2.1.1.GA\classes\poms\parent.
      pom to C:\Documents and Settings\All Users\Application Data\DSA\.m2\repository\o
      rg\jboss\seam\parent\2.1.1.GA\parent-2.1.1.GA.pom
           [copy] Copying 1 file to D:\jboss-seam-2.1.1.GA\classes\poms
           [copy] Copying 1 file to D:\jboss-seam-2.1.1.GA\classes\poms
           [copy] Copying 1 file to D:\jboss-seam-2.1.1.GA\classes\poms
           [copy] Copying 1 file to D:\jboss-seam-2.1.1.GA\classes\poms
           [copy] Copying 1 file to D:\jboss-seam-2.1.1.GA\classes\poms
           [copy] Copying 1 file to D:\jboss-seam-2.1.1.GA\classes\poms
           [copy] Copying 1 file to D:\jboss-seam-2.1.1.GA\classes\poms
           [copy] Copying 1 file to D:\jboss-seam-2.1.1.GA\classes\poms
           [copy] Copying 1 file to D:\jboss-seam-2.1.1.GA\classes\poms
           [copy] Copying 1 file to D:\jboss-seam-2.1.1.GA\classes\poms
           [copy] Copying 1 file to D:\jboss-seam-2.1.1.GA\classes\poms
           [copy] Copying 1 file to D:\jboss-seam-2.1.1.GA\classes\poms
           [copy] Copying 1 file to D:\jboss-seam-2.1.1.GA\classes\poms
           [copy] Copying 1 file to D:\jboss-seam-2.1.1.GA\classes\poms
           [copy] Copying 1 file to D:\jboss-seam-2.1.1.GA\classes\poms
      
      copyseam:
      
      copyseamdependencies:
      
      gettrinidad:
      
      getelri:
      
      copyextradependencies:
      
      init:
           [echo] Building Seam on JBoss Booking Example 2.1
      
      compiletest:
      
      buildtest:
      
      copyjbossembedded:
      
      getemma:
      
      test:
         [testng] [Parser] Running:
         [testng]   D:\jboss-seam-2.1.1.GA\examples\booking\src\org\jboss\seam\example
      \booking\test\testng.xml
      
         [testng] ERROR [org.jboss.kernel.plugins.dependency.AbstractKernelController]
       Error installing to Parse: name=vfsfile:/D:/jboss-seam-2.1.1.GA/examples/bookin
      g/test-build/ state=Not Installed mode=Manual requiredState=Parse
         [testng] org.jboss.deployers.spi.DeploymentException: Error creating managed
      object for vfsfile:/D:/jboss-seam-2.1.1.GA/examples/booking/test-build/jboss-sea
      m-booking-ds.xml
         [testng]     at org.jboss.deployers.spi.DeploymentException.rethrowAsDeployme
      ntException(DeploymentException.java:49)
         [testng]     at org.jboss.deployers.spi.deployer.helpers.AbstractParsingDeplo
      yerWithOutput.createMetaData(AbstractParsingDeployerWithOutput.java:232)
         [testng]     at org.jboss.deployers.spi.deployer.helpers.AbstractParsingDeplo
      yerWithOutput.createMetaData(AbstractParsingDeployerWithOutput.java:199)
         [testng]     at org.jboss.deployers.spi.deployer.helpers.AbstractParsingDeplo
      yerWithOutput.deploy(AbstractParsingDeployerWithOutput.java:162)
         [testng]     at org.jboss.deployers.plugins.deployers.DeployerWrapper.deploy(
      DeployerWrapper.java:169)
         [testng]     at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstall
      ParentFirst(DeployersImpl.java:853)
         [testng]     at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstall
      ParentFirst(DeployersImpl.java:906)
         [testng]     at org.jboss.deployers.plugins.deployers.DeployersImpl.install(D
      eployersImpl.java:794)
         [testng]     at org.jboss.dependency.plugins.AbstractControllerContext.instal
      l(AbstractControllerContext.java:327)
         [testng]     at org.jboss.dependency.plugins.AbstractController.install(Abstr
      actController.java:1309)
         [testng]     at org.jboss.dependency.plugins.AbstractController.incrementStat
      e(AbstractController.java:734)
         [testng]     at org.jboss.dependency.plugins.AbstractController.resolveContex
      ts(AbstractController.java:862)
         [testng]     at org.jboss.dependency.plugins.AbstractController.resolveContex
      ts(AbstractController.java:784)
         [testng]     at org.jboss.dependency.plugins.AbstractController.change(Abstra
      ctController.java:622)
         [testng]     at org.jboss.dependency.plugins.AbstractController.change(Abstra
      ctController.java:411)
         [testng]     at org.jboss.deployers.plugins.deployers.DeployersImpl.process(D
      eployersImpl.java:498)
         [testng]     at org.jboss.deployers.plugins.main.MainDeployerImpl.process(Mai
      nDeployerImpl.java:506)
         [testng]     at org.jboss.embedded.DeploymentGroup.process(DeploymentGroup.ja
      va:127)
         [testng]     at org.jboss.embedded.Bootstrap.deployResourceBases(Bootstrap.ja
      va:289)
         [testng]     at org.jboss.seam.mock.EmbeddedBootstrap.startAndDeployResources
      (EmbeddedBootstrap.java:15)
         [testng]     at org.jboss.seam.mock.AbstractSeamTest.startJbossEmbeddedIfNece
      ssary(AbstractSeamTest.java:1024)
         [testng]     at org.jboss.seam.mock.AbstractSeamTest.startSeam(AbstractSeamTe
      st.java:915)
         [testng]     at org.jboss.seam.mock.SeamTest.startSeam(SeamTest.java:58)
         [testng]     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         [testng]     at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcces
      sorImpl.java:39)
         [testng]     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMet
      hodAccessorImpl.java:25)
         [testng]     at java.lang.reflect.Method.invoke(Method.java:585)
         [testng]     at org.testng.internal.MethodHelper.invokeMethod(MethodHelper.ja
      va:604)
         [testng]     at org.testng.internal.Invoker.invokeConfigurationMethod(Invoker
      .java:394)
         [testng]     at org.testng.internal.Invoker.invokeConfigurations(Invoker.java
      :142)
         [testng]     at org.testng.internal.Invoker.invokeConfigurations(Invoker.java
      :79)
         [testng]     at org.testng.SuiteRunner.privateRun(SuiteRunner.java:261)
         [testng]     at org.testng.SuiteRunner.run(SuiteRunner.java:190)
         [testng]     at org.testng.TestNG.createAndRunSuiteRunners(TestNG.java:792)
         [testng]     at org.testng.TestNG.runSuitesLocally(TestNG.java:765)
         [testng]     at org.testng.TestNG.run(TestNG.java:699)
         [testng]     at org.testng.TestNG.privateMain(TestNG.java:824)
         [testng]     at org.testng.TestNG.main(TestNG.java:802)
         [testng] Caused by: javax.xml.bind.UnmarshalException
         [testng]  - with linked exception:
         [testng] [java.net.ConnectException: Connection timed out: connect]
         [testng]     at com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallerImpl.unm
      arshal0(UnmarshallerImpl.java:213)
         [testng]     at com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallerImpl.unm
      arshal(UnmarshallerImpl.java:190)
         [testng]     at com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallerImpl.unm
      arshal(UnmarshallerImpl.java:241)
         [testng]     at org.jboss.resource.deployers.ManagedConnectionFactoryParserDe
      ployer.parse(ManagedConnectionFactoryParserDeployer.java:121)
         [testng]     at org.jboss.resource.deployers.ManagedConnectionFactoryParserDe
      ployer.parse(ManagedConnectionFactoryParserDeployer.java:59)
         [testng]     at org.jboss.deployers.vfs.spi.deployer.AbstractVFSParsingDeploy
      er.parse(AbstractVFSParsingDeployer.java:112)
         [testng]     at org.jboss.deployers.spi.deployer.helpers.AbstractParsingDeplo
      yerWithOutput.createMetaData(AbstractParsingDeployerWithOutput.java:225)
         [testng]     ... 36 more
         [testng] Caused by: java.net.ConnectException: Connection timed out: connect
         [testng]     at java.net.PlainSocketImpl.socketConnect(Native Method)
         [testng]     at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333)
         [testng]     at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.jav
      a:195)
         [testng]     at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182)
         [testng]     at java.net.Socket.connect(Socket.java:519)
         [testng]     at java.net.Socket.connect(Socket.java:469)
         [testng]     at sun.net.NetworkClient.doConnect(NetworkClient.java:157)
         [testng]     at sun.net.www.http.HttpClient.openServer(HttpClient.java:382)
         [testng]     at sun.net.www.http.HttpClient.openServer(HttpClient.java:494)
         [testng]     at sun.net.www.http.HttpClient.<init>(HttpClient.java:231)
         [testng]     at sun.net.www.http.HttpClient.New(HttpClient.java:304)
         [testng]     at sun.net.www.http.HttpClient.New(HttpClient.java:316)
         [testng]     at sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(
      HttpURLConnection.java:817)
         [testng]     at sun.net.www.protocol.http.HttpURLConnection.plainConnect(Http
      URLConnection.java:769)
         [testng]     at sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLCo
      nnection.java:694)
         [testng]     at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Ht
      tpURLConnection.java:938)
         [testng]     at org.apache.xerces.impl.XMLEntityManager.setupCurrentEntity(Un
      known Source)
         [testng]     at org.apache.xerces.impl.XMLEntityManager.startEntity(Unknown S
      ource)
         [testng]     at org.apache.xerces.impl.XMLEntityManager.startDTDEntity(Unknow
      n Source)
         [testng]     at org.apache.xerces.impl.XMLDTDScannerImpl.setInputSource(Unkno
      wn Source)
         [testng]     at org.apache.xerces.impl.XMLDocumentScannerImpl$DTDDispatcher.d
      ispatch(Unknown Source)
         [testng]     at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDoc
      ument(Unknown Source)
         [testng]     at org.apache.xerces.parsers.XML11Configuration.parse(Unknown So
      urce)
         [testng]     at org.apache.xerces.parsers.XML11Configuration.parse(Unknown So
      urce)
         [testng]     at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
         [testng]     at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Sou
      rce)
         [testng]     at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unkn
      own Source)
         [testng]     at com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallerImpl.unm
      arshal0(UnmarshallerImpl.java:211)
         [testng]     ... 42 more
         [testng] FAILED CONFIGURATION: @BeforeSuite startSeam
         [testng] org.jboss.deployers.client.spi.IncompleteDeploymentException: Summar
      y of incomplete deployments (SEE PREVIOUS ERRORS FOR DETAILS):
      
         [testng] *** CONTEXTS IN ERROR: Name -> Error
      
         [testng] vfsfile:/D:/jboss-seam-2.1.1.GA/examples/booking/test-build/ -> java
      .net.ConnectException: Connection timed out: connect
      
      
         [testng]     at org.jboss.deployers.plugins.deployers.DeployersImpl.checkComp
      lete(DeployersImpl.java:576)
         [testng]     at org.jboss.deployers.plugins.main.MainDeployerImpl.checkComple
      te(MainDeployerImpl.java:559)
         [testng]     at org.jboss.embedded.DeploymentGroup.process(DeploymentGroup.ja
      va:128)
         [testng]     at org.jboss.embedded.Bootstrap.deployResourceBases(Bootstrap.ja
      va:289)
         [testng]     at org.jboss.seam.mock.EmbeddedBootstrap.startAndDeployResources
      (EmbeddedBootstrap.java:15)
         [testng]     at org.jboss.seam.mock.AbstractSeamTest.startJbossEmbeddedIfNece
      ssary(AbstractSeamTest.java:1024)
         [testng]     at org.jboss.seam.mock.AbstractSeamTest.startSeam(AbstractSeamTe
      st.java:915)
         [testng]     at org.jboss.seam.mock.SeamTest.startSeam(SeamTest.java:58)
         [testng] ... Removed 15 stack frames
         [testng] SKIPPED CONFIGURATION: @BeforeClass setupClass
         [testng] SKIPPED CONFIGURATION: @BeforeMethod begin
         [testng] SKIPPED CONFIGURATION: @AfterMethod end
         [testng] SKIPPED CONFIGURATION: @AfterClass cleanupClass
         [testng] SKIPPED CONFIGURATION: @BeforeClass setupClass
         [testng] SKIPPED CONFIGURATION: @BeforeMethod begin
         [testng] SKIPPED CONFIGURATION: @AfterMethod end
         [testng] SKIPPED CONFIGURATION: @AfterClass cleanupClass
         [testng] SKIPPED CONFIGURATION: @BeforeClass setupClass
         [testng] SKIPPED CONFIGURATION: @BeforeMethod begin
         [testng] SKIPPED CONFIGURATION: @AfterMethod end
         [testng] SKIPPED CONFIGURATION: @BeforeMethod begin
         [testng] SKIPPED CONFIGURATION: @AfterMethod end
         [testng] SKIPPED CONFIGURATION: @AfterClass cleanupClass
         [testng] SKIPPED: testBookHotel
         [testng] SKIPPED: testChangePassword
         [testng] SKIPPED: testLoginComponent
         [testng] SKIPPED: testLogin
      
         [testng] ===============================================
         [testng]     Hotel Booking
         [testng]     Tests run: 4, Failures: 0, Skips: 4
         [testng]     Configuration Failures: 1, Skips: 14
         [testng] ===============================================
      
      
         [testng] ===============================================
         [testng] Hotel Booking
         [testng] Total tests run: 4, Failures: 0, Skips: 4
         [testng] Configuration Failures: 1, Skips: 15
         [testng] ===============================================
      
           [echo] You can increase the logging by editing bootstrap/log4j.xml
      
      BUILD SUCCESSFUL
      Total time: 40 seconds
      D:\jboss-seam-2.1.1.GA\examples\booking>