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 Joe Polanik <jP...@cds.duke.edu> on 2003/04/16 18:00:29 UTC

Requested resource (/Addressbook/servlet/Task) not available

After downloading Xindice 1.1b, installing the .war file and restarting Tomcat, 
I'm able to get the Addressbook home page but clicking any link on that page 
results in an error message: Requested resource (/Addressbook/servlet/Task) not 
available.

Any suggestions would be appreciated.

Thanks,

Joseph Polanik


Re: Requested resource (/Addressbook/servlet/Task) not available

Posted by Andrew Haigh <li...@dsl.pipex.com>.
Not that i recall, all i changed was the path's in the JSP's.

I've done a 'diff' on the Addressbook example that i've changed 
(Addressbook) and the original example that came with xindice 
(AddressbookOld), see below:

Only in Addressbook/: Addressbook.war
Only in Addressbook/: deploy
diff -r Addressbook/src/jsp/addContact.jsp 
AddressbookOld/src/jsp/addContact.jsp
64c64
< <FORM NAME="addperson" ACTION="/Addressbook/Task" METHOD="POST">
---
 > <FORM NAME="addperson" ACTION="/Addressbook/servlet/Task" METHOD="POST">
diff -r Addressbook/src/jsp/editContactForm.jsp 
AddressbookOld/src/jsp/editContactForm.jsp
79c79
< <FORM NAME="editcontact" ACTION="/Addressbook/Task" METHOD="POST">
---
 > <FORM NAME="editcontact" ACTION="/Addressbook/servlet/Task" 
METHOD="POST">
diff -r Addressbook/src/jsp/header.jsp AddressbookOld/src/jsp/header.jsp
86,88c86,88
<                      <A 
HREF="/Addressbook/Task?action=listcontacts">List Contacts</A> |
<                      <A HREF="/Addressbook/Task?action=addform">Add a 
Contact</A> |
<                      <A 
HREF="/Addressbook/Task?action=searchform">Search</A>
---
 >                      <A 
HREF="/Addressbook/servlet/Task?action=listcontacts">List Contacts</A> |
 >                      <A 
HREF="/Addressbook/servlet/Task?action=addform">Add a Contact</A> |
 >                      <A 
HREF="/Addressbook/servlet/Task?action=searchform">Search</A>
118c118
<                         <LI><A 
HREF="/Addressbook/Task?action=listcontacts">List Contacts</A>
---
 >                         <LI><A 
HREF="/Addressbook/servlet/Task?action=listcontacts">List Contacts</A>
123c123
<                         <LI><A 
HREF="/Addressbook/Task?action=addform">Add a Contact</A>
---
 >                         <LI><A 
HREF="/Addressbook/servlet/Task?action=addform">Add a Contact</A>
128c128
<                         <LI><A 
HREF="/Addressbook/Task?action=searchform">Search</A>
---
 >                         <LI><A 
HREF="/Addressbook/servlet/Task?action=searchform">Search</A>
diff -r Addressbook/src/jsp/listContacts.jsp 
AddressbookOld/src/jsp/listContacts.jsp
89c89
<                <A HREF="/Addressbook/Task?action=showcontact&index=<%= 
group.getIndex() %>"><%= person.getFname() %></A>
---
 >                <A 
HREF="/Addressbook/servlet/Task?action=showcontact&index=<%= 
group.getIndex() %>"><%= person.getFname() %></A>
92c92
<                <A HREF="/Addressbook/Task?action=showcontact&index=<%= 
group.getIndex() %>"><%= person.getLname() %></A>
---
 >                <A 
HREF="/Addressbook/servlet/Task?action=showcontact&index=<%= 
group.getIndex() %>"><%= person.getLname() %></A>
diff -r Addressbook/src/jsp/searchContacts.jsp 
AddressbookOld/src/jsp/searchContacts.jsp
73c73
<       <FORM NAME="SEARCH" ACTION="/Addressbook/Task" METHOD="POST">
---
 >       <FORM NAME="SEARCH" ACTION="/Addressbook/servlet/Task" 
METHOD="POST">
137c137
<       <FORM NAME="XPATHSEARCH" ACTION="/Addressbook/Task" METHOD="POST">
---
 >       <FORM NAME="XPATHSEARCH" ACTION="/Addressbook/servlet/Task" 
METHOD="POST">
diff -r Addressbook/src/jsp/showContact.jsp 
AddressbookOld/src/jsp/showContact.jsp
87c87
<             <A 
HREF="/Addressbook/Task?action=editcontactform&index=<%= index %>"><FONT 
COLOR='RED'>Edit</FONT></A>
---
 >             <A 
HREF="/Addressbook/servlet/Task?action=editcontactform&index=<%= index 
%>"><FONT COLOR='RED'>Edit</FONT></A>
95c95
<             <A HREF="/Addressbook/Task?action=deletecontact&index=<%= 
index %>"><FONT COLOR='RED'>Delete</FONT></A>
---
 >             <A 
HREF="/Addressbook/servlet/Task?action=deletecontact&index=<%= index 
%>"><FONT COLOR='RED'>Delete</FONT></A>
103c103
<             <A HREF="/Addressbook/Task?action=showxml&index=<%= index 
%>"><FONT COLOR='RED'>Show XML</FONT></A>
---
 >             <A 
HREF="/Addressbook/servlet/Task?action=showxml&index=<%= index %>"><FONT 
COLOR='RED'>Show XML</FONT></A>
diff -r Addressbook/src/jsp/showXML.jsp AddressbookOld/src/jsp/showXML.jsp
87c87
<             <A 
HREF="/Addressbook/Task?action=editcontactform&index=<%= index %>"><FONT 
COLOR='RED'>Edit</FONT></A>
---
 >             <A 
HREF="/Addressbook/servlet/Task?action=editcontactform&index=<%= index 
%>"><FONT COLOR='RED'>Edit</FONT></A>
95c95
<             <A HREF="/Addressbook/Task?action=deletecontact&index=<%= 
index %>"><FONT COLOR='RED'>Delete</FONT></A>
---
 >             <A 
HREF="/Addressbook/servlet/Task?action=deletecontact&index=<%= index 
%>"><FONT COLOR='RED'>Delete</FONT></A>
103c103
<             <A HREF="/Addressbook/Task?action=showxml&index=<%= index 
%>"><FONT COLOR='RED'>Show XML</FONT></A>
---
 >             <A 
HREF="/Addressbook/servlet/Task?action=showxml&index=<%= index %>"><FONT 
COLOR='RED'>Show XML</FONT></A>

Hope this helps.

Andrew

Joe Polanik wrote:

> That was certainly part of it, thanks.
>
> But now I'm getting the message "The requested URL /Addressbook/Task 
> was not found on this server."
>
> Did you make any changes to your web.xml (or other files)?
>
> Joseph
>
> Andrew Haigh wrote:
>
>> Joe,
>>
>> The problem is an error in the JSP files, open all the jsp files in 
>> your favorite text editor and change the path from 
>> "/Addressbook/servlet/Task" to "/Addressbook/Task".
>>
>> I've made these changes and it now works fine.
>>
>> Andrew
>>
>> Joe Polanik wrote:
>>
>>> After downloading Xindice 1.1b, installing the .war file and 
>>> restarting Tomcat, I'm able to get the Addressbook home page but 
>>> clicking any link on that page results in an error message: 
>>> Requested resource (/Addressbook/servlet/Task) not available.
>>>
>>> Any suggestions would be appreciated.
>>>
>>> Thanks,
>>>
>>> Joseph Polanik
>>>
>>>
>>
>
>

-- 

"Imagination is more important than knowledge."

http://www.andrewhaigh.net/





Re: Requested resource (/Addressbook/servlet/Task) not available

Posted by Joe Polanik <jP...@cds.duke.edu>.
That was certainly part of it, thanks.

But now I'm getting the message "The requested URL /Addressbook/Task was not 
found on this server."

Did you make any changes to your web.xml (or other files)?

Joseph

Andrew Haigh wrote:
> Joe,
> 
> The problem is an error in the JSP files, open all the jsp files in your 
> favorite text editor and change the path from 
> "/Addressbook/servlet/Task" to "/Addressbook/Task".
> 
> I've made these changes and it now works fine.
> 
> Andrew
> 
> Joe Polanik wrote:
> 
>> After downloading Xindice 1.1b, installing the .war file and 
>> restarting Tomcat, I'm able to get the Addressbook home page but 
>> clicking any link on that page results in an error message: Requested 
>> resource (/Addressbook/servlet/Task) not available.
>>
>> Any suggestions would be appreciated.
>>
>> Thanks,
>>
>> Joseph Polanik
>>
>>
> 


Re: Requested resource (/Addressbook/servlet/Task) not available

Posted by Andrew Haigh <li...@dsl.pipex.com>.
Joe,

The problem is an error in the JSP files, open all the jsp files in your 
favorite text editor and change the path from 
"/Addressbook/servlet/Task" to "/Addressbook/Task".

I've made these changes and it now works fine.

Andrew

Joe Polanik wrote:

> After downloading Xindice 1.1b, installing the .war file and 
> restarting Tomcat, I'm able to get the Addressbook home page but 
> clicking any link on that page results in an error message: Requested 
> resource (/Addressbook/servlet/Task) not available.
>
> Any suggestions would be appreciated.
>
> Thanks,
>
> Joseph Polanik
>
>

-- 

"Imagination is more important than knowledge."

http://www.andrewhaigh.net/