Skip to content

Update tracing feature example to use WildFly 28. #122

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

Merged
merged 1 commit into from
Apr 11, 2023

Conversation

liweinan
Copy link
Contributor

@liweinan liweinan commented Apr 7, 2023

No description provided.

@liweinan liweinan requested a review from jamezp April 7, 2023 17:26
@liweinan
Copy link
Contributor Author

liweinan commented Apr 7, 2023

@jamezp Whiling I'm writing the blog post for Tracing feature usage in WildFly, I need to upgrade this example to refer to it in the blog post.

@jamezp
Copy link
Contributor

jamezp commented Apr 7, 2023

I need to think about this @liweinan. If we do this, that means this example doesn't work with WildFly 27. Maybe that's not a bad thing, but it's something to consider.

@liweinan liweinan force-pushed the upgrade_tracing_example branch from ecefacc to 954bc6a Compare April 8, 2023 02:53
@liweinan
Copy link
Contributor Author

@jamezp This PR is ready for review, could you please help to review it again when you have time? Thanks!

@liweinan liweinan force-pushed the upgrade_tracing_example branch from 2fa7ba6 to 47cf1bb Compare April 11, 2023 15:45
<dependency>
<groupId>org.jboss.resteasy</groupId>
<artifactId>resteasy-tracing-api</artifactId>
<version>${version.org.jboss.resteasy.extensions}</version>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This needs a <scope>runtime</scope> I think.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes sir!

@@ -38,7 +38,8 @@
<version.org.jboss.resteasy.extensions>2.0.0.Final</version.org.jboss.resteasy.extensions>
<version.org.junit>5.9.2</version.org.junit>
<version.org.wildfly.arquillian>5.0.0.Alpha6</version.org.wildfly.arquillian>
<version.wildfly-maven-plugin>4.1.0.Beta5</version.wildfly-maven-plugin>
<!-- <version.wildfly-maven-plugin>4.1.0.Beta5</version.wildfly-maven-plugin>-->
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@jamezp If I use 4.1.0.Beta5 of wildfly-maven-plugin I got this error:

[ERROR] Failed to execute goal org.wildfly.plugins:wildfly-maven-plugin:4.1.0.Beta5:run (default-cli) on project tracing-example: The server failed to start: Cannot invoke "java.io.File.toPath()" because "this.targetDir" is null -> [Help 1]

I guess this is a bug in 4.1.0.Beta5.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There must be. We shouldn't block this because of that though. I'll look at the bug. It should work though with wildfly:dev.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@@ -52,31 +53,8 @@
<id>wildfly27</id>
<properties>
<version.org.wildfly>27.0.1.Final</version.org.wildfly>
<dep.tracing.scope>compile</dep.tracing.scope>
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@jamezp I have to use compile scope instead of runtime for wildfly27 or the project won't compile.

@liweinan liweinan force-pushed the upgrade_tracing_example branch from 5ce7539 to 8d46a3f Compare April 11, 2023 16:20
@liweinan
Copy link
Contributor Author

@jamezp All the changes are done! :D

<version.org.wildfly.arquillian>5.0.0.Alpha6</version.org.wildfly.arquillian>

<!-- There is bug in the plugin that prevent from `mvn wildfly:run` currently, please use the command `mvn wildfly:dev` instead. -->
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we can leave this off as we'll probably forget to remove it :)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes sir!

add different profiles for wildfly 27
@liweinan liweinan force-pushed the upgrade_tracing_example branch from 8d46a3f to d34609a Compare April 11, 2023 16:27
Copy link
Contributor

@jamezp jamezp left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'll merge this, but I think I'm going to follow up with a PR. Really these changes aren't needed at all because we overlay the resteasy-galleon-pack which includes tracing.

@jamezp jamezp merged commit c173acd into resteasy:main Apr 11, 2023
@liweinan
Copy link
Contributor Author

I'll merge this, but I think I'm going to follow up with a PR. Really these changes aren't needed at all because we overlay the resteasy-galleon-pack which includes tracing.

Looking forward to learn about its usage! :D

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

Successfully merging this pull request may close these issues.

2 participants