Re: Error when deploying own generator
Erwin, have you tried to put your classes in $TOMCAT_HOME/webapps/cocoon/WEB-INF/classes That's the place where they should be. Hth, Christian On Thu, Mar 28, 2002 at 01:35:15PM +0100, Erwin wrote: Hi, I have a program that dynamically generates XML content and to integrate it with Cocoon 2 I have tried to write my own generator. But every time I try to test it, I get a java.lang.NoClassDefFoundError: org/apache/cocoon/generation/AbstractGenerator I guess it has something to do with an incorrect classpath, but I have tried a lot and haven't been able to solve it. big-snip/ - 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 finally running
On Thu, Dec 20, 2001 at 09:30:40AM +0100, Andreas Rittershofer wrote: I deleted the whole eteks stuff and am now using Xvfb: cocoon runs fine! But when I want to try the SVG example. Xvfb complains about some font and then tomcat dies. What's this? Hi Andreas, no offence, but your message is a little terse. If you provided a little more information (i.e. log snippet, stack trace) may be one can come up with some help. Cheers, Christian - 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: Question about XSLT parameters
Hi Bartomeu, create this: xsl:param name=myparam/ as a top level element in your stylesheet. You can then reference it like this: xsl:value-of select=$myparam/ Hth, Christian On Thu, Dec 20, 2001 at 11:02:38AM +0100, Bartomeu Adrover wrote: I'm working in web development and I'm traying to design our web site with xml and Cocoon2. With the cocoon 2 is possible pass to an XSLT one parameter usin this tag parameter name=myparamvalue=myvalue/ in a pipeline. This parameter is the name of server, in my case http://ensiola.uib.es:8080/. I need this information in the xslt for generare the url to the images with the fo generator. How can I recover this value in xlst? Or can I pass to all pipelines this information one time? Thank you. Bye - 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] The sitemap handler's sitemap is not available
On Wed, Dec 12, 2001 at 02:40:56PM +0100, Christian Joelly wrote: snip/ 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 DEBUG 73680 [cocoon ] (Thread-4): Beginning sitemap regeneration DEBUG 73680 [cocoon ] (Thread-4): Making URL from file:/var/lib/tomcat/webapps/cocoon2/sitemap.xmap DEBUG 73684 [cocoon ] (Thread-24): The instance was not accessible, creating it now. DEBUG 73684 [cocoon ] (Thread-24): ComponentFactory creating new instance of org.apache.cocoon.components.language.markup.sitemap.SitemapMarkupLanguage. ERROR 73685 [cocoon ] (Thread-24): Error compiling sitemap java.lang.NoClassDefFoundError: javax/xml/transform/TransformerConfigurationException at org.apache.cocoon.components.language.markup.AbstractMarkupLanguage.createLogicsheet(AbstractMarkupLanguage.java:169) at org.apache.cocoon.components.language.markup.AbstractMarkupLanguage.configure(AbstractMarkupLanguage.java:117) Chris, have you build the Cocoon webapp with the -Dinclude.webapp.libs=true parameter? If so, are all necessary *.jar file in $TOMCAT_HOME/webapps/cocoon/WEB-INF/lib ? Because form the error message it looks like you're missing xml-apis.jar. Hth, Christian - 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: Setup Cocoon in Win2k Box stuck...!
Hi, take a look at all the available log files. For Tomcat logs look at $TOMCAT_HOME/logs For Cocoon related log files take a look under $TOMCAT_HOME/webapps/cocoon/WEB-INF/logs Hth, Christian On Mon, Dec 03, 2001 at 05:51:06PM -0800, low kok leong wrote: i try to follow the instruction given by building the war file the restart my tomcat 4.0.1 but when i access the http://localhost:8080/cocoon it give me this... Apache Tomcat/4.0.1 - HTTP Status 503 - Servlet Cocoon2 is currently unavailable type Status report message Servlet Cocoon2 is currently unavailable description The requested service (Servlet Cocoon2 is currently unavailable) is not currently available. So i am tring to figure it out what is wrong...i check thru the document...but none say this error... can anyone help...? = Low Kok Leong Software Engineer Multimedia Prospect Sdn Bhd 012-4257312 __ Do You Yahoo!? Buy the perfect holiday gifts at Yahoo! Shopping. http://shopping.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] - 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: Help needed Passing Parameters
Phil, I would change your XSP to this: xsp:page language=java xmlns:xsp=http://apache.org/xsp; xmlns:xsp-request=http://apache.org/xsp/request/2.0; xmlns:xsp-response=http://apache.org/xsp/response/2.0; xsp:logic String person = null; /xsp:logic html titleThe favorite colour page - Yay/title xsp:logic person = xsp-request:get-parameter name=person/; /xsp:logic xsp:exprperson/xsp:expr has a favorite colour! It is person-colourxsp:exprperson/xsp:expr/person-colour /html /xsp:page And then in your stylesheet do this: xsl:template match=person-colour !-- Select the person, somehow -- xsl:variable name=selectedPerson select=document('people.xml',.)/people/person[name='current()']/ !-- return their favorite colour, somehow -- xsl:value-of select=$selectedPerson/favoriteColour /xsl:template This is untested (of course ;-) Hth, Christian On Thu, Oct 25, 2001 at 09:57:26AM +1000, Phil Blake wrote: I am missing something when it comes to getting and passing request arguments. I've looked at the cocoon examples, and although my test example appears to match the cocoon one in every way there is obviously something fundamental missing. I think I'm pretty close. :) If anyone could help me get past this misunderstanding it would be much appreciated. My example scenario allows the user to enter a URL like the following: http://hostname/example/colour.html?person=Phil%20Blake The result would be a HTML page with the person's favorite colour. In the sitemap I added a generic matcher that matches anything .html and returns the corresponding xsp. I figured (as opposed to read anywhere in documentation) that I needed to include the use-request-parameters and use-browser-capabilities-db parameters - I don't know why I want them, just that they appeared in the cocoon sitemap. !-- Match *.html and map to *.xsp -- map:match pattern=**.html map:generate type=serverpages src={1}.xsp/ map:transform src=Example.xsl map:parameter name=use-request-parameters value=true/ map:parameter name=use-browser-capabilities-db value=true/ /map:transform map:serialize/ /map:match The requested xsp page looks like this. (colour.xsp) xsp:page language=java xmlns:xsp=http://apache.org/xsp; xmlns:xsp-request=http://apache.org/xsp/request/2.0; xmlns:xsp-response=http://apache.org/xsp/response/2.0; xsp:logic String person = null; /xsp:logic html titleThe favorite colour page - Yay/title xsp:logic person = xsp-request:get-parameter name=person/; /xsp:logic xsp:exprperson/xsp:expr has a favorite colour! It is person-colour/ /html /xsp:page I then have a half/broken stylesheet that is supposed to select the person named in the URL person path arg. Then return their favorite colour. However, as you'll notice, I can't see how to get from the first line, to the second one. I assume the variable selectedPerson contains a person node. (I don't know 'cause I can't make it work). However, I have no idea how to use that variable to retrieve the colour. XSL Stylesheet: xsl:template match=person-colour !-- Select the person, somehow -- xsl:variable name=selectedPerson select=document('people.xml',.)/people/person[name='$person']/ !-- return their favorite colour, somehow -- xsl:value-of select=$selectedPerson/favoriteColour /xsl:template XML External Content (people.xml) people person namePhil/name favoriteColourblue/favoriteColour /person person nameArthur/name favoriteColouryellow/favoriteColour /person /people Thanks for your help. Have fun, Phil - 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]