Hi,
I faced similar issue and it seems to be a bug in org.reflections
dependency(0.9.11). Downgrading to 0.9.10 worked.
<dependency>
<groupId>com.smoketurner</groupId>
<artifactId>dropwizard-swagger</artifactId>
<version>1.1.2-1</version>
<exclusions>
<exclusion>
<groupId>org.reflections</groupId>
<artifactId>reflections</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>org.reflections</groupId>
<artifactId>reflections</artifactId>
<version>0.9.10</version>
</dependency>
On Monday, 6 November 2017 23:55:13 UTC+5:30, [email protected] wrote:
>
>
> When building my app using `maven clean install` and then trying to run
> the subsequent JAR through the command line I get many warning messages,
> however when I run Dropwizard through Intellj I do not get these warnings.
>
> *Dropwizard Version*: 1.2.0
>
> I was following the instructions from the Dropwizard getting started page.
>
> WARN [2017-11-06 18:12:45,325] org.reflections.Reflections: could not get
>> type for name org.apache.tools.ant.taskdefs.MatchingTask from any class
>> loader
>> ! java.lang.ClassNotFoundException:
>> org.apache.tools.ant.taskdefs.MatchingTask
>> ! at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
>> ! at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
>> ! at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:335)
>> ! at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
>> ! at org.reflections.ReflectionUtils.forName(ReflectionUtils.java:388)
>> ! ... 14 common frames omitted
>> ! Causing: org.reflections.ReflectionsException: could not get type for
>> name org.apache.tools.ant.taskdefs.MatchingTask
>> ! at org.reflections.ReflectionUtils.forName(ReflectionUtils.java:390)
>> ! at org.reflections.Reflections.expandSuperTypes(Reflections.java:381)
>> ! at org.reflections.Reflections.<init>(Reflections.java:126)
>> ! at io.swagger.jaxrs.config.BeanConfig.classes(BeanConfig.java:276)
>> ! at io.swagger.jaxrs.config.BeanConfig.scanAndRead(BeanConfig.java:240)
>> ! at io.swagger.jaxrs.config.BeanConfig.setScan(BeanConfig.java:221)
>> ! at
>> io.federecio.dropwizard.swagger.SwaggerBundleConfiguration.build(SwaggerBundleConfiguration.java:287)
>> ! at
>> io.federecio.dropwizard.swagger.SwaggerBundle.run(SwaggerBundle.java:66)
>> ! at
>> io.federecio.dropwizard.swagger.SwaggerBundle.run(SwaggerBundle.java:33)
>> ! at io.dropwizard.setup.Bootstrap.run(Bootstrap.java:200)
>> ! at io.dropwizard.cli.EnvironmentCommand.run(EnvironmentCommand.java:42)
>> ! at io.dropwizard.cli.ConfiguredCommand.run(ConfiguredCommand.java:85)
>> ! at io.dropwizard.cli.Cli.run(Cli.java:75)
>> ! at io.dropwizard.Application.run(Application.java:93)
>> ! at
>> com.shepper.ShepherdServiceApplication.main(ShepherdServiceApplication.java:24)
>> WARN [2017-11-06 18:12:45,326] org.reflections.Reflections: could not
>> get type for name org.zeroturnaround.javarebel.ClassEventListener from any
>> class loader
>> ! java.lang.ClassNotFoundException:
>> org.zeroturnaround.javarebel.ClassEventListener
>> ! at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
>> ! at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
>> ! at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:335)
>> ! at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
>> ! at org.reflections.ReflectionUtils.forName(ReflectionUtils.java:388)
>> ! ... 14 common frames omitted
>> ! Causing: org.reflections.ReflectionsException: could not get type for
>> name org.zeroturnaround.javarebel.ClassEventListener
>> ! at org.reflections.ReflectionUtils.forName(ReflectionUtils.java:390)
>> ! at org.reflections.Reflections.expandSuperTypes(Reflections.java:381)
>> ! at org.reflections.Reflections.<init>(Reflections.java:126)
>> ! at io.swagger.jaxrs.config.BeanConfig.classes(BeanConfig.java:276)
>> ! at io.swagger.jaxrs.config.BeanConfig.scanAndRead(BeanConfig.java:240)
>> ! at io.swagger.jaxrs.config.BeanConfig.setScan(BeanConfig.java:221)
>> ! at
>> io.federecio.dropwizard.swagger.SwaggerBundleConfiguration.build(SwaggerBundleConfiguration.java:287)
>> ! at
>> io.federecio.dropwizard.swagger.SwaggerBundle.run(SwaggerBundle.java:66)
>> ! at
>> io.federecio.dropwizard.swagger.SwaggerBundle.run(SwaggerBundle.java:33)
>> ! at io.dropwizard.setup.Bootstrap.run(Bootstrap.java:200)
>> ! at io.dropwizard.cli.EnvironmentCommand.run(EnvironmentCommand.java:42)
>> ! at io.dropwizard.cli.ConfiguredCommand.run(ConfiguredCommand.java:85)
>> ! at io.dropwizard.cli.Cli.run(Cli.java:75)
>> ! at io.dropwizard.Application.run(Application.java:93)
>> ! at
>> com.shepper.ShepherdServiceApplication.main(ShepherdServiceApplication.java:24)
>> WARN [2017-11-06 18:12:45,328] org.reflections.Reflections: could not
>> get type for name groovy.lang.Closure from any class loader
>> ! java.lang.ClassNotFoundException: groovy.lang.Closure
>> ! at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
>> ! at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
>> ! at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:335)
>> ! at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
>> ! at org.reflections.ReflectionUtils.forName(ReflectionUtils.java:388)
>> ! ... 14 common frames omitted
>> ! Causing: org.reflections.ReflectionsException: could not get type for
>> name groovy.lang.Closure
>> ! at org.reflections.ReflectionUtils.forName(ReflectionUtils.java:390)
>> ! at org.reflections.Reflections.expandSuperTypes(Reflections.java:381)
>> ! at org.reflections.Reflections.<init>(Reflections.java:126)
>> ! at io.swagger.jaxrs.config.BeanConfig.classes(BeanConfig.java:276)
>> ! at io.swagger.jaxrs.config.BeanConfig.scanAndRead(BeanConfig.java:240)
>> ! at io.swagger.jaxrs.config.BeanConfig.setScan(BeanConfig.java:221)
>> ! at
>> io.federecio.dropwizard.swagger.SwaggerBundleConfiguration.build(SwaggerBundleConfiguration.java:287)
>> ! at
>> io.federecio.dropwizard.swagger.SwaggerBundle.run(SwaggerBundle.java:66)
>> ! at
>> io.federecio.dropwizard.swagger.SwaggerBundle.run(SwaggerBundle.java:33)
>> ! at io.dropwizard.setup.Bootstrap.run(Bootstrap.java:200)
>> ! at io.dropwizard.cli.EnvironmentCommand.run(EnvironmentCommand.java:42)
>> ! at io.dropwizard.cli.ConfiguredCommand.run(ConfiguredCommand.java:85)
>> ! at io.dropwizard.cli.Cli.run(Cli.java:75)
>> ! at io.dropwizard.Application.run(Application.java:93)
>> ! at
>> com.shepper.ShepherdServiceApplication.main(ShepherdServiceApplication.java:24)
>>
>>
>>
>>
>>
--
You received this message because you are subscribed to the Google Groups
"dropwizard-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.