NIH | National Cancer Institute | NCI Wiki  

Question: How do I solve caArray 2.2.0+ problems with localhost and related issues?

Topic: caArray Installation and Upgrade

Release: caArray 2.2.0 and above

Date entered: 03/26/2009

Details about the Question

I just installed caArray and tried to connect to it with the URL


but was not able to, what is the problem?

I am able to connect to caArray locally giving the hostname in the URL, but I cannot connect using the same URL from a remote machine on the same network, why?


Starting with caArray release 2.2.0, and going forward, the caArray installer sets the --host flag in the run.bat/ JBoss start-up script to enable remote Java API client access EJBs, etc. A side effect of this change is that caArray's JBoss web container will only respond to requests targeted to that specified host, and not localhost. So, even if you are trying to access the caArray application from the same machine upon which caArray is installed, you will need to specify your URL like this (change hostname and port to your respective values):


Another related problem occurs when there is hostname mapping in the /etc/hosts file similar to this:


When this mapping is present no remote host will be able to connect to the caArray application, although you will be able to connect from the same machine if giving the hostname version of the URL, as mentioned above. You should remove such hostname mappings from your caArray server's hosts file as they will prevent remote connection to the caArray application.

Have a comment?

Please leave your comment in the caArray End User Forum.