-
1. Re: Configuring JBoss server address
wdfink Apr 22, 2012 2:26 PM (in response to king_pin)This is not related to JBoss.
But I've a quick look into it but did not find such config.
You should visit the MyWMS documentation and if you did not find an answer there is a mail address at the page info@linogistix.com where you can ask.
-
2. Re: Configuring JBoss server address
king_pin Apr 22, 2012 9:39 PM (in response to wdfink)Thank you for your answer.
I couldnt find anything in the documentation I wrote the same question to info@linogistix.com but I didn't get an answer.
So far no one is wiling to help and I bet it is something relatevly simple.
I found out that the client is seraching for the server at 127.0.0.0 (localhost), because when I use the -b 0.0.0.0 key to start jboss, che client cant find it.
Can I trick it somehow from the hosts file in System32 to redirect it?EDIT:
One lead that I found in the document is this:Modules of the LOS Rich Client:
LOS Common
- Login functionality, connection to the server application through JNDI lookup and remote method invocation, generic object browser
However I can't understand how this works.
-
3. Re: Configuring JBoss server address
mariani Apr 22, 2012 10:28 PM (in response to king_pin)1 of 1 people found this helpfulwhy don't you try -b ipaddress ?
It will bind your jboss server to ipaddress
-
4. Re: Configuring JBoss server address
sfcoy Apr 24, 2012 11:47 PM (in response to king_pin)1 of 1 people found this helpfulUsing -b 0.0.0.0 on your server was the correct thing to do.
However, on your client PC, you need to point it at the server's address. Therefore, on your server use the ipconfig command to discover it's network address and use this value on the client instead of 127.0.0.1 or localhost.
127.0.0.1 (aka localhost) is a special network address private to every computer which basically references itself. You should not touch the hosts file and attempt to change this because it will break many things.
-
5. Re: Configuring JBoss server address
king_pin Apr 26, 2012 8:23 PM (in response to sfcoy)Thank you for your answer. Thant is exactly what im trying to do, but I cant find where to change the 127.0.0.1(localhost) to my server IP which is 192.168.6.100 and one other thing shouldn't I point the port too because Jboss is accessable at 192.168.6.100:8080?
Here is a link with only the client in a .rar filе. If anyone can tell me in which file I should change I will be extremely gratefull (I can offer a few Bitcoins in gratitude).
http://www.logistic.bg/client.rar
The whole program is called myWms and can be found here:
-
6. Re: Configuring JBoss server address
mariani Apr 26, 2012 9:09 PM (in response to king_pin)I dont really understand what you mean....
As far as I know you can bind jboss to ip address in 3 ways : (I assume you use standalone)
1. run standalone with parameter -b ipadress
./standalone.sh -b 192.168.6.100
2. change your standalone.xml
<interfaces>
<interface name="management">
<!--<inet-address value="${jboss.bind.address.management:127.0.0.1}"/>-->
<inet-address value="192.168.6.100"/>
</interface>
<interface name="public">
<!--<inet-address value="${jboss.bind.address:127.0.0.1}"/>-->
<inet-address value="192.168.6.100"/>
</interface>
</interfaces>
but this way is not to recommended
3. add following lines in the configuration file in bin/standalone.conf property file
JAVA_OPTS="$JAVA_OPTS -Djboss.bind.address.management=192.168.6.100"
JAVA_OPTS="$JAVA_OPTS -Djboss.bind.address=192.168.6.100"
When you run standalone, there should be a line like the following on the console. What IP address is given on your output?
07:24:53,491 INFO [org.apache.coyote.http11.Http11Protocol] (MSC service thread 1-2) Starting Coyote HTTP/1.1 on http--192.168.6.100-8080
Hope this can help you....
-
7. Re: Configuring JBoss server address
sfcoy Apr 26, 2012 9:48 PM (in response to king_pin)This is just an educated guess, but have a look in
client/los_reference/los_reference/los_reference/config/Settings/jndi.properties
Change the localhost in that file to 192.168.6.100. Don't worry about the port as it seems to be using RMI.
-
8. Re: Configuring JBoss server address
king_pin Apr 26, 2012 11:53 PM (in response to king_pin)Finally, dudes you are GOLD! (Stephen Coy and Tan Mariani)
It is a combination of both your answers, I tryed changing the IP in the jndi.properties file a week ago but it didnt work, because I was starting the server with -b 0.0.0.0.Now when Stephen Coy pointed me in that same direction again I started experimenting and when I tryed Tan Mariani 's idea of starting the server with -b 192.168.6.100 it worked.
And you were right I shouldn't have cared about the port.
Now I don'y know to who should I give the corect answer, I'll leave that up to you!
Thank you dudes, you saved me tons of headaches.
-
9. Re: Configuring JBoss server address
sfcoy Apr 26, 2012 11:45 PM (in response to king_pin)Using -b 0.0.0.0 should still work. This means "listen on all available network interfaces". But don't put this in your client, because it's not a real address - you still need to put 192.168.6.100 there.
-
10. Re: Configuring JBoss server address
king_pin May 20, 2012 7:55 PM (in response to sfcoy)I tryed a couple of times with -b 0.0.0.0 It should work but it dowsn't.
Can I ask you another question, how do I hide the Jboss server from 192.168.1.100:8080 where it is runing cause now anyone can view it there, or even make changes idk. -
11. Re: Configuring JBoss server address
wdfink May 21, 2012 8:34 AM (in response to king_pin)I don't understant why -b 0.0.0.0 isn't working. If you start the server with this option check whether you can access via browser from a different machine with 192.168.6.100:8080 it should work.
If you start with the -b option you do not need to hide JBoss, the 8080 port is only for applications deployed on JBoss and your app is using RMI only right?
So you can't access the application via 8080.
The management http interface is available on port 9990 but as you don't change the interface (-bmanagement x.x.x.x) it should run on localhost and not accessible for others.
If you don't want the port 8080 opened you might remove all services listen on that port from your standalone.xml, but this is only possible if you do not need the http access.
Wolf
-
12. Re: Configuring JBoss server address
sfcoy May 22, 2012 7:24 AM (in response to wdfink)Actually, if he's followed the installation instructions, then he will be using JBoss 4.2.3.
I can't remember if that version actually supported the -b 0.0.0.0 syntax.
-
13. Re: Configuring JBoss server address
peterj May 22, 2012 10:59 AM (in response to sfcoy)The -b options works from 3.2.x up through 6.1.x. What we need to see is the console out, starting from the run command that was entered, to better determine what is going on. Also, what operating system are you ruinning on (my colleagues in the mainframe department had some issues with -b 0.0.0.0 not binding correctly, thought I don't recall the exact details)
-
14. Re: Configuring JBoss server address
king_pin May 27, 2012 10:16 PM (in response to king_pin)I'm sorry for the late answer.
I am testing it on my PC so im using Windows7 64bit.
But wheather im using -b 0.0.0.0 or -b 192.167.1.100 doesn't really matter to me, I leave that yo tou JBOSS gurus I'm happy that now everything is working and hopefully the students will be able to use it next semester.
My only worry is security, our network is not accessable from the outside, but I still want to hide the JBOSS server from port 8080 оr any other port. Isn't there a way to set JBOSS so you can't access the contents visible on 8080 unless u have some pass and a user.
Thank you.