Spring application fails on EAP

Solution Unverified - Updated -

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, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content