Application Deployment Fails With java.lang.annotation.AnnotationFormatError: Invalid default: public abstract org.springframework.context.annotation.ScopedProxyMode (Doc ID 1577386.1)

Last updated on NOVEMBER 05, 2016

Applies to:

Oracle Weblogic Server - Version 10.3.4 and later
Information in this document applies to any platform.

Symptoms

Web Services application using Apache CXF 2.6.1 and Spring framework 3.1.0 deploys successfully on WebLogic 10.3.0 but fails on WebLogic 10.3.4
Deploying the EAR file with spring framework packaged in WEB-INF/lib fails with error:

org.springframework.beans.factory.BeanDefinitionStoreException: Unexpected exception parsing XML document from ServletContext resource [/WEB-INF/appContext.xml]; nested exception is java.lang.annotation.AnnotationFormatError: Invalid default: public abstract org.springframework.context.annotation.ScopedProxyMode org.springframework.context.annotation.ComponentScan.scopedProxy() 

Caused by: java.lang.annotation.AnnotationFormatError: Invalid default: public abstract org.springframework.context.annotation.ScopedProxyMode org.springframework.context.annotation.ComponentScan.scopedProxy()^M
  at java.lang.reflect.Method.getDefaultValue(Method.java:726)
  at org.springframework.core.type.classreading.AnnotationMetadataReadingVisitor$1.visitEnd(AnnotationMetadataReadingVisitor.java:73)
[...]

Changes

 Upgrade to WebLogic 10.3.4.

Cause

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms