• Post Reply Bookmark Topic Watch Topic
  • New Topic

log4j Problem - Help needed

 
Halelullah Bahadhur
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all, I am trying to execute a test on an application in the remote server from the client. I am getting the following error. The application is deployed in the remote server.

This is the error i am getting in the log file.. it says some exception in the log4j class files.. Please reply if you had faced a similar problem. Thanks in advance.

[StatelessSessionPool] : allocate new: 'com.ba.cap.customer.enrolmentmanager.utilization.ULEnrolmentManagerBean_nnzhyo_Impl@12808c3'
com.ba.cap.framework.corebusiness.utilities.Profiling: capprofiling library loaded
<24-May-2006 05:57:48 o'clock BST> <Info> <EJB> <BEA-010051> <EJB Exception occurred during invocation from home: com.ba.cap.customer.enrolmentmanager.utilization.ULEnrolmentManagerBean_nnzhyo_HomeImpl@97a1fb threw exception: java.lang.NoClassDefFoundError: org/apache/log4j/Layout
java.lang.NoClassDefFoundError: org/apache/log4j/Layout
at com.ba.cap.customer.enrolmentmanager.utilization.ULEnrolmentManagerBean.log(ULEnrolmentManagerBean.java:908)
at com.ba.cap.customer.enrolmentmanager.utilization.ULEnrolmentManagerBean.enrolBARegisteredCustomer(ULEnrolmentManagerBean.java:187)
at com.ba.cap.customer.enrolmentmanager.utilization.ULEnrolmentManagerBean_nnzhyo_EOImpl.enrolBARegisteredCustomer(ULEnrolmentManagerBean_nnzhyo_EOImpl.java:424)
at com.ba.cap.customer.enrolmentmanager.utilization.ULEnrolmentManagerBean_nnzhyo_EOImpl_WLSkel.invoke(Unknown Source)
at weblogic.rmi.internal.BasicServerRef.invoke(BasicServerRef.java:492)
at weblogic.rmi.cluster.ReplicaAwareServerRef.invoke(ReplicaAwareServerRef.java:108)
at weblogic.rmi.internal.BasicServerRef$1.run(BasicServerRef.java:435)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:363)
at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:147)
at weblogic.rmi.internal.BasicServerRef.handleRequest(BasicServerRef.java:430)
at weblogic.rmi.internal.BasicExecuteRequest.execute(BasicExecuteRequest.java:35)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:224)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:183)
>
 
Sunil Dixit
Ranch Hand
Posts: 46
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
If you see the stack trace then you are getting the java.lang.NoClassDefFoundError, which means that your conatiner is able to find more than one definition of org/apache/log4j/Layout.
So just cross check that do you have multiple jar files (which conatins 'org/apache/log4j/Layout') either in your conatiner or in classpath.
find and remove all multiple jar,and keep only one jar file.
Hope that it will heply you.
Thanks
Sunil Dixit
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!