File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Websphere and the fly likes apache logging in websphere... Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Products » Websphere
Bookmark "apache logging in websphere..." Watch "apache logging in websphere..." New topic

apache logging in websphere...

sailaja parepalli
Ranch Hand

Joined: Jan 23, 2003
Posts: 33
I am using the apache api and commons-logging.jar file in my ejb application. It doesn't give any errors while generating the deployment code in WSAD and I could deploy it on the WebSphere Application Server also.
When I try to invoke this ejbean from the client application it gives the ClassNotFoundException, saying org.apache.commons.logging.LogFactory is not found. I checked the ejb-jar file also. It has the commons-logging.jar file included in the lib directory. I am also using apache xalan.jar and xerces.jar. There is no problem in using the classes of these jar files, but I cannot access only the commons logging classes.
Can anybody help me with this?

Sailu<br />IBM 486, SCJP, Brainbench CJP
Nicholas Cheung
Ranch Hand

Joined: Nov 07, 2003
Posts: 4982
Hi sailaja ,
For common utility, you may set the environment variable that include this jar file in the classpath. Have you tried this way?
I have set the JDBC driver for DB2 in the environment variables instead of putting it into the lib directory inside the ejb-jar file.

SCJP 1.2, OCP 9i DBA, SCWCD 1.3, SCJP 1.4 (SAI), SCJD 1.4, SCWCD 1.4 (Beta), ICED (IBM 287, IBM 484, IBM 486), SCMAD 1.0 (Beta), SCBCD 1.3, ICSD (IBM 288), ICDBA (IBM 700, IBM 701), SCDJWS, ICSD (IBM 348), OCP 10g DBA (Beta), SCJP 5.0 (Beta), SCJA 1.0 (Beta), MCP(70-270), SCBCD 5.0 (Beta), SCJP 6.0, SCEA for JEE5 (in progress)
sailaja parepalli
Ranch Hand

Joined: Jan 23, 2003
Posts: 33
The WAS server resides on a Unix machine and I am deploying the EJBs on it remotely.
I will try setting in the classpath as the last alternative and will let you know if it works.
I agree. Here's the link:
subject: apache logging in websphere...
Similar Threads
WAS 5.1 using Struts 1.2.9 - commons-logging issue
java.lang.NoClassDefFoundError: org/apache/commons/logging/LogFactory
WAS commons-logging problem SOLVED (without PARENT_LAST)
'weblogic.logging.commons.LogFactoryImpl' cannot be converted to 'org.apache.commons.logging.LogFact
Resource not found