Description
Jens Lindman opened SPR-10249 and commented
There seems to be more problems when loading java core classes when running with a security manager.
I waited for the fix for #14691 in Spring 3.2 since I got the problem with java.lang.Object class.
Now it seems to be the same issue with java.lang.annotation.Target class.
Output:
access: access denied ("java.io.FilePermission" "/usr/java/jdk1.7.0_09/jre/lib/rt.jar" "read")
leads to the following exception:
Caused by: java.io.FileNotFoundException: class path resource [java/lang/annotation/Target.class] cannot be opened because it does not exist
at org.springframework.core.io.ClassPathResource.getInputStream(ClassPathResource.java:157)
at org.springframework.core.type.classreading.SimpleMetadataReader.<init>(SimpleMetadataReader.java:49)
at org.springframework.core.type.classreading.SimpleMetadataReaderFactory.getMetadataReader(SimpleMetadataReaderFactory.java:80)
at org.springframework.core.type.classreading.CachingMetadataReaderFactory.getMetadataReader(CachingMetadataReaderFactory.java:102)
at org.springframework.core.type.classreading.SimpleMetadataReaderFactory.getMetadataReader(SimpleMetadataReaderFactory.java:76)
at org.springframework.context.annotation.ConfigurationClassParser.getImports(ConfigurationClassParser.java:298)
at org.springframework.context.annotation.ConfigurationClassParser.getImports(ConfigurationClassParser.java:300)
at org.springframework.context.annotation.ConfigurationClassParser.getImports(ConfigurationClassParser.java:300)
at org.springframework.context.annotation.ConfigurationClassParser.doProcessConfigurationClass(ConfigurationClassParser.java:230)
at org.springframework.context.annotation.ConfigurationClassParser.processConfigurationClass(ConfigurationClassParser.java:153)
at org.springframework.context.annotation.ConfigurationClassParser.parse(ConfigurationClassParser.java:130)
at org.springframework.context.annotation.ConfigurationClassPostProcessor.processConfigBeanDefinitions(ConfigurationClassPostProcessor.java:285)
... 41 more
Environment: Jetty 7.6.8, Spring 3.2.1 and Java 1.7.0_09.
Affects: 3.2.1