[arquillian-issues] [JBoss JIRA] (ARQ-865) Allow managerUrl (or manager contextPath) to be configured in remote 6 container

Aslak Knutsen (JIRA) issues at jboss.org
Fri Jun 27 12:30:25 EDT 2014


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

Aslak Knutsen resolved ARQ-865.
-------------------------------

           Labels:   (was: starter)
         Assignee: Aslak Knutsen
    Fix Version/s: tomcat_1.0.0.CR5
       Resolution: Out of Date


We now have a separate Tomcat 7 Remote adapter

> Allow managerUrl (or manager contextPath) to be configured in remote 6 container
> --------------------------------------------------------------------------------
>
>                 Key: ARQ-865
>                 URL: https://issues.jboss.org/browse/ARQ-865
>             Project: Arquillian
>          Issue Type: Bug
>      Security Level: Public(Everyone can see) 
>          Components: Tomcat Containers
>    Affects Versions: tomcat_1.0.0.CR3
>            Reporter: Dan Allen
>            Assignee: Aslak Knutsen
>             Fix For: tomcat_1.0.0.CR5
>
>
> Tomcat 7 changed the context path for the manager apps. For the purpose of what the Arquillian adapter uses, the context path changed from /manager to /manager/text.
> Unfortunately, the tomcat adapter does not provide a way to configure the context path of the manager url. It builds it automatically as follows:
> {code}
> protected URL createManagerUrl() throws MalformedURLException
> {
>     final String template = "http://%s:%d/manager";
>     return new URL(String.format(template, bindAddress, bindHttpPort));
> }
> {code}
> At a minimum, we should add a new property "managerContextPath" and honor that in this method.
> Better would be to also allow the managerUrl to be overridden entirely. This currently does not work because
> 1. arquillian cannot convert a configuration property to a URL
> 2. even if it did, the value is overridden in the validate() method anyway
> This fix will allow the Tomcat 6 remote adapter to work with Tomcat 7.
> Side note:
> The user should also be advised that it is necessary to include the JMX startup properties when starting Tomcat 7.
> -Dcom.sun.management.jmxremote.port=8089 -Dcom.sun.management.jmxremote.ssl=false -Dcom.sun.management.jmxremote.authenticate=false



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


More information about the arquillian-issues mailing list