kickstarter / dropwizard-influxdb-reporter

Dropwizard Integrations for InfluxDB.
Apache License 2.0
17 stars 8 forks source link

Error getting reflective information for class org.eclipse.jetty.server.handler.IdleTimeoutHandler$1 #10

Open Sindhura-Y opened 6 years ago

Sindhura-Y commented 6 years ago

Right after i add the dependency in the pom.xml and try to deploy on wildfly, i get this error

"Error getting reflective information for class org.eclipse.jetty.server.handler.IdleTimeoutHandler$1 with ClassLoader ModuleClassLoader for Module \"deployment.test.war:main\" from Service Module Loader"

Should i be manually adding any other dependencies? Tried adding this dependency

**<!-- https://mvnrepository.com/artifact/org.eclipse.jetty.server/source -->
<dependency>
  <groupId>org.eclipse.jetty.server</groupId>
  <artifactId>source</artifactId>
  <version>8.1.3</version>
</dependency>**

but maven couldn't find any such dependency.

kyeah commented 6 years ago

Hi! That particular dependency should be included with dropwizard. Can you confirm your build settings for the war file?

I don't know much about wildfly, but I'm taking a look at this stackoverflow thread which suggests that this error can come from not using Java 1.8.

The class loading documentation also seems to suggest manual steps needed to expose dependencies in the wildfly environment.