views:

28

answers:

1

I have the following dependency in my pom file:-

<dependency>
    <groupId>org.jvnet.ws.wadl</groupId>
    <artifactId>wadl-core</artifactId>
    <version>1.1-SNAPSHOT</version>
</dependency>

the jar file exists on the system and the dependency can be resolved. but when the code is run it fails on java.lang.ClassNotFoundException: org.jvnet.ws.wadl.util.DSDispatcher. DSDispatcher exists in the jar file and in the correct package. Can anyone suggest what the issue might be? I've tried adding all the dependencies from wadl-core pom to my pom, that has not helped and i've tried the various scopes on my dependency.

Thanks!

A: 

According to your answers in the comments, it seems you're project is packaged into a war file (or ear). Rather than putting wadl-core in JBoss lib, it should really be embedded into your archive.

If you use <packaging>war</packaging> into the pom.xml of your application along with the declaration of dependency mentioned in your question, wadl-core should be present into WEB-INF/lib in your war file.

Damien