jakarta-cactus-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dhruv Vohra <dhruv_k_vo...@yahoo.com>
Subject Newbie question - issue with the sample
Date Mon, 30 Dec 2002 23:43:40 GMT
Hi,

   I am new to the Junit/Cactus world. I am trying to
run the bundled samples [which come with Cactus], but
I am not able to run it properly. I have re-read all
the FAQs and previous posts but still amnot able to
figure out the solution. Please HELP - i have spent
hours on this ! 

 My env:
java - "1.4.1_01"
Tomcat - jakarta-tomcat-4.1.12-LE-jdk14
OS - Win 2k
Cactus - jakarta-cactus-13-1.4.1

  I am able to run Tomcat from command line directly
[Using "startup.bat" or "catalina.bat run"]. 
  I have also modified the build.properties file in
cactus/build dir to point to the right jar files + the
path to my Tomcat home.
 However, when I try to build the target "test.all" I
get the following messages [fails at the end]:

----------------------------------------------------------
F:\temp\java\jakarta-cactus-13-1.4.1\sample-servlet\build>F:\java\jdk1.4.1\bin\java
-classpath F:\ja
va\ant\ant.jar;F:\java\jdk1.4.1\lib\tools.jar;;;
-Dant.home=F:\java\ant org.apache.tools.ant.Main te
st.all
Buildfile: build.xml

check.test.resin.20:

     [echo]
******************************************************
     [echo] WARNING : The 'resin.home.20' property has
not been
     [echo] set. No test will be run on that servlet
engine.
     [echo]
******************************************************


display.properties:
     [echo] ----- Cactus Servlet Sample 1.4.1 -----

     [echo] java.class.path =
F:\java\ant\ant.jar;F:\java\jdk1.4.1\lib\tools.jar;;;

     [echo] java.home = F:\java\jdk1.4.1\jre
     [echo] user.home = C:\Documents and
Settings\singha
     [echo] ant.home = F:\java\ant

     [echo] cactus.framework.jar =
../lib/cactus-1.4.1.jar
     [echo] cactus.ant.jar =
../lib/cactus-ant-1.4.1.jar
     [echo] servlet.jar = ../lib/servletapi-2.3.jar
     [echo] aspectjrt.jar = ../lib/aspectjrt-1.0.5.jar
     [echo] commons.logging.jar =
../lib/commons-logging-1.0.jar
     [echo] commons.httpclient.jar =
../lib/commons-httpclient-2.0alpha1-20020606.jar
     [echo] httpunit.jar = ../lib/httpunit-1.4.1.jar
     [echo] junit.jar = ../lib/junit-3.7.jar

     [echo] log4j.jar (optional) =
../lib/log4j-1.2.5.jar
     [echo] clover.jar (optional) = ${clover.jar}

     [echo] test.port = 8080


check.properties.test:

check.properties.warn:

check.properties:

init:

compile.sample:
    [mkdir] Created dir:
F:\temp\java\jakarta-cactus-13-1.4.1\sample-servlet\target\classes\sample
    [javac] Compiling 13 source files to
F:\temp\java\jakarta-cactus-13-1.4.1\sample-servlet\target\
classes\sample
    [javac] Note:
F:\temp\java\jakarta-cactus-13-1.4.1\sample-servlet\src\sample\org\apache\cactus\s
ample\TestSampleServlet.java uses or overrides a
deprecated API.
    [javac] Note: Recompile with -deprecation for
details.

compile.unit:
    [mkdir] Created dir:
F:\temp\java\jakarta-cactus-13-1.4.1\sample-servlet\target\classes\unit
    [javac] Compiling 16 source files to
F:\temp\java\jakarta-cactus-13-1.4.1\sample-servlet\target\
classes\unit
    [javac] Note: Some input files use or override a
deprecated API.
    [javac] Note: Recompile with -deprecation for
details.

compile:

prepare.testwar.log4j:
     [copy] Copying 1 file to
F:\temp\java\jakarta-cactus-13-1.4.1\sample-servlet\target\lib

prepare.testwar.clover:

prepare.test:
     [copy] Copying 1 file to
F:\temp\java\jakarta-cactus-13-1.4.1\sample-servlet\target\conf\client

     [copy] Copying 1 file to
F:\temp\java\jakarta-cactus-13-1.4.1\sample-servlet\target\conf\client


testwar:
     [copy] Copying 1 file to
F:\temp\java\jakarta-cactus-13-1.4.1\sample-servlet\target\lib
     [copy] Copying 1 file to
F:\temp\java\jakarta-cactus-13-1.4.1\sample-servlet\target\lib
     [copy] Copying 1 file to
F:\temp\java\jakarta-cactus-13-1.4.1\sample-servlet\target\lib
     [copy] Copying 1 file to
F:\temp\java\jakarta-cactus-13-1.4.1\sample-servlet\target\lib
     [copy] Copying 1 file to
F:\temp\java\jakarta-cactus-13-1.4.1\sample-servlet\target\conf\server

    [mkdir] Created dir:
F:\temp\java\jakarta-cactus-13-1.4.1\sample-servlet\target\test
      [war] Building war:
F:\temp\java\jakarta-cactus-13-1.4.1\sample-servlet\target\test\test.war

prepare.test.resin.20:

test.resin.20:

check.test.resin.13:

     [echo]
******************************************************
     [echo] WARNING : The 'resin.home.13' property has
not been
     [echo] set. No test will be run on that servlet
engine.
     [echo]
******************************************************


prepare.test.resin.13:

test.resin.13:

check.test.tomcat.40:

prepare.test.tomcat.40:
     [echo] tomcat.home.40 =
F:/temp/java/jakarta-tomcat-4.1.12-LE-jdk14
    [mkdir] Created dir:
F:\temp\java\jakarta-cactus-13-1.4.1\sample-servlet\target\test\tomcat40\co
nf
    [mkdir] Created dir:
F:\temp\java\jakarta-cactus-13-1.4.1\sample-servlet\target\test\tomcat40\wo
rk
    [mkdir] Created dir:
F:\temp\java\jakarta-cactus-13-1.4.1\sample-servlet\target\test\tomcat40\we
bapps
     [copy] Copying 2 files to
F:\temp\java\jakarta-cactus-13-1.4.1\sample-servlet\target\test\tomca
t40\conf
     [copy] Copying 1 file to
F:\temp\java\jakarta-cactus-13-1.4.1\sample-servlet\target\test\tomcat
40\conf
     [copy] Copying 1 file to
F:\temp\java\jakarta-cactus-13-1.4.1\sample-servlet\target\test\tomcat
40\webapps

test.tomcat.40:

start.tomcat.40:
     [java] HttpConnector Opening server socket on all
host IP addresses
     [java] Starting service Tomcat-Standalone
     [java] Apache Tomcat/4.1.12-LE-jdk14
     [java] HostConfig[localhost]: Expanding web
application archive test.war
     [java] StandardHost[localhost]: Installing web
application at context path /test from URL file:
F:/temp/java/jakarta-cactus-13-1.4.1/sample-servlet/./target/test/tomcat40/webapps/test
     [java] WebappLoader[/test]: Deploying class
repositories to work directory F:\temp\java\jakarta
-cactus-13-1.4.1\sample-servlet\target\test\tomcat40\work\Standalone\localhost\test
     [java] WebappLoader[/test]: Deploy class files
/WEB-INF/classes to F:\temp\java\jakarta-cactus-
13-1.4.1\sample-servlet\.\target\test\tomcat40\webapps\test\WEB-INF\classes
     [java] WebappLoader[/test]: Deploy JAR
/WEB-INF/lib/aspectjrt.jar to
F:\temp\java\jakarta-cactu
s-13-1.4.1\sample-servlet\.\target\test\tomcat40\webapps\test\WEB-INF\lib\aspectjrt.jar
     [java] WebappLoader[/test]: Deploy JAR
/WEB-INF/lib/cactus.jar to
F:\temp\java\jakarta-cactus-1
3-1.4.1\sample-servlet\.\target\test\tomcat40\webapps\test\WEB-INF\lib\cactus.jar
     [java] WebappLoader[/test]: Deploy JAR
/WEB-INF/lib/commons-logging.jar to
F:\temp\java\jakarta
-cactus-13-1.4.1\sample-servlet\.\target\test\tomcat40\webapps\test\WEB-INF\lib\commons-logging.jar
     [java] WebappLoader[/test]: Deploy JAR
/WEB-INF/lib/junit.jar to
F:\temp\java\jakarta-cactus-13
-1.4.1\sample-servlet\.\target\test\tomcat40\webapps\test\WEB-INF\lib\junit.jar
     [java] WebappLoader[/test]: Deploy JAR
/WEB-INF/lib/log4j.jar to
F:\temp\java\jakarta-cactus-13
-1.4.1\sample-servlet\.\target\test\tomcat40\webapps\test\WEB-INF\lib\log4j.jar
     [java] ContextConfig[/test]: Configured an
authenticator for method BASIC
     [java] StandardManager[/test]: Seeding random
number generator class java.security.SecureRandom

     [java] StandardManager[/test]: Seeding of random
number generator has been completed
     [java] HttpConnector[8080] Starting background
thread

test:

stop.tomcat.40:
     [java] Stopping service Tomcat-Standalone
     [java] HttpConnector[8080] Stopping background
thread
     [java] StandardHost[localhost]: Removing web
application at context path /test
[runservertests] Server stopped !

BUILD FAILED
file:./build-share.xml:355: Could not create task or
type of type: junit.

Ant could not find the task or a class this task
relies upon.

This is common and has a number of causes; the usual
solutions are to read the manual pages then download
and
install needed JAR files, or fix the build file:
 - You have misspelt 'junit'.
   Fix: check your spelling.
 - The task needs an external JAR file to execute
   and this is not found at the right place in the
classpath.
   Fix: check the documentation for dependencies.
   Fix: declare the task.
 - The task is an Ant optional task and optional.jar
is absent
   Fix: look for optional.jar in ANT_HOME/lib,
download if needed
 - The task was not built into optional.jar as
dependent
   libraries were not found at build time.
   Fix: look in the JAR to verify, then rebuild with
the needed
   libraries, or download a release version from
apache.org
 - The build file was written for a later version of
Ant
   Fix: upgrade to at least the latest release version
of Ant
 - The task is not an Ant core or optional task
   and needs to be declared using <taskdef>.

Remember that for JAR files to be visible to Ant tasks
implemented
in ANT_HOME/lib, the files must be in the same
directory or on the
classpath

Please neither file bug reports on this problem, nor
email the
Ant mailing lists, until all of these causes have been
explored,
as this is not an Ant bug.

Total time: 18 seconds
--------------------------------------

Thanks,
D K





__________________________________________________
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com

--
To unsubscribe, e-mail:   <mailto:cactus-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:cactus-user-help@jakarta.apache.org>


Mime
View raw message