cxf-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From nicky123 <vasudhagho...@gmail.com>
Subject JavaToWS throws java.lang.NoClassDefFoundError
Date Thu, 27 Jun 2013 10:16:28 GMT
Hello,

I am creating wsdl using cxf-bundle 2.7.5 JavaToWS tool. Following error is
thrown.

[WSConfigGenerator] JavaToWS Error: java.lang.NoClassDefFoundError:
org/apache/h
ttp/HttpRequestInterceptor
[WSConfigGenerator]
[WSConfigGenerator] java.lang.NoClassDefFoundError:
org/apache/http/HttpRequestI
nterceptor
[WSConfigGenerator]     at java.lang.Class.getDeclaredConstructors0(Native
Metho
d)
[WSConfigGenerator]     at
java.lang.Class.privateGetDeclaredConstructors(Class.
java:2389)
[WSConfigGenerator]     at java.lang.Class.getConstructor0(Class.java:2699)
[WSConfigGenerator]     at java.lang.Class.getConstructor(Class.java:1657)
[WSConfigGenerator]     at
org.apache.cxf.bus.extension.Extension.load(Extension
.java:198)
[WSConfigGenerator]     at
org.apache.cxf.bus.extension.ExtensionManagerImpl.loa
dAndRegister(ExtensionManagerImpl.java:199)
[WSConfigGenerator]     at
org.apache.cxf.bus.extension.ExtensionManagerImpl.get
BeansOfType(ExtensionManagerImpl.java:305)
[WSConfigGenerator]     at
org.apache.cxf.bus.managers.CXFBusLifeCycleManager.in
itComplete(CXFBusLifeCycleManager.java:80)
[WSConfigGenerator]     at
org.apache.cxf.bus.CXFBusImpl.initialize(CXFBusImpl.j
ava:208)
[WSConfigGenerator]     at
org.apache.cxf.bus.CXFBusFactory.createBus(CXFBusFact
ory.java:43)
[WSConfigGenerator]     at
org.apache.cxf.bus.CXFBusFactory.createBus(CXFBusFact
ory.java:36)
[WSConfigGenerator]     at
org.apache.cxf.bus.CXFBusFactory.createBus(CXFBusFact
ory.java:32)
[WSConfigGenerator]     at
org.apache.cxf.BusFactory.getDefaultBus(BusFactory.ja
va:106)
[WSConfigGenerator]     at
org.apache.cxf.BusFactory.createThreadBus(BusFactory.
java:216)
[WSConfigGenerator]     at
org.apache.cxf.BusFactory.getThreadDefaultBus(BusFact
ory.java:206)
[WSConfigGenerator]     at
org.apache.cxf.BusFactory.getThreadDefaultBus(BusFact
ory.java:193)
[WSConfigGenerator]     at
org.apache.cxf.tools.java2wsdl.processor.JavaToWSDLPr
ocessor.getBus(JavaToWSDLProcessor.java:317)
[WSConfigGenerator]     at
org.apache.cxf.tools.java2wsdl.processor.JavaToWSDLPr
ocessor.getServiceBuilder(JavaToWSDLProcessor.java:209)
[WSConfigGenerator]     at
org.apache.cxf.tools.java2wsdl.processor.JavaToWSDLPr
ocessor.process(JavaToWSDLProcessor.java:100)
[WSConfigGenerator]     at
org.apache.cxf.tools.java2ws.JavaToWSContainer.proces
sWSDL(JavaToWSContainer.java:110)
[WSConfigGenerator]     at
org.apache.cxf.tools.java2ws.JavaToWSContainer.execut
e(JavaToWSContainer.java:75)
[WSConfigGenerator]     at
org.apache.cxf.tools.common.toolspec.ToolRunner.runTo
ol(ToolRunner.java:103)
[WSConfigGenerator]     at
org.apache.cxf.tools.common.toolspec.ToolRunner.runTo
ol(ToolRunner.java:58)
[WSConfigGenerator]     at
org.apache.cxf.tools.common.toolspec.ToolRunner.runTo
ol(ToolRunner.java:40)
[WSConfigGenerator]     at
org.apache.cxf.tools.java2ws.JavaToWS.run(JavaToWS.ja
va:77)
[WSConfigGenerator]     at
org.apache.cxf.tools.java2ws.JavaToWS.main(JavaToWS.j
ava:45)
[WSConfigGenerator]     at
sun.reflect.NativeMethodAccessorImpl.invoke0(Native M
ethod)
[WSConfigGenerator]     at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMet
hodAccessorImpl.java:39)
[WSConfigGenerator]     at
sun.reflect.DelegatingMethodAccessorImpl.invoke(Deleg
atingMethodAccessorImpl.java:25)
[WSConfigGenerator]     at java.lang.reflect.Method.invoke(Method.java:597)
[WSConfigGenerator]     at
org.apache.tools.ant.taskdefs.ExecuteJava.run(Execute
Java.java:217)
[WSConfigGenerator]     at
org.apache.tools.ant.taskdefs.ExecuteJava.execute(Exe
cuteJava.java:152)
[WSConfigGenerator]     at
org.apache.tools.ant.taskdefs.Java.run(Java.java:771)

[WSConfigGenerator]     at
org.apache.tools.ant.taskdefs.Java.executeJava(Java.j
ava:221)
[WSConfigGenerator]     at
org.apache.tools.ant.taskdefs.Java.executeJava(Java.j
ava:135)

debugging the code, org/apache/http/HttpRequestInterceptor class is from
httpcore-4.2.2.jar
the contents of this file is

package org.apache.http;

import java.io.IOException;
import org.apache.http.protocol.HttpContext;

public abstract interface HttpRequestInterceptor
{
  public abstract void process(HttpRequest paramHttpRequest, HttpContext
paramHttpContext)
    throws HttpException, IOException;
}

HttpRequestInterceptor cannot be instantiate and throws
NoClassDefFoundError.

Please advise.



--
View this message in context: http://cxf.547215.n5.nabble.com/JavaToWS-throws-java-lang-NoClassDefFoundError-tp5729942.html
Sent from the cxf-user mailing list archive at Nabble.com.

Mime
View raw message