I'm trying to create a Web Service interface and test it with the "Web
Services Test" tool/window. I can go all the way until it creates the JSP
scripts to test the interface, but when I click on the "Invoke" button on
one of my methods, the "Result" window shows the following message:

The exception in the console window is shown the listing below. How do I
find out what class it is complaining about not finding? The JSP files
that the wizard created were:

Input.jsp
Method.jsp
Result.jsp
TestClient.jsp

Am I missing some libraries that it is looking for or is it not finding
the Web Service classes that it had created. I'm not sure how it figures
out what it needs to put in its WEB-INF/lib folder in order to run the
test cases...

Any insight is greatly appreciated.

Alan

************************************************

Aug 3, 2006 3:03:13 PM org.apache.axis.transport.http.AxisServlet
logException
INFO: Exception:
java.lang.NoClassDefFoundError
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Unknown Source)
at org.apache.axis.utils.ClassUtils$2.run(ClassUtils.java:176)
at java.security.AccessController.doPrivileged(Native Method)
at org.apache.axis.utils.ClassUtils.loadClass(ClassUtils.java:1 60)
at org.apache.axis.utils.ClassUtils.forName(ClassUtils.java:142 )
at org.apache.axis.utils.cache.ClassCache.lookup(ClassCache.jav a:85)
at
org.apache.axis.providers.java.JavaProvider.getServiceClass( JavaProvider.java:428)
at
org.apache.axis.providers.java.JavaProvider.initServiceDesc( JavaProvider.java:461)
at
org.apache.axis.handlers.soap.SOAPService.getInitializedServ iceDesc(SOAPService.java:285)
at
org.apache.axis.deployment.wsdd.WSDDService.makeNewInstance( WSDDService.java:500)
at
org.apache.axis.deployment.wsdd.WSDDDeployableItem.getNewIns tance(WSDDDeployableItem.java:274)
at
org.apache.axis.deployment.wsdd.WSDDDeployableItem.getInstan ce(WSDDDeployableItem.java:260)
at
org.apache.axis.deployment.wsdd.WSDDDeployment.getService(WS DDDeployment.java:427)
at
org.apache.axis.configuration.FileProvider.getService(FilePr ovider.java:231)
at org.apache.axis.AxisEngine.getService(AxisEngine.java:311)
at
org.apache.axis.MessageContext.setTargetService(MessageConte xt.java:755)
at org.apache.axis.handlers.http.URLMapper.invoke(URLMapper.jav a:50)
at
org.apache.axis.strategies.InvocationStrategy.visit(Invocati onStrategy.java:32)
at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:118)
at org.apache.axis.SimpleChain.invoke(SimpleChain.java:83)
at org.apache.axis.server.AxisServer.invoke(AxisServer.java:239 )
at org.apache.axis.transport.http.AxisServlet.doPost(AxisServle t.java:699)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:767)
at
org.apache.axis.transport.http.AxisServletBase.service(AxisS ervletBase.java:327)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:860)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFi lter(ApplicationFilterChain.java:252)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(App licationFilterChain.java:173)
at
org.apache.catalina.core.StandardWrapperValve.invoke(Standar dWrapperValve.java:213)
at
org.apache.catalina.core.StandardContextValve.invoke(Standar dContextValve.java:178)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHo stValve.java:126)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorRepo rtValve.java:105)
at
org.apache.catalina.core.StandardEngineValve.invoke(Standard EngineValve.java:107)
at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAd apter.java:148)
at
org.apache.coyote.http11.Http11Processor.process(Http11Proce ssor.java:868)
at
org.apache.coyote.http11.Http11BaseProtocol$Http11Connection Handler.processConnection(Http11BaseProtocol.java:663)
at
org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(Poo lTcpEndpoint.java:527)
at
org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt( LeaderFollowerWorkerThread.java:80)
at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.ru n(ThreadPool.java:684)
at java.lang.Thread.run(Unknown Source)

It looks like I'm missing a bunch of JAR files that is required for my Web
Service class to communicate between the sample client and my Web Service
class - i.e. missing some Axis and its related/dependent JAR files. I
copied the set of JAR files from an existing application that works and my
new application is able to continue working further until it breaks at
some place that is more meaningful for me to debug...

> FYI...
>
> It looks like I'm missing a bunch of JAR files that is required for my Web
> Service class to communicate between the sample client and my Web Service
> class - i.e. missing some Axis and its related/dependent JAR files. I
> copied the set of JAR files from an existing application that works and my
> new application is able to continue working further until it breaks at
> some place that is more meaningful for me to debug...
>
> Cheers - Alan

I was running the JSP that the tool created automatically to test the
interface, it wasn't my code. Adding the needed Axis related jar files
made them work. I put the whole project with the WEB-INF folder under my
real Tomcat directory and everything also worked for that interface/Web
Service. Seems to me that the set of jar files that came with WTP
1.0/Eclipse 3.1.2 is missing some other needed jar files. I also noticed
that the version of Axis that came with WTP 1.0 is 1.2 and the latest/last
version that I have downloaded from the Axis project is 1.3 - I'm using
the Axis 1.3 set of jar files and they are working fine.

Alan

Chris Brealey wrote:

> Alan,
> if you are generating your JSPs into a different project than the one
> containing the generated Axis Java client classes, then you're probably
> tripping over bug 117924 [1].

>> FYI...
>>
>> It looks like I'm missing a bunch of JAR files that is required for my Web
>> Service class to communicate between the sample client and my Web Service
>> class - i.e. missing some Axis and its related/dependent JAR files. I
>> copied the set of JAR files from an existing application that works and my
>> new application is able to continue working further until it breaks at
>> some place that is more meaningful for me to debug...
>>
>> Cheers - Alan

> Chris,
>
> I was running the JSP that the tool created automatically to test the
> interface, it wasn't my code. Adding the needed Axis related jar files
> made them work. I put the whole project with the WEB-INF folder under my
> real Tomcat directory and everything also worked for that interface/Web
> Service. Seems to me that the set of jar files that came with WTP
> 1.0/Eclipse 3.1.2 is missing some other needed jar files. I also noticed
> that the version of Axis that came with WTP 1.0 is 1.2 and the latest/last
> version that I have downloaded from the Axis project is 1.3 - I'm using
> the Axis 1.3 set of jar files and they are working fine.
>
> Alan
>
> Chris Brealey wrote:
>
> > Alan,
> > if you are generating your JSPs into a different project than the one
> > containing the generated Axis Java client classes, then you're probably
> > tripping over bug 117924 [1].
>
> > Cheers - CB.
>
> > [1] https://bugs.eclipse.org/bugs/show_bug.cgi?id=117924
>
> > Alan wrote:
>
> >> FYI...
> >>
> >> It looks like I'm missing a bunch of JAR files that is required for my Web
> >> Service class to communicate between the sample client and my Web Service
> >> class - i.e. missing some Axis and its related/dependent JAR files. I
> >> copied the set of JAR files from an existing application that works and my
> >> new application is able to continue working further until it breaks at
> >> some place that is more meaningful for me to debug...
> >>
> >> Cheers - Alan