Skip to content
This repository has been archived by the owner on Jun 11, 2024. It is now read-only.

Cannot load class 'co.elastic.apm.attach.ElasticApmAttacher' #13

Open
prco5 opened this issue Feb 10, 2021 · 8 comments
Open

Cannot load class 'co.elastic.apm.attach.ElasticApmAttacher' #13

prco5 opened this issue Feb 10, 2021 · 8 comments

Comments

@prco5
Copy link

prco5 commented Feb 10, 2021

Hi,when starting mule app, i get the following error.
image

I installed .jar correctly.Added like this
image
And then when i start app i get the error above.
image
Ty.

@michaelhyatt
Copy link
Owner

Can you try and get any of the example projects running in your environment? Try the tracing-test first to see that everything works correctly with your setup. There is also a domain example there.

@prco5
Copy link
Author

prco5 commented Feb 12, 2021

Hi thank you for you answer.
So i installed jar like this.
1111
Build success.
Imported project in studio.
projectStrcutire
pom
I didnt do anything to import file, i left it just like that how i imported it.(tracer.xml)
And when i run the application i get the following.
error
error2

Just to be clear im running this without the elastic.apm.config_file to mule agent? Is that maybe the source of the problem?
It's just a fresh maven install of jar, imported your tracing-test and just runing it.Am i missing something?
Ty.

@michaelhyatt
Copy link
Owner

Not having the config shouldn't cause this. Try to add this to the pom file:

<dependency>
    <groupId>co.elastic.apm</groupId>
    <artifactId>apm-agent-attach</artifactId>
    <version>1.17.0</version>
</dependency>

@prco5
Copy link
Author

prco5 commented Feb 15, 2021

Yes with this added to pom.xml i'm able to start the application.Thank you very much.

Capture

But got issuse on server in following post.
Thank you for help.

@prco5
Copy link
Author

prco5 commented Feb 15, 2021

Hi, also one thing, so i tried to deploy it to mule server running apm server,and there it can find server but i get the following message in log file when i trigger the endpoint.

11

But funny thing in Kibana i can see some info in the following.
image
But there is just some JVM server related stuff, not the actual mule app info.
But the log file is spammed with the above error.
Thank you.

@prco5
Copy link
Author

prco5 commented Feb 15, 2021

Hi, got it running by adding

 <dependency>
    <groupId>co.elastic.apm</groupId>
    <artifactId>apm-agent-api</artifactId>
    <version>1.21.0</version>
</dependency>

Any way to see the actual payload or messages inside, or more data?
Thanks

@michaelhyatt
Copy link
Owner

Good to hear you managed to get it working. It doesn't capture message payloads or any additional labels, but it is possible to implement it in the code, similar to how Mule 3 agent captures message headers and properties.

TransactionUtils.java and SpanUtils.java have placeholders where such logic can reside.

@prco5
Copy link
Author

prco5 commented Feb 16, 2021

Thank you for your help.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants