Troubleshooting
Problem
Background:
- WebSphere Application Server uses Apache CXF core as the default engine for JAX-RS 2.0 Java EE Specification support
- Apache CXF temp files are created for large attachments, uploaded as part of a multipart POST request which exceeds the default org.apache.cxf.io.CachedOutputStream.Threshold. The default value is 128K for CachedOutputStream and 64K for CachedWriter.
Concern: Applications that embed their own Apache CXF libraries lower than version 3.5.10 may need guidance on:
- Whether embedded CXF libraries require upgrading
- Impact on application functionality and stability
Scope and Applicability: This technical note applies to:
WebSphere Application Server 9.0.5.27 and later versions
Applications that embed Apache CXF libraries lower than version 3.5.10 in their deployment packages
Symptom
Caused by: java.lang.ClassNotFoundException: org.apache.cxf.io.DelayedCachedOutputStreamCleaner
Cause
WebSphere Application Server 9.0.5.27 integrated APAR PH69248, which fixes a resource leak where temporary files created by Apache CXF JAX-RS 2.0 operations were not cleaned up until JVM restart.
Diagnosing The Problem
Impact Assessment:
- Scenario 1: Applications Using WebSphere's Default JAX-RS 2.0 Engine without packaging CXF
- no action
- Scenario 2: Applications packaging Apache CXF, parent-first classloading
- error
- Scenario 3: Applications packaging Apache CXF, parent-last classloading
potentially no action, likely other issues
Resolving The Problem
WebSphere Application Server Specific Configuration Workarounds:
- Option 1: Configure JAX-RS providers to 2.0 spec (Recommended)
- Option 2: Configure JAX-RS providers to 1.1 spec
- Option 3: Disable JAX-RS runtime environment
- Option 4: Configure Java virtual machine custom properties
Name : com.ibm.ws.classloader.server.alwaysProtectedResources
Value: META-INF/cxf/bus-extensions.txt
Important Note: IBM's recommends Applications to use the JAXRS engine provided with WebSphere Application Server to take advantage of full support and avoid embedding application specific Apache CXF libraries
Related Information
Document Location
Worldwide
Was this topic helpful?
Document Information
Modified date:
19 April 2026
UID
ibm17269870