Wsdl2java is not working

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$(LogFactory.java:45)

at org.apache.axis.components.logger.LogFactory$1.run(LogFactory.java:45)

at java.security.AccessController.doPrivileged(Native Method)

at org.apache.axis.components.logger.LogFactory.getLogFactory(LogFactory

.java:41)

at org.apache.axis.components.logger.LogFactory.<clinit>(LogFactory.java

:33)

at org.apache.axis.i18n.ProjectResourceBundle.<clinit>(ProjectResourceBu

ndle.java:53)

at org.apache.axis.i18n.MessagesConstants.<clinit>(MessagesConstants.jav

a:32)

at org.apache.axis.utils.Messages.<clinit>(Messages.java:36)

at org.apache.axis.wsdl.WSDL2Java.<clinit>(WSDL2Java.java:112)

Iam having Axis-1_4,j2sdk1.4.2,Tomcat5.0.28

classpath setting:

C:\tomcat\jakarta-tomcat-5.0.28\webapps\axis\WEB-INF\lib\axis.jar;C:\tomcat\jakarta-tomcat-5.0.28\webapps\axis\WEB-INF\lib\log4j-1.2.8.jar;C:\tomcat\jakarta-tomcat-5.0.28\webapps\axis\WEB-INF\lib\wsdl4j-1.5.1.jar

can anyone please help me..

thanks

[1549 byte] By [neelimavangaa] at [2007-10-3 4:47:11]
# 1

> 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$(Lo

> gFactory.java:45)

> at

> org.apache.axis.components.logger.LogFactory$1.run(Log

> Factory.java:45)

> at java.security.AccessController.doPrivileged(Native

> Method)

> at

> org.apache.axis.components.logger.LogFactory.getLogFac

> tory(LogFactory

> .java:41)

> at

> org.apache.axis.components.logger.LogFactory.<clinit>(

> LogFactory.java

> :33)

> at

> org.apache.axis.i18n.ProjectResourceBundle.<clinit>(Pr

> ojectResourceBu

> ndle.java:53)

> at

> org.apache.axis.i18n.MessagesConstants.<clinit>(Messag

> esConstants.jav

> a:32)

> at

> org.apache.axis.utils.Messages.<clinit>(Messages.java:

> 36)

> at

> org.apache.axis.wsdl.WSDL2Java.<clinit>(WSDL2Java.java

> :112)

>

> Iam having Axis-1_4,j2sdk1.4.2,Tomcat5.0.28

> classpath setting:

> C:\tomcat\jakarta-tomcat-5.0.28\webapps\axis\WEB-INF\l

> ib\axis.jar;C:\tomcat\jakarta-tomcat-5.0.28\webapps\ax

> is\WEB-INF\lib\log4j-1.2.8.jar;C:\tomcat\jakarta-tomca

> t-5.0.28\webapps\axis\WEB-INF\lib\wsdl4j-1.5.1.jar

> can anyone please help me..

> thanks

Are you running in a locale other than englsh ?

I saw the words about resource bundle in the exception and wondered

if it might be related.

Thanks

jinternala at 2007-7-14 22:51:37 > top of Java-index,Enterprise & Remote Computing,Enterprise Technologies...