Sunday, March 11, 2012

Running WebLogic 10.3.6 on CentOs on VirtualBox. Access Weblogic from the host machine

Hi this is just a small note on how to access your weblogic console from you host machine.

This post assumes that you are working on a VirtualBox machine with  operating system of CentOS.

If you have successfully installed weblogic 10.3.6 in you CentOs Virtual Machine and everything is working fine inside your CentOs Virtual Machine, at some point you would want to access your Weblogic console from your hosting machine..

Well, with CentOs... it is not that easy... I mean, you will not be able to do it "out of the box".
Even though that you might have configured your Virtual Machine to have internet access, it is not enough.

You have to do the following:


  • Make sure that you are using manual IP:



  • Make sure that your etc/hosts on your CentOS machine has properly added this IP



And Here is the tricky part...
In order to have your Weblogic accessed from the "outside" world, you will have to handle the firewall of CentOS. The firewall of CentOS, or iptables if you prefer, needs to be configured in order to be able to access the weblogic instance through the "outside" world.

In order to do this the fast way you have to disable the firewall:




If you want to do this in a more sophisticated way, you will have to dig in the CentOS firewall howTo.

More specifically, you will want to accept tcp packets on your weblogic's ports(The below screenshot is taken from the above mentioned link. This is the official CentOS HowTo link.):


In General, for the sample development, for me at least, stopping the firewall was what I was looking for. But in case you want to dig further and tune  your CentOS firewall according to your needs, the official documentation is very enlightening and helpful.


Regards.

References.




No comments:

Post a Comment

LinkWithin

Related Posts Plugin for WordPress, Blogger...