[
https://jira.jboss.org/jira/browse/JBAS-5846?page=com.atlassian.jira.plug...
]
Kabir Khan commented on JBAS-5846:
----------------------------------
THis is a different error from before. The MBean that sets up the proxy will bind it to
the correct IP address. If I start up the server myself and bind it to another IP address,
I get the same error as on Hudson, which happens when trying to deploy the test MBean to
the server. I think something needs setting in jndi.properties or somewhere to be able to
connect to the correct server, since that still uses localhost:1099. How is this normally
done?
$more ../aspects/output/reports/TEST-org.jboss.test.asynch.AsynchTestCase.txt
Testsuite: org.jboss.test.asynch.AsynchTestCase
Tests run: 0, Failures: 0, Errors: 1, Time elapsed: 5.126 sec
Testcase: unknown took 0 sec
Caused an ERROR
Could not obtain connection to any of these urls: localhost:1099 and discovery failed with
error: javax.naming.CommunicationException: Re
ceive timed out [Root exception is java.net.SocketTimeoutException: Receive timed out]
javax.naming.CommunicationException: Could not obtain connection to any of these urls:
localhost:1099 and discovery failed with error: ja
vax.naming.CommunicationException: Receive timed out [Root exception is
java.net.SocketTimeoutException: Receive timed out] [Root excepti
on is javax.naming.CommunicationException: Failed to connect to server localhost:1099
[Root exception is javax.naming.ServiceUnavailableE
xception: Failed to connect to server localhost:1099 [Root exception is
java.net.ConnectException: Connection refused]]]
at org.jnp.interfaces.NamingContext.checkRef(NamingContext.java:1604)
at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:636)
at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:629)
at javax.naming.InitialContext.lookup(InitialContext.java:351)
at org.jboss.test.JBossTestServices.getServer(JBossTestServices.java:154)
at org.jboss.test.JBossTestSetup.getServer(JBossTestSetup.java:108)
at org.jboss.test.aop.test.AOPTestSetup.setUp(AOPTestSetup.java:54)
at junit.extensions.TestSetup$1.protect(TestSetup.java:18)
at junit.extensions.TestSetup.run(TestSetup.java:23)
Caused by: javax.naming.CommunicationException: Failed to connect to server localhost:1099
[Root exception is javax.naming.ServiceUnavail
ableException: Failed to connect to server localhost:1099 [Root exception is
java.net.ConnectException: Connection refused]]
at org.jnp.interfaces.NamingContext.getServer(NamingContext.java:276)
at org.jnp.interfaces.NamingContext.checkRef(NamingContext.java:1575)
... 12 more
Caused by: javax.naming.ServiceUnavailableException: Failed to connect to server
localhost:1099 [Root exception is java.net.ConnectExcept
ion: Connection refused]
at org.jnp.interfaces.NamingContext.getServer(NamingContext.java:250)
... 13 more
Caused by: java.net.ConnectException: Connection refused
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333)
at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195)
at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182)
at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:432)
at java.net.Socket.connect(Socket.java:520)
at java.net.Socket.connect(Socket.java:470)
at java.net.Socket.<init>(Socket.java:367)
at java.net.Socket.<init>(Socket.java:267)
at org.jnp.interfaces.TimedSocketFactory.createSocket(TimedSocketFactory.java:84)
at org.jnp.interfaces.TimedSocketFactory.createSocket(TimedSocketFactory.java:77)
at org.jnp.interfaces.NamingContext.getServer(NamingContext.java:246)
... 13 more
org.jboss.test.asynch.AsynchTestCase
------------------------------------
Key: JBAS-5846
URL:
https://jira.jboss.org/jira/browse/JBAS-5846
Project: JBoss Application Server
Issue Type: Sub-task
Security Level: Public(Everyone can see)
Reporter: Shelly McGowan
Assignee: Kabir Khan
Fix For: JBossAS-5.0.0.CR2
After making adjustments to the classpaths to resolve ClassNotFoundExceptions, there are
still issues running on Hudson due to the hardcoding of localhost in the test classes.
When the server is bound to localhost, only 1 of the 3 tests, testRemote, passes.
The other two, testLocal and testCollocated, Error when invoking test method on the
pojo.
testRemote took 0.878 sec
Testcase: testLocal took 0.036 sec
Caused an ERROR
null
java.lang.Exception
at org.jboss.test.asynch.AsynchTestCase.testLocal(AsynchTestCase.java:89)
at junit.extensions.TestDecorator.basicRun(TestDecorator.java:22)
at junit.extensions.TestSetup$1.protect(TestSetup.java:19)
at junit.extensions.TestSetup.run(TestSetup.java:23)
Testcase: testCollocated took 0.039 sec
Caused an ERROR
null
java.lang.Exception
at org.jboss.test.asynch.AsynchTestCase.testCollocated(AsynchTestCase.java:103)
at junit.extensions.TestDecorator.basicRun(TestDecorator.java:22)
at junit.extensions.TestSetup$1.protect(TestSetup.java:19)
at junit.extensions.TestSetup.run(TestSetup.java:23)
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira