java newrelic agent throwing classnotfound exception -


i trying install newrelic on linux machine tomcat 7. installation not have catalina.sh cannot use newrelic installer.

i tried manula approach of adding newrelic.jar javaagent like:

catalina_opts="$catalina_opts -javaagent:/usr/share/tomcat7/newrelic/newrelic.jar" 

but whenever start tomcat following classnotfoundexception:

unable start new relic agent: javax.xml.transform.transformerfactoryconfigurationerror: provider org.apache.xalan.processor.transformerfactoryimpl not found javax.xml.transform.transformerfactoryconfigurationerror: provider org.apache.xalan.processor.transformerfactoryimpl not found         @ javax.xml.transform.transformerfactory.newinstance(transformerfactory.java:106)         @ com.newrelic.agent.extension.dom.extensiondomparser.gettransformerfactory(extensiondomparser.java:360)         @ com.newrelic.agent.extension.dom.extensiondomparser.fixnamespace(extensiondomparser.java:337)         @ com.newrelic.agent.extension.dom.extensiondomparser.parsedocument(extensiondomparser.java:167)         @ com.newrelic.agent.extension.dom.extensiondomparser.readfile(extensiondomparser.java:152)         @ com.newrelic.agent.extension.extensionparsers$3.parse(extensionparsers.java:46)         @ com.newrelic.agent.extension.jarextension.<init>(jarextension.java:59)         @ com.newrelic.agent.extension.jarextension.<init>(jarextension.java:104)         @ com.newrelic.agent.extension.extensionservice.initializebuiltinextensions(extensionservice.java:388)         @ com.newrelic.agent.extension.extensionservice.dostart(extensionservice.java:145)         @ com.newrelic.agent.service.abstractservice.start(abstractservice.java:54)         @ com.newrelic.agent.service.servicemanagerimpl.dostart(servicemanagerimpl.java:124)         @ com.newrelic.agent.service.abstractservice.start(abstractservice.java:54)         @ com.newrelic.agent.agent.premain(agent.java:208)         @ sun.reflect.nativemethodaccessorimpl.invoke0(native method)         @ sun.reflect.nativemethodaccessorimpl.invoke(nativemethodaccessorimpl.java:57)         @ sun.reflect.delegatingmethodaccessorimpl.invoke(delegatingmethodaccessorimpl.java:43)         @ java.lang.reflect.method.invoke(method.java:622)         @ com.newrelic.bootstrap.bootstrapagent.premain(bootstrapagent.java:117)         @ sun.reflect.nativemethodaccessorimpl.invoke0(native method)         @ sun.reflect.nativemethodaccessorimpl.invoke(nativemethodaccessorimpl.java:57)         @ sun.reflect.delegatingmethodaccessorimpl.invoke(delegatingmethodaccessorimpl.java:43)         @ java.lang.reflect.method.invoke(method.java:622)         @ sun.instrument.instrumentationimpl.loadclassandstartagent(instrumentationimpl.java:343)         @ sun.instrument.instrumentationimpl.loadclassandcallpremain(instrumentationimpl.java:358) caused by: java.lang.classnotfoundexception: org/apache/xalan/processor/transformerfactoryimpl         @ java.lang.class.forname0(native method)         @ java.lang.class.forname(class.java:270)         @ javax.xml.transform.factoryfinder.getproviderclass(factoryfinder.java:124)         @ javax.xml.transform.factoryfinder.newinstance(factoryfinder.java:179) 

i have tried this, nothing works. have added xalan jar manually tomcat lib no luck

you need make sure have xalan.jar installed. if installed, may in wrong place. need @ container level, here blog post discusses issue (tomcat5 of advice should still apply).

http://doookstechstuff.blogspot.com/2010/04/how-to-fix-tomcat5-on-rhel5.html


Comments

Popular posts from this blog

Android layout hidden on keyboard show -

google app engine - 403 Forbidden POST - Flask WTForms -

c - Why would PK11_GenerateRandom() return an error -8023? -