• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

apache logging in websphere...

 
sailaja parepalli
Ranch Hand
Posts: 33
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
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?
Thanks.
--
Sailu
 
Nicholas Cheung
Ranch Hand
Posts: 4982
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
Nick.
 
sailaja parepalli
Ranch Hand
Posts: 33
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
Thanks.
Sailu
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic