Iso
Iso

Reputation: 3758

Error when executing web service client

I was trying the example in JavaBoutique tutorial and I get this error message when try to execute the web service client:

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.handlers.BasicHandler.<clinit>(BasicHandler.java:43)
at org.apache.axis.client.Service.getAxisClient(Service.java:104)
at org.apache.axis.client.Service.<init>(Service.java:113)
at test.NHLServiceClient.main(NHLServiceClient.java:12)

Anyone know this error happen? I have imported org.apache.axis jar to my reference library. I'm using the wrong version or miss out other reference?

Thanks

Upvotes: 1

Views: 4890

Answers (1)

icyrock.com
icyrock.com

Reputation: 28628

This is a class from Commons Logging, you probably need to add this to your classpath. You can download it from here, but if you are using something else (e.g. Maven) you might just need to add a dependency.

Upvotes: 3

Related Questions