[jboss-user] can't run Seam TestNG tests unless I'm online

Scott Shepherd skot at pobox.com
Mon Jul 28 11:08:21 EDT 2008


In my Seam project it seems I can only run my TestNG tests when I'm  
online.

If I'm offline I get

	ERROR [org.jboss.kernel.plugins.dependency.AbstractKernelController]  
Error installing to Parse

and

	Caused by: javax.xml.bind.UnmarshalException
	 - with linked exception:
	[java.net.UnknownHostException: www.jboss.org]

(full stack trace below). Why does it need to connect to  
www.jboss.org? Does it need the xml dtds?

grep -Rl 'www.jboss.org' yields (besides the error messages in the  
output directory)

	bin/META-INF/<project>-test-ds.xml
	bootstrap/conf/login-config.xml

both of which have dtds at www.jboss.org

Anybody know what I need to download & where I need to put it in  
order to be able to run tests when I'm not online?

Thanks,
Scott

____


ERROR [org.jboss.kernel.plugins.dependency.AbstractKernelController]  
Error installing to Parse: name=vfsfile:/Users/skot/dev/eclipse/ 
workspace/yci-test/bin/ state=Not Installed mode=Manual  
requiredState=Parse
org.jboss.deployers.spi.DeploymentException: Error creating managed  
object for vfsfile:/Users/skot/dev/eclipse/workspace/yci-test/bin/
	at  
org.jboss.deployers.spi.DeploymentException.rethrowAsDeploymentException 
(DeploymentException.java:49)
	at  
org.jboss.deployers.spi.deployer.helpers.AbstractParsingDeployerWithOutp 
ut.createMetaData(AbstractParsingDeployerWithOutput.java:232)
	at  
org.jboss.deployers.spi.deployer.helpers.AbstractParsingDeployerWithOutp 
ut.createMetaData(AbstractParsingDeployerWithOutput.java:199)
	at  
org.jboss.deployers.spi.deployer.helpers.AbstractParsingDeployerWithOutp 
ut.deploy(AbstractParsingDeployerWithOutput.java:162)
	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.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.DeploymentGroup.process(DeploymentGroup.java:127)
	at org.jboss.embedded.Bootstrap.deployResourceBases(Bootstrap.java:289)
	at org.jboss.seam.mock.EmbeddedBootstrap.startAndDeployResources 
(EmbeddedBootstrap.java:15)
	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:167)
	at org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:104)
	at org.testng.TestRunner.runWorkers(TestRunner.java:712)
	at org.testng.TestRunner.privateRun(TestRunner.java:582)
	at org.testng.TestRunner.run(TestRunner.java:477)
	at org.testng.SuiteRunner.runTest(SuiteRunner.java:324)
	at org.testng.SuiteRunner.runSequentially(SuiteRunner.java:319)
	at org.testng.SuiteRunner.privateRun(SuiteRunner.java:292)
	at org.testng.SuiteRunner.run(SuiteRunner.java:198)
	at org.testng.TestNG.createAndRunSuiteRunners(TestNG.java:823)
	at org.testng.TestNG.runSuitesLocally(TestNG.java:790)
	at org.testng.TestNG.run(TestNG.java:708)
	at org.testng.remote.RemoteTestNG.run(RemoteTestNG.java:73)
	at org.testng.remote.RemoteTestNG.main(RemoteTestNG.java:124)
Caused by: javax.xml.bind.UnmarshalException
  - with linked exception:
[java.net.UnknownHostException: www.jboss.org]
	at  
com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallerImpl.unmarshal0 
(UnmarshallerImpl.java:213)
	at  
com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallerImpl.unmarshal 
(UnmarshallerImpl.java:190)
	at  
com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallerImpl.unmarshal 
(UnmarshallerImpl.java:241)
	at  
org.jboss.resource.deployers.ManagedConnectionFactoryParserDeployer.pars 
e(ManagedConnectionFactoryParserDeployer.java:121)
	at  
org.jboss.resource.deployers.ManagedConnectionFactoryParserDeployer.pars 
e(ManagedConnectionFactoryParserDeployer.java:59)
	at  
org.jboss.deployers.vfs.spi.deployer.AbstractVFSParsingDeployer.parse 
(AbstractVFSParsingDeployer.java:112)
	at  
org.jboss.deployers.spi.deployer.helpers.AbstractParsingDeployerWithOutp 
ut.createMetaData(AbstractParsingDeployerWithOutput.java:225)
	... 43 more
Caused by: java.net.UnknownHostException: www.jboss.org
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:177)
	at java.net.Socket.connect(Socket.java:520)
	at java.net.Socket.connect(Socket.java:470)
	at sun.net.NetworkClient.doConnect(NetworkClient.java:157)
	at sun.net.www.http.HttpClient.openServer(HttpClient.java:387)
	at sun.net.www.http.HttpClient.openServer(HttpClient.java:522)
	at sun.net.www.http.HttpClient.<init>(HttpClient.java:231)
	at sun.net.www.http.HttpClient.New(HttpClient.java:304)
	at sun.net.www.http.HttpClient.New(HttpClient.java:321)
	at sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient 
(HttpURLConnection.java:813)
	at sun.net.www.protocol.http.HttpURLConnection.plainConnect 
(HttpURLConnection.java:765)
	at sun.net.www.protocol.http.HttpURLConnection.connect 
(HttpURLConnection.java:690)
	at sun.net.www.protocol.http.HttpURLConnection.getInputStream 
(HttpURLConnection.java:934)
	at org.apache.xerces.impl.XMLEntityManager.setupCurrentEntity 
(Unknown Source)
	at org.apache.xerces.impl.XMLEntityManager.startEntity(Unknown Source)
	at org.apache.xerces.impl.XMLEntityManager.startDTDEntity(Unknown  
Source)
	at org.apache.xerces.impl.XMLDTDScannerImpl.setInputSource(Unknown  
Source)
	at org.apache.xerces.impl.XMLDocumentScannerImpl 
$DTDDispatcher.dispatch(Unknown Source)
	at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument 
(Unknown Source)
	at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
	at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
	at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
	at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
	at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown  
Source)
	at  
com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallerImpl.unmarshal0 
(UnmarshallerImpl.java:211)
	... 49 more
FAILED CONFIGURATION: @BeforeClass init
org.jboss.deployers.client.spi.IncompleteDeploymentException: Summary  
of incomplete deployments (SEE PREVIOUS ERRORS FOR DETAILS):

*** CONTEXTS MISSING DEPENDENCIES: Name -> Dependency{Required  
State:Actual State}

persistence.units:unitName=yci
  -> <UNKNOWN>{Described:** UNRESOLVED Demands  
'jboss.jca:name=yciDatasource,service=DataSourceBinding **}


*** CONTEXTS IN ERROR: Name -> Error

<UNKNOWN> -> ** UNRESOLVED Demands  
'jboss.jca:name=yciDatasource,service=DataSourceBinding **

vfsfile:/Users/skot/dev/eclipse/workspace/yci-test/bin/ ->  
java.net.UnknownHostException: www.jboss.org


	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.DeploymentGroup.process(DeploymentGroup.java:128)
	at org.jboss.embedded.Bootstrap.deployResourceBases(Bootstrap.java:289)
	at org.jboss.seam.mock.EmbeddedBootstrap.startAndDeployResources 
(EmbeddedBootstrap.java:15)
	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
SKIPPED CONFIGURATION: @BeforeMethod begin
SKIPPED CONFIGURATION: @AfterMethod end
SKIPPED CONFIGURATION: @AfterClass cleanup
SKIPPED: loginThenAskForIcon

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20080728/ba1106f1/attachment.html 


More information about the jboss-user mailing list