Hi,
I've been trying to compile the webadmin interface from the scratchpad area,
but keep experiencing the following error:

compile:
     [echo]
     [echo]       Compile Xindice Webadmin
     [echo]
    [javac] Compiling 1 source file to
C:\Xindice-webadmin-source_NEW\xml-xindice\java\scratchpad\webadmin\build\cl
asses
    [javac]
C:\Xindice-webadmin-source_NEW\xml-xindice\java\scratchpad\webadmin\src\org\
apache\xindice\webadmin\WebAdminServlet.java:100: cannot resolve symbol
    [javac] symbol  : variable database
    [javac] location: class org.apache.xindice.webadmin.WebAdminServlet
    [javac]                     m_container.handleRequest(req, res, 
this.database);             }
    [javac]                                                             ^
    [javac] 1 error

BUILD FAILED

The code for the method where it appears to be failing is:

        public void service(HttpServletRequest req, HttpServletResponse res)
                throws IOException, ServletException {

                // get request path
                String path = req.getPathInfo();
                if(path == null) {
                        path = "";
                }

                // xmlrpc request are handled by the XindiceServlet
                if(req.getMethod().equalsIgnoreCase("POST") && path.length() < 
2) {
                        super.doPost(req, res);
                } else {
                        // TODO database etc. in init not here
                        m_container.handleRequest(req, res, this.database);     
        }
        }

I'm not very experienced in Java; has anyone successfully compiled this, or
can anyone direct me how to correct this error?

TIA,
John


Reply via email to