• Entries (RSS)
  • Comments (RSS)

JBoss url accessible only from localhost

Posted by | Posted in JBoss | Posted on 19-02-2009

Tagged Under : ,

JBoss url accessible only from localhost.

We are migrating some of our applications to JBoss from WAS. The migration went successful. The developers were accessing the page using localhost url, during the development time. Today when we tried to access the url from outside the machine using the IP address or server host name, the pages were not coming, even if we are trying to access the page from the same server. However anytime we access the page with localhost as the host name it was coming without any problems, but not for any other IP or hostname.

I did a search and a page in JBoss Wiki helped to resolve the issue. http://www.jboss.org/community/docs/DOC-10179 . For people who don’t have the patience to read the wiki page and find out how to solve it, just follow the below steps.

While starting the server pass the IP address using the -b option. For eg: if you want to access the page using IP address, start the servers using the following command.

run.bat -b 192.168.66.1

Where 192.168.66.1 is your IP address or if you want it to be for all the IPs instead of one, use

run.bat -b 0.0.0.0

Share

org.apache.commons.logging.LogConfigurationException: Class org.apache.commons.logging.impl.Log4JLogger does not implement Log

Posted by | Posted in JBoss Developer Studio | Posted on 05-01-2009

Tagged Under : , , ,

I was helping my team to migrate an application that was running on WebSphere Application Server to JBoss. The web application was using struts as the framework. The application did not show any error message in the IDE. The IDE we were using was JBoss Developer Studio. However at the time of deployment we get an error message like this

INFO  [ContainerBase] Marking servlet action as unavailable
ERROR [ContainerBase] Servlet /XXXWeb threw load() exception
	org.apache.commons.logging.LogConfigurationException: Class org.apache.commons.logging.impl.Log4JLogger does not implement Log

This makes our struts framework unavailable to the application.

After doing some research work we found a solution to this problem. Remove bundled commons-logging.jar from web application. I.e., remove commons-logging.jar from WEB-INF\lib folder of your web application.

I am not sure about the reason for this behavior. Seems like a bug to me. May be a bug in JBoss, Eclipse or JBoss Developer studio.

Share