|
Hola Iván.
Els arxius XML o WAP els pots posar on vulguis, però si estan
fora de l'arbre principal de l'Apache has de crear un àlies a l'Apache
per tal que el client els pugui trobar d'alguna manera. Suposo que ja ho
has fet.
També s'ha d'instruir el mòdul corresponant (mod_JServ
o mod_jk) que redireccioni les peticions a arxius .wml (jo uso "JkMount
*.xml ajp13") cap al Tomcat, i instruir el Tomcat perquè les redireccioni
cap al Cocoon (això es fa creant un nou context al fitxer "server.xml"
que apunti al directori on vols guardar els fitxers WML. En el teu cas
el /home/wap.). Si tot està correcte, t'hauria de funcionar. Potser
si especifiques més et puc ajudar més.
Orestes.
Tens l'arxiu cocoon.properties
Ja has posat les línies adients a l'arxiu de configuració
de l'Apache
Ivan wrote:
Hi all!My
question is about how to store WML and XML filestoghether
in a Cocoon working directory served byTomcat.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 Idebug
, 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-appPUBLIC
"-//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
|
begin:vcard
n:Mas i Casals;Orestes
tel;fax:+34.93.401.72.00
tel;work:+34.93.401.70.72
x-mozilla-html:TRUE
org:Universitat Polit�cnica de Catalunya;TSC
version:2.1
email;internet:[EMAIL PROTECTED]
title:Dr.
adr;quoted-printable:;;Campus Nord - UPC=0D=0Ac/Gran Capit=E0 s/n=0D=0AM=F2dul D4;BARCELONA;;08034;Spain
x-mozilla-cpt:;0
fn:Orestes Mas i Casals
end:vcard
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]