You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@geronimo.apache.org by "Brandon Watson (JIRA)" <ji...@apache.org> on 2015/05/04 19:26:11 UTC
[jira] [Created] (GERONIMO-6544) Using Static IP as address
attribute for Network Listener
Brandon Watson created GERONIMO-6544:
----------------------------------------
Summary: Using Static IP as address attribute for Network Listener
Key: GERONIMO-6544
URL: https://issues.apache.org/jira/browse/GERONIMO-6544
Project: Geronimo
Issue Type: Bug
Security Level: public (Regular issues)
Components: connector, management
Affects Versions: 2.2
Environment: RedHat Linux 5.6 with two NIC's and two internal static IPs
Reporter: Brandon Watson
I have a RedHat 5.6 server that has two NIC's (eth0/192.168.1.1 and eth1/192.168.1.2). I want to have two separate installs of geronimo using one specific NIC only.
Install1
/opt/apache/geronimo-2.2.0
HTTP-192.168.1.1:80
HTTPS-192.168.1.1:443
RMI-192.168.1.1:1099
AJP-192.168.1.1:8099
JMX-192.168.1.1:9999
Install2
/opt/apache2/geronimo-2.2.0
HTTP-192.168.1.2:80
HTTPS-192.168.1.2:443
RMI-192.168.1.2:1099
AJP-192.168.1.1:8099
JMX-192.168.1.2:9999
I was able to get the RMI and JMX ports binded to the IP, via the 'ServerHostname=' attribute.
I started up a default instance and logged in the Geronimo Server Console. Open Web Server > click 'Edit' on a BIO HTTP Connector > Add IP to '*address' attribute > Save. Upon start up, I received the below error.
956 ERROR [GBeanInstanceState] Error while starting; GBean is now in the FAILED state: abstractName="org.apache.geronimo.configs/tomcat6/2.2/car?ServiceModule=org.apache.geronimo.configs/tomcat6/2.2/car,j2eeType=GBean,name=TomcatWebConnector"
org.apache.xbean.recipe.ConstructionException: Invalid and non-convertable constructor parameter type: name=host, index=2, expected=java.lang.String, actual=java.net.Inet4Address
Full Error Message
I attempted to use the short-hostname and fqdn for the address attribute, and receive the same error message. Below is my /etc/hosts.
/etc/hosts/
127.0.0.1 localhost.localdomain localhost
::1 localhost6.localdomain6 localhost6
192.168.1.1 install1.company.net install1
192.168.1.2 install2.company.net install2
I have ensured to remove all use of the IP and use the short-hostname or fqdn, with the same results. At this point it appears that with the BIO HTTP, BIO HTTP, and AJP ports, you can only bind to 0.0.0.0 or localhost. Given the description, I would assume static ip or hostname would work.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)