简体   繁体   中英

JBoss in Mac OSX won't accept connections from VMware IE10

I am runnning JBoss server () on Mac OSX on port 8080 from an STS(Eclipse) project via http://localhost/project/home .

I can open any browser on the Mac and connect to my project with no issues.

However, when I run Win7 in VMware on the same machine and attempt the same URL using IE10, I get "This page can't be displayed". "Fix connection problems" returns the message :

"The remote device or resource won't accept the connection"

I can ping from my Win7 over to my local IP# with no trouble. I do not find a "standalone.xml" anywhere on my hard drive. My Win7 etc/hosts file contains a listing for my OSX IP and hostname.

I added -d 0.0.0.0 to my JBoss run configuration in STS(Eclipse). No change.

After much googling I believe that I merely need to change some setting in JBoss so that it will respond to my Win7. However, many of the responses I find are too cryptic to understand for a JBoss newb.

Can someone advise me? Thanks in advance.

The parameter to let the jboss listen to an interface is "-b" for bind to.

So you should start the Jboss with this parameter to listen to all interfaces:

-b 0.0.0.0

And make sure that the firewall has opend the Port 8080, as well ;)

If you use the JBoss Tools in Eclipse to manage your Jboss, make right click in the "Servers" view on the Server and select "Open" in the context menü. This should open a launch editor which allowes you to change all the polling, managing and deployment stuff. There is a field "Hostname". Change this to "0.0.0.0" and it will configure the launch config correctly for you. I think in newest version of the tools there is a checkbox "Listen on all interface" or so. When this checkbox is there, enable it and enjoy.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM