Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Agent can't intercept WildFly / JBoss server #12

Open
pimterry opened this issue Aug 2, 2022 · 1 comment
Open

Agent can't intercept WildFly / JBoss server #12

pimterry opened this issue Aug 2, 2022 · 1 comment

Comments

@pimterry
Copy link
Member

pimterry commented Aug 2, 2022

I tried the .jar with my change on a demo project using Spring Boot and everything worked fine. After, I tried the same project in .war + Wildfly 26.0.1.Final and I was able to replicate the ClassNotFoundException bug. Same JDK.

So I searched and I found that you should start Wildfly with -Djboss.modules.system.pkgs=tech.httptoolkit to be able to attach the agent in a running Wildfly... Not sure if we can bypass it in HTTP Toolkit.

Originally posted by @davidhsv in #2 (comment)

@pimterry
Copy link
Member Author

pimterry commented Aug 2, 2022

@davidhsv Good find! This is very interesting indeed.

If possible, it would be great to not just warn about this issue but to even automatically fix it (by setting that option ourselves) but I imagine that's not possible? If this needs to be set at startup time, for a process that we only attach to later on, then clearly there's nothing we can do there.

Given that, I'd happily accept a PR that explicitly fails to attach and logs a helpful message when attaching to a Wildfly server that's not usable.

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

No branches or pull requests

1 participant