Skip to content

XIVY-18797 Reuse ValidationContextBuilder and add VariablesProjectVal.#1046

Merged
ivy-edp merged 1 commit intomasterfrom
reuse-validationContextBuilder
Apr 20, 2026
Merged

XIVY-18797 Reuse ValidationContextBuilder and add VariablesProjectVal.#1046
ivy-edp merged 1 commit intomasterfrom
reuse-validationContextBuilder

Conversation

@ivy-edp
Copy link
Copy Markdown
Member

@ivy-edp ivy-edp commented Apr 20, 2026

https://github.com/axonivy/core/pull/12835
https://github.com/axonivy/core/pull/12840

I could not yet add the RestClientProjectValidatior because of this error. Will look at this to a later point:
grafik

@ivy-edp ivy-edp requested a review from alexsuter April 20, 2026 12:39
@ivy-edp ivy-edp requested review from ivy-lmu and ivy-rew as code owners April 20, 2026 12:39
@alexsuter
Copy link
Copy Markdown
Member

axonivy/core#12835 axonivy/core#12840

I could not yet add the RestClientProjectValidatior because of this error. Will look at this to a later point: grafik

what is the root cause? please send stacktraces as text :)

@ivy-edp
Copy link
Copy Markdown
Member Author

ivy-edp commented Apr 20, 2026

axonivy/core#12835 axonivy/core#12840
I could not yet add the RestClientProjectValidatior because of this error. Will look at this to a later point: grafik

what is the root cause? please send stacktraces as text :)

java.lang.NoClassDefFoundError: javax/ws/rs/core/Feature
at ch.ivyteam.ivy.rest.client.config.impl.FeatureValidator.(FeatureValidator.java:23)
at ch.ivyteam.ivy.rest.client.config.impl.RestClientProjectValidator$Validator.validateFeatures(RestClientProjectValidator.java:138)
at ch.ivyteam.ivy.rest.client.config.impl.RestClientProjectValidator$Validator.validate(RestClientProjectValidator.java:48)
at ch.ivyteam.ivy.rest.client.config.impl.RestClientProjectValidator.validate(RestClientProjectValidator.java:28)
at ch.ivyteam.ivy.maven.compile.ValidateProjectMojo.validateProject(ValidateProjectMojo.java:59)
at ch.ivyteam.ivy.maven.compile.ValidateProjectMojo.execute(ValidateProjectMojo.java:52)
at ch.ivyteam.ivy.maven.compile.TestValidateProjectMojo.validate(TestValidateProjectMojo.java:82)
Caused by: java.lang.ClassNotFoundException: javax.ws.rs.core.Feature
at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:580)
at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:490)
... 7 more

@alexsuter
Copy link
Copy Markdown
Member

axonivy/core#12835 axonivy/core#12840
I could not yet add the RestClientProjectValidatior because of this error. Will look at this to a later point: grafik

what is the root cause? please send stacktraces as text :)

java.lang.NoClassDefFoundError: javax/ws/rs/core/Feature at ch.ivyteam.ivy.rest.client.config.impl.FeatureValidator.(FeatureValidator.java:23) at ch.ivyteam.ivy.rest.client.config.impl.RestClientProjectValidator$Validator.validateFeatures(RestClientProjectValidator.java:138) at ch.ivyteam.ivy.rest.client.config.impl.RestClientProjectValidator$Validator.validate(RestClientProjectValidator.java:48) at ch.ivyteam.ivy.rest.client.config.impl.RestClientProjectValidator.validate(RestClientProjectValidator.java:28) at ch.ivyteam.ivy.maven.compile.ValidateProjectMojo.validateProject(ValidateProjectMojo.java:59) at ch.ivyteam.ivy.maven.compile.ValidateProjectMojo.execute(ValidateProjectMojo.java:52) at ch.ivyteam.ivy.maven.compile.TestValidateProjectMojo.validate(TestValidateProjectMojo.java:82) Caused by: java.lang.ClassNotFoundException: javax.ws.rs.core.Feature at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:580) at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:490) ... 7 more

same issue as we had with guice. you may can try to add javax.ws.rs as dependency.

Comment thread src/main/java/ch/ivyteam/ivy/maven/compile/ValidateProjectMojo.java
@ivy-edp ivy-edp force-pushed the reuse-validationContextBuilder branch from b8608ea to fa891c8 Compare April 20, 2026 13:09
@ivy-edp ivy-edp merged commit e4c4820 into master Apr 20, 2026
7 checks passed
@ivy-edp ivy-edp deleted the reuse-validationContextBuilder branch April 20, 2026 13:16
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