Spring WebアプリモニターNewRelic Conflencts LoadTimeWeaverとエンティティマネージャー
-
28-10-2019 - |
質問
Spring Webアプリケーションは、NewRelicで監視する必要があります。 Spring-AgentはLoadTimeweverとして負荷をかけています。Spring-AgentとNewRelic Configureがロードすると、Spring AgentはJPAロードエンハーンとカスタム構成に使用します。 java_opts
, 、アプリケーションを展開するとき、JPAをロードするための例外をスローする...
org.springframework.beans.beaninstantiationexception:bean class [org.springframework.context.support.classpathxmlapplicationcontext]をインスタンス化できませんでした。ネストされた例外はorg.springframework.beans.factory.beancreationexception:class path resource [spring-config.xml]で定義された名前「entitymanagerfactory」を持つbeanの作成エラー[spring-config.xml]:initメソッドの呼び出しが失敗しました。ネストされた例外はjava.lang.illegalaccesserror:class sun.reflect.generatedconstructoraccessor9はそのスーパークラスsun.reflect.constructoracsessorimplにアクセスできません。 [spring-config.xml]:initメソッドの呼び出しが失敗しました。 nested exception is java.lang.IllegalAccessError: class sun.reflect.GeneratedConstructorAccessor9 cannot access its superclass sun.reflect.ConstructorAccessorImpl Caused by: java.lang.IllegalAccessError: class sun.reflect.GeneratedConstructorAccessor9 cannot access its superclass sun.reflect.ConstructorAccessorImpl at sun .misc.unsafe.defineclass(ネイティブ方法)
競合することなく、スプリングエージェントとnewRelic(Webアプリケーションパフォーマンス管理の監視)をロードするにはどうすればよいですか?
解決
スプリングエージェントのロードを取得する1つの可能な方法