Friday, 27 September 2013

When deploying a web application I get the exception NoClassDefFoundError:LocalizableImpl

When deploying a web application I get the exception
NoClassDefFoundError:LocalizableImpl

I have a standard J2EE web application that includes web services. I'm
using the webservices-rt library to host the services. [See the maven
depdency below]. However, I get the following exception at run time:
SEVERE: Exception sending context initialized event to listener instance
of class com.sun.xml.ws.transport.http.servlet.WSServletContextListener
java.lang.NoClassDefFoundError:
com/sun/xml/ws/util/localization/LocalizableImpl
at
com.sun.xml.ws.util.exception.JAXWSExceptionBase.<init>(JAXWSExceptionBase.java:63)
at
com.sun.xml.ws.transport.http.servlet.WSServletException.<init>(WSServletException.java:47)
at
com.sun.xml.ws.transport.http.servlet.WSServletContextListener.contextInitialized(WSServletContextListener.java:118)
at
org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4791)
at
org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5285)
at
org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
[...]
at java.lang.Thread.run(Thread.java:724)
Caused by: java.lang.ClassNotFoundException:
com.sun.xml.ws.util.localization.LocalizableImpl
at
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1714)
at
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1559)
... 33 more
Maven WS Dependency
<dependency>
<groupId>com.sun.xml.ws</groupId>
<artifactId>webservices-rt</artifactId>
<version>1.4</version>
<scope>compile</scope>
</dependency>
Am I missing a library? I've tried adding jaxws-rt. However, that requires
an additional repo [jboss]. I'm a bit weary of that, as that it introduces
a lot of new libraries into the project.

No comments:

Post a Comment