[Azure][Application Insights agent for Java]java.lang.NoClassDefFoundError: http/RequestLine -


after launch jetty applicationinsights-agent-1.0.6.jar agent (see https://github.com/azure/azure-content/blob/master/articles/application-insights/app-insights-java-agent.md), following stack trace. remove agent remove stack trace.

i don't understand why bother "java.lang.noclassdeffounderror: http/requestline", found class ...

is has same issue?

    java.lang.noclassdeffounderror: http/requestline     @ org.apache.http.impl.client.httpclientbuilder.build(httpclientbuilder.java:1231)     @ com.microsoft.applicationinsights.internal.channel.common.apachesender43.<init>(apachesender43.java:52)     @ com.microsoft.applicationinsights.internal.channel.common.apachesenderfactory.create(apachesenderfactory.java:40)     @ com.microsoft.applicationinsights.internal.channel.common.transmissionnetworkoutput.<init>(transmissionnetworkoutput.java:95)     @ com.microsoft.applicationinsights.internal.channel.common.transmissionnetworkoutput.create(transmissionnetworkoutput.java:85)     @ com.microsoft.applicationinsights.channel.concrete.inprocess.inprocesstelemetrychannelfactory.create(inprocesstelemetrychannelfactory.java:41)     @ com.microsoft.applicationinsights.channel.concrete.inprocess.inprocesstelemetrychannel.initialize(inprocesstelemetrychannel.java:263)     @ com.microsoft.applicationinsights.channel.concrete.inprocess.inprocesstelemetrychannel.<init>(inprocesstelemetrychannel.java:147)     @ com.microsoft.applicationinsights.internal.config.telemetryconfigurationfactory.setchannel(telemetryconfigurationfactory.java:396)     @ com.microsoft.applicationinsights.internal.config.telemetryconfigurationfactory.initialize(telemetryconfigurationfactory.java:102)     @ com.microsoft.applicationinsights.telemetryconfiguration.getactive(telemetryconfiguration.java:74)     @ com.microsoft.applicationinsights.telemetryclient.<init>(telemetryclient.java:75)     @ com.microsoft.applicationinsights.internal.common.logtelemetryclientproxy.<init>(logtelemetryclientproxy.java:72)     @ com.microsoft.applicationinsights.log4j.v1_2.applicationinsightsappender.activateoptions(applicationinsightsappender.java:103)     @ org.apache.log4j.config.propertysetter.activate(propertysetter.java:307)     @ org.apache.log4j.xml.domconfigurator.parseappender(domconfigurator.java:295)     @ org.apache.log4j.xml.domconfigurator.findappenderbyname(domconfigurator.java:176)     @ org.apache.log4j.xml.domconfigurator.findappenderbyreference(domconfigurator.java:191)     @ org.apache.log4j.xml.domconfigurator.parsechildrenofloggerelement(domconfigurator.java:523)     @ org.apache.log4j.xml.domconfigurator.parseroot(domconfigurator.java:492)     @ org.apache.log4j.xml.domconfigurator.parse(domconfigurator.java:1006)     @ org.apache.log4j.xml.domconfigurator.doconfigure(domconfigurator.java:872)     @ org.apache.log4j.xml.domconfigurator.doconfigure(domconfigurator.java:755)     @ org.apache.log4j.xml.xmlwatchdog.doonchange(domconfigurator.java:1125)     @ org.apache.log4j.helpers.filewatchdog.checkandconfigure(filewatchdog.java:89)     @ org.apache.log4j.helpers.filewatchdog.<init>(filewatchdog.java:58)     @ org.apache.log4j.xml.xmlwatchdog.<init>(domconfigurator.java:1117)     @ org.apache.log4j.xml.domconfigurator.configureandwatch(domconfigurator.java:735)     @ org.apache.log4j.xml.domconfigurator.configureandwatch(domconfigurator.java:718) 

command line

    java -djetty.home=/opt/servers/jetty -djetty.base=/opt/servers/jetty-base  -djava.awt.headless=true -dfile.encoding=utf-8  -javaagent:/opt/servers/jetty-base/lib/ext/applicationinsights-agent-1.0.6.jar -djava.net.preferipv4stack=true -cp /opt/servers/jetty/start.jar org.eclipse.jetty.start.main & 

according exception java.lang.noclassdeffounderror, means dependent libraries httpclient missed in command line.

as resolve it, need download zip file of application insights sdk java page, , append them : delimiter tail of option -cp.

any concern, please feel free let me know.


Comments

Popular posts from this blog

aws api gateway - SerializationException in posting new Records via Dynamodb Proxy Service in API -

asp.net - Problems sending emails from forum -