2011-12-05 10 views
0

Spring Webアプリケーションは、newrelicでモニターする必要があります。春エージェントloadTimeWeaverとしてロードされ、春のエージェントは、ばねエージェントとnewrelic configureが...アプリケーションの展開は、それがロードJPAのための例外をスローjava_opts、でロードするようにするときのJPA負荷enhaneとカスタム設定のために使用していますspring web appモニターnewrelic conflicts loadtimeweaver with entity manager

org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [org.springframework.context.support.ClassPathXmlApplicationContext]: Constructor threw exception; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'entityManagerFactory' defined in class path resource [spring-config.xml]: Invocation of init method failed; nested exception is java.lang.IllegalAccessError: class sun.reflect.GeneratedConstructorAccessor9 cannot access its superclass sun.reflect.ConstructorAccessorImpl Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'entityManagerFactory' defined in class path resource [spring-config.xml]: Invocation of init method failed; 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(Native Method)

どのようにスプリング・エージェントとnewrelic(Webアプリケーションのパフォーマンス管理の監視)をロードするように構成できますか?

+0

を取得するための1つの可能な方法は、私がどのようにnewrelic作品は考えているが、それはあなたが実行しているに取得するには(あなたのAOP戦略が必要とする)のEntityManagerFactoryをsublcassことができないように、最初のEntityManagerFactoryを除外しようと見えます監視から – Ralph

答えて

0

春のエージェントの負荷