michaelhyatt / elastic-apm-mule3-agent

Elastic APM agent for Mule 3.x
Apache License 2.0
19 stars 7 forks source link

Error:java.lang.NoClassDefFoundError: co/elastic/apm/api/Span #36

Closed MuleElk closed 4 years ago

MuleElk commented 4 years ago
michaelhyatt commented 4 years ago

Are you trying to use the agent with Mule 4?

MuleElk commented 4 years ago

Yes, I am trying on Mule 4. Is it compatible?

Regards, Manasa

On Tue, Sep 1, 2020 at 11:19 PM Michael Hyatt notifications@github.com wrote:

Are you trying to use the agent with Mule 4?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/michaelhyatt/elastic-apm-mule3-agent/issues/36#issuecomment-685265079, or unsubscribe https://github.com/notifications/unsubscribe-auth/AQ2SEUZZEZWKWOB22ECKPTTSDW2TZANCNFSM4QR2O5DQ .

michaelhyatt commented 4 years ago

This is the agent for Mule 3, the one for Mule 4 is here: https://github.com/michaelhyatt/elastic-apm-mule4-agent

MuleElk commented 4 years ago

Hi Michael, I have installed Mule4 agent from the releases page link: https://github.com/michaelhyatt/elastic-apm-mule4-agent/releases

I followed the same link you shared and set up the agent. Still getting the same error message.

I installedmule4-agent-0.0.4.jar https://github.com/michaelhyatt/elastic-apm-mule4-agent/releases/download/v0.0.4/mule4-agent-0.0.4.jar. Please let me know is this the right Agent jar file?

Regards, Manasa

On Wed, Sep 2, 2020 at 6:23 PM Michael Hyatt notifications@github.com wrote:

This is the agent for Mule 3, the one for Mule 4 is here: https://github.com/michaelhyatt/elastic-apm-mule4-agent

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/michaelhyatt/elastic-apm-mule3-agent/issues/36#issuecomment-686060152, or unsubscribe https://github.com/notifications/unsubscribe-auth/AQ2SEU2MG7CSU23CWU4NTW3SD3AXVANCNFSM4QR2O5DQ .

michaelhyatt commented 4 years ago

did you change your pom file to add a new dependency instead of the other mule 3 agent?

On Fri, 4 Sep 2020 at 02:38, MuleElk notifications@github.com wrote:

Hi Michael, I have installed Mule4 agent from the releases page link: https://github.com/michaelhyatt/elastic-apm-mule4-agent/releases

I followed the same link you shared and set up the agent. Still getting the same error message.

I installedmule4-agent-0.0.4.jar < https://github.com/michaelhyatt/elastic-apm-mule4-agent/releases/download/v0.0.4/mule4-agent-0.0.4.jar

. Please let me know is this the right Agent jar file?

Regards, Manasa

On Wed, Sep 2, 2020 at 6:23 PM Michael Hyatt notifications@github.com wrote:

This is the agent for Mule 3, the one for Mule 4 is here: https://github.com/michaelhyatt/elastic-apm-mule4-agent

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub < https://github.com/michaelhyatt/elastic-apm-mule3-agent/issues/36#issuecomment-686060152 , or unsubscribe < https://github.com/notifications/unsubscribe-auth/AQ2SEU2MG7CSU23CWU4NTW3SD3AXVANCNFSM4QR2O5DQ

.

— You are receiving this because you modified the open/close state. Reply to this email directly, view it on GitHub https://github.com/michaelhyatt/elastic-apm-mule3-agent/issues/36#issuecomment-686613344, or unsubscribe https://github.com/notifications/unsubscribe-auth/ADXR5DMJUE4OWGLOZUUKURTSD7A7JANCNFSM4QR2O5DQ .

MuleElk commented 4 years ago

Yes, I added and installed the new agent. Also updated the Pom xml to to reflect these changes and ran the application.

It is looking for that specific class and get the noclassfound error.

Is the jar link I shared the right agent jar? Is there any other dependencies or jar file to be installed?

Regards, Manasa

On Sep 3, 2020, at 9:23 PM, Michael Hyatt notifications@github.com wrote:

 did you change your pom file to add a new dependency instead of the other mule 3 agent?

On Fri, 4 Sep 2020 at 02:38, MuleElk notifications@github.com wrote:

Hi Michael, I have installed Mule4 agent from the releases page link: https://github.com/michaelhyatt/elastic-apm-mule4-agent/releases

I followed the same link you shared and set up the agent. Still getting the same error message.

I installedmule4-agent-0.0.4.jar < https://github.com/michaelhyatt/elastic-apm-mule4-agent/releases/download/v0.0.4/mule4-agent-0.0.4.jar

. Please let me know is this the right Agent jar file?

Regards, Manasa

On Wed, Sep 2, 2020 at 6:23 PM Michael Hyatt notifications@github.com wrote:

This is the agent for Mule 3, the one for Mule 4 is here: https://github.com/michaelhyatt/elastic-apm-mule4-agent

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub < https://github.com/michaelhyatt/elastic-apm-mule3-agent/issues/36#issuecomment-686060152 , or unsubscribe < https://github.com/notifications/unsubscribe-auth/AQ2SEU2MG7CSU23CWU4NTW3SD3AXVANCNFSM4QR2O5DQ

.

— You are receiving this because you modified the open/close state. Reply to this email directly, view it on GitHub https://github.com/michaelhyatt/elastic-apm-mule3-agent/issues/36#issuecomment-686613344, or unsubscribe https://github.com/notifications/unsubscribe-auth/ADXR5DMJUE4OWGLOZUUKURTSD7A7JANCNFSM4QR2O5DQ .

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe.

michaelhyatt commented 4 years ago

Check out Mule 4 agent repo for instructions, this is the wrong repo. There are three things you need to do, install the jar, add maven dependency and reference the tracer.xml in the flow file.

https://github.com/michaelhyatt/elastic-apm-mule4-agent

On Fri, 4 Sep 2020 at 12:30, MuleElk notifications@github.com wrote:

Yes, I added and installed the new agent. Also updated the Pom xml to to reflect these changes and ran the application.

It is looking for that specific class and get the noclassfound error.

Is the jar link I shared the right agent jar? Is there any other dependencies or jar file to be installed?

Regards, Manasa

On Sep 3, 2020, at 9:23 PM, Michael Hyatt notifications@github.com wrote:

 did you change your pom file to add a new dependency instead of the other mule 3 agent?

On Fri, 4 Sep 2020 at 02:38, MuleElk notifications@github.com wrote:

Hi Michael, I have installed Mule4 agent from the releases page link: https://github.com/michaelhyatt/elastic-apm-mule4-agent/releases

I followed the same link you shared and set up the agent. Still getting the same error message.

I installedmule4-agent-0.0.4.jar <

https://github.com/michaelhyatt/elastic-apm-mule4-agent/releases/download/v0.0.4/mule4-agent-0.0.4.jar

. Please let me know is this the right Agent jar file?

Regards, Manasa

On Wed, Sep 2, 2020 at 6:23 PM Michael Hyatt <notifications@github.com

wrote:

This is the agent for Mule 3, the one for Mule 4 is here: https://github.com/michaelhyatt/elastic-apm-mule4-agent

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub <

https://github.com/michaelhyatt/elastic-apm-mule3-agent/issues/36#issuecomment-686060152

, or unsubscribe <

https://github.com/notifications/unsubscribe-auth/AQ2SEU2MG7CSU23CWU4NTW3SD3AXVANCNFSM4QR2O5DQ

.

— You are receiving this because you modified the open/close state. Reply to this email directly, view it on GitHub < https://github.com/michaelhyatt/elastic-apm-mule3-agent/issues/36#issuecomment-686613344 , or unsubscribe < https://github.com/notifications/unsubscribe-auth/ADXR5DMJUE4OWGLOZUUKURTSD7A7JANCNFSM4QR2O5DQ

.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe.

— You are receiving this because you modified the open/close state. Reply to this email directly, view it on GitHub https://github.com/michaelhyatt/elastic-apm-mule3-agent/issues/36#issuecomment-686863482, or unsubscribe https://github.com/notifications/unsubscribe-auth/ADXR5DOOONK64M7UK4H27LDSEBGOBANCNFSM4QR2O5DQ .