• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

error while trying to run first HelloWorld.jws in SimpleAxisServer

 
Ranch Hand
Posts: 2108
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I did follow all instructions, and all classpaths seem to be ok. My error is:

==================
the server window
==================

C:\wd\book beginning jws\coding\CH3 PG 114>java org.apache.axis.transport.http.S
impleAxisServer
log4j:WARN No appenders could be found for logger (org.apache.axis.i18n.ProjectR
esourceBundle).
log4j:WARN Please initialize the log4j system properly.
Exception in thread "main" java.lang.NoClassDefFoundError: javax/wsdl/OperationT
ype
at org.apache.axis.description.OperationDesc.<clinit>(OperationDesc.java
:59)
at org.apache.axis.description.JavaServiceDesc.createOperationForMethod(
JavaServiceDesc.java:1213)
at org.apache.axis.description.JavaServiceDesc.createOperationsForName(J
avaServiceDesc.java:1150)
at org.apache.axis.description.JavaServiceDesc.getSyncedOperationsForNam
e(JavaServiceDesc.java:1112)
at org.apache.axis.description.JavaServiceDesc.loadServiceDescByIntrospe
ctionRecursive(JavaServiceDesc.java:962)
at org.apache.axis.description.JavaServiceDesc.loadServiceDescByIntrospe
ction(JavaServiceDesc.java:896)
at org.apache.axis.providers.java.JavaProvider.initServiceDesc(JavaProvi
der.java:477)
at org.apache.axis.handlers.soap.SOAPService.getInitializedServiceDesc(S
OAPService.java:285)
at org.apache.axis.handlers.JWSHandler.setupService(JWSHandler.java:273)

at org.apache.axis.handlers.JWSHandler.invoke(JWSHandler.java:72)
at org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrateg
y.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:249)
at org.apache.axis.transport.http.SimpleAxisWorker.execute(SimpleAxisWor
ker.java:428)
at org.apache.axis.transport.http.SimpleAxisWorker.run(SimpleAxisWorker.
java:155)
at org.apache.axis.transport.http.SimpleAxisServer.run(SimpleAxisServer.
java:245)
at org.apache.axis.transport.http.SimpleAxisServer.start(SimpleAxisServe
r.java:296)
at org.apache.axis.transport.http.SimpleAxisServer.start(SimpleAxisServe
r.java:304)
at org.apache.axis.transport.http.SimpleAxisServer.main(SimpleAxisServer
.java:385)

C:\wd\book beginning jws\coding\CH3 PG 114>


=================
the client window
=================

C:\wd\book beginning jws\coding\CH3 PG 114>java HelloWorldClient
HelloWorld.main: Entering...
log4j:WARN No appenders could be found for logger (org.apache.axis.i18n.ProjectR
esourceBundle).
log4j:WARN Please initialize the log4j system properly.
Caught an exception: (0)null

C:\wd\book beginning jws\coding\CH3 PG 114>

=============

Any ideas?
 
Rancher
Posts: 43081
77
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
That class is in a file called wsdl4j-1.5.1.jar in lib directory of the Axis 1.2 distribution. Maybe you inadvertently removed it, or the file is corrupted.
 
Jesus Angeles
Ranch Hand
Posts: 2108
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks. I fixed my classpaths. The error is still there, but at least for my current purpose, that wsdl-related error isnt stopping what I am doing.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic