473,395 Members | 2,222 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 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 47588
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: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.