cdancy / jenkins-rest

Java client, built on top of jclouds, for working with Jenkins REST API
Apache License 2.0
382 stars 171 forks source link

WAR deployment fails in TomEE #292

Open kevin-uslu opened 1 year ago

kevin-uslu commented 1 year ago

Expected Behavior

WAR package should get deployed without issue.

Current Behavior

WAR package deployment fails with jclouds related stack trace.

org.apache.openejb.OpenEJBException: Can't find resource for class org.jclouds.suppliers.SupplyKeyMatchingValueOrNull#logger. (No provider available for resource-ref 'null' of type 'org.jclouds.logging.Logger' for 'pcsaas.Comp898652880'.)
...

stackTrace.log

Context

I am using Jenkins Rest Lib in my Spring App. Everything works from my IDE but when I try to deploy my WAR in a TomEE the startup fails with the following stack trace.

It seems to be originating from jclouds related dependencies but I don't have any good leads. Any ideas ?

Steps to Reproduce (for bugs)

Package Spring app using Jenkins REST library as WAR and deploy it in TomEE.

Your Environment

Spring Version : 2.7.11 TomEE Version : Apache Tomcat (TomEE)/9.0.71 (8.0.14)

Jenkins Rest dpendency declared as below :

<dependency>
    <groupId>io.github.cdancy</groupId>
    <artifactId>jenkins-rest</artifactId>
    <version>1.0.2</version>
    <classifier>all</classifier>
</dependency>
cdancy commented 1 year ago

@kevin-uslu hmmm ... I've never seen this one before. Do you know if there are other jclouds dependencies being brought in to your deployment?