jakarta-cactus-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Vincent Massol" <vmas...@octo.com>
Subject RE: Problem with setting up the samples
Date Tue, 22 Jan 2002 23:54:15 GMT
Hi Elan,

It means that you are trying to compile the sample application with
cactus jars from another release or nightly build. BasicAuthentication
has been added recently so if you're compiling with a cactus.jar from a
previous build it would not exist.

Cheers,
-Vincent

> -----Original Message-----
> From: Elancheralathan E [mailto:elan@lgsoftindia.com]
> Sent: 17 January 2002 13:56
> To: Cactus Mail
> Subject: Problem with setting up the samples
> 
> Hi,
> 
> I have some problems in setting up the samples that came along with
> cactus.
> Infact would like to know the exact steps that need to be followed in
> setting up a test environment along side with WLS 6.1 and Visual Cafe.
> 
> So far the following has been done
> --> The client and server side classpath have been configured.
> --> Set up a web application that is configured for the Redirector
> settings.
> 
> When i try to execute the ANT build script i get the following errors:
> 
> E:\jakarta-cactus-23-1.2\sample\build>ant tests_all
> Buildfile: build.xml
> 
> init:
>      [echo] --------- Cactus Sample 1.2 ---------
>      [echo]
>      [echo] java.class.path =
> E:\jdk1.3.1_01\lib\tools.jar;E:\build\jakarta-ant-
> 1.4\lib\jaxp.jar;E:\build\
> jakarta-ant-1.4\lib\crimson.jar;E:\build\jakarta-ant-
> 1.4\lib\ant.jar;E:\Orac
>
le\Ora81\orb\classes\yoj.jar;E:\Oracle\Ora81\orb\classes\share.zip;E:\be
a\
> wl
> server6.1
> n-1.1.3\crimson.jar
>      [echo]
>      [echo] java.home = E:\jdk1.3.1_01\jre
>      [echo] user.home = C:\Documents and Settings\elan
>      [echo]
>      [echo] basedir = E:\jakarta-cactus-23-1.2\sample
>      [echo]
>      [echo] cactus.jar = ../lib/cactus.jar
>      [echo] cactus.ant.jar = ../lib/cactus-ant.jar
>      [echo] servlet.jar = E:/bea/wlserver6.1/lib/weblogic.jar
>      [echo] junit.jar = ../lib/junit.jar
>      [echo] httpclient.jar = ../lib/httpclient.jar
> 
> prepare:
> 
> prepare-compile:
> 
> compile:
>     [javac] Compiling 27 source files to
> E:\jakarta-cactus-23-1.2\sample\target\classes
>     [javac]
> E:\jakarta-cactus-23-
> 1.2\sample\target\src\org\apache\cactus\sample\unit\Tes
> tServletTestCase_Authentication.java:61: cannot resolve symbol
>     [javac] symbol  : class BasicAuthentication
>     [javac] location: package authentication
>     [javac] import
> org.apache.cactus.client.authentication.BasicAuthentication;
>     [javac]                                                ^
>     [javac]
> E:\jakarta-cactus-23-
> 1.2\sample\target\src\org\apache\cactus\sample\unit\Tes
> tServletTestCase_OverrideRedirector.java:66: cannot resolve symbol
>     [javac] symbol  : class ClientConfiguration
>     [javac] location: package client
>     [javac] import org.apache.cactus.client.ClientConfiguration;
>     [javac]                                 ^
>     [javac]
> E:\jakarta-cactus-23-
> 1.2\sample\target\src\org\apache\cactus\sample\SampleFi
> lter.java:71: org.apache.cactus.sample.SampleFilter should be declared
> abstract; it does not define getFilterConfig() in
> org.apache.cactus.sample.SampleFilter
>     [javac] public class SampleFilter implements Filter
>     [javac]        ^
>     [javac]
> E:\jakarta-cactus-23-
> 1.2\sample\target\src\org\apache\cactus\sample\TestSamp
> leServlet.java:141: addParameter(java.lang.String,java.lang.String) in
> org.apache.cactus.WebRequest cannot be applied to
> (java.lang.String,java.lang.String,java.lang.String)
>     [javac]         theRequest.addParameter("param", "value",
> WebRequest.POST_METHOD);
>     [javac]                   ^
>     [javac]
> E:\jakarta-cactus-23-
> 1.2\sample\target\src\org\apache\cactus\sample\unit\Tes
> tServletTestCase2.java:611:
> addParameter(java.lang.String,java.lang.String)
> in org.apache.cactus.WebRequest cannot be applied to
> (java.lang.String,java.lang.String,java.lang.Strin
>     [javac]         theRequest.addParameter("test", "something",
> WebRequest.POST_METHOD);
>     [javac]                   ^
>     [javac]
> E:\jakarta-cactus-23-
> 1.2\sample\target\src\org\apache\cactus\sample\unit\Tes
> tServletTestCase2.java:646: cannot resolve symbol
>     [javac] symbol  : method setUserData
(java.io.ByteArrayInputStream)
>     [javac] location: class org.apache.cactus.WebRequest
>     [javac]         theRequest.setUserData(bais);
>     [javac]                   ^
>     [javac]
> E:\jakarta-cactus-23-
> 1.2\sample\target\src\org\apache\cactus\sample\unit\Tes
> tServletTestCase2.java:647: cannot resolve symbol
>     [javac] symbol  : method setContentType  (java.lang.String)
>     [javac] location: class org.apache.cactus.WebRequest
>     [javac]         theRequest.setContentType("text/xml");
>     [javac]                   ^
>     [javac]
> E:\jakarta-cactus-23-
> 1.2\sample\target\src\org\apache\cactus\sample\unit\Tes
> tServletTestCase_Authentication.java:116: cannot resolve symbol
>     [javac] symbol  : method setRedirectorName  (java.lang.String)
>     [javac] location: class org.apache.cactus.WebRequest
>     [javac]
> theRequest.setRedirectorName("ServletRedirectorSecure");
>     [javac]                   ^
>     [javac]
> E:\jakarta-cactus-23-
> 1.2\sample\target\src\org\apache\cactus\sample\unit\Tes
> tServletTestCase_Authentication.java:118: cannot resolve symbol
>     [javac] symbol  : class BasicAuthentication
>     [javac] location: class
> org.apache.cactus.sample.unit.TestServletTestCase_Authentication
>     [javac]             new BasicAuthentication("testuser",
"testpwd"));
>     [javac]                 ^
>     [javac]
> E:\jakarta-cactus-23-
> 1.2\sample\target\src\org\apache\cactus\sample\unit\Tes
> tServletTestCase_OverrideRedirector.java:121: cannot resolve symbol
>     [javac] symbol  : method setRedirectorName  (java.lang.String)
>     [javac] location: class org.apache.cactus.WebRequest
>     [javac]
> theRequest.setRedirectorName("ServletRedirectorOverride");
>     [javac]                   ^
>     [javac]
> E:\jakarta-cactus-23-
> 1.2\sample\target\src\org\apache\cactus\sample\unit\Tes
> tServletTestCase_OverrideRedirector.java:133: cannot resolve symbol
>     [javac] symbol  : method setRedirectorName  (java.lang.String)
>     [javac] location: class org.apache.cactus.WebRequest
>     [javac]         theRequest.setRedirectorName("ServletRedirector");
>     [javac]                   ^
>     [javac] Note: Some input files use or override a deprecated API.
>     [javac] Note: Recompile with -deprecation for details.
>     [javac] 11 errors
> 
> BUILD FAILED
> 
> E:\jakarta-cactus-23-1.2\sample\build\build.xml:188: Compile failed,
> messages should have been provided.
> 
> Total time: 7 seconds
> E:\jakarta-cactus-23-1.2\sample\build>
> 
> 
> 
> Can anyone pls throw some light on the same.
> 
> Thanx and Rgds,
> Elan
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> --
> To unsubscribe, e-mail:   <mailto:cactus-user-
> unsubscribe@jakarta.apache.org>
> For additional commands, e-mail: <mailto:cactus-user-
> help@jakarta.apache.org>
> 




--
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