|
From: | cckiu |
Subject: | [Qexo-general] Problem running servlet |
Date: | Thu, 09 Dec 2004 20:48:59 +0800 |
Im newbie to Qexo Xquery. I installed the Tomcat
5.5.4 and run the Xquery servlet using kawa1.7.90.jar on Win XP. I have went
thru article http://www.gnu.org/software/qexo/simple-xquery-webapp.html to
practice my first xquery servlet. I have followed exactly the steps to run the
web appilcations. Any how, is not work.
I saved adder.class under
webapps>ROOT>utils>WEB-INF>classes.
I saved web.xml under
webapps>ROOT>utils>WEB-INF.
I saved adder.xql under webapps>ROOT>utils.
I placed kawa1.7.90.jar under shared>lib.
When I run http://localhost:8080/utils/adder.xql,
"define
function num-parameter($name, $default) { number(request-parameter($name,
$default)) }" dislpayed at the top of the webpage.
Do I need to define the form action. Where the form
action is empty.
<html>
<head><title>Accumulating Adder</title></head> <body> <form> <table> <tr> <td>Result so far: </td> When I run http://localhost:8080/servlet/adder,
the browser display
"HTTP Status 404 - /servlet/adder". Seem like the
adder.class cannot be invoke.
My web.xml is look like below:
<servlet> <servlet-name>KawaPageServlet</servlet-name> <servlet-class>gnu.kawa.servlet.KawaPageServlet</servlet-class> </servlet> <servlet-mapping> <servlet-name>KawaPageServlet</servlet-name> <url-pattern>*.xql</url-pattern> </servlet-mapping> Regards,
CC
|
[Prev in Thread] | Current Thread | [Next in Thread] |