Uploaded image for project: 'JBoss Web Server'
  1. JBoss Web Server
  2. JWS-961

LoadExternalPropertiesListener does not accept relative paths

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Won't Do
    • Icon: Minor Minor
    • None
    • JWS 3.1.0 SP3 CR1
    • tomcat7, tomcat8
    • None
    • Hide

      1. Modify server.xml

      <Listener className="org.apache.catalina.core.LoadExternalPropertiesListener" 
      file.0="my2.catalina.properties" 
      overwrite="true" 
      loadFirst="true"/>
      
      ....
      
      <Connector port="${dark.web.port}" protocol="HTTP/1.1" connectionTimeout="20000" redirectPort="8443"/>
      

      2. create file conf/my2.catalina.properties

      dark.web.port=8091
      

      3. Run server

       SEVERE [main] org.apache.catalina.core.StandardService.startInternal Failed to start connector [Connector[HTTP/1.1-auto-1]]
       org.apache.catalina.LifecycleException: Failed to start component [Connector[HTTP/1.1-auto-1]]
              at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:153)
              at org.apache.catalina.core.StandardService.startInternal(StandardService.java:459)
              at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:147)
              ...
      
      Show
      1. Modify server.xml <Listener className= "org.apache.catalina.core.LoadExternalPropertiesListener" file.0= "my2.catalina.properties" overwrite= "true" loadFirst= "true" /> .... <Connector port= "${dark.web.port}" protocol= "HTTP/1.1" connectionTimeout= "20000" redirectPort= "8443" /> 2. create file conf/my2.catalina.properties dark.web.port=8091 3. Run server SEVERE [main] org.apache.catalina.core.StandardService.startInternal Failed to start connector [Connector[HTTP/1.1-auto-1]] org.apache.catalina.LifecycleException: Failed to start component [Connector[HTTP/1.1-auto-1]] at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:153) at org.apache.catalina.core.StandardService.startInternal(StandardService.java:459) at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:147) ...

      Listener ignores property files if relative path is used.

              rhn-support-csutherl Coty Sutherland
              mmadzin@redhat.com Matus Madzin
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: