472,955 Members | 2,493 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,955 software developers and data experts.

java.lang.NoClassDefFoundError: java.lang.NoClassDefFoundError: org/apache/commons/logging/LogFactory

Hi,

I'm trying to use the httpclient within Jython (see
http://jakarta.apache.org/commons/httpclient/ for more information on
the httpclient).

My Jython version is:
Jython 2.1 on java1.4.2_04 (JIT: null)

My Java version is:
java version "1.4.2_04"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_04-b05)
Java HotSpot(TM) Client VM (build 1.4.2_04-b05, mixed mode)

My CLASSPATH includes:
jdom.jar
xerces.jar
jython.jar
jt400.jar
log4j-1.2.8.jar
commons-httpclient-2.0.jar

When I just try to perform the import statements from example code I
get the error pasted below.

import org.apache.commons.httpclient.Cookie
import org.apache.commons.httpclient.HttpClient
import org.apache.commons.httpclient.HttpState
import org.apache.commons.httpclient.cookie.CookiePolicy
import org.apache.commons.httpclient.methods.GetMethod
import org.apache.commons.httpclient.HttpClient

Traceback (innermost last):
File "<console>", line 1, in ?
java.lang.NoClassDefFoundError: org/apache/commons/logging/LogFactory
at
org.apache.commons.httpclient.HttpClient.<clinit>( HttpClient.java:101)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Unknown Source)
at
org.python.core.SyspathJavaLoader.loadClass(Syspat hJavaLoader.java)
at java.lang.ClassLoader.loadClass(Unknown Source)
at org.python.core.Py.findClassEx(Py.java)
at
org.python.core.SysPackageManager.findClass(SysPac kageManager.java)
at
org.python.core.PackageManager.findClass(PackageMa nager.java)
at
org.python.core.SysPackageManager.findClass(SysPac kageManager.java)
at
org.python.core.PyJavaPackage.__findattr__(PyJavaP ackage.java)
at org.python.core.PyObject.impAttr(PyObject.java)
at org.python.core.imp.import_next(imp.java)
at org.python.core.imp.import_logic(imp.java)
at org.python.core.imp.import_name(imp.java)
at org.python.core.imp.importName(imp.java)
at org.python.core.ImportFunction.load(__builtin__.ja va)
at org.python.core.ImportFunction.__call__(__builtin_ _.java)
at org.python.core.PyObject.__call__(PyObject.java)
at org.python.core.__builtin__.__import__(__builtin__ .java)
at org.python.core.imp.importOne(imp.java)
at org.python.pycode._pyx2.f$0(<console>:1)
at org.python.pycode._pyx2.call_function(<console>)
at org.python.core.PyTableCode.call(PyTableCode.java)
at org.python.core.PyCode.call(PyCode.java)
at org.python.core.Py.runCode(Py.java)
at org.python.core.Py.exec(Py.java)
at
org.python.util.PythonInterpreter.exec(PythonInter preter.java)
at
org.python.util.InteractiveInterpreter.runcode(Int eractiveInterpreter.java)
at
org.python.util.InteractiveInterpreter.runsource(I nteractiveInterpreter.java)
at
org.python.util.InteractiveInterpreter.runsource(I nteractiveInterpreter.java)
at
org.python.util.InteractiveConsole.push(Interactiv eConsole.java)
at
org.python.util.InteractiveConsole.interact(Intera ctiveConsole.java)
at org.python.util.jython.main(jython.java)

java.lang.NoClassDefFoundError: java.lang.NoClassDefFoundError:
org/apache/commons/logging/LogFactory

Thanks for any help you can provide. If this is the wrong
forum...point me the right way.

Greg

Jul 18 '05 #1
1 47537
gr************@gmail.com wrote:
My CLASSPATH includes:
jdom.jar
xerces.jar
jython.jar
jt400.jar
log4j-1.2.8.jar
commons-httpclient-2.0.jar
[...]
java.lang.NoClassDefFoundError: java.lang.NoClassDefFoundError:
org/apache/commons/logging/LogFactory

Thanks for any help you can provide. If this is the wrong
forum...point me the right way.


This has nothing to do with Python or Jython.

You're missing Jakarta's commons LOGGING package.
(commons httpclient requires that jar).
Get it from the same place as commons-httpclient.

--Irmen
Jul 18 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Steven Mason | last post by:
Here's my problem. I've certain jar files I've included in my classpath that I need to work with. I've included these in my path variable so when I type path at the command line I get : ...
0
by: Ravi Tallury | last post by:
Hi We are having issues with our application, certain portions of it stop responding while the rest of the application is fine. I am attaching the Java Core dump. If someone can let me know what...
1
by: ptaz | last post by:
Hi I'm trying to run a web page but I get the following error. Ca anyone please tell me a solution to this. Thanks Ptaz HTTP Status 500 - type Exception report
4
pbmods
by: pbmods | last post by:
Heya. I just installed PHP-Java-Bridge on my system, but I'm having a hard time getting it to stop crashing Apache. When I activate the 'Java.so' module in php.ini, I get the following error in...
1
by: henrymania | last post by:
Am writing a code for database backup....by backupservlet is as given below i get the following exception
0
by: markthien | last post by:
Hi guys, I was trying to compile jasper report from java as below: public static void runReport(String databaseName, String userName, String password, String reportFile) {...
2
by: khalidanwar123 | last post by:
i am getting the following error while updating a clob field. ERROR java.sql.SQLException: Data size bigger than max size forthis type: 4003 19:28:27,499 ERROR at...
0
by: Siyodia | last post by:
This is a java program which i need to run facing compilation error Its consuming a third party web service method I have the supported files(folder) which contain necessary class files...
2
by: ksheerasagar17 | last post by:
Hello All, Scenario: Sending an image through webservice as byte array to an Java webservice. The Problem1: The webservice method image property expects (data type) SByte rather than Byte...
0
by: lllomh | last post by:
Define the method first this.state = { buttonBackgroundColor: 'green', isBlinking: false, // A new status is added to identify whether the button is blinking or not } autoStart=()=>{
2
by: giovanniandrean | last post by:
The energy model is structured as follows and uses excel sheets to give input data: 1-Utility.py contains all the functions needed to calculate the variables and other minor things (mentions...
4
NeoPa
by: NeoPa | last post by:
Hello everyone. I find myself stuck trying to find the VBA way to get Access to create a PDF of the currently-selected (and open) object (Form or Report). I know it can be done by selecting :...
3
NeoPa
by: NeoPa | last post by:
Introduction For this article I'll be using a very simple database which has Form (clsForm) & Report (clsReport) classes that simply handle making the calling Form invisible until the Form, or all...
1
by: Teri B | last post by:
Hi, I have created a sub-form Roles. In my course form the user selects the roles assigned to the course. 0ne-to-many. One course many roles. Then I created a report based on the Course form and...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 1 Nov 2023 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM) Please note that the UK and Europe revert to winter time on...
3
by: nia12 | last post by:
Hi there, I am very new to Access so apologies if any of this is obvious/not clear. I am creating a data collection tool for health care employees to complete. It consists of a number of...
0
isladogs
by: isladogs | last post by:
The next online meeting of the Access Europe User Group will be on Wednesday 6 Dec 2023 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, Mike...
1
by: GKJR | last post by:
Does anyone have a recommendation to build a standalone application to replace an Access database? I have my bookkeeping software I developed in Access that I would like to make available to other...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.