[jboss-jira] [JBoss JIRA] Commented: (JBAS-8455) HTTP InvokerLocators being formed incorrectly with IPv6 bind address
Richard Achmatowicz (JIRA)
jira-events at lists.jboss.org
Thu Sep 30 14:37:39 EDT 2010
[ https://jira.jboss.org/browse/JBAS-8455?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12554439#action_12554439 ]
Richard Achmatowicz commented on JBAS-8455:
-------------------------------------------
1. I put together a version of SBM with the changes described above and added it to AS 6 M5 in the <server>/conf/bindingservice.beans directory to replace the original jar.
2. I changed the file deploy/ejb3-connectors-jboss-beans.xml to use the ${hostforurl} when building the InvokerLocator URL
3. I changed deploy/httpha-invoker.sar/META-INF/jboss-service.xml to use an InvokerURL making use of ${hostforurl} and ${port} in each of the MBeans started in that file.
4. I started up the AS 6
- the problem with starting up the EJB3 connector disappeared
- the Http invokers all have correctly formed URLs
- did a random check on some other services - web service URLs look OK and JNDI URLs look ok.
The only problem with the above is that I had to change the way the httpha-invoker attributes: at present, they accept a InvokerURLPrefix, an InvokerURLSuffix and a useHostName attribute. Using these three elements, they build a URL - but this breaks for IPv6 addresses, as it essentially constructs as InvokerURLPrefix + host + InvokerURLSuffix. There is another attribute InvokerURL which can be used to specify the whole URL - I used this combined with ${hostforurl} and ${port} and it works fine.
> HTTP InvokerLocators being formed incorrectly with IPv6 bind address
> --------------------------------------------------------------------
>
> Key: JBAS-8455
> URL: https://jira.jboss.org/browse/JBAS-8455
> Project: JBoss Application Server
> Issue Type: Bug
> Security Level: Public(Everyone can see)
> Components: Integration
> Affects Versions: 6.0.0.M4
> Reporter: Richard Achmatowicz
> Assignee: Shelly McGowan
> Fix For: TBD-6.x
>
>
> When we boot the AS using an IPv6 bind address, many HTTP invoker locators are formed incorrectly as URLs.
> For example, for the MBean service=invoker,type=httpHA, its invoker locator is given as:
> http://3ffe:ffff:0100:f101::1:8080/invoker/EJBInvokerHAServlet
> instead of the correct:
> http://[3ffe:ffff:0100:f101::1]:8080/invoker/EJBInvokerHAServlet
> The source of the problem is in the Http Invoker Service Configuration, defined in deploy/httpha.invoker.sar/META-INF/jboss-service.xml, where the invoker locators are constructed. The URLs are constructed by taking the hostname and port, appending a fixed prefix and appending a fixed suffix, without taking the type of IP address into account.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the jboss-jira
mailing list