You are viewing a plain text version of this content. The canonical link for it is here.
Posted to xindice-dev@xml.apache.org by Jerry Tan <je...@sun.com> on 2003/01/21 03:40:11 UTC
one patch to make addressbook example works under tomcat
After I got trunk code from cvs,
I begin to build Addressbook example of xindice, I found that it doesnot
work.
I checked it , the reason is like below
1. web.xml miss some servlet mapping
2. Addressbook.war missed xindice-1.1b.jar in its war file.
So I make a simple patch for it,
any comments?
Index: java/examples/build.xml
===================================================================
RCS file: /home/cvspublic/xml-xindice/java/examples/build.xml,v
retrieving revision 1.1
diff -u -r1.1 build.xml
--- java/examples/build.xml 27 Nov 2002 08:33:39 -0000 1.1
+++ java/examples/build.xml 21 Jan 2003 02:26:56 -0000
@@ -97,6 +97,9 @@
<include name="xmlrpc-1.1.jar"/>
<include name="xml-apis-1.0b3.jar"/>
</lib>
+ <lib dir="${dist.dir}">
+ <include name="xindice-1.1b.jar"/>
+ </lib>
<manifest>
<attribute name="Built-By" value="${user.name}"/>
<section name="org/apache/xindice">
Index: java/examples/Addressbook/config/web.xml
===================================================================
RCS file:
/home/cvspublic/xml-xindice/java/examples/Addressbook/config/web.xml,v
retrieving revision 1.1
diff -u -r1.1 web.xml
--- java/examples/Addressbook/config/web.xml 27 Nov 2002 08:33:39 -0000 1.1
+++ java/examples/Addressbook/config/web.xml 21 Jan 2003 02:26:56 -0000
@@ -19,6 +19,10 @@
<servlet-name>Task</servlet-name>
<url-pattern>/Task</url-pattern>
</servlet-mapping>
+ <servlet-mapping>
+ <servlet-name>invoker</servlet-name>
+ <url-pattern>/servlet/*</url-pattern>
+ </servlet-mapping>
<security-constraint>
<web-resource-collection>
Re: one patch to make addressbook example works under tomcat
Posted by Gianugo Rabellino <gi...@apache.org>.
Jerry Tan wrote:
> After I got trunk code from cvs,
> I begin to build Addressbook example of xindice, I found that it doesnot
> work.
>
> I checked it , the reason is like below
> 1. web.xml miss some servlet mapping
> 2. Addressbook.war missed xindice-1.1b.jar in its war file.
>
> So I make a simple patch for it,
> any comments?
Applied, thanks and sorry for the delay. Please cross-check.
Ciao,
--
Gianugo Rabellino
CTO
Pro-netics s.r.l.
http://www.pro-netics.com
Re: one patch to make addressbook example works under tomcat
Posted by Jerry Tan <je...@sun.com>.
Stefan Lischke wrote:
>Hi,
>
>
>
>>I checked it , the reason is like below
>> 1. web.xml miss some servlet mapping
>>+ <servlet-mapping>
>>+ <servlet-name>invoker</servlet-name>
>>+ <url-pattern>/servlet/*</url-pattern>
>>+ </servlet-mapping>
>>
>>
>
>Thats really funny,
>since Tomcat 4.1.12 they commented this servlet-mapping Entry in the global
>conf/web.xml file.
>It took me hours to find out that change.
>
>mfg stefan
>
>
>
Can someone help to check in that path into cvs trunk?
It is a simple patch, with it, any new comer will get addressbook
example works easily with Tomcat 4.
RE: one patch to make addressbook example works under tomcat
Posted by Stefan Lischke <li...@novacom.net>.
Hi,
> I checked it , the reason is like below
> 1. web.xml miss some servlet mapping
> + <servlet-mapping>
> + <servlet-name>invoker</servlet-name>
> + <url-pattern>/servlet/*</url-pattern>
> + </servlet-mapping>
Thats really funny,
since Tomcat 4.1.12 they commented this servlet-mapping Entry in the global
conf/web.xml file.
It took me hours to find out that change.
mfg stefan