[mod_cluster-issues] [JBoss JIRA] (MODCLUSTER-278) CatalinaConnector.setAddress not working with Tomcat <= 6.0.14

Michal Babacek (JIRA) issues at jboss.org
Fri Aug 8 06:29:12 EDT 2014


     [ https://issues.jboss.org/browse/MODCLUSTER-278?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Michal Babacek closed MODCLUSTER-278.
-------------------------------------



Closing. Clean-up.
At least one of the following applies:

  * the issue has been thoroughly tested as a part of one of the current releases
or
  * it hasn't occurred in ~2 years
or
  * it's utterly harmless

> CatalinaConnector.setAddress not working with Tomcat <= 6.0.14
> --------------------------------------------------------------
>
>                 Key: MODCLUSTER-278
>                 URL: https://issues.jboss.org/browse/MODCLUSTER-278
>             Project: mod_cluster
>          Issue Type: Bug
>      Security Level: Public(Everyone can see) 
>    Affects Versions: 1.1.3.Final
>         Environment: Tomcat 6.0.13 + jdk 1.6
>            Reporter: Stefano Nichele
>            Assignee: Jean-Frederic Clere
>
> If in the server.xml file the "address" property is not specified, mod-cluster calls 
> IntrospectionUtils.setProperty(this.connector.getProtocolHandler(), "address", address.getHostAddress());
> in order to set the address automatically.
> This calls doesn't work with tomcat <= 6.0.14 (CatalinaConnector.setAddress throws a NoSuchMethodError) since the signature of IntrospectionUtils.setProperty has been changed in tomcat 6.0.15.
> As a fix, I would like to suggest this small changes in CatalinaConnector.setAddress:
>  
> try {
>     IntrospectionUtils.setProperty(this.connector.getProtocolHandler(), "address", address.getHostAddress());
> } catch (NoSuchMethodError err) {
>     // this works on Tomcat <= 6.0.14
>     this.connector.getProtocolHandler().setAttribute("address", address.getHostAddress());
> }
> instead of just:
>  
> IntrospectionUtils.setProperty(this.connector.getProtocolHandler(), "address", address.getHostAddress());



--
This message was sent by Atlassian JIRA
(v6.2.6#6264)


More information about the mod_cluster-issues mailing list