LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 04-09-2004, 09:56 PM   #1
eantoranz
Senior Member
 
Registered: Apr 2003
Location: Costa Rica
Distribution: Kubuntu, Debian, Knoppix
Posts: 2,092
Blog Entries: 1

Rep: Reputation: 90
jboss sitting-duck problem


What's up, guys?

Look... I bet this problem has a very simple answer.. yet I can't see how to solve it.

I'm just learning about EJBs.

Downloaded Ed Roman's book and I'm starting on the first example.

Got the Hello bean deployed... and got to compile and run the client application, however, it stops on a network exception. Let me explain the "topology" of my network:

I have a nic. eth0. This nic has this IP addr: 192.168.0.2. However, normally I don't have it connected to another device. so when I do ifconfig I get this:
eth0 Link encap:Ethernet HWaddr 00:20:E0:6E:87:B8
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:8 errors:0 dropped:0 overruns:7 carrier:0
collisions:0
RX bytes:0 (0.0 b) TX bytes:336 (336.0 b)

Like it has no address. However If i plug it to a network, I instantly get the address I told you about.


also... the local loop:
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:7723 errors:0 dropped:0 overruns:0 frame:0
TX packets:7723 errors:0 dropped:0 overruns:0 carrier:0
collisions:0
RX bytes:1327321 (1.2 Mb) TX bytes:1327321 (1.2 Mb)

now.... when I run the client, it always complains about the network. The message says (shortly):
javax.naming.CommunicationException [Root exception is java.rmi.ConnectIOException: Exception creating connection to: 192.168.0.2; nested exception is:
java.net.NoRouteToHostException: No route to host]

Of course.. it catches my attention that the JNDI is telling my client to go through 192.168.0.2, when it's not even "ifconfig-ed". Can anybody tell me how to make jboss forget about this address and use the local loop instead?

Thank you in advance!

Last edited by eantoranz; 04-09-2004 at 09:57 PM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Problem deploying EJBs on JBoss eantoranz Programming 1 04-15-2005 01:46 PM
EJB: Problem with concurrent calls to EJBs (according to JBoss) eantoranz Programming 0 03-14-2005 11:10 AM
jboss start problem dodgethis Linux - Software 0 03-11-2005 11:36 AM
duck tape prom. please vote for me. xemophora General 2 06-24-2004 09:31 AM
All movies sound like Donald Duck! Prommy Linux - Hardware 0 02-10-2004 03:27 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 01:12 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration