Re: Error when deploying own generator

2002-03-28 Thread Christian Schmitt

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.
> 



-
Please check that your question has not already been answered in the
FAQ before posting. 

To unsubscribe, e-mail: <[EMAIL PROTECTED]>
For additional commands, e-mail: <[EMAIL PROTECTED]>




Re: Question about XSLT parameters

2001-12-20 Thread Christian Schmitt

Hi Bartomeu,
create this:

as a top level element in your stylesheet.
You can then reference it like this:


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
>  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. 

To unsubscribe, e-mail: <[EMAIL PROTECTED]>
For additional commands, e-mail: <[EMAIL PROTECTED]>




Re: cocoon finally running

2001-12-20 Thread Christian Schmitt

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. 

To unsubscribe, e-mail: <[EMAIL PROTECTED]>
For additional commands, e-mail: <[EMAIL PROTECTED]>




Re: [C2] The sitemap handler's sitemap is not available

2001-12-12 Thread Christian Schmitt

On Wed, Dec 12, 2001 at 02:40:56PM +0100, Christian Joelly wrote:



> 
> 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. 

To unsubscribe, e-mail: <[EMAIL PROTECTED]>
For additional commands, e-mail: <[EMAIL PROTECTED]>




Re: Setup Cocoon in Win2k Box stuck...!

2001-12-04 Thread Christian Schmitt

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. 
> 
> 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. 

To unsubscribe, e-mail: <[EMAIL PROTECTED]>
For additional commands, e-mail: <[EMAIL PROTECTED]>




Re: Help needed Passing Parameters

2001-10-25 Thread Christian Schmitt

Phil,
I would change your XSP to this:
http://apache.org/xsp";
   xmlns:xsp-request="http://apache.org/xsp/request/2.0";
   xmlns:xsp-response="http://apache.org/xsp/response/2.0";>
 
 String person = null;
 

The favorite colour page - Yay"

person = ;
 
 person has a favorite colour! It is 
person



And then in your stylesheet do this:








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.
>   
>   
>   
>   
>   name="use-request-parameters" value="true"/>
>   name="use-browser-capabilities-db" value="true"/>
>   
>   
>   
> 
> The requested xsp page looks like this. (colour.xsp)
> 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";>
>  
>  String person = null;
>  
>   
>   The favorite colour page - Yay"
>   
>   person = ;
>
>person has a favorite colour! It is 
> 
>   
> 
> 
> 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:
> 
>   
>select="document('people.xml',.)/people/person[name='$person']"/>
>   
>   
> 
> 
> 
> 
> XML External Content (people.xml)
> 
>   
>   Phil
>   blue
>   
>   
>   Arthur
>   yellow
>   
> 
> 
> 
> Thanks for your help. Have fun,
> 
> Phil
> 
> 
> -
> Please check that your question has not already been answered in the
> FAQ before posting. 
> 
> 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. 

To unsubscribe, e-mail: <[EMAIL PROTECTED]>
For additional commands, e-mail: <[EMAIL PROTECTED]>




Re: Action vs. Request

2001-09-17 Thread Christian Schmitt

Hi Tobias,
OK, I see. But I believe you're mixing up request attributes and
request parameters.
If you do something like: request.setAttribute("MyAttribute", whatever);
you can't do: request.getParameter("MyAttribute");


Hth,
Christian

On Mon, Sep 17, 2001 at 04:29:44PM +0200, Tobias Luikard wrote:
> Hi,
> 
> this isn't the problem.
> 
> In the Action I try to set XMLString as seen. But when I try to read it in the XSP 
>with the following statement it's empty (I get
> "EGAL" as result):
>
> 
> When I call the pipeline in my Browser like:
> 
> http://localhost:8080/cocoon/XMLDB_EVAL/XMLTest.html?TestString=ABCDEFG
> 
> The ABCDEFG apperars in the XSP Site (in the response in the Web-Browser) but the 
>System.out.println only prints "null".
> 
> So it seems there are different independent request objects.
> 
> Any other hint?
> 
> Tobias
> 
> 
> Christian Schmitt wrote:
> 
> > Hi,
> > in your Action source code you are doing:
> > request.setAttribute("XMLString", XMLString);
> >   ^
> > but then
> > System.out.println(request.getAttribute("TestString"));
> >  ^^
> > May be that's the problem?!
> >
> > Hth,
> > Christian
> >
> > On Mon, Sep 17, 2001 at 11:59:38AM +0200, Tobias Luikard wrote:
> > > Hi all,
> > >
> > > its me again.
> > >
> > > I tried to write a Action which adds a Attibute to the request. But
> > > somehow a different request is used. When I try to access a request
> > > attibute its "null". When I add a attibute, its null in the XSP Site...
> > >
> > > Has anyone a hint?
> > >
> > > Thanks
> > >
> > > By
> > >
> > > Tobi
> > >
> > > P.S. I added my sitemap.xmap and the actor
> >
> > > 
> > > 
> > > http://apache.org/cocoon/sitemap/1.0";>
> > >   
> > >   
> > >   
> > >   src="org.apache.cocoon.generation.FileGenerator"/>
> > >   src="org.apache.cocoon.generation.ServerPagesGenerator"/>
> > >   
> > >   
> > >   src="org.apache.cocoon.transformation.TraxTransformer">
> > >   true
> > >   
>false
> > >   
>false
> > >   
> > >   
> > >   
> > >   src="org.apache.cocoon.reading.ResourceReader"/>
> > >   
> > >   
> > >   src="org.apache.cocoon.serialization.LinkSerializer"/>
> > >   src="org.apache.cocoon.serialization.XMLSerializer"/>
> > >   src="org.apache.cocoon.serialization.HTMLSerializer"/>
> > >   
> > >   
> > >   
> > >   src="org.apache.cocoon.matching.WildcardURIMatcherFactory"/>
> > >   
> > >   
> > >   src="de.exxcellent.cocoon.acting.XMLActionTest"/>
> > >   
> > >   
> > >   
> > >   
> > >   
> > >   
> > >   
> > >   
> > >   
> > >   
> > >   
> > >   
> > >   
> > >   
> > >   
> > >   src="XMLTest.xsp"/>
> > >   
> > >   
> > >   
> > >   
> > >   
> > > 
> > > 
> > >
> >
> > > -
> > > 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: Action vs. Request

2001-09-17 Thread Christian Schmitt

Hi,
in your Action source code you are doing:
request.setAttribute("XMLString", XMLString);
  ^
but then
System.out.println(request.getAttribute("TestString"));
 ^^
May be that's the problem?!

Hth,
Christian


On Mon, Sep 17, 2001 at 11:59:38AM +0200, Tobias Luikard wrote:
> Hi all,
> 
> its me again.
> 
> I tried to write a Action which adds a Attibute to the request. But
> somehow a different request is used. When I try to access a request
> attibute its "null". When I add a attibute, its null in the XSP Site...
> 
> Has anyone a hint?
> 
> Thanks
> 
> By
> 
> Tobi
> 
> P.S. I added my sitemap.xmap and the actor


> 
> 
> http://apache.org/cocoon/sitemap/1.0";>
>   
>   
>   
>   src="org.apache.cocoon.generation.FileGenerator"/>
>   src="org.apache.cocoon.generation.ServerPagesGenerator"/>
>   
>   
>   src="org.apache.cocoon.transformation.TraxTransformer">
>   true
>   false
>   
>false
>   
>   
>   
>   src="org.apache.cocoon.reading.ResourceReader"/>
>   
>   
>   src="org.apache.cocoon.serialization.LinkSerializer"/>
>   src="org.apache.cocoon.serialization.XMLSerializer"/>
>   src="org.apache.cocoon.serialization.HTMLSerializer"/>
>   
>   
>   
>   src="org.apache.cocoon.matching.WildcardURIMatcherFactory"/>
>   
>   
>   src="de.exxcellent.cocoon.acting.XMLActionTest"/>
>   
>   
>   
>   
>   
>   
>   
>   
>   
>   
>   
>   
>   
>   
>   
>   
>   
>   
>   
>   
>   
> 
> 
> 

> -
> Please check that your question has not already been answered in the
> FAQ before posting. 
> 
> 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. 

To unsubscribe, e-mail: <[EMAIL PROTECTED]>
For additional commands, e-mail: <[EMAIL PROTECTED]>