If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > DB2 > No implementation defined for org.apache.commons.logging.LogFactory

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 11-03-06, 10:02
James Frankman James Frankman is offline
Registered User
 
Join Date: Feb 2004
Posts: 24
Question No implementation defined for org.apache.commons.logging.LogFactory

Does anyone know how to configure apache commons logging for Java Stored procedures?

I am trying to create a Java stored procedure that calls a web service via the Apache Axis framework. When I call the storedprocedure, it fails because (I think) it cannot write to log using the commons logging. I suspect this is a configuration issue, but I don't know what to do. The web service works fine when it is callled outside of DB2. The error only occurs when the web service is called from a DB2 stored procedure. The following is written in the db2diag.log file:

2006-11-02-16.49.43.781000-420 E422627H375 LEVEL: Warning
PID : 3668 TID : 2240 PROC : db2fmp.exe
INSTANCE: DB2 NODE : 000
FUNCTION: DB2 UDB, BSU Java support, sqlejLogException, probe:10
MESSAGE : ADM10000W A Java exception has been caught. The Java stack
traceback has been written to the db2diag.log.

2006-11-02-16.49.43.781000-420 I423004H2232 LEVEL: Warning
PID : 3668 TID : 2240 PROC : db2fmp.exe
INSTANCE: DB2 NODE : 000
FUNCTION: DB2 UDB, BSU Java support, sqlejLogException, probe:10
DATA #1 : String, 1868 bytes
java.lang.ExceptionInInitializerError
at java.lang.J9VMInternals.initialize(J9VMInternals.j ava:167)
at org.apache.axis.description.TypeDesc.<clinit>(Type Desc.java:61)
at java.lang.J9VMInternals.initializeImpl(Native Method)
at java.lang.J9VMInternals.initialize(J9VMInternals.j ava:161)
at com.webmethods.www._package.com_esri_is_services_s oap_v3_common.Address.<clinit>(Address.java:250)
at java.lang.J9VMInternals.initializeImpl(Native Method)
at java.lang.J9VMInternals.initialize(J9VMInternals.j ava:161)
at com.idfbins.gis.GISServices.getAddressCandidates(G ISServices.java:272)
at com.idfbins.gis.GISServices.validateAddress(GISSer vices.java:215)
at com.idfbins.storedproc.GISStoredProcs.validateAddr ess(GISStoredProcs.java:52)
Caused by: org.apache.commons.discovery.DiscoveryException: No implementation defined for org.apache.commons.logging.LogFactory
at org.apache.commons.discovery.tools.ClassUtils.veri fyAncestory(ClassUtils.java:176)
at org.apache.commons.discovery.tools.SPInterface.ver ifyAncestory(SPInterface.java:201)
at org.apache.commons.discovery.tools.SPInterface.new Instance(SPInterface.java:195)
at org.apache.commons.discovery.tools.DiscoverClass.n ewInstance(DiscoverClass.java:579)
at org.apache.commons.discovery.tools.DiscoverSinglet on.find(DiscoverSingleton.java:418)
at org.apache.commons.discovery.tools.DiscoverSinglet on.find(DiscoverSingleton.java:378)
at org.apache.axis.components.logger.LogFactory$1****n (LogFactory.java:45)
at java.security.AccessController.doPrivileged(Access Controller.java:191)
at org.apache.axis.components.logger.LogFactory.getLo gFactory(LogFactory.java:41)
at org.apache.axis.components.logger.LogFactory.<clin it>(LogFactory.java:33)
at java.lang.J9VMInternals.initializeImpl(Native Method)
at java.lang.J9VMInternals.initialize(J9VMInternals.j ava:161)
... 9 more
Reply With Quote
  #2 (permalink)  
Old 11-03-06, 13:43
sathyaram_s sathyaram_s is offline
Super Moderator
 
Join Date: Aug 2001
Location: UK
Posts: 4,534
Have a read through this article and see if this helps

http://www-128.ibm.com/developerwork...le/dm-0510law/

Sathyaram
__________________
Visit the new-look IDUG Website , register to gain access to the excellent content.
Reply With Quote
  #3 (permalink)  
Old 11-03-06, 15:28
James Frankman James Frankman is offline
Registered User
 
Join Date: Feb 2004
Posts: 24
Where?

I've skimmed through it and could not find anything about commons logging. I am happy to read through it, but is there a specific section that might help me with this problem?
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On