473,606 Members | 3,113 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

java.lang.NoCla ssDefFoundError : java.lang.NoCla ssDefFoundError : 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.comm ons.httpclient. Cookie
import org.apache.comm ons.httpclient. HttpClient
import org.apache.comm ons.httpclient. HttpState
import org.apache.comm ons.httpclient. cookie.CookiePo licy
import org.apache.comm ons.httpclient. methods.GetMeth od
import org.apache.comm ons.httpclient. HttpClient

Traceback (innermost last):
File "<console>" , line 1, in ?
java.lang.NoCla ssDefFoundError : org/apache/commons/logging/LogFactory
at
org.apache.comm ons.httpclient. HttpClient.<cli nit>(HttpClient .java:101)
at java.lang.Class .forName0(Nativ e Method)
at java.lang.Class .forName(Unknow n Source)
at
org.python.core .SyspathJavaLoa der.loadClass(S yspathJavaLoade r.java)
at java.lang.Class Loader.loadClas s(Unknown Source)
at org.python.core .Py.findClassEx (Py.java)
at
org.python.core .SysPackageMana ger.findClass(S ysPackageManage r.java)
at
org.python.core .PackageManager .findClass(Pack ageManager.java )
at
org.python.core .SysPackageMana ger.findClass(S ysPackageManage r.java)
at
org.python.core .PyJavaPackage. __findattr__(Py JavaPackage.jav a)
at org.python.core .PyObject.impAt tr(PyObject.jav a)
at org.python.core .imp.import_nex t(imp.java)
at org.python.core .imp.import_log ic(imp.java)
at org.python.core .imp.import_nam e(imp.java)
at org.python.core .imp.importName (imp.java)
at org.python.core .ImportFunction .load(__builtin __.java)
at org.python.core .ImportFunction .__call__(__bui ltin__.java)
at org.python.core .PyObject.__cal l__(PyObject.ja va)
at org.python.core .__builtin__.__ import__(__buil tin__.java)
at org.python.core .imp.importOne( imp.java)
at org.python.pyco de._pyx2.f$0(<c onsole>:1)
at org.python.pyco de._pyx2.call_f unction(<consol e>)
at org.python.core .PyTableCode.ca ll(PyTableCode. java)
at org.python.core .PyCode.call(Py Code.java)
at org.python.core .Py.runCode(Py. java)
at org.python.core .Py.exec(Py.jav a)
at
org.python.util .PythonInterpre ter.exec(Python Interpreter.jav a)
at
org.python.util .InteractiveInt erpreter.runcod e(InteractiveIn terpreter.java)
at
org.python.util .InteractiveInt erpreter.runsou rce(Interactive Interpreter.jav a)
at
org.python.util .InteractiveInt erpreter.runsou rce(Interactive Interpreter.jav a)
at
org.python.util .InteractiveCon sole.push(Inter activeConsole.j ava)
at
org.python.util .InteractiveCon sole.interact(I nteractiveConso le.java)
at org.python.util .jython.main(jy thon.java)

java.lang.NoCla ssDefFoundError : java.lang.NoCla ssDefFoundError :
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 47604
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.NoCla ssDefFoundError : java.lang.NoCla ssDefFoundError :
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
3199
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 : PATH=C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Program...
0
6800
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 the issue is. Thanks Ravi
1
6910
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
3125
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 my Apache logfile: Attempting to load any page on my webserver results in a segfault. Whee.
1
4452
by: henrymania | last post by:
Am writing a code for database backup....by backupservlet is as given below i get the following exception
0
1496
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) { JasperReport jasperReport; JasperPrint jasperPrint; try { jasperReport = JasperCompileManager
2
5651
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 oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:180) 19:28:27,499 ERROR at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:222) 19:28:27,499 ERROR at oracle.jdbc.ttc7.TTCItem.setArrayData(TTCItem.java:126) 19:28:27,499 ERROR at...
0
2431
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 org/apache/axis The following is what i need to do but am unable to do //////////////////////////////////////////////////////////////////////////////////////////// set classpath where the below jars are located.... axis.jar commons-discovery.jar
2
9779
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 array. Thus i'm converting a byte array to sbyte array and sending through web service. The converted SByte contains negative numbers wihch are resulting in an error "java.lang.ArrayIndexOutOfBoundsException: -106" Byte => SByte...error...
0
8036
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
7978
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8461
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8448
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
5987
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5470
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
3948
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
1572
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
1313
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.