You are viewing a plain text version of this content. The canonical link for it is here.
Posted to xindice-users@xml.apache.org by John Dunning <jd...@gosps.com> on 2004/03/01 17:22:58 UTC

compile WebAdmin module from /scratchpad/

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



Re: compile WebAdmin module from /scratchpad/

Posted by Vadim Gritsenko <va...@reverycodes.com>.
John Dunning wrote:

>Thanks Vadim,
>Unfortunately this didn't do it (I've tried with version going back to
>1.23).
>

Ok, I'd updated WebAdminServlet to work with current xindice. Please 
update from CVS and compile.

Vadim


RE: compile WebAdmin module from /scratchpad/

Posted by John Dunning <jd...@gosps.com>.
Thanks Vadim,
Unfortunately this didn't do it (I've tried with version going back to
1.23).  Adding a variable declaration to WebAdminServlet.java ('protected
Database database;') allowed it to compile without error, but now I get the
following error when accessing the webadmin viewer:

type Exception report

message

description The server encountered an internal error () that prevented it
from fulfilling this request.

exception

javax.servlet.ServletException
	org.apache.xindice.webadmin.WebAdminContainer.handleRequest(Unknown Source)
	org.apache.xindice.webadmin.WebAdminServlet.service(Unknown Source)
	javax.servlet.http.HttpServlet.service(HttpServlet.java:856)


root cause

java.lang.NullPointerException

org.apache.xindice.webadmin.viewer.components.ListCollectionViewer.execute(U
nknown Source)

org.apache.xindice.webadmin.viewer.components.ListCollectionViewer$BCELWrapp
er.execute(Unknown Source)
	org.apache.xindice.webadmin.WebAdminContainer.handleRequest(Unknown Source)
	org.apache.xindice.webadmin.WebAdminServlet.service(Unknown Source)
	javax.servlet.http.HttpServlet.service(HttpServlet.java:856)


note The full stack trace of the root cause is available in the Tomcat logs.

The tomcat log is attached, if that is useful.  Any further suggestions?
TIA,
John

-----Original Message-----
From: Vadim Gritsenko [mailto:vadim@reverycodes.com]
Sent: Monday, March 01, 2004 12:04 PM
To: xindice-users@xml.apache.org
Subject: Re: compile WebAdmin module from /scratchpad/


John Dunning wrote:

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

>    [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]                                                             ^
>
>
...

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

Xindice was updated to handle multiple databases; and webadmin - not
yet. If you are not strong in java... Pull previous version of the
XindiceServlet from the CVS, which does not yet support multiple
databases. webadmin should compile with it.

Vadim

Re: compile WebAdmin module from /scratchpad/

Posted by Vadim Gritsenko <va...@reverycodes.com>.
John Dunning wrote:

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

>    [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]                                                             ^
>  
>
...

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

Xindice was updated to handle multiple databases; and webadmin - not 
yet. If you are not strong in java... Pull previous version of the 
XindiceServlet from the CVS, which does not yet support multiple 
databases. webadmin should compile with it.

Vadim