RtFilter and init-param 'vHostMappingFile'

Solution In Progress - Updated -

Issue

  • RtFilter and init-param 'vHostMappingFile'
  • The RtFilter never load vHostMappingFile from absolute or relative path in EAP 6.

Environment

  • Red Hat JBoss Operations Network (JON) 3.3
  • Red Hat Enterprise Application Platform (EAP) 6
  • Installed and configured RtFilter in JBoss EAP 6 standalone server following JBoss ON documentation;
  • The web.xml of the web application changed to include:
<filter>
     <filter-name>RhqRtFilter</filter-name>
     <filter-class>org.rhq.helpers.rtfilter.filter.RtFilter</filter-class>
     <init-param>
         <param-name>vHostMappingFile</param-name>
         <param-value>/opt/jboss-eap-6.2/standalone/configuration/vhost-mappings.properties</param-value>
     </init-param> 
</filter>
  • Created /opt/jboss-eap-6.2/standalone/configuration/vhost-mappings.properties file with configuration:
jon.localhost.com = testvirtualserver
test1.example.com = testvirtualserver
  • Restarted JBoss EAP 6 standalone server to load the changes

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.