You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Jon Earle <je...@hubcc.ca> on 2001/10/02 17:58:40 UTC

Issue with running the tests

Hi!

New Tomcat user, familiar with Linux, etc, however, I know virtually nothing
about Java.  I'm in the process of moving an existing website using Jakarta
on an NT system to a Linux server (RH7.1).  I figured that I'd grab all the
latest (Apache 1.3.20, latest mod_ssl, latest Tomcat [4.0]) and build it all
together.  It appears that Tomcat 4.0 is radically different than the 3.2.3
version (I couldn't find the mod_jk equivalent - I suspect it's the
mod_webapp, but I don't know how to use it in place of mod_jk -- pointers to
Apache-Tomcat 4.0 integration docs would be appreciated, but that is not why
I'm posting this note).

So, I'm using Tomcat 3.2.3 and I honestly believe I've followed the
directions in the included README (is there a way to get jaxp 1.1 working
instead of the older 1.0 version or does it really matter what version is
used?) to get Tomcat built.  I was finally able to build it, and it even
appears to run when I issues the startup command.  I can point a browser at
the box:8080 and I see the "out of the box" content.

The issue I'm having, and it's more just me wanting to confirm to myself
that I've done everything "by the numbers", is that the tests mentioned in
the README, fail.  I've issued
both "./bin/tomcat.sh ant -buildfile conf/test-tomcat.xml" and
"bin/tomcat.sh ant -f conf/test-tomcat.xml client" as mentioned in the
test-tomcat.xml file, and both give me:

root@testlab:/usr/local/jakarta/dist/tomcat> bin/tomcat.sh ant -f
conf/test-tomcat.xml client
Buildfile: conf/test-tomcat.xml

init:

file:
    [gtest] Error setting project in class org.apache.tomcat.task.GTest

BUILD FAILED

/usr/local/jakarta/dist/tomcat/conf/test-tomcat.xml:32:
java.lang.NoSuchMethodException

Total time: 4 seconds

I don't understand what this error means or how to fix it.  Any divine
guidance would be appreciated!

Relevant env vars:

JAVA_BASE=/usr/java
JAVA_HOME=$JAVA_BASE/jdk1.3.1_01
JAKARTA_HOME=/usr/local/jakarta
TOMCAT_HOME=/usr/local/jakarta/dist/tomcat

PATH="$PATH:$JAVA_HOME/bin"
CLASSPATH="$CLASSPATH:$JAVA_BASE/jaxp1.0.1/jaxp.jar:
 $JAVA_BASE/jaxp1.0.1/parser.jar:
 $JAVA_BASE/jsse1.0.2/lib/jsse.jar:
 $JAVA_BASE/jsse1.0.2/lib/jcert.jar:
 $JAVA_BASE/jsse1.0.2/lib/jnet.jar:
 $JAKARTA_HOME/jakarta-ant/lib/ant.jar:
 $JAKARTA_HOME/dist/servletapi/lib/servlet.jar"

(CLASSPATH tidied for clarity.)

Cheers!
Jon

---
Jonathan Earle
Software Development & Integration
HUB Computer Consulting Inc. / StorageSoft Solutions
* 613-830-1499   Local
* 1-888-353-7272 Toll free
* 613-830-9478   Fax