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.

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. ...

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

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

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 ...

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 ...

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 ...

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 ...

Exception in thread "main" java.lang.NoClassDefFoundError: Welcome

This is my Java source codes in c:\learning\src\org\kpp\Welcome.java.==============================================package org.kpp;public class Welcome{public static void main (String[] args){System.out.println("Welcome");}}===============================================This is how I compi ...

java.lang.NoClassDefFoundError

all. Im developing a webpage and i want to include a java applet which displays live feed from an IP Camera. I tried running the page with the applet, but it just shows this error. The class file is in the same directory as the webpage alrd. Really no idea how to solve it. :confused: This is how the ...

JDBC Connection error:java.lang.NoClassDefFoundError: Lorg/ietf/jgss/GSSCredential

I run an application which is on the same machine as DB2. I use type 4 JDBC to connect to DB2, unfortunately I got an error like this: java.lang.NoClassDefFoundError: Lorg/ietf/jgss/GSSCredential; Does anyone know how to slove it? Any help would be appreciated. ...

Please help!! -- java.lang.NoClassDefFoundError: antlr/collections/AST

When I tried to compile a servlet, I gotthe following error:$ javac RentBuyServlet.javajava.lang.NoClassDefFoundError: antlr/collections/ASTat at.dms.kjc.Main.beautifyParseError(Main.java:692)at at.dms.kjc.Main.parseFile(Main.java:488)at at.dms.kjc.Main.run(Main.java:119)at at.dms.kjc.Main.compile(M ...

Oracle java.lang.NoClassDefFoundError when running dbca

I have Oracle 9.2.1.0 installed on sun Solaris. Whenever I tried to execute dbca, I got the following error:NoClassDefFoundError and it hangs after that. Can Anybody help me? ...

Oracle Exception in thread "main" java.lang.NoClassDefFoundError: TestInstallCreat

I am working width demo's under sqlj in Oracle 8.1.7under windows 2000.Here is an example of my problem: C:\orawinnt\sqlj\demo>java TestInstallCreateTableException in thread "main" java.lang.NoClassDefFoundError: TestInstallCreateTableThe program:C:\orawinnt\sqlj\demo>type TestInstallCreateTab ...

Oracle java.lang.NoClassDefFoundError: com/evermind/sql/OrclCMTConnection

When I am running one of my tests for a class i am getting this exception. Does any body know why this is coming and in which jar has this class. I searched the net but could not find any useful leads.Uncaught exception RMIConnectionThread: java.lang.NoClassDefFoundError: com/evermind/sql/OrclCMTCon ...

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 ...

about java.lang.NoclassDefFoundError:java.sql.Savepoint problem

os:pocket pc 2003 mobile 2ndhw:ipaq4700 cpu:intel pxa270i create a new folder named db2e1in java code:......private com.ibm.db2e.jdbc.DB2eDataSource ds; //db2e datasource;private Connection con; //connection;private Statement st;........private String url="jdbc:db2e:\\db2e1"; Class.forName("java.sql ...

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 ...

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 ...

Exception in thread "main" java.lang.NoClassDefFoundError: run

I am trying to run some executable file using command line of the terminal (to be more specific its an installation of development environment for Davinci evaluation module).I am new to Linux and to the Davinci processor as well.when i execute the program it started o.k. and i got the following on m ...

Error 500: java.lang.NoClassDefFoundError: com.ibm.mashuphub.plugin.widgetg

i am new bee to IBM Mashup Center 3.0After installation i donot get User Interface as mentioned in the Mashup Center 3.0, also on clicking Create New Feed or opening InfoSphere Mashup Hub i am getting the following error Error 500: java.lang.NoClassDefFoundError: com.ibm.mashuphub.plugin.widgetgen.W ...

java.lang.NoClassDefFoundError: com.dwl.base.exception.ServiceLocatorExcept

I'm having the following Issue with Custom projects Integrated,Env: MDM901,WAS7, DB2.Case1: -- No IssuesGenerated MDM ear (file->export EAR) from the workspace and deployed on to local through admin console,MDM Installed and Started Succesfully, OOTB transactions are running goodCase2: I publishe ...

java.lang.NoClassDefFoundError: sun/awt/windows/WToolkit

I am getting some strange behavior when accessing the code below which resides in a servlet. A restart of the app server / web app is required to clear the error. This only seems to happen after someone copies a JSP over to the webapp which in turn is translated and compiled by WebSphere. Has anyone ...

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 ...

java.lang.NoClassDefFoundError: com.sun.net.ssl.internal.ssl.Provider

I am getting exception while running my application in IBM JDK1.5.0. The code is written in Sun JDK1.5.0. java.lang.NoClassDefFoundError: com.sun.net.ssl.internal.ssl.Providerjava.lang.J9VMInternals.verifyImpl(Native Method)java.lang.J9VMInternals.verify(J9VMInternals.java:68)java.lang.J9VMInternals ...

SDK1.4.2 on AIX 5.2: JNI_CreateJavaVM error: Can't find class java.lang.NoClassDefFoundError.

Can anyone help to look at the JNI issue?Thanks in advance!Try to test the JNI invocation API using the examples from:http://www-128.ibm.com/developerworks/linux/library/l-pow-jniexamples.htmlThe compilation is OK, however, the "invoke" program crashed with messages:codeCan't find class java.lang.No ...

After IBM JRE 1.4.2.51 upgrade, the following error message we got:java.lang.NoClassDefFoundError:

We've just upgraded from AIX 5.2 to AIX 5.3 and installed IBM JRE 1.4.2.0 (64 bit)then upgraded to 1.4.2.51 (64 bit). Since this upgrade we got the following error message in Oracle financials app which are using this Java:java.lang.NoClassDefFoundError:javax/jms/JMSExceptionWhat can be the problem? ...

After IBM JRE 1.4.2.51 upgrade, the following error message we got:java.lang.NoClassDefFoundError:

We've just upgraded from AIX 5.2 to AIX 5.3 and installed IBM JRE 1.4.2.0 (64 bit)then upgraded to 1.4.2.51 (64 bit). Since this upgrade we got the following error message in Oracle financials app which are using this Java:java.lang.NoClassDefFoundError:javax/jms/JMSExceptionWhat can be the problem? ...

java.lang.NoClassDefFoundError after upgrading to AIX 5.3 64-bit

I am not a Java developer with Java problem. We just upgraded to AIX 5.3 64-bit with JRE 1.6... now our program that used to work is producing the following error. There were no changes made to the Java code. Please help as I don't know how to go about solving this problem. Any help that would give ...