Go Back   Computer Forums > General Computing > Programming
Click Here to Login
Join Computer forums Today


Reply
 
Thread Tools Search this Thread Display Modes
 
Old 07-10-2007, 01:07 PM   #1
Baseband Member
 
Join Date: Jul 2005
Posts: 55
Default Web Services in Java using JAX WS

I've been toiling over this problem for 2 days now and still can't find the solution. Narrowed it down to a NoClassDefFoundError that is being sent to the logfile. Basically the JAX WS plugin is supposed to generate a WSDL file automatically when the program builds, but for some reason it's not doing so.

Error looks like this:

!ENTRY org.eclipse.stp.common 4 0 2007-07-10 12:42:25.452
!MESSAGE Celtix Java To Wsdl Generation failure
!STACK 0
java.lang.NoClassDefFoundError: org/apache/cxf/tools/java2wsdl/processor/JavaToProcessor
at org.eclipse.stp.sc.cxf.generators.CeltixJavaToWsdl Generator.run(CeltixJavaToWsdlGenerator.java:58)
at org.eclipse.stp.sc.jaxws.builders.ScJavaToWsdlBuil der.generate(ScJavaToWsdlBuilder.java:85)
at org.eclipse.stp.sc.jaxws.builders.ScJavaToWsdlBuil der.buildOneJavaFile(ScJavaToWsdlBuilder.java:57)
at org.eclipse.stp.sc.common.builders.ScJavaBuilder.v isitResourceFile(ScJavaBuilder.java:124)
at org.eclipse.stp.sc.common.builders.ScJavaBuilder.a ccess$0(ScJavaBuilder.java:112)
at org.eclipse.stp.sc.common.builders.ScJavaBuilder$S cBuildDeltaVisitor.visit(ScJavaBuilder.java:185)
at org.eclipse.core.internal.events.ResourceDelta.acc ept(ResourceDelta.java:67)
at org.eclipse.core.internal.events.ResourceDelta.acc ept(ResourceDelta.java:76)
at org.eclipse.core.internal.events.ResourceDelta.acc ept(ResourceDelta.java:76)
at org.eclipse.core.internal.events.ResourceDelta.acc ept(ResourceDelta.java:76)
at org.eclipse.core.internal.events.ResourceDelta.acc ept(ResourceDelta.java:48)
at org.eclipse.stp.sc.common.builders.ScJavaBuilder.i ncrementalBuild(ScJavaBuilder.java:83)
at org.eclipse.stp.sc.common.builders.ScJavaBuilder.b uild(ScJavaBuilder.java:59)
at org.eclipse.core.internal.events.BuildManager$2.ru n(BuildManager.java:624)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner .java:37)
at org.eclipse.core.internal.events.BuildManager.basi cBuild(BuildManager.java:166)
at org.eclipse.core.internal.events.BuildManager.basi cBuild(BuildManager.java:197)
at org.eclipse.core.internal.events.BuildManager$1.ru n(BuildManager.java:246)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner .java:37)
at org.eclipse.core.internal.events.BuildManager.basi cBuild(BuildManager.java:249)
at org.eclipse.core.internal.events.BuildManager.basi cBuildLoop(BuildManager.java:302)
at org.eclipse.core.internal.events.BuildManager.buil d(BuildManager.java:334)
at org.eclipse.core.internal.events.AutoBuildJob.doBu ild(AutoBuildJob.java:137)
at org.eclipse.core.internal.events.AutoBuildJob.run( AutoBuildJob.java:235)
at org.eclipse.core.internal.jobs.Worker.run(Worker.j ava:55)

!ENTRY org.eclipse.stp.common 4 0 2007-07-10 12:42:25.702
!MESSAGE java.lang.NullPointerException



Code (interface class) looks like this:

import javax.jws.WebService;
import javax.jws.soap.SOAPBinding;
import javax.xml.ws.RequestWrapper;
import javax.xml.ws.ResponseWrapper;
import javax.jws.WebMethod;

@SOAPBinding(use=SOAPBinding.Use.LITERAL, style=SOAPBinding.Style.DOCUMENT)
@WebService(name="Greeter", targetNamespace="http://src/")
public interface Greeter
{
@WebMethod(operationName="sayHi", exclude=false)
@ResponseWrapper(className="src.SayHiResponse", localName="sayHiResponse", targetNamespace="http://src/")
@RequestWrapper(className="src.SayHi", localName="sayHi", targetNamespace="http://src/")
public String sayHi(String value);
}

Please help!!!
Argon is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off



All times are GMT -5. The time now is 10:20 PM.


Powered by vBulletin® Version 3.8.8 Beta 4
Copyright ©2000 - 2017, vBulletin Solutions, Inc.
Search Engine Friendly URLs by vBSEO 3.6.0