• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Tim Cooke
  • Jeanne Boyarsky
  • Bear Bibeault
Sheriffs:
  • Knute Snortum
  • paul wheaton
  • Devaka Cooray
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Ron McLeod
  • Piet Souris
  • Ganesh Patekar
Bartenders:
  • Tim Holloway
  • Carey Brown
  • salvin francis

Tomcat on Mac OS X with Windows in a VirtualBox

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,

I've installed Tomcat on my Mac OS X and it's running as it should.
Now I've installed a Windows XP in VirtualBox with bridged connection.
Added a vhost in the windows pointing to the IP adres of my Mac OS X host.

In the server.xml I've added another hostname using the IP adres of the Windows XP.

Now when I go to the vhost (for example: www.localhost.local:8080/mysite) I get the standard Windows 404 page.
Same thing if I enter the IP adres of the host.
Also knowing that www.localhost.local is pointing to the IP adres of the host.

Is there something else I'm missing to make this work?

Thanks!
 
Ranch Hand
Posts: 15304
6
Mac OS X IntelliJ IDE Chrome
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can't speak specifically about it through a VM, but if trying to access Tomcat in my mac via another computer in my own network, I have to run tomcat as the super user (sudo). I've casually been looking for a better alternative but it's so rare I have to do that, I just haven't found anything in my light searches.
 
Ranch Hand
Posts: 1179
Mac OS X Eclipse IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can't use localhost to access another machine (host) it is only available locally, and it is the same with the IP-adr. 127.0.0.1 - you need to use the host IP-adr. or the real host name.
 
When people don’t understand what you are doing they call you crazy. But this tiny ad just doesn't care:
professionally read, modify and write PDF files from Java
https://products.aspose.com/pdf/java
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!