Hi Everybody,
My EJBs are OK when I run the test from same PC but when I run from different PC (Red
Hat 9), Failed to connect. I've open the port 1099 and the service is running.
Anybody please help me! Thanks in advance
Than Win
My environment:
Red Hat 9
jvm 1.4.2_03
jboss 3.2.3/tomcat 5
xdoclet 1.2
junit 3.8.1
mysql 4.0.16-standard
My errors:
(interfaces.NamingContext 1185) Failed to connect to 192.
168.210.5:1099
[junit] javax.naming.CommunicationException: Failed to connect to server 192
.168.210.5:1099 [Root exception is javax.naming.ServiceUnavailableException: Fai
led to connect to server 192.168.210.5:1099 [Root exception is java.net.ConnectE
xception: Connection refused]]
[junit] at org.jnp.interfaces.NamingContext.getServer(NamingContext.java
:215)
[junit] at org.jnp.interfaces.NamingContext.checkRef(NamingContext.java:
1181)
[junit] at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:51
4)
[junit] at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:50
7)
[junit] at javax.naming.InitialContext.lookup(InitialContext.java:347)
[junit] at bank.interfaces.BankFacadeUtil.lookupHome(BankFacadeUtil.java
:22)
[junit] at bank.interfaces.BankFacadeUtil.getHome(BankFacadeUtil.java:54
)
[junit] at bank.test.createTest.setUp(createTest.java:45)
[junit] at junit.framework.TestCase.runBare(TestCase.java:125)
[junit] at junit.framework.TestResult$1.protect(TestResult.java:106)
[junit] at junit.framework.TestResult.runProtected(TestResult.java:124)
[junit] at junit.framework.TestResult.run(TestResult.java:109)
[junit] at junit.framework.TestCase.run(TestCase.java:118)
[junit] at junit.framework.TestSuite.runTest(TestSuite.java:208)
[junit] at junit.framework.TestSuite.run(TestSuite.java:203)
[junit] at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.
run(JUnitTestRunner.java:289)
[junit] at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.
main(JUnitTestRunner.java:523)
[junit] Caused by: javax.naming.ServiceUnavailableException: Failed to conne
ct to server 192.168.210.5:1099 [Root exception is java.net.ConnectException: Co
nnection refused]
[junit] at org.jnp.interfaces.NamingContext.getServer(NamingContext.java
:190)
[junit] ... 16 more
[junit] Caused by: java.net.ConnectException: Connection refused
[junit] at java.net.PlainSocketImpl.socketConnect(Native Method)
[junit] at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:305)
[junit] at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.jav
a:171)
[junit] at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:158)
[junit] at java.net.Socket.connect(Socket.java:452)
[junit] at java.net.Socket.connect(Socket.java:402)
[junit] at java.net.Socket.(Socket.java:309)
[junit] at java.net.Socket.(Socket.java:211)
[junit] at org.jnp.interfaces.TimedSocketFactory.createSocket(TimedSocke
tFactory.java:69)
[junit] at org.jnp.interfaces.TimedSocketFactory.createSocket(TimedSocke
tFactory.java:62)
[junit] at org.jnp.interfaces.NamingContext.getServer(NamingContext.java
:186)
[junit] ... 16 more
[junit] Tests run: 1, Failures: 0, Errors: 1, Time elapsed: 5.69 sec
View the original post :
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3832065#3832065
Reply to the post :
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3832065
-------------------------------------------------------
This SF.net email is sponsored by: The Robotic Monkeys at ThinkGeek
For a limited time only, get FREE Ground shipping on all orders of $35
or more. Hurry up and shop folks, this offer expires April 30th!
http://www.thinkgeek.com/freeshipping/?cpg=12297
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user