File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Web Services and the fly likes Wsdl2java is not working Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Groovy Fundamentals video training course this week in the Groovy forum!
JavaRanch » Java Forums » Java » Web Services
Bookmark "Wsdl2java is not working" Watch "Wsdl2java is not working" New topic

Wsdl2java is not working

venu vanga

Joined: Aug 11, 2006
Posts: 7
Hi iam new to web services and iam trying to write a simple webservice HelloWorldService.jws.When i entered http://localhost:8080/axis/HelloWorldService.jws it is giving the response
There is a Web Service here
Click to see the WSDL
But,when i try to generate Client stub using Wsdl2java iam getting the error
Exception in thread "main" java.lang.NoClassDefFoundError: org.apache.commons.logging.LogFactory
at org.apache.axis.components.logger.LogFactory.class$(
at org.apache.axis.components.logger.LogFactory$
at Method)
at org.apache.axis.components.logger.LogFactory.getLogFactory(LogFactory
at org.apache.axis.components.logger.LogFactory.<clinit>(
at org.apache.axis.i18n.ProjectResourceBundle.<clinit>(ProjectResourceBu
at org.apache.axis.i18n.MessagesConstants.<clinit>(MessagesConstants.jav
at org.apache.axis.utils.Messages.<clinit>(
at org.apache.axis.wsdl.WSDL2Java.<clinit>(

Iam having Axis-1_4,j2sdk1.4.2,Tomcat5.0.28
classpath setting:
can anyone please help me..
vishwa venkat
Ranch Hand

Joined: Nov 22, 2003
Posts: 185
its looking for commons_logging.jar in classpath. Easiest way is copy all libraries of axis sample application to your app.
Arjun Sharma

Joined: Sep 12, 2006
Posts: 6
Visu is right, commons-logging.jar is missing from the classpath, it is present within your "/axis/lib" folder.
I agree. Here's the link:
subject: Wsdl2java is not working