Caused by: java.lang.NoClassDefFoundError: org.apache.log4j.Logger

I am getting the exception when I try to test the WebService form the Webservices Test Explorer from the WebSphere Integartion Developer(WID).

My Service Class is


import org.apache.log4j.Logger;

public class WebWorld {

private Logger logger;
/**
*
*/
public WebWorld() {
super();
System.setProperty("log4j.configuration","com/tataportal/properties/log4j.properties");
logger = Logger.getLogger(WebWorld.class.getName());
}

public String helloWeb(String name)

{
WebWorld weblog = new WebWorld();

weblog.logger.info("Eneter in to helloweb method1");
weblog.logger.info("Eneter in to helloweb method2");
weblog.logger.info("Eneter in to helloweb method3");
weblog.logger.info("Eneter in to helloweb method4");
return "hello"+name;

}

}

After that I have created the WebService(wsdl) and then I try to invoke this webservice from the WebService test Explorer.

I got the exception below.
10/28/08 19:28:26:196 IST 0000007b WebServicesSe E com.ibm.ws.webservices.engine.transport.http.WebServicesServlet doPost WSWS3227E: Error: Exception:
WebServicesFault
faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.generalException
faultString: WSWS3400I: Info: unexpected exception.
faultActor: null
faultDetail:

WSWS3400I: Info: unexpected exception.
at com.ibm.ws.webservices.engine.PivotHandlerWrapper.bindExceptionToResponse(PivotHandlerWrapper.java:425)
at com.ibm.ws.webservices.engine.PivotHandlerWrapper.invoke(PivotHandlerWrapper.java:309)
at com.ibm.ws.webservices.engine.handlers.jaxrpc.JAXRPCHandler.invoke(JAXRPCHandler.java:152)
at com.ibm.ws.webservices.engine.handlers.WrappedHandler.invoke(WrappedHandler.java:64)
at com.ibm.ws.webservices.engine.PivotHandlerWrapper.invoke(PivotHandlerWrapper.java:228)
at com.ibm.ws.webservices.engine.PivotHandlerWrapper.invoke(PivotHandlerWrapper.java:228)
at com.ibm.ws.webservices.engine.WebServicesEngine.invoke(WebServicesEngine.java:336)
at com.ibm.ws.webservices.engine.transport.http.WebServicesServlet.doPost(WebServicesServlet.java:831)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:763)
at com.ibm.ws.webservices.engine.transport.http.WebServicesServletBase.service(WebServicesServletBase.java:341)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1081)
at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:550)
at com.ibm.ws.wswebcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:478)
at com.ibm.ws.webcontainer.servlet.CacheServletWrapper.handleRequest(CacheServletWrapper.java:90)
at com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java:744)
at com.ibm.ws.wswebcontainer.WebContainer.handleRequest(WebContainer.java:1455)
at com.ibm.ws.webcontainer.channel.WCChannelLink.ready(WCChannelLink.java:115)
at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleDiscrimination(HttpInboundLink.java:458)
at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleNewInformation(HttpInboundLink.java:387)
at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.ready(HttpInboundLink.java:267)
at com.ibm.ws.ssl.channel.impl.SSLConnectionLink.determineNextChannel(SSLConnectionLink.java:1037)
at com.ibm.ws.ssl.channel.impl.SSLConnectionLink.readyInboundPostHandshake(SSLConnectionLink.java:725)
at com.ibm.ws.ssl.channel.impl.SSLConnectionLink$MyHandshakeCompletedCallback.complete(SSLConnectionLink.java:412)
at com.ibm.ws.ssl.channel.impl.SSLUtils.handleHandshake(SSLUtils.java:841)
at com.ibm.ws.ssl.channel.impl.SSLHandshakeIOCallback.complete(SSLHandshakeIOCallback.java:70)
at com.ibm.ws.tcp.channel.impl.AioReadCompletionListener.futureCompleted(AioReadCompletionListener.java:165)
at com.ibm.io.async.AbstractAsyncFuture.invokeCallback(AbstractAsyncFuture.java:217)
at com.ibm.io.async.AsyncChannelFuture.fireCompletionActions(AsyncChannelFuture.java:161)
at com.ibm.io.async.AsyncFuture.completed(AsyncFuture.java:136)
at com.ibm.io.async.ResultHandler.complete(ResultHandler.java:195)
at com.ibm.io.async.ResultHandler.runEventProcessingLoop(ResultHandler.java:743)
at com.ibm.io.async.ResultHandler$2.run(ResultHandler.java:873)
at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1473)
Caused by: java.lang.NoClassDefFoundError: org.apache.log4j.Logger
at com.service.WebWorld.<init>(WebWorld.java:23)
at java.lang.Class.newInstanceImpl(Native Method)
at java.lang.Class.newInstance(Class.java:1328)
at com.ibm.ws.webservices.engine.dispatchers.java.JavaBeanDispatcher.createServiceObject(JavaBeanDispatcher.java:202)
at com.ibm.ws.webservices.engine.dispatchers.java.SessionDispatcher.createAndInitServiceObject(SessionDispatcher.java:253)
at com.ibm.ws.webservices.engine.dispatchers.java.SessionDispatcher.invoke(SessionDispatcher.java:201)
at com.ibm.ws.webservices.engine.PivotHandlerWrapper.invoke(PivotHandlerWrapper.java:228)
... 32 more


Everything i.e my Log4j.jar is there in the classpath and in the EAr file which i have deployed in the Process Server.


Please help me to resolve this issue ASAP.

Please please please Any body having the solution pls help me.

Smilar Topics

  • Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/log4j

    HelloI have a problem when I try to execute a jar file, I got this message:Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/log4j/Loggerat com.iusacell.inactivar.main.Inactivar.(Inactivar.java:14)Caused by: java.lang.ClassNotFoundException: org.apache.log4j.Loggerat java.net.URL ...

  • JspTranslate: java.lang.NoClassDefFoundError: org.apache.struts.action.ActionForm

    I'm creating a simple struts application in RAD6. When I add a <jsp:useBean> to a jsp there is an error:JspTranslate: java.lang.NoClassDefFoundError:org.apache.struts.action.ActionFormAs I understand it java.lang.NoClassDefFoundError means that there is no class path entry (as opposed to java. ...

  • java.lang.NoClassDefFoundError: org/apache/commons/httpclient/HttpMethod

    I am currently working in Netbeans 4.0 with Tomcat 5.0.28. I have been very successful, up to this point, in creating a JAR applet file and integrating it in with a full blown web project and running it as such. Now, I have taken my applet and added the HttpClient package to it and everything has co ...

  • java.lang.NoClassDefFoundError: org/apache/commons/el/ExpressionEvaluatorImpl

    I am using RAD 6.0.0 with Build id : 20041117_2230. When I am starting my server I am getting error shown below. This error not allowing my application to run. Please help8/16/06 13:48:02:360 IST 00000037 SystemErr R java.lang.NoClassDefFoundError: org/apache/commons/el/ExpressionEvaluatorImplat com ...

  • Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/xml/s

    When I trying the tutorial "Create a WSDM endpoint using Build to Manage tooling from the Eclipse TPTP project", in the depolying and testing endpoint part, the following error message showed, how can I solve the problem?Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/xml/seria ...

  • java.lang.NoClassDefFoundError: org/aspectj/lang/Signature

    Im using: -Mysql v3.23.38 -Apache Server v1.3 -Jsdk v1.4.2 -Netbeans v4.0 -Connector/j v3.1.8 Im trying to connect to Mysql dbase with the ff code: ============================================================ import java.sql.Connection; import java.sql.DriverManager; import java.sql.SQLException; pu ...

  • Eclipse JDBC Tomcat 6.0 - java.lang.ClassNotFoundException: org.apache.tagl

    I am trying a jdbc program with MySQL and Tomcat 6.0. And I have run into some weird problem. When I run the program in webapps folder of tomcat 6.0 everything is fine. But when I use eclipse IDE its throwing an exception and I could figure out that there is a difference between tomcat instance runn ...

  • Eclipse JDBC Tomcat 6.0 - java.lang.ClassNotFoundException: org.apache.tagl

    I am trying a jdbc program with MySQL and Tomcat 6.0. And I have run into some weird problem. When I run the program in webapps folder of tomcat 6.0 everything is fine. But when I use eclipse IDE its throwing an exception and I could figure out that there is a difference between tomcat instance runn ...

  • Eclipse JDBC Tomcat 6.0 - java.lang.ClassNotFoundException: org.apache.tag

    I am trying a jdbc program with MySQL and Tomcat 6.0. And I have run into some weird problem. When I run the program in webapps folder of tomcat 6.0 everything is fine. But when I use eclipse IDE its throwing an exception and I could figure out that there is a difference between tomcat instance runn ...

  • Error: java.lang.noclassdeffounderror org.eclipse.emf.ecore.eobject

    Please help - cannot record the test script - getting the following error - screen shot attached. java.lang.noclassdeffounderror org.eclipse.emf.ecore.eobjectI have installed RFT V8.1. Kindly help ! ...

  • Error: java.lang.noclassdeffounderror org.eclipse.emf.ecore.eobject

    Please help - cannot record the test script - getting the following error - screen shot attached. java.lang.noclassdeffounderror org.eclipse.emf.ecore.eobjectI have installed RFT V8.1. Kindly help ! ...

  • Exception in thread "main" java.lang.NoClassDefFoundError: org/w3c/dom/Node

    I am getting following error while running a RegisterBusiness file for registering a business at IBM test registry.I am using ETTK and tomcat4.1,axis-1_1.How can i correct this error.C:\Beginning_JWS_Examples\Chp07\Register\classes>java com.wrox.jws.stockquote.RegisterBusinesscom.wrox.iws.stockqu ...

  • Problems in interacting with UDDI registry Error:java.lang.NoClassDefFoundError: org/w3c/dom/Node

    Iam using the IBM's WSDK and the included UDDI4J software to interact with UDDI regestries. Iam having problem as soon as iam using the UDDIProxy, the error is:java.lang.NoClassDefFoundError: org/w3c/dom/Nodeat org.uddi4j.client.UDDIProxy.get_businessDetail(UDDIProxy.java:892)Same thing happens when ...

  • JspTranslate: java.lang.NoClassDefFoundError: org.apache.struts.action.ActionForm

    I'm new to the RAD tool.Could anyone give solution to my problem? ...

  • RFT 8 - java.lang.NoClassDefFoundError org/eclipse/swt/widgets/Display

    We are evaluating RFT 8 before upgrading. I cloned my ClearCase serve and installed a RFT 8 client etc. Each time I execute a test script as soon as an operation is attempted on a GUI object (control in a web page) I get the following exception. It seems to be a configuration issue but I can't find ...

  • A working application suddenly caused java.lang.NoClassDefFoundError

    I have a java servlet web application running on a resin server. Everything in my application worked fine at the beginning but suddenly I got java.lang.NoClassDefFoundError. I looked at the line number of the exception and found out that the classes causing java.lang.NoClassDefFoundError are always ...

  • log4j java.lang.NoClassDefFoundError

    I wrote a small web application in Java which implements log4j. I wrote it on my personnal computer which runs Linux. When I try to run it on my website (which is a Windows server), I get some errors.I sometimes get this one:500 Servlet Exceptionjava.lang.NoSuchFieldError: levelat org.apache.log4j.s ...

  • NoClassDefFoundError: org.apache.commons.fileupload.FileUploadException

    All,I am getting following exception while deploying ear.ear is having war and axis2. ear file contains commons-fileupload-1.1.1.jar but still I am getting follwing exception while deploying. I have class loader mode as parent First,and class loading plicy as multiple. I am using WAS7.I am not sure ...

  • JspTranslate: java.lang.NoClassDefFoundError

    I decided to give a try to new Rational Web Developer. I'm getting "JspTranslate: java.lang.NoClassDefFoundError: org.apache.struts.taglib.html.LinkTag." error when I use customtag in jsp. My tag is direct descendant of org.apache.struts.taglib.html.LinkTag:codepackage cz.test.customtag; import java ...

  • Oracle AIA Install Failure - java.lang.NoClassDefFoundError

    Installing patched 11.1.1.2 AIA on SOA 11.1.1.3. Used both UI and silent install. During the [Deploy Application Configurations] section, build fails. Error below. Could use some guidance thanks!BUILD FAILED[CONFIG] [AIA Configuration] [Deploy Application Configurations]:BUILD FAILED/home/oracle/AIA ...

  • How to configure the java plugins/packages like org.apache.log4j.Log ger ?

    My application uses many such packages which are not inborn sun packages and need to download and configure them for application to import properly.like import org.apache.commons.lang.StringUtils;or like import org.apache.log4j.Logger;etc. and also the java advanced packages like group of javax 's p ...

  • Jdom java.lang.NoClassDefFoundError

    Im quite new to developin gweb applicaitons and am having a problem in RAD and WAS 6.1. I have a simple project setup, with a corresponding EAR file. It use the jdom.jar utility JAR file. There are no errors in the web project, however when I try to run the servlet on WAS (iside RAD) i get this erro ...

  • Adding *.jar library to EJB Project - java.lang.NoClassDefFoundError

    I wanted to add,commons-codec-1.1.jarcommons-lang-2.1.jarjasypt-1.6.jarto my EJB Project; and I defined a library on RAD 7 called "Encyption". When I type BasicPasswordEncryptor encryptor=new BasicPasswordEncryptor();it automatically imports,import org.jasypt.util.password.BasicPasswordEncryptor; an ...

  • Exception in thread "main" java.lang.NoClassDefFoundError: org/aspectj/lang/Signature

    HeyI have been trying to use compiler for Argos...and badly the person who developed it is not reachable.The compiler is given in jar file and needs java 1.5 ,java bdd, and aspect j 1.5 to be in the class path...but whenever i issue (as specified) java5 backends.ArgosCompileri get the errorps: java ...

  • java.lang.ClassNotFoundException: org.apache.derby.jdbc.ClientDriver

    I had a friend of mine working on my project in Eclipse. While I am able to run the project perfectly fine with Derby backend, she gets this exception whenever she tries to run it. Its the same project. But she is running it for the first time and she imported all the Derby plug-ins in to the Eclips ...

  • java.lang.NoSuchMethodError: org.apache.xerces.dom.CoreDocumentImpl: method getEncoding()

    I have a little problem with my Application.The problem is in deal with xerces.jar and with the method getEncoding().My Application run with WebSphere v5.1,but when i want run that with RAD v6.0.2 and server v5.1, i have the exception in object.Please help me.Fabio Buchicchio ...

  • Error: Unhandled exception in rational_ft: java.lang.NoClassDefFoundError

    Current RFT version: 8.1.1.We have a common superhelper file for the team.I have linked this superhelper file to my project and I did Reset My java build path.I am able to point this superhelper to my RFT test script and methods in the superhelper file are also visible.But When I play back I get the ...

  • Custom Logging throws java.lang.NoClassDefFoundError for com.rational.test.

    Our "Tivoli Provisioning Manager" test team is implementing RFT testing..While I was following ITU103, RFT Advanced Techniques, Exercises for ITU103, Lesson4 :Writing custom loggers, Exercise LG1, I hit error following..Please let me know what needs to be done to work around this error:(Note: I crea ...

  • Oracle java.lang.NoClassDefFoundError: com/hp/hpl/jena/sparql/algebra/opt/Rewrite

    i'm trying a sample from your documentation. package examples;import oracle.spatial.rdf.client.jena.*;import com.hp.hpl.jena.rdf.model.Model;import com.hp.hpl.jena.graph.*;import com.hp.hpl.jena.query.*; public class Test {public static void main(String[] args) throws Exception{String szJdbcURL = ar ...