|
Hi all!
My question is about how to store WML and XML files
toghether in a Cocoon working directory served
by
Tomcat.
I'm using Tomcat 3.2 and Cocoon 1.8.
I already know how to tell Cocoon that I would like to
serve
XML if the client is a web browser, and WML if the client is a Wap Browser (it's not my case because all content is for Wap Browser). I only would like to know if it's posible to store *.wml files and *.wbmp files under a Cocoon working directory (it's not under Tomcat Webapp tree) instead of place wml and wbmp files in a Apache
web
directory, and how can I setup up web.inf (if it's the correct place) to accept Cocoon and Tomcat to serve wml and wbmp files from a Cocoon directory. Nowadays my Wap Browser sends me 404 error or when I
debug , it returns me:
'No traslator for content type text/plain' when I ask for a wbmp file. My web.xml fiel under the directory (/home/wap/WEB-INF) is
like this:
This directory is specified in server.xml and
tomcat.conf files.
<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE web-app
PUBLIC "-//Sun Microsystems, Inc.//DTD Web
Application 2.2//EN"
"http://java.sun.com/j2ee/dtds/web-app_2.2.dtd">
<web-app>
<servlet>
<servlet-name>org.apache.cocoon.Cocoon</servlet-name>
<servlet-class>org.apache.cocoon.Cocoon</servlet-class>
<init-param>
<param-name>properties</param-name>
<param-value>WEB-INF/cocoon.properties</param-value>
</init-param>
</servlet>
<servlet-mapping>
<servlet-name>org.apache.cocoon.Cocoon</servlet-name>
<url-pattern>*.xml</url-pattern>
</servlet-mapping>
<mime-mapping>
<extension>wml</extension>
<mime-type>text/vnd.wap.wml</mime-type>
</mime-mapping>
<mime-mapping>
<extension>wmls</extension>
<mime-type>text/vnd.wap.wmlscript</mime-type>
</mime-mapping>
<mime-mapping>
<extension>wbmp</extension>
<mime-type>image/vnd.wap.wbmp</mime-type>
</mime-mapping>
</web-app>
TIA
Iv�n Font�n
Technical Department LATINIA CORPORATION
www.latinia.com Spain Office
Barcelona Trav. Gr�cia, 342-344 08025 Barcelona (Spain) Tel.: +34 934 465 026 US Offices
New York 885 3rd Avenue Suite 2800 New York, NY 10022 Miami
1210 Brickell Avenue Suite 430 Miami, FL 33131 |
- Re: WML not served in Tomcat Ivan
- Re: WML not served in Tomcat Orestes Mas
- Re: WML not served in Tomcat Craig R. McClanahan
