log4j-1.2.8.jar gets deleted from the path when a Webservice is created from Eclipse

Posted by Seema on Super User See other posts from Super User or by Seema
Published on 2014-06-05T07:20:30Z Indexed on 2014/06/05 9:30 UTC
Read the original article Hit count: 250

Filed under:
|

When I try to create a Webservice from Eclipse, the log4j-1.2.8.jar which is configured in the project's build path just gets deleted, and when I try to invoke the Webservice it gives error as below:

2014-06-05 11:47:48,742 ERROR ServiceRequester:55 - RemoteException
2014-06-05 11:47:48,742 ERROR ServiceRequester:56 - ------
AxisFault
 faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.generalException
 faultSubcode:
 faultString: java.lang.NoClassDefFoundError: org/apache/log4j/Logger; nested ex
ception is:
        java.lang.NoClassDefFoundError: org/apache/log4j/Logger
 faultActor:
 faultNode:
 faultDetail:
        {http://xml.apache.org/axis/}hostname:INPUSCPC07719

java.lang.NoClassDefFoundError: org/apache/log4j/Logger; nested exception is:
        java.lang.NoClassDefFoundError: org/apache/log4j/Logger

We also tried to place this jar to a different path than where the project is located, but it still delete this jar from that path too.

Can anyone help in this?

© Super User or respective owner

Related posts about java

Related posts about web-services