RE: Wanted - C2 Idiots Guide to deploying XML/XSL/XSP files
Title: RE: Cocoon2 : Managing URL-encoded parameters you do not have to restart cocoon each time after editing the site-map, just edit the cocoon.xconf at the very end to sitemap file="sitemap.xmap" reload-method="synchron" check-reload="yes"/ (check reload has to be yes and synchron!!) the other question i cannot answer, sorry --Thomas HoferSCCH - Software Competence Center Hagenberg GmbHHauptstrasse 99, A-4232 Hagenberg, Austriaphone: +43 7236 3343 836, fax: +43 7236 3343 888eMail: [EMAIL PROTECTED] -Original Message-From: Aston Jeremy [mailto:[EMAIL PROTECTED]]Sent: Donnerstag, 20. September 2001 13:59To: '[EMAIL PROTECTED]'Subject: Wanted - C2 Idiots Guide to deploying XML/XSL/XSP files Hi, I have just moved from c1.8 to c2b2 and am lost on how to deploy even the simplest of code under c2. I did have c2 running as a war under Tomcat 3.2.3 but now have got it running as an "raw" web app with Apache 1.3.19/mod_jk acting as the HTTP server andjava interface (i.e. I've got the aliases and jkmount /cocoon/* ajp12 in my httpd.conf). This is so I can easily develop and add in my basic noddy code without having to repackage the war each time. All the samples work fine but even a basic xml page coded and copied under the cocoon webapp folder results in a "page not found" error. My research leaves me to believe that I need to add something to the sitemap file so that the file can be picked up but does this mean that *every* page needs to be in sitemap, even if it is in some kind of wild card arrangement? It appears that cocoon must be restarted to reloaded the changed sitemap - surely this is a ridiculous overhead in development time and prevents rapid "code the page and test it" that I am used to - even on C1.8. I basically understand what the sitemap is doing for the samples - it's just seems too long winded when all I want to do is create a folder and do a simple XML/XSL transformation. Am I missing something? What I need is an idiots guide to deploying a basic XML file right through to a basic XSP/Logicsheet/XML scenario. An idiots guide to working with the sitemap file would help as well - the alpha documentation does not contain sufficent examples at the moment. As an example - how do I deploy the basic XML/XSL filedeployed in the XSP Guide chapter that is in the c2 doc set: Assume: The file path: c:\java\tomcat\webapps\cocoon\mystuff (onWin 2000 pro btw) The url I request: http://localhost/cocoon/mystuff/greeting.xml With my C1.8 knowledge I would have expected that I just create the folder and plop the files (greeting.xml and greeting.xsl) in there but it seems that the sitemap holds the key to these being served... Perhaps with a few pointers I can write the idiots guide but I need a little help myself first! Many thanks in advance Jez [EMAIL PROTECTED]
SAX, DOM
hi all! i got following problem (using cocoon2). -how do i create an XML-stream (using a xsp-file (serverpage in sitemap)) in the following way: i have a string (itemitem1/itemitemitem2/item) and want it to insert into the xml-stream. sorry for the inconvienience, but the documentation is really poor. -is there any good documentation (and easy to understand examples) about using XSP with SQL and Flat-XML-Files as datasource? yours -- Thomas Hofer SCCH - Software Competence Center Hagenberg GmbH Hauptstrasse 99, A-4232 Hagenberg, Austria phone: +43 7236 3343 836, fax: +43 7236 3343 888 eMail: [EMAIL PROTECTED] -Original Message- From: Enric Staromiejski [mailto:[EMAIL PROTECTED]] Sent: Mittwoch, 12. September 2001 15:24 To: [EMAIL PROTECTED] Subject: RE: Cocoon2 problem Rafa, nosotros los solucionamos así (translation: Rafa, we solved it like this): 1. Edit the ant file with joe (We're using Linux RedHat 7.0) 2. Delete the blank between #! and /bin/sh 3. If you see an underlined M at the end of each line...delete it 4. Save and execute Good Luck! Enric BCN -Mensaje original- De: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]En nombre de Rafa Granados Enviado el: miércoles, 12 de septiembre de 2001 14:01 Para: [EMAIL PROTECTED] Asunto: Cocoon2 problem Hi all, I´m installing Cocoon2. I´ve already installed Tomcat 3.3 + Apache (under Redhat 7.0) and they work properly. Problems emerge when I try to generate the Cocoon.war. I´ve established the environment variables: JAVA_HOME=/usr/java/jdk1.3.1 TOMCAT_HOME=/usr/local/jakarta-tomcat-3.3-b2 I´ve introduced in the PATH /usr/java/jdk1.3.1/bin ...but when I try to run the command: . /build.sh -Dinclude.webapp.libs=yes -Dinstall.war=/usr/local/jakarta-tomcat-3.3-b2/webapps install the following error appears: /usr/local/xml-cocoon2/bin/ant: /usr/java/jdk1.3.1/bin/java: This file or directory doesn´t exist. However, the java file is recognised (concretely, this is a symbolic link to the file .java_wrapper). I don´t know where is the error. Please, help me. Best regards. Rafa Granados. - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]