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

Update tracing feature example to use WildFly 28. #122

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
Copy link
Contributor Author

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

tracing-example/pom.xml Outdated Show resolved Hide resolved
<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
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
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