Re: Problem with encoding non-english request parameters
Piroumian, Konstantin wrote: Piroumian, Konstantin wrote: On Mon, 11 Mar 2002 18:32:26 +0300 yuryx [EMAIL PROTECTED] wrote: Vadim Gritsenko wrote: RTFM http://xml.apache.org/cocoon/userdocs/xsp/request.html: 8 8 Vadim Thanx for you help, Vadim, but I need have ,for additional, method for JSP also... And manual request-value charset encoding work as with XSP and with JSP :) I use SetCharacterEncodingFilter distributed with tomcat. in my web.xml it looks like: --- cut --- filter filter-nameSet Character Encoding/filter-name filter-classfilters.SetCharacterEncodingFilter/filter-class init-param param-nameencoding/param-name param-valueISO-8859-2/param-value /init-param /filter filter-mapping filter-nameSet Character Encoding/filter-name url-pattern/*/url-pattern /filter-mapping --- cut --- Is there a better way in cocoon+tomcat to change character encoding globaly? You can setup your serializer this way: map:serializer name=html mime-type=text/html src=org.apache.cocoon.serialization.HTMLSerializer encodingiso8859-2/encoding /map:serializer You can have serializers with different encodings in one sitemap. Regards, Konstantin Piroumian -- Kazimierz Pogoda mailto:[EMAIL PROTECTED] Is serializer serialized request also? (this stupid question may be...) Do you need to set encoding on the coming request? This can be done with an action. Yes, in action or use form-encoding attribute (in XSP page with use xsp-request: logicsheet),or use manual encoding like : String req=new String(request.getParameter(param1).getBytes(default-charset),needing-charset); in some servlet pages. :) But I can change request charset in client side only? Can I do sets request parameters like request.setCharacterEncoding() ^-in Tomcat But It impossible in Tomcat :( (may be :) ) Yury. Yury. - 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]
Re: Problem with encoding non-english request parameters
skipped/ Is serializer serialized request also? (this stupid question may be...) Do you need to set encoding on the coming request? This can be done with an action. Yes, in action or use form-encoding attribute (in XSP page with use xsp-request: logicsheet),or use manual encoding like : String req=new String(request.getParameter(param1).getBytes(default-charset),needing-c harset); in some servlet pages. :) But I can change request charset in client side only? Can I do sets request parameters like request.setCharacterEncoding() ^-in Tomcat But It impossible in Tomcat :( (may be :) ) I don't quite understand what do you mean. Yes, you can change your request character set: quot src=servlet 2.3 Specification setCharacterEncoding(String) public void setCharacterEncoding(java.lang.String env) throws UnsupportedEncodingException Overrides the name of the character encoding used in the body of this request. This method must be called prior to reading request parameters or reading input using getReader(). Parameters: a - String containing the name of the chararacter encoding. Throws: java.io.UnsupportedEncodingException - if this is not a valid encoding /quot This should work in any Servlet 2.3 compliant server (e.g. Tomcat 4.x). Regards, Konstantin Piroumian Yury. Yury. - 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] - 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]
Re: Problem with encoding non-english request parameters-thanx
I don't quite understand what do you mean. Yes, you can change your request character set: quot src=servlet 2.3 Specification setCharacterEncoding(String) public void setCharacterEncoding(java.lang.String env) throws UnsupportedEncodingException Overrides the name of the character encoding used in the body of this request. This method must be called prior to reading request parameters or reading input using getReader(). Parameters: a - String containing the name of the chararacter encoding. Throws: java.io.UnsupportedEncodingException - if this is not a valid encoding /quot This should work in any Servlet 2.3 compliant server (e.g. Tomcat 4.x). Regards, Konstantin Piroumian Sorry, I used too old http://java.sun.com/products/servlet/2.2/javadoc/ Specification... And I don't find this features. Thanx for the complete answer. Yury. - 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]
Re: Problem with encoding non-english request parameters
snip/ IIRC changing the encoding of the *serializer* has solved this problem for us. Because then the POST will come with the right encoding set. My 2 cents -- Torsten - 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]
Re: Problems with DatabaseXXXActions
sorry if this come too late : i got the same probleme in something like this section : map:match pattern=forms/form_chemicals.xsp map:act set=dbentry map:parameter name=descriptor value=context://biotox/forms/desc_chemicals.xml / map:generate type=serverpages src=forms/form_chemicals.xsp/ map:transform src=styles/dbform.xsl/ map:serialize / /map:act !-- if action fails, then...-- map:generate src=docs/error.xml / map:transform src=styles/biotox-page2html.xsl/ map:serialize / /map:match I found that i have to change : value=context://biotox/forms/desc_chemicals.xml / to value=file:/biotox/forms/desc_chemicals.xml / i don't know why. - Original Message - From: Derek Hohls [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, March 04, 2002 1:00 PM Subject: Problems with DatabaseXXXActions C2.0 / TC 4.01 / Win2000 I am having problems getting a database form to work; the call to form_chemicals.xsp causes the error.xml page to be displayed. I have set my log level to WARN but cannot see anything in the log reports as to where the problem might be? In the sub-sitemap (in a dir called biotox) I have the match: map:match pattern=forms/form_chemicals.xsp map:act set=dbentry map:parameter name=descriptor value=context://biotox/forms/desc_chemicals.xml / map:generate type=serverpages src=forms/form_chemicals.xsp/ map:transform src=styles/dbform.xsl/ map:serialize / /map:act !-- if action fails, then...-- map:generate src=docs/error.xml / map:transform src=styles/biotox-page2html.xsl/ map:serialize / /map:match with the action set: map:action-sets map:action-set name=dbentry map:act type=add-dbentry action=Add/ map:act type=del-dbentry action=Delete/ map:act type=upd-dbentry action=Update/ /map:action-set /map:action-sets and the actions: map:actions map:action name=add-dbentry src=org.apache.cocoon.acting.DatabaseAddAction/ map:action name=del-dbentry src=org.apache.cocoon.acting.DatabaseDeleteAction/ map:action name=upd-dbentry src=org.apache.cocoon.acting.DatabaseUpdateAction/ map:action name=request src=org.apache.cocoon.acting.RequestParamAction/ map:action name=form-validator src=org.apache.cocoon.acting.FormValidatorAction/ !-- abd others -- /map:actions The desc_chemicals.xml looks something like: ?xml version=1.0? root connectionbiotox_chem_admin/connection table name=chemicals keys key param=ChemID dbcol=ChemID type=int mode=manual/ /keys values value param=Name dbcol=Name type=string/ !-- and other columns in the same format -- /values /table /root WHAT I HAVE ALREADY TRIED: map:match pattern=forms/form_chemicals.xsp map:generate type=serverpages src=forms/form_chemicals.xsp/ map:transform src=styles/dbform.xsl/ map:serialize / /map:match this DOES work (displays form data), so its not the XSP page or XSLT that gives problems. Also the connectionbiotox_chem_admin/connection in the desc_chemicals.xml file is the same as that in the XSP page. - 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]
Cocoon hangs
Hi, I hope that my question is not one of these that are posted each time a new member subscribes to the mailing list. At least, I could not find any answer in the FAQ. I'm using Apache 1.3.20 on a Windows 2000 system. On this server I use Tomcat 3.3 with ajp13. Finally, I use a cocoon version I downloaded from the CSV repository recently. I had some problems with the installation instructions as the JARs (parser stuff) to replace do not exist with Tomcat 3.3. This is not my real problem, but I mention it here, as it may be a reason of my problems. The real problem is, that cocoon completely hangs. I waited several minutes to see the welcome page without result. All this time, the Tomcat process consumed all of my CPU power. I know that it may take several seconds to start the first time, but several minutes (and my processor isn't that slow)? Is there anyone who faced similar problems or who has any hints? Thanks a lot, Peter - 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]
cocoon2: Error compiling sitemap
What I'm doing wrong? I have Linux, JBoss 2.4.4, Tomcat 3.2.3 and the latest Cocoon source out of the CVS repository. I've tried with 'Blackdown Java (latest)' and IBMJava2-13, with same result. Thanks in advance Erwin - Cocoon 2 - Internal server error type fatal message Error compiling sitemap description org.apache.cocoon.ProcessingException: Error compiling sitemap: java.lang.NoSuchFieldError: manager sender org.apache.cocoon.servlet.CocoonServlet source Cocoon servlet stack-trace org.apache.cocoon.ProcessingException: Error compiling sitemap: java.lang.NoSuchFieldError: manager at org.apache.cocoon.sitemap.Handler.run(Handler.java:295) at java.lang.Thread.run(Thread.java:484) java.lang.NoSuchFieldError: manager at org.apache.cocoon.www.sitemap_xmap.configure(sitemap_xmap.java:362) at org.apache.avalon.excalibur.component.DefaultComponentFactory.newInstance(DefaultComponentFactory.java:172) at org.apache.avalon.excalibur.component.ThreadSafeComponentHandler.initialize(ThreadSafeComponentHandler.java:84) at org.apache.cocoon.components.language.generator.GeneratorSelector.addGenerator(GeneratorSelector.java:170) at org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.load(ProgramGeneratorImpl.java:248) at org.apache.cocoon.sitemap.Handler.run(Handler.java:270) at java.lang.Thread.run(Thread.java:484) request-uri /cocoon/ path-info - - 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]
[C2.0.1] session:set-attribute
Hello! can session attributes only be set through the sitemap? if i look at the generated java code, i think it is impossible to set session attributes from java variables or from an string object... session:set-attribute name=reportxsp:exprsReport/xsp:expr/session:set-attribute XSPRequestHelper.setSessionAttribute(objectModel, String.valueOf(report), sReport); Chris -- KNAPP Logistics Automation http://www.knapp.com Ing. Christian JöllyTel/FAX: (++43) 316 / 495 1926 / 495 394 Günter-Knapp-Straße 5-7 A-8075 Hart bei Graz msg09285/pgp0.pgp Description: PGP signature
Re: [C2.0.1] session:set-attribute
I can't find XSPRequestHelper.setSessionAttribute I haven't update cvs in more than a week, but here's what i see in the relavent template: xsl:template match=xsp-session:set-attribute xsl:variable name=name xsl:call-template name=value-for-name/ /xsl:variable xsl:variable name=content xsl:call-template name=get-nested-content xsl:with-param name=content select=./ /xsl:call-template /xsl:variable xsp:logic request.getSession().setAttribute( String.valueOf(xsl:copy-of select=$name/), xsl:copy-of select=$content/); /xsp:logic /xsl:template You certainly should be able to set session attributes. Try putting ( ) around sReport like xsp:expr(sReport)/xsp:expr I'm not promising anything, but it works for me. On Tue, Mar 12, 2002 at 11:14:44AM +0100, Christian Joelly wrote: Hello! can session attributes only be set through the sitemap? if i look at the generated java code, i think it is impossible to set session attributes from java variables or from an string object... session:set-attribute name=reportxsp:exprsReport/xsp:expr/session:set-attribute XSPRequestHelper.setSessionAttribute(objectModel, String.valueOf(report), sReport); Chris -- KNAPP Logistics Automation http://www.knapp.com Ing. Christian JöllyTel/FAX: (++43) 316 / 495 1926 / 495 394 Günter-Knapp-Straße 5-7 A-8075 Hart bei Graz - 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]
Re: Problems with Cacheable
Noone had did such ever really? It's possible, but I doubt it.. On Mon, Mar 11, 2002 at 10:22:04PM +0100, Jozsa Kristof wrote: Hi, I have a custom Generator, which pulls XML data from EJBs. I'd like to make this generator cacheable, based on the url. I've added the following to my Generator: - implemented Cacheable - wrote generateKey(), which uses HashUtil.hash(URL+parameter1+param2) to generate the cache key - wrote generateValidity(), which returns NOPCacheValidity.CACHE_VALIDITY, for testing purposes (ie. this cache entry will last forever) Now when I browse the Cocoon-generated pages, I see the cache seem to work properly, based on the log messages (stores at the first hit, retreives from cache after); but watching logs on the EJB side meanwhile, I see that _every_hit_ is still pulled from there, every hit on the website generates database access, etc. What does that mean? Christopher ps. on Cocoon 2.0.1, JBoss3+Jetty as container, linux x86 -- .Digital.Yearning.for.Networked.Assassination.and.Xenocide - 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] -- .Digital.Yearning.for.Networked.Assassination.and.Xenocide - 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]
build problems with JDK 1.4.0
I can't build Cocoon-2.0.1 with JDK 1.4.0. I'm getting an esql-error when I run build.bat. Does anyone know how to solve this problem? Mit freundlichen Grüßen Adnan Zelkanovic allgäuNet.Onlinedienste GmbH Nebelhornstraße 8 86807 Buchloe Tel. (08241) 96869-33 Fax (08241) 96869-26 http://www.allgaeu.net e-mail: [EMAIL PROTECTED] ein Unternehmen der abc.Mediengruppe - 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]
cocooncenter.de is now cocooncenter.org
Hi Cocoon users! First, I want to thank you for the positive feedback and suggestions that helped meto improve the cocooncenter site. Of course, special thanks for the contributions! I decided to "upgrade" to an international domain, looking forward to see how the site will evolve during the next time. Of course, cocooncenter.de will still be available. Greetings, Andreas
Re: IE / NS don't reconize my XML output as XML
I think map:serialize's parameter is called type, not name, at least using the standard serializer. map:serializer name=xml mime-type=text/xml src=org.apache.cocoon.serialization.XMLSerializer/ map:serialize type=xml/ TREGAN Fabien wrote: I use this serializer : component-instance name=xml class=org.apache.cocoon.serialization.XMLSerializer mime-type=text/xml logger=sitemap.serializer.xml/ in this pipeline : map:match pattern=*.xml map:generate src=xml/{1}.xml/ map:serialize name=xml/ /map:match and xml/file.xml contains : ?xml version='1.0' encoding='UTF-8'? test this is a test. /test I can acces cocoon/myapp/file.xml, but both IE and NS display them as an HTML file (display only 'this is a test'). If I use 'view source', the tag test is ok, but the PI (?xml version='1.0' encoding='UTF-8'?) vanished. if I try the same test with a .svg file and the SVG/JPEG serializer, both browsers reconize the output as an image and display it properly. I tryed stoping / starting Tomcat, refreshing, deleting work directory, no luck... I must use an xml2xhtml transformer in order to see my results... any idea ? [Tomcat 4.0.1, 10 days old CVS, IE 5.5, NS 6.] - 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]
Re: [C2.0.1] session:set-attribute
Hi Tim! On Tue, Mar 12, 2002 at 05:35:41AM -0500, Tim Myers wrote: I can't find XSPRequestHelper.setSessionAttribute I haven't update cvs in more than a week, but here's what i see in the relavent template: xsl:template match=xsp-session:set-attribute xsl:variable name=name xsl:call-template name=value-for-name/ /xsl:variable xsl:variable name=content xsl:call-template name=get-nested-content xsl:with-param name=content select=./ /xsl:call-template /xsl:variable xsp:logic request.getSession().setAttribute( String.valueOf(xsl:copy-of select=$name/), xsl:copy-of select=$content/); /xsp:logic /xsl:template You certainly should be able to set session attributes. Try putting ( ) around sReport like xsp:expr(sReport)/xsp:expr I'm not promising anything, but it works for me. hmm. i tried the following: session:set-attribute name=report xsp:contentxsp:exprsReport/xsp:expr/xsp:content /session:set-attribute and it also works :o) BUT: i have the following template: xsl:template match=session:set-attribute xsl:variable name=name xsl:call-template name=value-for-name/ /xsl:variable xsl:variable name=content xsl:call-template name=get-nested-content xsl:with-param name=content select=./ /xsl:call-template /xsl:variable xsp:logic XSPRequestHelper.setSessionAttribute(objectModel, String.valueOf(xsl:copy-of select=$name/), xsl:copy-of select=$content/ ); /xsp:logic /xsl:template whats the difference between xsp-session and session? are this only different named xml namespaces or different taglibs? (#+?§$% ;)) Chris btw: the version of cocoon i use is the distribution 2.0.1 dated 31-Jan-2002. -- KNAPP Logistics Automation http://www.knapp.com Ing. Christian JöllyTel/FAX: (++43) 316 / 495 1926 / 495 394 Günter-Knapp-Straße 5-7 A-8075 Hart bei Graz msg09291/pgp0.pgp Description: PGP signature
Re: cocooncenter.de is now cocooncenter.org
Hi! I have a small tutorial on logicsheet creation. It consists of 2 simple logicsheets and step-by-step instructions on how to create and install them in C2. Feel free to place it on your site if you think it'll be useful. Regards, Konstantin Piroumian - Original Message - From: Andreas Hartmann To: [EMAIL PROTECTED] Sent: Tuesday, March 12, 2002 3:09 PM Subject: cocooncenter.de is now cocooncenter.org Hi Cocoon users! First, I want to thank you for the positive feedback and suggestions that helped meto improve the cocooncenter site. Of course, special thanks for the contributions! I decided to "upgrade" to an international domain, looking forward to see how the site will evolve during the next time. Of course, cocooncenter.de will still be available. Greetings, Andreas Logicsheet.zip Description: Zip compressed data - 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]
Re: cocooncenter.de is now cocooncenter.org
parev kostantin My name is mariano from argentina. I just want to ask yuo a question. are good at cocoon? I have installed and the problem i have is even when i see the directory with the file when i click a page i see only xml tags but not a page at normal "way". Thanks in advance Mariano
Re: cocooncenter.de is now cocooncenter.org
Hi! My name is mariano from argentina. I just want to ask yuo a question. are good at cocoon? I have installed and the problem i have is even when i see the directory with the file when i click a page i see only xml tags but not a page at normal "way". This usually means that Cocoon servlet was not called and servlet engine istelf processed your request. If you give more details I could try to help you. Thanks in advance Mariano
RE: Jetty and Cocoon2, help?
Now it works. You may have issue with redirects, but otherwise it is working. PS If you find a problem why redirect does not work as it should, feel free to send patches. Vadim From: Skansen [mailto:[EMAIL PROTECTED]] see below - Original Message - From: Vadim Gritsenko [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, March 11, 2002 11:59 PM Subject: RE: Jetty and Cocoon2, help? From: Skansen [mailto:[EMAIL PROTECTED]] I've found the empty pipeline and corrected it and instead the following was recivied when accessing localhost:8080/cocoon/ Are you sure you had trailing slash? yes HTTP ERROR: 404 Could not find resource for /welcome RequestURI=/welcome the url was also rewritten as localhost:8080/welcome Updated from the CVS and also got the above respons Any clue for the next step? 1. I would like to see other log files also. The one you sent does not indicate any error. 2. Try http://localhost:8080/cocoon/welcome number 2 above gives the cocoon start page. - 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]
RE: cocoon2: Error compiling sitemap
You forgot to delete work directory with really old sitemap class. Vadim -Original Message- From: Erwin Burgstaller [mailto:[EMAIL PROTECTED]] On Behalf Of Erwin Burgstaller Sent: Tuesday, March 12, 2002 5:09 AM To: [EMAIL PROTECTED] Subject: cocoon2: Error compiling sitemap What I'm doing wrong? I have Linux, JBoss 2.4.4, Tomcat 3.2.3 and the latest Cocoon source out of the CVS repository. I've tried with 'Blackdown Java (latest)' and IBMJava2-13, with same result. Thanks in advance Erwin - Cocoon 2 - Internal server error type fatal message Error compiling sitemap description org.apache.cocoon.ProcessingException: Error compiling sitemap: java.lang.NoSuchFieldError: manager sender org.apache.cocoon.servlet.CocoonServlet source Cocoon servlet stack-trace org.apache.cocoon.ProcessingException: Error compiling sitemap: java.lang.NoSuchFieldError: manager at org.apache.cocoon.sitemap.Handler.run(Handler.java:295) at java.lang.Thread.run(Thread.java:484) java.lang.NoSuchFieldError: manager at org.apache.cocoon.www.sitemap_xmap.configure(sitemap_xmap.java:362) at org.apache.avalon.excalibur.component.DefaultComponentFactory.newInstanc e(Defa ultComponentFactory.java:172) at org.apache.avalon.excalibur.component.ThreadSafeComponentHandler.initial ize(Th readSafeComponentHandler.java:84) at org.apache.cocoon.components.language.generator.GeneratorSelector.addGen erator (GeneratorSelector.java:170) at org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.loa d(Prog ramGeneratorImpl.java:248) at org.apache.cocoon.sitemap.Handler.run(Handler.java:270) at java.lang.Thread.run(Thread.java:484) request-uri /cocoon/ path-info - - 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]
RE: Cocoon hangs
From: Peter Wieland [mailto:[EMAIL PROTECTED]] Hi, I hope that my question is not one of these that are posted each time a new member subscribes to the mailing list. At least, I could not find any answer in the FAQ. I'm using Apache 1.3.20 on a Windows 2000 system. On this server I use Tomcat 3.3 with ajp13. Finally, I use a cocoon version I downloaded from the CSV repository recently. I had some problems with the installation instructions as the JARs (parser stuff) to replace do not exist with Tomcat 3.3. This is not my real problem, but I mention it here, as it may be a reason of my problems. The real problem is, that cocoon completely hangs. I waited several minutes to see the welcome page without result. All this time, the Tomcat process consumed all of my CPU power. I know that it may take several seconds to start the first time, but several minutes (and my processor isn't that slow)? This looks like xerces/xalan issue. I never traced this problem to this root, but the result is that Cocoon hangs while trying to apply XSLT on the sitemap file. Usually this solves by replacing xerces/xalan versions of the servlet engine with the versions supplied by Cocoon. Vadim Is there anyone who faced similar problems or who has any hints? Thanks a lot, Peter - 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]
Problems with Cocoon2.0 Tomcat 3.3a
Hi all; Can I get help on this problem? I am running Tomcat 3.3a. ERROR (2002-03-12) 15:10.14:313 [cocoon ] (/servlet/snoop) Thread-10/Handle r: Error compiling sitemap java.lang.VerifyError: (class: org/apache/fop/render/ps/PSRenderer, method: rend erImageArea signature: (Lorg/apache/fop/image/ImageArea;)V) Incompatible object argument for function call at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:120) at org.apache.cocoon.components.renderer.ExtendableRendererFactory.class $(ExtendableRendererFactory.java:26) at org.apache.cocoon.components.renderer.ExtendableRendererFactory.init (ExtendableRendererFactory.java:35) at org.apache.cocoon.components.renderer.ExtendableRendererFactory.clin it(ExtendableRendererFactory.java:30) at org.apache.cocoon.serialization.FOPSerializer.clinit(FOPSerializer. java:49) at java.lang.Class.newInstance0(Native Method) at java.lang.Class.newInstance(Class.java:237) at org.apache.avalon.excalibur.component.DefaultComponentFactory.newInst ance(Unknown Source) at org.apache.avalon.excalibur.pool.AbstractPool.newPoolable(Unknown Sou rce) at org.apache.avalon.excalibur.pool.AbstractPool.internalGrow(Unknown So urce) at org.apache.avalon.excalibur.pool.SoftResourceLimitingPool.grow(Unknow n Source) at org.apache.avalon.excalibur.pool.SoftResourceLimitingPool.initialize( Unknown Source) at org.apache.avalon.excalibur.component.PoolableComponentHandler.initia lize(Unknown Source) at org.apache.avalon.excalibur.component.ExcaliburComponentSelector.addC omponent(Unknown Source) at org.apache.cocoon.sitemap.SitemapComponentSelector.addSitemapComponen t(SitemapComponentSelector.java:91) at org.apache.cocoon.sitemap.AbstractSitemap.load_component(AbstractSite map.java:232) at org.apache.cocoon.www.sitemap_xmap$Configurer.configSerializers(sitem ap_xmap.java:825) at org.apache.cocoon.www.sitemap_xmap.configure(sitemap_xmap.java:212) at org.apache.avalon.excalibur.component.DefaultComponentFactory.newInst ance(Unknown Source) at org.apache.avalon.excalibur.component.ThreadSafeComponentHandler.init ialize(Unknown Source) at org.apache.cocoon.components.language.generator.GeneratorSelector.add Generator(GeneratorSelector.java:135) at org.apache.cocoon.components.language.generator.ProgramGeneratorImpl. addCompiledComponent(ProgramGeneratorImpl.java:345) at org.apache.cocoon.components.language.generator.ProgramGeneratorImpl. load(ProgramGeneratorImpl.java:179) at org.apache.cocoon.sitemap.Handler.run(Handler.java:208) at java.lang.Thread.run(Thread.java:484) - 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]
RE: info-contact etc
From: todd tredeau [mailto:[EMAIL PROTECTED]] Hi; I've mailed a couple of times before, with no answer. I'm trying to get more info on cocoon lists available. I also want to connect with developers and try and the the Novell drive letter issue resolved. I have started to run into others who wish to also get involved and have similar problems... Send in patches when you fix the issue. PS It's hard to make Cocoon work on such exotic as Novell... Vadim - 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]
RE: Problems with Cacheable
Take a look at cacheable.xsp sample. IIRC, it works correctly. Vadim -Original Message- From: Jozsa Kristof [mailto:[EMAIL PROTECTED]] Sent: Tuesday, March 12, 2002 6:33 AM To: [EMAIL PROTECTED] Subject: Re: Problems with Cacheable Noone had did such ever really? It's possible, but I doubt it.. On Mon, Mar 11, 2002 at 10:22:04PM +0100, Jozsa Kristof wrote: Hi, I have a custom Generator, which pulls XML data from EJBs. I'd like to make this generator cacheable, based on the url. I've added the following to my Generator: - implemented Cacheable - wrote generateKey(), which uses HashUtil.hash(URL+parameter1+param2) to generate the cache key - wrote generateValidity(), which returns NOPCacheValidity.CACHE_VALIDITY, for testing purposes (ie. this cache entry will last forever) Now when I browse the Cocoon-generated pages, I see the cache seem to work properly, based on the log messages (stores at the first hit, retreives from cache after); but watching logs on the EJB side meanwhile, I see that _every_hit_ is still pulled from there, every hit on the website generates database access, etc. What does that mean? Christopher ps. on Cocoon 2.0.1, JBoss3+Jetty as container, linux x86 -- .Digital.Yearning.for.Networked.Assassination.and.Xenocide - 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]
RE: build problems with JDK 1.4.0
Set JAVA_HOME Build clean Build Regards, Vadim -Original Message- From: Adnan Zelkanovic [mailto:[EMAIL PROTECTED]] Sent: Tuesday, March 12, 2002 7:04 AM To: Cocoon Users Cc: Matthias Fischer; Jцrg Flotho Subject: build problems with JDK 1.4.0 I can't build Cocoon-2.0.1 with JDK 1.4.0. I'm getting an esql-error when I run build.bat. Does anyone know how to solve this problem? Mit freundlichen Grüßen Adnan Zelkanovic allgäuNet.Onlinedienste GmbH Nebelhornstraße 8 86807 Buchloe Tel. (08241) 96869-33 Fax (08241) 96869-26 http://www.allgaeu.net e-mail: [EMAIL PROTECTED] ein Unternehmen der abc.Mediengruppe - 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]
Re: ServletGenerator ?
use the servlets generators that you can download from SUN. kind regards Conny - Original Message - From: Ivan Ivanov To: [EMAIL PROTECTED] Sent: Tuesday, March 12, 2002 3:34 PM Subject: ServletGenerator ? hi i have the following problem i want to have a servlet generating xml content and feeding it to the transformer in the pipeline. is that possible ? should i use the ServletGenerator and how should i use it (i couldnt find any docs about that) thanks
Re: ServletGenerator ?
I have a generator for Websphere that does the job. Please let me know which servlet engine you are using and I will sendyou the code. On Tue, 12 Mar 2002, Ivan Ivanov wrote: hi i have the following problem i want to have a servlet generating xml content and feeding it to the transformer in the pipeline. is that possible ? should i use the ServletGenerator and how should i use it (i couldnt find any docs about that) thanks -- Akber Choudhry Dyanet Inc. http://www.dyanet.com/ - 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]
Re: ServletGenerator ?
hi i use tomcat 4 - 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]
RE: Cocoon hangs
Hi, I thought of a problem like this. But I replced some jar's without changing anything. software and versions I use: Apache: 1.3.20 Java: J2SDK 1.4.0 Tomcat: 3.3a Cocoon: The cocoon version? Good question. I've got an actual CVS-Snapshot. How can I know the version? Windows 2000 The trouble is, that I don't exactly know which jars I have to replace by wich cocoon jar. Here the lib subdirectory of tomcat: D:\ApacheGroup\tomcat\lib + apps + common | connector_util.jar | core_util.jar | etomcat.jar | jasper-runtime.jar | servlet.jar | tomcat_core.jar + container | crimson.jar | facade22.jar | jasper.jar | tomcat_modules.jar | tomcat_util.jar | xalan.jar | stop-tomcat.jar | tomcat.jar I have no idea what should be replaced and wether to put it in apps, common or container. Normally common should work, I think, but can anyone confirm? Thanks for any help Peter [...] The real problem is, that cocoon completely hangs. I waited several minutes to see the welcome page without result. All this time, the Tomcat process consumed all of my CPU power. I know that it may take several seconds to start the first time, but several minutes (and my processor isn't that slow)? This looks like xerces/xalan issue. I never traced this problem to this root, but the result is that Cocoon hangs while trying to apply XSLT on the sitemap file. Usually this solves by replacing xerces/xalan versions of the servlet engine with the versions supplied by Cocoon. Vadim - 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]
RE: Cocoon hangs
From: Peter Wieland [mailto:[EMAIL PROTECTED]] Hi, I thought of a problem like this. But I replced some jar's without changing anything. software and versions I use: Apache: 1.3.20 Java: J2SDK 1.4.0 Have you done JDK1.4 configuration steps? See HOWTO: jdk1.4 and/or latest version of install doc in CVS. Vadim Tomcat: 3.3a Cocoon: The cocoon version? Good question. I've got an actual CVS-Snapshot. How can I know the version? Windows 2000 The trouble is, that I don't exactly know which jars I have to replace by wich cocoon jar. Here the lib subdirectory of tomcat: D:\ApacheGroup\tomcat\lib + apps + common | connector_util.jar | core_util.jar | etomcat.jar | jasper-runtime.jar | servlet.jar | tomcat_core.jar + container | crimson.jar | facade22.jar | jasper.jar | tomcat_modules.jar | tomcat_util.jar | xalan.jar | stop-tomcat.jar | tomcat.jar I have no idea what should be replaced and wether to put it in apps, common or container. Normally common should work, I think, but can anyone confirm? Thanks for any help Peter [...] The real problem is, that cocoon completely hangs. I waited several minutes to see the welcome page without result. All this time, the Tomcat process consumed all of my CPU power. I know that it may take several seconds to start the first time, but several minutes (and my processor isn't that slow)? This looks like xerces/xalan issue. I never traced this problem to this root, but the result is that Cocoon hangs while trying to apply XSLT on the sitemap file. Usually this solves by replacing xerces/xalan versions of the servlet engine with the versions supplied by Cocoon. Vadim - 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]
C2-dev and iPlanet
I tried to launch C2-dev (current CVS) with a old version of iPlanet and JDK1.2.2 I have no web.xml so I use all the default values (it works with Tomcat4+JDK1.3). The servlet does not starts correctly. Here is the error I get: [12/Mar/2002:16:02:53] info (11168): Internal Info: loading servlet Cocoon2 [12/Mar/2002:16:02:54] info (11168): Cocoon2: init [12/Mar/2002:16:03:04] info (11168): WARN(2002-03-12) 16:03.04:844 [cocoon ] (Unknown-URI) Unknown-thread/CocoonServlet: Servlet initialization argument 'configurations' not specified, attempting to use '/cocoon.xconf' [12/Mar/2002:16:03:04] info (11168): INFO(2002-03-12) 16:03.04:876 [cocoon ] (Unknown-URI) Unknown-thread/CocoonServlet: Reloading from: file:/prj1-appli/appli/uc00_dev/V2_J2EE/httpd-01/html/cocoon.xconf [12/Mar/2002:16:03:05] failure (11168): Internal error: unexpected exception thrown from the servlet init function (servlet class=org.apache.cocoon.servlet.CocoonServlet): javax.xml.transform.TransformerFactoryConfigurationError: Provider for javax.xml.transform.TransformerFactory cannot be found, Stack: javax.xml.transform.TransformerFactoryConfigurationError: Provider for javax.xml.transform.TransformerFactory cannot be found at java.lang.Throwable.fillInStackTrace(Native Method) at java.lang.Throwable.fillInStackTrace(Compiled Code) at java.lang.Throwable.init(Compiled Code) at java.lang.Error.init(Error.java:50) at javax.xml.transform.TransformerFactoryConfigurationError.init(Unknown Source) at javax.xml.transform.TransformerFactory.newInstance(Unknown Source) at Unloaded Method at org.apache.cocoon.Cocoon.contextualize(Cocoon.java:183) at org.apache.cocoon.servlet.CocoonServlet.createCocoon(CocoonServlet.java:1189) at org.apache.cocoon.servlet.CocoonServlet.init(CocoonServlet.java:399) at com.netscape.server.http.servlet.NSServletEntity.load(NSServletEntity.java:377) at com.netscape.server.http.servlet.NSServletEntity.update(NSServletEntity.java:149) at com.netscape.server.http.servlet.NSServletRunner.Service(NSServletRunner.java:469) Anyone understands this exception: javax.xml.transform.TransformerFactoryConfigurationError: Provider for javax.xml.transform.TransformerFactory cannot be found - 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]
problem runnig pages
Hi pals, when i try to run any page (in this case myhost/cocoon/tutorial) at the conselo runnig tomcat i get the following message. Transform thread has still not started after pauseForTransformThreadStartup On the other hand, at the browser i get this error Cocoon 2 - Internal server error type fatal message Language Exception description org.apache.cocoon.ProcessingException: Language Exception: org.apache.cocoon.components.language.LanguageException: Could not load class for program 'org/apache/cocoon/www/sitemap_xmap' due to a java.lang.ClassNotFoundException: org.apache.cocoon.www.sitemap_xmap sender org.apache.cocoon.servlet.CocoonServlet source Cocoon servlet request-uri /cocoon/tutorial path-info tutorial what it could be? what should i do to fix it? thanks in advance Mariano _ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com - 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]
problematic installation of cocoon2 and jboss 2.2.2 - tomcat 3.2.2
hi, i've downloaded the cocoon-2.0.1-src.zip package and built the packages without problems. i have removed the xml .jars from the libs of tomcat and jboss. i have copied xalan-2.2.0.jar, xerces-1.4.4.jar and xml-apis.jar into the jboss lib directory. i have removed the jaxp attribute from the build.bat and changed the parser in the classpath to ../lib/xalan-2.2.0.jar;xerces-1.4.4.jar;xml-apis.jar. but: cocoon doesn't start. i get the following error message in the browser: Cocoon 2 - Internal server error type fatal message null description java.lang.NullPointerException sender org.apache.cocoon.servlet.CocoonServlet source Cocoon servlet request-uri /cocoon/ path-info i get the following message in the jboss log: [EmbeddedTomcatSX] User: null is authenticated i use jboss 2.2.2 with tomcat 3.2.2 and cocoon 2.0.1 any suggestions for solving the problem? thank you in advance, moritz. - 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]
Re: problem with automount system SOLVED
Thank you for your response and the how-to, I put an unneeded slash before a path. Xavier Je vous site wrote: hello, I'am testing the automount system (C2, Tomcat 4). I had a set of pages that work under a directory and I try to migrate it under /cocoon/mount. I thougth, i have made the changes needed in the pipeline section of the local xmap. It does't work, I have an exception, not a 404. My error seems to be in the sitemap. Is there a special trick to add in order the automount system to work ? Please help me to identify where is my error. Sincerly Xavier I can post all the sections of file you need to help me - 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]
Livesites
Cocoon 2 www.triptravel.net and there is a WAP-enabled version accesible in: www.triptravel.net/index.wml (from your wap device) both are in spanish Thanks !! Lucas Pons Bayarri Etra I+D Valencia, Spain +34 96 313 40 82 - 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]
Re: Jetty and Cocoon2, help?
Thank you very much for all the help and assistens. I got one last question regarding the extra-classpath Why is it required to do the steps in presented in http://marc.theaimsgroup.com/?l=xml-cocoon-usersm=101509865506696w=2 which i interperted as follows. * copy xalan, xerces, xml-apis, batik to a directory * add jars in the above directory to the classpath for jetty * remove xt from the cocoon servlet * uncomment extra-classpath in web.xml and add the path to above jars * do clean build * remove the above mentioned jars from the servlet Once again thanks YOU very much. ;-)akob - Original Message - From: Vadim Gritsenko [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, March 12, 2002 2:51 PM Subject: RE: Jetty and Cocoon2, help? Now it works. You may have issue with redirects, but otherwise it is working. PS If you find a problem why redirect does not work as it should, feel free to send patches. Vadim From: Skansen [mailto:[EMAIL PROTECTED]] see below - Original Message - From: Vadim Gritsenko [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, March 11, 2002 11:59 PM Subject: RE: Jetty and Cocoon2, help? From: Skansen [mailto:[EMAIL PROTECTED]] I've found the empty pipeline and corrected it and instead the following was recivied when accessing localhost:8080/cocoon/ Are you sure you had trailing slash? yes HTTP ERROR: 404 Could not find resource for /welcome RequestURI=/welcome the url was also rewritten as localhost:8080/welcome Updated from the CVS and also got the above respons Any clue for the next step? 1. I would like to see other log files also. The one you sent does not indicate any error. 2. Try http://localhost:8080/cocoon/welcome number 2 above gives the cocoon start page. - 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]
Re: lauching error for cocoon
Title: lauching error for cocoon From the help i got on this list with "Jetty and Coccoon2, help?" I think it has something to do with an empty pipline. Se the answers to "Jetty and Cocoon2,help?" //Jakob - Original Message - From: Cernuto Michele To: '[EMAIL PROTECTED]' Sent: Tuesday, February 05, 2002 3:19 PM Subject: lauching error for cocoon I've got this error launching cocoon. org.apache.cocoon.ProcessingException: Language Exception: org.apache.cocoon.components.language.LanguageException: Could not load class for program 'org\apache\cocoon\www\sitemap_xmap' due to a java.lang.ClassNotFoundException: org.apache.cocoon.www.sitemap_xmap What's that ? Please reply me soon Your Gionny Michele Cernuto 02 61806273 [EMAIL PROTECTED] www.axioma.it
RE: Jetty and Cocoon2, help?
From: Skansen [mailto:[EMAIL PROTECTED]] Thank you very much for all the help and assistens. I got one last question regarding the extra-classpath Why is it required to do the steps in presented in In two words: classloading issues. More detailed answer: AFAIU, some servlet engine (newer ones) prevent webapp from loading some xml classes in the webapp's classloader but forces to use classes loaded by the servlet engine; this causes ClassCastException. http://marc.theaimsgroup.com/?l=xml-cocoon-usersm=101509865506696w=2 which i interperted as follows. * copy xalan, xerces, xml-apis, batik to a directory * add jars in the above directory to the classpath for jetty * remove xt from the cocoon servlet * uncomment extra-classpath in web.xml and add the path to above jars Java compiler has to know were the classes are on the hard drive. * do clean build * remove the above mentioned jars from the servlet They are not needed anymore because of extra-classpath. Vadim Once again thanks YOU very much. ;-)akob - Original Message - From: Vadim Gritsenko [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, March 12, 2002 2:51 PM Subject: RE: Jetty and Cocoon2, help? Now it works. You may have issue with redirects, but otherwise it is working. PS If you find a problem why redirect does not work as it should, feel free to send patches. Vadim From: Skansen [mailto:[EMAIL PROTECTED]] see below - Original Message - From: Vadim Gritsenko [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, March 11, 2002 11:59 PM Subject: RE: Jetty and Cocoon2, help? From: Skansen [mailto:[EMAIL PROTECTED]] I've found the empty pipeline and corrected it and instead the following was recivied when accessing localhost:8080/cocoon/ Are you sure you had trailing slash? yes HTTP ERROR: 404 Could not find resource for /welcome RequestURI=/welcome the url was also rewritten as localhost:8080/welcome Updated from the CVS and also got the above respons Any clue for the next step? 1. I would like to see other log files also. The one you sent does not indicate any error. 2. Try http://localhost:8080/cocoon/welcome number 2 above gives the cocoon start page. - 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]
XMLTransformer without XML declaration?
I'm using Cocoon to output ASX (Windows Media playlists) content, but since it's a wonderful Microsoft product, it's XML formatted, but if you include an XML declaration, it doesn't work. Can I use the XMLTransformer, but without the xml declaration it adds (i.e. is it configurable?) or am I stuck faking it out with the TextTransformer? - 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]
PS: XMLTransformer without XML declaration?
Sorry, that would be the TextSerializer and XMLSerializer... On Tuesday, March 12, 2002, at 03:12 PM, Noah Mittman wrote: I'm using Cocoon to output ASX (Windows Media playlists) content, but since it's a wonderful Microsoft product, it's XML formatted, but if you include an XML declaration, it doesn't work. Can I use the XMLTransformer, but without the xml declaration it adds (i.e. is it configurable?) or am I stuck faking it out with the TextTransformer? - 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]
esql in a logicsheet problem
Aloha Cocooners, I'm having a problem using esql in a logic sheet. Please keep in mind I'm using Cocoon 1.82 so cocoon 2.x solutions won't help :( Here's the logicsheet ?xml version=1.0? xsl:stylesheet xmlns:xsl=http://www.w3.org/1999/XSL/Transform; xmlns:xsp=http://www.apache.org/1999/XSP/Core; xmlns:esql=http://apache.org/cocoon/SQL/v2; xmlns:xspdoc=http://apache.org/cocoon/XSPDoc/v1; xmlns:fourc=http://foo.4charity.com/fourc; version=1.0 !-- This template copies the root elements for processing by -- !-- other logicsheets as necessary. Also, various class-level -- !-- code and package imports may be done here. -- xsl:template match=xsp:page xsl:copy xsl:apply-templates select=@*/ xsl:apply-templates/ /xsl:copy /xsl:template !-- This template defines the tag greeting:hello-world -- xsl:template match=fourc:test !-- more complex XSLT is possible here as well -- xsp:logic String msg = Poop Really Smells!; /xsp:logic greetingxsp:exprmsg/xsp:expr/greeting /xsl:template xsl:template match=fourc:categories1 xsp:logic CategoriesThis Worked/Categories /xsp:logic /xsl:template xsl:template match=fourc:categories !-- more complex XSLT is possible here as well -- xsp:logic xsp:content !-- I've tried not using the content tags too-- Categories esql:connection esql:pooldefault/esql:pool esql:execute-query esql:queryselect * from AWARD_CATEGORY/esql:query esql:results esql:row-results Category CATEGORY_ID esql:get-int column=CATEGORY_ID/ /CATEGORY_ID DESCRIPTION esql:get-string column=DESCRIPTION/ /DESCRIPTION /Category /esql:row-results esql:no-results userNo Results/user /esql:no-results /esql:results /esql:execute-query /esql:connection /Categories /xsp:content /xsp:logic /xsl:template xsl:template match=@*|node() priority=-1 xsl:copy xsl:apply-templates select=@*|node()/ /xsl:copy /xsl:template /xsl:stylesheet - both fourc:test/ and fourc:categories1/ work fine, however fourc:categories/ just returns the raw esql xml and never hits the database. Any ideas out there?? --- here's the xml ?xml version=1.0? ?cocoon-process type=xsp? ?xml-logicsheet href=logicsheet.categories.xsl? xsp:page xmlns:xsp=http://www.apache.org/1999/XSP/Core; xmlns:fourc=http://foo.4charity.com/fourc; page fourc:categories/ /page /xsp:page Also a WORKING XML file that does the same query as I want to do in the logicsheet. ?xml version=1.0? ?cocoon-process type=xsp? xsp:page xmlns:xsp=http://www.apache.org/1999/XSP/Core; xmlns:esql=http://apache.org/cocoon/SQL/v2; Categories esql:connection esql:pooldefault/esql:pool esql:execute-query esql:queryselect * from AWARD_CATEGORY/esql:query esql:results esql:row-results Category CATEGORY_ID esql:get-int column=CATEGORY_ID/ /CATEGORY_ID DESCRIPTION esql:get-string column=DESCRIPTION/ /DESCRIPTION /Category /esql:row-results esql:no-results userNo Results/user /esql:no-results /esql:results /esql:execute-query /esql:connection /Categories /xsp:page HELP!!! Mahalo! Sunday, March 10, 2002, 11:17:25 PM, you wrote: SB Yes I taje a look at this address. I
Apache and mod_jk (could not get mod_webapp working)
Hi folks, I like to share a couple of experiences, which I learned the hard way and I learned them, while trying to get Cocoon working through Apache. They might have been obvious to someone else, but anyway. First I tried mod_webapp. I configured it like this IfModule mod_webapp.c Include /etc/httpd/mod_webapp.conf /IfModule while mod_webapp.conf contained the actual directives. The result was, that it didn't work. Looking at /server-info I saw this: Module Name: mod_webapp.c Content handlers: webapp-handler Configuration Phase Participation: Child Init, Child Exit Request Phase Participation: Translate Path Module Directives: WebAppInfo - WebAppConnection - [optional parameter] WebAppDeploy - Current Configuration: No configuration visible. I think here is an issue with the include mechanism. Then I configured it like this: IfModule mod_webapp.c WebAppConnection conn warp localhost:8008 WebAppDeploy examples conn /examples WebAppDeploy cocoonconn /cocoon WebAppDeploy scarabconn /scarab WebAppInfo /webapp-info /IfModule This showed the correct configuration in /server-info, but when I tried /cocoon/welcome, after some period of burning cpu cycles, I received an error message about some internal error (I used cocoon CVS shnapshot from Tuesday). So, this didn't work. Perhaps someone else has other experiences. Then I moved to mod_jk. I had used mod_jk with tomcat 3.2 and cocoon 1.8.x. So, I had a configuration left apart from having moved on to tomcat 4.0.1. First lesson learned: You need a workers.properties file for mod_jk. However tomcat 4.0 does not include one. First I though: Ah, simply set this to /dev/null, it's not needed, but this didn't work. mod_jk needs the workers.properties to configure the ajp ports correctly. Using one from tomcat 3.2 made it work. Second lesson learned: Remove an Alias for cocoon, if you have one left in your httpd.conf. My previous configuration from cocoon 1.8.x contained a line like Alias /cocoon /usr/local/httpd/tomcat/webapps/cocoon Selecting /cocoon/hello.html from the cocoon welcome page would produce a 404 error, since apache tries to satisfy this request, instead of passing it to tomcat. Hope, this helps someone else. -- Regards Frank Ridderbusch - 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]
Re: cocooncenter.de is now cocooncenter.org
Hi Konstantin, Hi! I have a small tutorial on logicsheet creation. It consists of 2 simple logicsheets and step-by-step instructions on how to create and install them in C2. Feel free to place it on your site if you think it'll be useful. Thank you very much! I just published the tutorial. Greetings, Andreas Regards, Konstantin Piroumian - Original Message - From: Andreas Hartmann To: [EMAIL PROTECTED] Sent: Tuesday, March 12, 2002 3:09 PM Subject: cocooncenter.de is now cocooncenter.org Hi Cocoon users! First, I want to thank you for the positive feedback and suggestions that helped meto improve the cocooncenter site. Of course, special thanks for the contributions! I decided to "upgrade" to an international domain, looking forward to see how the site will evolve during the next time. Of course, cocooncenter.de will still be available. Greetings, Andreas
How to get data into sitemap-params (for use with XIndice)?????
Hello and I know I posted a similar question before. Does anyone have a clue or a good idea or anything about how to get information out of the SAX-Events from the pipeline? I need to choose the pipeline based upon the xml-data querried from an XMLDB. collection:results ressources=0/ or collection:results ressources=25. So how can I get the value of ressources into a sitemap-param? Thanks for ANY help or idea Axel - 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]
cocoon and xindice
Hello! O.K., my combination works, I can query and update XIndice, but how did anybody solve the problem of user-authentication with the user-data (username, password) saved in XIndice? Thanks for some clues Axel - 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]
questions about a few pipeline options
Looking at the sunSpot demo, I see this pipeline: map:pipeline internal-only=true I've done some poking around and I cant figure out what the 'internal-only' option is all aboutcan someone clue me in (either to what it means or to the M I am supposed to RTF)? TIA, -Tom - 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]