jakarta-cactus-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "krishna" <kris...@iicindia.com>
Subject regarding configuring cactus web xml(urgent please)
Date Wed, 20 Mar 2002 03:20:56 GMT
Hi,

    1.    we are using Tomcat and are newly looking into cactus
            we are following the configure documentation given in cactus
site
            in that site it is given as how to configure the Web.xml file
            but we are having two web.xml files

            A  tomcat/webapps/sample/conf
            B  tomcat/webapps/sample/conf/test

we are having a doubt on which web.xml file we have to configure


    2.    we have configured the web.xml in tomcat/webapps/sample/conf/test
as per information provided in the site and
            continued and are trying to compile the file TestSampleServlet
that is in tomcat/webapps/sample/web-inf/classes
            and we are getting the following errors


    C:\Tomcat\webapps\sample\WEB-INF\classes\TestSampleServlet.java:65:
package org.apache.cactus does not exist
import org.apache.cactus.*;
^
C:\Tomcat\webapps\sample\WEB-INF\classes\TestSampleServlet.java:74: cannot
resolve symbol
symbol  : class ServletTestCase
location: class org.apache.cactus.sample.TestSampleServlet
public class TestSampleServlet extends ServletTestCase
                                       ^
C:\Tomcat\webapps\sample\WEB-INF\classes\TestSampleServlet.java:123: cannot
resolve symbol
symbol  : class WebResponse
location: class org.apache.cactus.sample.TestSampleServlet
    public void endReadServletOutputStream(WebResponse theResponse)
                                           ^
C:\Tomcat\webapps\sample\WEB-INF\classes\TestSampleServlet.java:152: cannot
resolve symbol
symbol  : class WebRequest
location: class org.apache.cactus.sample.TestSampleServlet
    public void beginGetMethod(WebRequest theRequest)
                               ^
C:\Tomcat\webapps\sample\WEB-INF\classes\TestSampleServlet.java:202: cannot
resolve symbol
symbol  : class WebRequest
location: class org.apache.cactus.sample.TestSampleServlet
    public void beginSendParams(WebRequest theRequest)
                                ^
C:\Tomcat\webapps\sample\WEB-INF\classes\TestSampleServlet.java:230: cannot
resolve symbol
symbol  : class WebRequest
location: class org.apache.cactus.sample.TestSampleServlet
    public void beginSendHeader(WebRequest theRequest)
                                ^
C:\Tomcat\webapps\sample\WEB-INF\classes\TestSampleServlet.java:254: cannot
resolve symbol
symbol  : class WebRequest
location: class org.apache.cactus.sample.TestSampleServlet
    public void beginSendCookie(WebRequest theRequest)
                                ^
C:\Tomcat\webapps\sample\WEB-INF\classes\TestSampleServlet.java:282: cannot
resolve symbol
symbol  : class WebRequest
location: class org.apache.cactus.sample.TestSampleServlet
    public void beginSendMultipleCookies(WebRequest theRequest)
                                         ^
C:\Tomcat\webapps\sample\WEB-INF\classes\TestSampleServlet.java:321: cannot
resolve symbol
symbol  : class WebResponse
location: class org.apache.cactus.sample.TestSampleServlet
    public void endReceiveHeader(WebResponse theResponse)
                                 ^
C:\Tomcat\webapps\sample\WEB-INF\classes\TestSampleServlet.java:336: cannot
resolve symbol
symbol  : class WebRequest
location: class org.apache.cactus.sample.TestSampleServlet
    public void beginReceiveCookie(WebRequest theRequest)
                                   ^
C:\Tomcat\webapps\sample\WEB-INF\classes\TestSampleServlet.java:365: cannot
resolve symbol
symbol  : class WebResponse
location: class org.apache.cactus.sample.TestSampleServlet
    public void endReceiveCookie(WebResponse theResponse)
                                 ^
C:\Tomcat\webapps\sample\WEB-INF\classes\TestSampleServlet.java:400: cannot
resolve symbol
symbol  : class WebResponse
location: class org.apache.cactus.sample.TestSampleServlet
    public void endRequestDispatcher(WebResponse theResponse)
                                     ^
C:\Tomcat\webapps\sample\WEB-INF\classes\TestSampleServlet.java:114: cannot
resolve symbol
symbol  : class SampleServlet
location: class org.apache.cactus.sample.TestSampleServlet
        SampleServlet servlet = new SampleServlet();
        ^
C:\Tomcat\webapps\sample\WEB-INF\classes\TestSampleServlet.java:114: cannot
resolve symbol
symbol  : class SampleServlet
location: class org.apache.cactus.sample.TestSampleServlet
        SampleServlet servlet = new SampleServlet();
                                    ^
C:\Tomcat\webapps\sample\WEB-INF\classes\TestSampleServlet.java:115: cannot
resolve symbol
symbol  : variable request
location: class org.apache.cactus.sample.TestSampleServlet
        servlet.doGet(request, response);
                      ^
C:\Tomcat\webapps\sample\WEB-INF\classes\TestSampleServlet.java:115: cannot
resolve symbol
symbol  : variable response
location: class org.apache.cactus.sample.TestSampleServlet
        servlet.doGet(request, response);
                               ^
C:\Tomcat\webapps\sample\WEB-INF\classes\TestSampleServlet.java:128: cannot
resolve symbol
symbol  : method assertEquals  (java.lang.String,java.lang.String)
location: class org.apache.cactus.sample.TestSampleServlet
        assertEquals(expected, result);
        ^
C:\Tomcat\webapps\sample\WEB-INF\classes\TestSampleServlet.java:140: cannot
resolve symbol
symbol  : class SampleServlet
location: class org.apache.cactus.sample.TestSampleServlet
        SampleServlet servlet = new SampleServlet();
        ^
C:\Tomcat\webapps\sample\WEB-INF\classes\TestSampleServlet.java:140: cannot
resolve symbol
symbol  : class SampleServlet
location: class org.apache.cactus.sample.TestSampleServlet
        SampleServlet servlet = new SampleServlet();
                                    ^
C:\Tomcat\webapps\sample\WEB-INF\classes\TestSampleServlet.java:141: cannot
resolve symbol
symbol  : variable request
location: class org.apache.cactus.sample.TestSampleServlet
        assertEquals("POST", servlet.checkMethod(request));
                                                 ^
C:\Tomcat\webapps\sample\WEB-INF\classes\TestSampleServlet.java:154: cannot
resolve symbol
symbol  : variable WebRequest
location: class org.apache.cactus.sample.TestSampleServlet
        theRequest.setMethod(WebRequest.GET_METHOD);
                             ^
C:\Tomcat\webapps\sample\WEB-INF\classes\TestSampleServlet.java:162: cannot
resolve symbol
symbol  : class SampleServlet
location: class org.apache.cactus.sample.TestSampleServlet
        SampleServlet servlet = new SampleServlet();
        ^
C:\Tomcat\webapps\sample\WEB-INF\classes\TestSampleServlet.java:162: cannot
resolve symbol
symbol  : class SampleServlet
location: class org.apache.cactus.sample.TestSampleServlet
        SampleServlet servlet = new SampleServlet();
                                    ^
C:\Tomcat\webapps\sample\WEB-INF\classes\TestSampleServlet.java:163: cannot
resolve symbol
symbol  : variable request
location: class org.apache.cactus.sample.TestSampleServlet
        assertEquals("GET", servlet.checkMethod(request));
                                                ^
C:\Tomcat\webapps\sample\WEB-INF\classes\TestSampleServlet.java:174: cannot
resolve symbol
symbol  : class SampleServlet
location: class org.apache.cactus.sample.TestSampleServlet
        SampleServlet servlet = new SampleServlet();
        ^
C:\Tomcat\webapps\sample\WEB-INF\classes\TestSampleServlet.java:174: cannot
resolve symbol
symbol  : class SampleServlet
location: class org.apache.cactus.sample.TestSampleServlet
        SampleServlet servlet = new SampleServlet();
                                    ^
C:\Tomcat\webapps\sample\WEB-INF\classes\TestSampleServlet.java:175: cannot
resolve symbol
symbol  : variable request
location: class org.apache.cactus.sample.TestSampleServlet
        servlet.setSessionVariable(request);
                                   ^
C:\Tomcat\webapps\sample\WEB-INF\classes\TestSampleServlet.java:177: cannot
resolve symbol
symbol  : variable session
location: class org.apache.cactus.sample.TestSampleServlet
        assert(session != null);
               ^
C:\Tomcat\webapps\sample\WEB-INF\classes\TestSampleServlet.java:177: cannot
resolve symbol
symbol  : method assert  (boolean)
location: class org.apache.cactus.sample.TestSampleServlet
        assert(session != null);
        ^
C:\Tomcat\webapps\sample\WEB-INF\classes\TestSampleServlet.java:179: cannot
resolve symbol
symbol  : variable session
location: class org.apache.cactus.sample.TestSampleServlet
            session.getAttribute("name_setSessionVariable"));
            ^
C:\Tomcat\webapps\sample\WEB-INF\classes\TestSampleServlet.java:187: cannot
resolve symbol
symbol  : class SampleServlet
location: class org.apache.cactus.sample.TestSampleServlet
        SampleServlet servlet = new SampleServlet();
        ^
C:\Tomcat\webapps\sample\WEB-INF\classes\TestSampleServlet.java:187: cannot
resolve symbol
symbol  : class SampleServlet
location: class org.apache.cactus.sample.TestSampleServlet
        SampleServlet servlet = new SampleServlet();
                                    ^
C:\Tomcat\webapps\sample\WEB-INF\classes\TestSampleServlet.java:188: cannot
resolve symbol
symbol  : variable request
location: class org.apache.cactus.sample.TestSampleServlet
        servlet.setRequestAttribute(request);
                                    ^
C:\Tomcat\webapps\sample\WEB-INF\classes\TestSampleServlet.java:191: cannot
resolve symbol
symbol  : variable request
location: class org.apache.cactus.sample.TestSampleServlet
            request.getAttribute("name_setRequestAttribute"));
            ^
C:\Tomcat\webapps\sample\WEB-INF\classes\TestSampleServlet.java:213: cannot
resolve symbol
symbol  : class SampleServlet
location: class org.apache.cactus.sample.TestSampleServlet
        SampleServlet servlet = new SampleServlet();
        ^
C:\Tomcat\webapps\sample\WEB-INF\classes\TestSampleServlet.java:213: cannot
resolve symbol
symbol  : class SampleServlet
location: class org.apache.cactus.sample.TestSampleServlet
        SampleServlet servlet = new SampleServlet();
                                    ^
C:\Tomcat\webapps\sample\WEB-INF\classes\TestSampleServlet.java:214: cannot
resolve symbol
symbol  : variable request
location: class org.apache.cactus.sample.TestSampleServlet
        Hashtable params = servlet.getRequestParameters(request);
                                                        ^
C:\Tomcat\webapps\sample\WEB-INF\classes\TestSampleServlet.java:216: cannot
resolve symbol
symbol  : method assert  (boolean)
location: class org.apache.cactus.sample.TestSampleServlet
        assert(params.get("param1") != null);
        ^
C:\Tomcat\webapps\sample\WEB-INF\classes\TestSampleServlet.java:217: cannot
resolve symbol
symbol  : method assert  (boolean)
location: class org.apache.cactus.sample.TestSampleServlet
        assert(params.get("param2") != null);
        ^
C:\Tomcat\webapps\sample\WEB-INF\classes\TestSampleServlet.java:218: cannot
resolve symbol
symbol  : method assertEquals  (java.lang.String,java.lang.Object)
location: class org.apache.cactus.sample.TestSampleServlet
        assertEquals("value1", params.get("param1"));
        ^
C:\Tomcat\webapps\sample\WEB-INF\classes\TestSampleServlet.java:219: cannot
resolve symbol
symbol  : method assertEquals  (java.lang.String,java.lang.Object)
location: class org.apache.cactus.sample.TestSampleServlet
        assertEquals("value2", params.get("param2"));
        ^
C:\Tomcat\webapps\sample\WEB-INF\classes\TestSampleServlet.java:240: cannot
resolve symbol
symbol  : class SampleServlet
location: class org.apache.cactus.sample.TestSampleServlet
        SampleServlet servlet = new SampleServlet();
        ^
C:\Tomcat\webapps\sample\WEB-INF\classes\TestSampleServlet.java:240: cannot
resolve symbol
symbol  : class SampleServlet
location: class org.apache.cactus.sample.TestSampleServlet
        SampleServlet servlet = new SampleServlet();
                                    ^
C:\Tomcat\webapps\sample\WEB-INF\classes\TestSampleServlet.java:241: cannot
resolve symbol
symbol  : variable request
location: class org.apache.cactus.sample.TestSampleServlet
        String headerValue = servlet.getRequestHeader(request);
                                                      ^
C:\Tomcat\webapps\sample\WEB-INF\classes\TestSampleServlet.java:243: cannot
resolve symbol
symbol  : method assertEquals  (java.lang.String,java.lang.String)
location: class org.apache.cactus.sample.TestSampleServlet
        assertEquals("this is a header test", headerValue);
        ^
C:\Tomcat\webapps\sample\WEB-INF\classes\TestSampleServlet.java:268: cannot
resolve symbol
symbol  : class SampleServlet
location: class org.apache.cactus.sample.TestSampleServlet
        SampleServlet servlet = new SampleServlet();
        ^
C:\Tomcat\webapps\sample\WEB-INF\classes\TestSampleServlet.java:268: cannot
resolve symbol
symbol  : class SampleServlet
location: class org.apache.cactus.sample.TestSampleServlet
        SampleServlet servlet = new SampleServlet();
                                    ^
C:\Tomcat\webapps\sample\WEB-INF\classes\TestSampleServlet.java:269: cannot
resolve symbol
symbol  : variable request
location: class org.apache.cactus.sample.TestSampleServlet
        Hashtable cookies = servlet.getRequestCookies(request);
                                                      ^
C:\Tomcat\webapps\sample\WEB-INF\classes\TestSampleServlet.java:271: cannot
resolve symbol
symbol  : method assert  (java.lang.String,boolean)
location: class org.apache.cactus.sample.TestSampleServlet
        assert("Cannot find [testcookie] cookie in request",
        ^
C:\Tomcat\webapps\sample\WEB-INF\classes\TestSampleServlet.java:273: cannot
resolve symbol
symbol  : method assertEquals  (java.lang.String,java.lang.Object)
location: class org.apache.cactus.sample.TestSampleServlet
        assertEquals("thisisacookie", cookies.get("testcookie"));
        ^
C:\Tomcat\webapps\sample\WEB-INF\classes\TestSampleServlet.java:293: cannot
resolve symbol
symbol  : class SampleServlet
location: class org.apache.cactus.sample.TestSampleServlet
        SampleServlet servlet = new SampleServlet();
        ^
C:\Tomcat\webapps\sample\WEB-INF\classes\TestSampleServlet.java:293: cannot
resolve symbol
symbol  : class SampleServlet
location: class org.apache.cactus.sample.TestSampleServlet
        SampleServlet servlet = new SampleServlet();
                                    ^
C:\Tomcat\webapps\sample\WEB-INF\classes\TestSampleServlet.java:294: cannot
resolve symbol
symbol  : variable request
location: class org.apache.cactus.sample.TestSampleServlet
        Hashtable cookies = servlet.getRequestCookies(request);
                                                      ^
C:\Tomcat\webapps\sample\WEB-INF\classes\TestSampleServlet.java:296: cannot
resolve symbol
symbol  : method assert  (boolean)
location: class org.apache.cactus.sample.TestSampleServlet
        assert(cookies.get("testcookie1") != null);
        ^
C:\Tomcat\webapps\sample\WEB-INF\classes\TestSampleServlet.java:297: cannot
resolve symbol
symbol  : method assertEquals  (java.lang.String,java.lang.Object)
location: class org.apache.cactus.sample.TestSampleServlet
        assertEquals("cookie1", cookies.get("testcookie1"));
        ^
C:\Tomcat\webapps\sample\WEB-INF\classes\TestSampleServlet.java:299: cannot
resolve symbol
symbol  : method assert  (boolean)
location: class org.apache.cactus.sample.TestSampleServlet
        assert(cookies.get("testcookie2") != null);
        ^
C:\Tomcat\webapps\sample\WEB-INF\classes\TestSampleServlet.java:300: cannot
resolve symbol
symbol  : method assertEquals  (java.lang.String,java.lang.Object)
location: class org.apache.cactus.sample.TestSampleServlet
        assertEquals("cookie2", cookies.get("testcookie2"));
        ^
C:\Tomcat\webapps\sample\WEB-INF\classes\TestSampleServlet.java:311: cannot
resolve symbol
symbol  : class SampleServlet
location: class org.apache.cactus.sample.TestSampleServlet
        SampleServlet servlet = new SampleServlet();
        ^
C:\Tomcat\webapps\sample\WEB-INF\classes\TestSampleServlet.java:311: cannot
resolve symbol
symbol  : class SampleServlet
location: class org.apache.cactus.sample.TestSampleServlet
        SampleServlet servlet = new SampleServlet();
                                    ^
C:\Tomcat\webapps\sample\WEB-INF\classes\TestSampleServlet.java:312: cannot
resolve symbol
symbol  : variable response
location: class org.apache.cactus.sample.TestSampleServlet
        servlet.setResponseHeader(response);
                                  ^
C:\Tomcat\webapps\sample\WEB-INF\classes\TestSampleServlet.java:355: cannot
resolve symbol
symbol  : class SampleServlet
location: class org.apache.cactus.sample.TestSampleServlet
        SampleServlet servlet = new SampleServlet();
        ^
C:\Tomcat\webapps\sample\WEB-INF\classes\TestSampleServlet.java:355: cannot
resolve symbol
symbol  : class SampleServlet
location: class org.apache.cactus.sample.TestSampleServlet
        SampleServlet servlet = new SampleServlet();
                                    ^
C:\Tomcat\webapps\sample\WEB-INF\classes\TestSampleServlet.java:356: cannot
resolve symbol
symbol  : variable response
location: class org.apache.cactus.sample.TestSampleServlet
        servlet.setResponseCookie(response);
                                  ^
C:\Tomcat\webapps\sample\WEB-INF\classes\TestSampleServlet.java:367: cannot
resolve symbol
symbol  : class Cookie
location: class org.apache.cactus.sample.TestSampleServlet
        Cookie cookie = theResponse.getCookie("responsecookie");
        ^
C:\Tomcat\webapps\sample\WEB-INF\classes\TestSampleServlet.java:369: cannot
resolve symbol
symbol  : method assert  (java.lang.String,boolean)
location: class org.apache.cactus.sample.TestSampleServlet
        assert("Cannot find [responsecookie]", cookie != null);
        ^
C:\Tomcat\webapps\sample\WEB-INF\classes\TestSampleServlet.java:376: cannot
resolve symbol
symbol  : method assertEquals  (java.lang.String,java.lang.String)
location: class org.apache.cactus.sample.TestSampleServlet
        assertEquals("this is a response cookie",
        ^
C:\Tomcat\webapps\sample\WEB-INF\classes\TestSampleServlet.java:390: cannot
resolve symbol
symbol  : class SampleServlet
location: class org.apache.cactus.sample.TestSampleServlet
        SampleServlet servlet = new SampleServlet();
        ^
C:\Tomcat\webapps\sample\WEB-INF\classes\TestSampleServlet.java:390: cannot
resolve symbol
symbol  : class SampleServlet
location: class org.apache.cactus.sample.TestSampleServlet
        SampleServlet servlet = new SampleServlet();
                                    ^
C:\Tomcat\webapps\sample\WEB-INF\classes\TestSampleServlet.java:391: cannot
resolve symbol
symbol  : variable request
location: class org.apache.cactus.sample.TestSampleServlet
        servlet.doForward(request, response, config);
                          ^
C:\Tomcat\webapps\sample\WEB-INF\classes\TestSampleServlet.java:391: cannot
resolve symbol
symbol  : variable response
location: class org.apache.cactus.sample.TestSampleServlet
        servlet.doForward(request, response, config);
                                   ^
C:\Tomcat\webapps\sample\WEB-INF\classes\TestSampleServlet.java:391: cannot
resolve symbol
symbol  : variable config
location: class org.apache.cactus.sample.TestSampleServlet
        servlet.doForward(request, response, config);
                                             ^
Note: C:\Tomcat\webapps\sample\WEB-INF\classes\TestSampleServlet.java uses
or overrides a deprecated API.
Note: Recompile with -deprecation for details.
71 errors

Tool completed with exit code 1


we are facung these problems can you please help us regarding this problem



Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message