Spring application fails on EAP
Issue
-
We have added javaagent:/usr/jboss/org.springframework.instrument-3.0.1.RELEASE-A.jar" parameter in jvm paramaters I am getting following error:
14:51:05,237 ERROR [appenderLogWS_ErrorFileAppender] (ServerService Thread Pool -- 62) appenderLogWS: ErrorFileLogger is successfully set to '/vhosting/example.ear/logs/LogWSError.log' 14:51:31,062 ERROR [com.example.servlet.ExampleServlet] (ServerService Thread Pool -- 62) Context initialization failed: java.lang.IllegalStateException: Must start with Java agent to use InstrumentationLoadTimeWeaver. See Spring documentation. at org.springframework.instrument.classloading.InstrumentationLoadTimeWeaver.addTransformer(InstrumentationLoadTimeWeaver.java:87) [spring-context-3.0.3.RELEASE.jar:3.0.3.RELEASE] at org.springframework.context.weaving.AspectJWeavingEnabler.postProcessBeanFactory(AspectJWeavingEnabler.java:74) [spring-context-3.0.3.RELEASE.jar:3.0.3.RELEASE]
Environment
- Red Hat JBoss Enterprise Application Platform (EAP)
- 6
- Spring
- 3.0.3.RELEASE
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
