Return-Path: Delivered-To: apmail-jakarta-commons-dev-archive@www.apache.org Received: (qmail 93982 invoked from network); 27 Apr 2005 21:17:16 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 27 Apr 2005 21:17:16 -0000 Received: (qmail 30641 invoked by uid 500); 27 Apr 2005 21:18:11 -0000 Delivered-To: apmail-jakarta-commons-dev-archive@jakarta.apache.org Received: (qmail 30574 invoked by uid 500); 27 Apr 2005 21:18:11 -0000 Mailing-List: contact commons-dev-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Jakarta Commons Developers List" Reply-To: "Jakarta Commons Developers List" Delivered-To: mailing list commons-dev@jakarta.apache.org Received: (qmail 30551 invoked by uid 99); 27 Apr 2005 21:18:11 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received: from ajax-1.apache.org (HELO ajax.apache.org) (192.87.106.226) by apache.org (qpsmtpd/0.28) with ESMTP; Wed, 27 Apr 2005 14:18:10 -0700 Received: from ajax.apache.org (ajax.apache.org [127.0.0.1]) by ajax.apache.org (Postfix) with ESMTP id 2437B3D7 for ; Wed, 27 Apr 2005 22:54:31 +0200 (CEST) Message-ID: <832090490.1114635271136.JavaMail.jira@ajax.apache.org> Date: Wed, 27 Apr 2005 22:54:31 +0200 (CEST) From: "Fernando Nasser (JIRA)" To: commons-dev@jakarta.apache.org Subject: [jira] Created: (JELLY-210) invokeStatic causes ClassNotFoundException in junit test testSetSingleNode during buil Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Virus-Checked: Checked X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N invokeStatic causes ClassNotFoundException in junit test testSetSingleNode = during buil ---------------------------------------------------------------------------= ----------- Key: JELLY-210 URL: http://issues.apache.org/jira/browse/JELLY-210 Project: jelly Type: Bug Components: taglib.xml =20 Versions: 1.0-RC1 =20 Environment: Linux installed with JPackage Java RPMs Reporter: Fernando Nasser When trying to build COMMONS_JELLY-1_0_RC1 I get an error on the test testSetSingleNode from jakarta-commons/jelly/jelly-tags/xml/src/test/org/apache/commons/jelly/tags= /xml/suite.jelly I get: [junit] Testcase: testSetSingleNode took 0.029 sec [junit] Caused an ERROR [junit] file:/notnfs/fnasser/BUILD/commons-jelly-1.0-RC1/jelly-tags/xml= /target/test-classes/org/apache/commons/jelly/tags/xml/suite.jelly:295:85: = method forName threw exception: org.dom4j.Element [junit] org.apache.commons.jelly.JellyTagException: file:/notnfs/fnasse= r/BUILD/commons-jelly-1.0-RC1/jelly-tags/xml/target/test-classes/org/apache= /commons/jelly/tags/xml/suite.jelly:295:85: method forName= threw exception: org.dom4j.Element [junit] at org.apache.commons.jelly.tags.core.InvokeStaticTag.doTag= (Lorg.apache.commons.jelly.XMLOutput;)V(InvokeStaticTag.java:148) [junit] at org.apache.commons.jelly.impl.TagScript.run(Lorg.apache.= commons.jelly.JellyContext;Lorg.apache.commons.jelly.XMLOutput;)V(TagScript= .java:253) (...) [junit] Caused by: java.lang.ClassNotFoundException: org.dom4j.Element [junit] at java.lang.Class.forName(Ljava.lang.String;I)Ljava.lang.C= lass;(Unknown Source) [junit] at java.lang.Class.forName(Ljava.lang.String;)Ljava.lang.Cl= ass;(Unknown Source) [junit] at jrockit.reflect.NativeMethodInvoker.invoke0(Ljava.lang.O= bject;ILjava.lang.Object;[Ljava.lang.Object;)Ljava.lang.Object;(Unknown Sou= rce) (...) However, the classpath given to junit has the dom4j.jar: [junit] '/usr/share/java/ant.jar:/usr/share/java/ant-launcher.jar:/usr/= share/java/jaxp_parser_impl.jar:/usr/share/java/xml-commons-apis.jar:/usr/s= hare/java/ant/ant-junit.jar:/usr/share/java/junit.jar:/usr/lib/jvm/java/lib= /tools.jar:/notnfs/fnasser/BUILD/commons-jelly-1.0-RC1/jelly-tags/junit/tar= get/commons-jelly-tags-junit-1.0-SNAPSHOT.jar:/home/fnasser/topdir/BUILD/co= mmons-jelly-1.0-RC1/target/commons-jelly-1.0-beta-5-SNAPSHOT.jar:/notnfs/fn= asser/BUILD/commons-jelly-1.0-RC1/jelly-tags/xml/target/classes:/notnfs/fna= sser/BUILD/commons-jelly-1.0-RC1/jelly-tags/xml/target/test-classes:/usr/sh= are/java/commons-beanutils16.jar:/usr/share/java/commons-cli.jar:/usr/share= /java/commons-collections.jar:/usr/share/java/commons-discovery.jar:/usr/sh= are/java/commons-jexl.jar:/usr/share/java/commons-lang.jar:/usr/share/java/= commons-logging.jar:/usr/share/java/taglibs-core.jar:/usr/share/java/dom4j.= jar:/usr/share/java/forehead.jar:/usr/share/java/jaxen.jar:/usr/share/java/= servletapi4.jar:/usr/share/java/xerces-j2.jar' That is how ant was called: pushd xml JELLY_TAGS_XML_DEPS=3D$JELLY_TAGS_DEPS CLASSPATH=3D$JELLY_TAGS_XML_DEPS ant -Dbuild.sysclasspath=3Donly dist popd Before you ask, I've checked and dom4j.jar do has the org/dom4j/Element.cla= ss in it. So, invokeStatic does not (always *) find the java.lang.Class wanted. * =3D I assume it has passed this test for some --=20 This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira --------------------------------------------------------------------- To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org For additional commands, e-mail: commons-dev-help@jakarta.apache.org