tracker issue : CF-4203360

select a category, or use search below
(searches all categories and all time range)

Any Servlet filter that doesn't have the pattern attribute causes startup to fail

| View in Tracker

Status/Resolution/Reason: Closed/Fixed/Fixed

Reporter/Name(from Bugbase): Samuel Knowlton / ()

Created: 09/27/2018

Components: Core Runtime

Versions: 11.0

Failure Type: Crash

Found In Build/Fixed In Build: 11,0,15,311399 / 11,0,16,312737

Priority/Frequency: Normal / Some users will encounter

Locale/System: ALL / Linux

Vote Count: 1

Problem Description: If a Tomcat valve is added to server.xml (such as mod_cfml) and it lacks the attribute "pattern", Coldfusion will fail on startup with on ServerConfigParser.fixAttribute(

In our testing, this only occurred when running in full (Standard) mode - when no license was specified it would not happen. I have no idea why or what the relationship is.

Steps to Reproduce:

1) Install ACF11 on Linux in standalone, "full" mode; specify a valid serial number
2) Install mod_cfml ( into <cf_home>/cfusion/runtime/lib
3) Add the following line to server.xml:

 <Valve className="mod_cfml.core" loggingEnabled="false" maxContexts="100" timeBetweenContexts="0" scanClassPaths="false" />

Actual Result:

WARNING: Catalina.start using /opt/coldfusion11/cfusion/runtime/conf/server.xml
        at com.adobe.coldfusion.launcher.ServerConfigParser.fixAttribute(
        at com.adobe.coldfusion.launcher.ServerConfigParser.toString(
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(
        at java.lang.reflect.Method.invoke(
        at com.adobe.coldfusion.bootstrap.Bootstrap.init(
        at com.adobe.coldfusion.bootstrap.Bootstrap.main(

Expected Result: Server start.

Any Workarounds: Add the attribute pattern="" to the <Valve> definition.