Why do I get a class not found exception for RemoteIpValve?

Solution Verified - Updated -

Issue

  • My application would like to retrieve the Scheme, which is "https" but it return "http" so I have added the following to my Apache Proxy configuration:
    RequestHeader set X-Forwarded-Proto "https"
  • I have then edited jboss-eap-5.1/jboss-as/server/default/deploy/jbossweb.sarserver.xml to have the following valve:
    <Valve className="org.apache.catalina.valves.RemoteIpValve" remoteIPHeader="X-Forwarded-For" protocolHeader="X-Forwarded-Proto" />
  • But when I start the JBoss, the console output class not found of "org.apache.catalina.valves.RemoteIpValve", I tried this setting in Tomcat 7, it work!

Environment

  • JBoss Enterprise Application Platform
    • 5.X

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content