Return-Path: Delivered-To: apmail-jakarta-cactus-user-archive@apache.org Received: (qmail 2332 invoked from network); 31 Dec 2002 10:27:45 -0000 Received: from exchange.sun.com (192.18.33.10) by daedalus.apache.org with SMTP; 31 Dec 2002 10:27:45 -0000 Received: (qmail 6468 invoked by uid 97); 31 Dec 2002 10:29:08 -0000 Delivered-To: qmlist-jakarta-archive-cactus-user@jakarta.apache.org Received: (qmail 6438 invoked by uid 97); 31 Dec 2002 10:29:07 -0000 Mailing-List: contact cactus-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Cactus Users List" Reply-To: "Cactus Users List" Delivered-To: mailing list cactus-user@jakarta.apache.org Received: (qmail 6426 invoked by uid 98); 31 Dec 2002 10:29:06 -0000 X-Antivirus: nagoya (v4218 created Aug 14 2002) From: "Vincent Massol" To: "'Cactus Users List'" Subject: RE: Newbie question - issue with the sample Date: Tue, 31 Dec 2002 10:27:15 -0000 Organization: OCTO Technology Message-ID: <003e01c2b0b7$30959b90$0200a8c0@octovma> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook, Build 10.0.4024 Importance: Normal X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 In-Reply-To: <20021230234340.2793.qmail@web21305.mail.yahoo.com> X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N Hi Dhruv, This is an Ant issue and not a Cactus one. The error message says it all. It means your do *not* have a junit.jar file in your ANTHOME/lib directory. Cheers, -Vincent > -----Original Message----- > From: Dhruv Vohra [mailto:dhruv_k_vohra@yahoo.com] > Sent: 30 December 2002 23:44 > To: cactus-user@jakarta.apache.org > Subject: Newbie question - issue with the sample > > 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\sampl e > [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 . > > 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: unsubscribe@jakarta.apache.org> > For additional commands, e-mail: help@jakarta.apache.org> -- To unsubscribe, e-mail: For additional commands, e-mail: