Re: Could you help me find the article?

2002-06-12 Thread Sebastien SACARD

Maybe you're talking about the IBM tutorials you can found here :
http://www-105.ibm.com/developerworks/education.nsf/dw/xml-onlinecourse-bynewest?OpenDocument&Count=500
There is 2 or 3 articles about how to use cocoon.

Robert Nicholson wrote:

>I was wondering if somebody could help me I've lost the reference to a
>cocoon article that was posted last week. I believe it was a two-three page
>article with an overview of the architecture and an example including
>pipeline/xsp etc with Cocoon. Anybody remember a reference like this
>recently?
>
>
>-
>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: Cannot get Cocoon going with Tomcat 4.0.3

2002-06-12 Thread leo leonid




On Thursday, June 13, 2002, at 12:14  Uhr, Robert Nicholson wrote:

> Are the instructions in Installing Apache Cocoon document sufficent to 
> get
> it working? I've done what's described and it's not working for me.

consider using Tomcat 4.0.4 or 4.1.3.
thus instructions reduce to putting cocoon.war in webapps dir.
(I use RH7.2, JDK1.31)
/Leo


-
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: Generating XML with URLs that use Sessions

2002-06-12 Thread Vadim Gritsenko




Vadim

--
Resistance is futile. 

> -Original Message-
> From: Holden Robbins [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, June 12, 2002 10:14 PM
> To: [EMAIL PROTECTED]
> Subject: Generating XML with URLs that use Sessions
> 
> 
> Hi,
> 
> I've recently come across a major stumbling block in converting my
servlet
> based site to use Cocoon.  I'm hoping to use cocoon instead of having
each
> individual servlet having the XSL transformations hard coded and doing
it
> themselves.
> 
> The problem is that the servlets use session variables and the
JSessionId
> cookie is lost when the URL of the servlet is called through cocoon
file
> generator.
> 
>   0/---\   /---\
>  /|\   JSessionID  |   |  nada |   |
>   |->  |   |  -->  |   |
>  / \   \---/   \---/
> 
> Client Cocoon Servlets
> File Generator
> 
> 
> I don't see any way to set headers or get headers from cocoon
generators.
> Which means I can't grab the JSessionId from the header in the
response
> returned by the servlet and I can't set the JSessionId in the header
for
> the request to the servlet.
> 
> Is there an easy solution to this problem that I'm missing?

1. Have your servlets deployed together with Cocoon in one webapp

2.
...

  http://host:port/cocoon/old-servlet;jsessionid={session-id}"/>

...

should work.


Vadim


> 
> My only choice seem to be re-write each of the servlets as a cocoon
> generator which I'm not sure I want to do.
> 
> Thanks,
> -Holden
> 


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




Generating XML with URLs that use Sessions

2002-06-12 Thread Holden Robbins


Hi, 

I've recently come across a major stumbling block in converting my servlet
based site to use Cocoon.  I'm hoping to use cocoon instead of having each
individual servlet having the XSL transformations hard coded and doing it
themselves. 

The problem is that the servlets use session variables and the JSessionId
cookie is lost when the URL of the servlet is called through cocoon file
generator. 

  0/---\   /---\
 /|\   JSessionID  |   |  nada |   |
  |->  |   |  -->  |   |
 / \   \---/   \---/

Client Cocoon Servlets
File Generator


I don't see any way to set headers or get headers from cocoon generators. 
Which means I can't grab the JSessionId from the header in the response
returned by the servlet and I can't set the JSessionId in the header for
the request to the servlet. 

Is there an easy solution to this problem that I'm missing?  

My only choice seem to be re-write each of the servlets as a cocoon
generator which I'm not sure I want to do. 

Thanks,
-Holden


-
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: XMLForms. classpath not found

2002-06-12 Thread Ivelin Ivanov


Good point Ken.

This is true. validation and xmlform were moved under components.

WizardAction is fixed but I haven't noticed that the code in the HOWTO 
is not.

My fault that I didn't notify Heidi.


Ivelin


Kenny Chow wrote:
> To whom it may concern,
> 
> The original 'imports' I was using were copied from
> HowtoWizardAction.java on the "howto" page 
> (http://xml.apache.org/cocoon/howto/xmlform-wizard/howto-xmlform-wizard-4.html)
> which is incorrect. Only the 'imports'  of
> WizardAction is written correctly in the 2.1-dev. The
> following is correct (copied from WizardAction.java).
> The "components" string was missing. Thanks. 
> 
> // Schematron classes
> import
> org.apache.cocoon.components.validation.SchemaFactory;
> import org.apache.cocoon.components.validation.Schema;
> import
> org.apache.cocoon.components.validation.Validator;
> import
> org.apache.cocoon.components.validation.Violation;
> 
> // Cocoon XMLForm
> import org.apache.cocoon.acting.AbstractXMLFormAction;
> import org.apache.cocoon.components.xmlform.Form;
> import
> org.apache.cocoon.components.xmlform.FormListener;
> 
> 
> --- Kenny Chow <[EMAIL PROTECTED]> wrote:
> 
>>Seems XMLForm is getting concern from people. Being
>>one of them, I have written a set of XMLForms for
>>interest; but I fail compiling my Action (written
>>the
>>same way as WizardAction) it says it can't find the 
>>org.apache.cocoon.validation.* and xmlform.*
>>packages.
>> :( The cocoon-2.1-dev.jar doesn't have it. Where
>>could I grab them?  
>>
>>--- Piroumian Konstantin <[EMAIL PROTECTED]>
>>wrote:
>>
From: Yromem.com MailingList
>>>
>>>[mailto:[EMAIL PROTECTED]] 
>>>
What is difficult to me, is to write java code
>>>
>>>juste to one form.
>>>
when i read the xmlform doc (cocoon), i see that
>>>
>>>even the simple form 
>>>
need a java code to control flow.
so i was dreaming about a simple version of
>>>
>>>xmlform (cocoon) 
>>>
that a have 
a simple flow control for all simple form.

am i wrong ? can i use the xmlform (cocoon)
>>>
>>>without writing 
>>>
java code to 
validate my form ?
>>>
>>
>>__
>>Do You Yahoo!?
>>Yahoo! - Official partner of 2002 FIFA World Cup
>>http://fifaworldcup.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]>
>>
> 
> 
> __
> Do You Yahoo!?
> Yahoo! - Official partner of 2002 FIFA World Cup
> http://fifaworldcup.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]>
> 
> 



-- 

-= Ivelin =-


-
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: XMLForms. classpath not found

2002-06-12 Thread Ivelin Ivanov

Kenny,


Seems like you are working with an older WizardAction
The latest org.apache.cocoon.samples.xmlform.WizardAction imports
...
// Schematron classes
import org.apache.cocoon.components.validation.SchemaFactory;
import org.apache.cocoon.components.validation.Schema;
import org.apache.cocoon.components.validation.Validator;
import org.apache.cocoon.components.validation.Violation;

// Cocoon Form
import org.apache.cocoon.acting.AbstractXMLFormAction;
import org.apache.cocoon.components.xmlform.Form;
import org.apache.cocoon.components.xmlform.FormListener;
...


Either get the latest code base from anoncvs.
See "How to Establish your Local Repository"
http://xml.apache.org/cocoon/contrib.html

Or download a new snapshot.
http://cvs.apache.org/snapshots/xml-cocoon2/



Ivelin



Kenny Chow wrote:
> Seems XMLForm is getting concern from people. Being
> one of them, I have written a set of XMLForms for
> interest; but I fail compiling my Action (written the
> same way as WizardAction) it says it can't find the 
> org.apache.cocoon.validation.* and xmlform.* packages.
>  :( The cocoon-2.1-dev.jar doesn't have it. Where
> could I grab them?  
> 
> --- Piroumian Konstantin <[EMAIL PROTECTED]>
> wrote:
> 
>>>From: Yromem.com MailingList
>>
>>[mailto:[EMAIL PROTECTED]] 
>>
>>>What is difficult to me, is to write java code
>>
>>juste to one form.
>>
>>>when i read the xmlform doc (cocoon), i see that
>>
>>even the simple form 
>>
>>>need a java code to control flow.
>>>so i was dreaming about a simple version of
>>
>>xmlform (cocoon) 
>>
>>>that a have 
>>>a simple flow control for all simple form.
>>>
>>>am i wrong ? can i use the xmlform (cocoon)
>>
>>without writing 
>>
>>>java code to 
>>>validate my form ?
>>
> 
> 
> __
> Do You Yahoo!?
> Yahoo! - Official partner of 2002 FIFA World Cup
> http://fifaworldcup.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]>
> 
> 



-- 

-= Ivelin =-


-
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: XMLForms. HOWTO bug?

2002-06-12 Thread Ivelin Ivanov

Yromem.com MailingList wrote:
> Ivelin Ivanov wrote:
> 
>>>
>> This will be fine for very simple forms.
>>
>> How would validation errors be accessed?
>> How would branching control be implemented based on the submitted data 
>> (like in the HOWTO example)?
>>
>> I am still qurious what will handle the submitted data if not an Action?
>>
>> I would recommend that Khalid writes a few samples subclassing 
>> AbstractXMLForm action and if he can come up with a couple of commonly 
>> encountered use cases, then he can propose a concrete implementation 
>> which we will consider to add in Cocoon 2.1.
> 
> 
> I am not a java programmer, but i will try that.

Looking forward to it.


> 
> Khalid
> 
>>
>> How does this sound?
>>
>>
>> Ivelin
>>
> 
> 
> 
> -
> 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]>
> 
> 



-- 

-= Ivelin =-


-
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: XMLForms. HOWTO bug?

2002-06-12 Thread Ivelin Ivanov


Slow is infinitely faster than still.

Looking forward to your contribution.

Ivelin



Andrew C. Oliver wrote:
> As soon as I figure out how to use it I plan to :-)
> 
> I've started my rewrite of this site: www.bringmethis.com using Cocoon 
> (and hence XMLForm).   In the process I'll be happy to contribute a 
> hello XMLForm example once I actually figure out how to get it working. 
> I'm a little slower than the rest of ya.
> 
> -Andy
> 
> Ivelin Ivanov wrote:
> 
>>
>> Interested to write one ? ;)
>>
>>
>> Andrew C. Oliver wrote:
>>
>>> Yromem.com MailingList wrote:
>>>
 Hi,

 do you plan to write a simple way to use XMLForm when we need only 
 one Form :
with no need to write a javabean (or javacode)
 I trie to understand all the XMLForm, but it is difficult to me. 
 (the java part)

 Khalid.
>>>
>>>
>>>
>>>
>>>
>>> +1 -- We need a "Hello XMLForm" example.
>>>


 Ivelin Ivanov wrote:

>
> UserBean.java:
>   private Node system;
>
> This an attribute which is of type org.w3c.dom.Node
>
> This is used in the FeedBack Wiazard demo to show how JavaBeans can 
> be mixed with dom nodes. It is referenced on the page where you 
> select Operating System, RAM, App server, etc.
>
> If you're not going to need DOM nodes in your Form model, you can 
> ignore   this attribute. Just delete it.
>
> I am not sure why it is in the HowTo though. Don't think it is 
> necessary. Heidi?
>
>
> Ivelin
>
>>



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



-- 

-= Ivelin =-


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




Cannot get Cocoon going with Tomcat 4.0.3

2002-06-12 Thread Robert Nicholson

Are the instructions in Installing Apache Cocoon document sufficent to get
it working? I've done what's described and it's not working for me.

I get the following in the browser

type fatal

message SAX2 driver class org.apache.xerces.parsers.SAXParser does not
implement XMLReader

description java.lang.ClassCastException:
org.apache.xerces.parsers.StandardParserConfiguration

sender org.apache.cocoon.servlet.CocoonServlet

source Cocoon servlet

stack-trace

java.lang.ClassCastException:
org.apache.xerces.parsers.StandardParserConfiguration
at org.xml.sax.helpers.XMLReaderFactory.createXMLReader(Unknown Source)
at org.xml.sax.helpers.XMLReaderFactory.createXMLReader(Unknown Source)
at 
org.apache.cocoon.components.language.markup.AbstractMarkupLanguage.generate
Code(AbstractMarkupLanguage.java:377)
at 
org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.generat
eResource(ProgramGeneratorImpl.java:365)
at 
org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.createR
esource(ProgramGeneratorImpl.java:328)
at 
org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.load(Pr
ogramGeneratorImpl.java:291)
at org.apache.cocoon.sitemap.Handler.run(Handler.java:270)
at java.lang.Thread.run(Thread.java:496)


request-uri

/cocoon/


path-info


-
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: set-content-length for FOP Serializer

2002-06-12 Thread Argyn Kuketayev

So, it doesn't cure IE and PDF plug-in problem?



> -Original Message-
> From: Vadim Gritsenko [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, June 12, 2002 5:52 PM
> To: [EMAIL PROTECTED]
> Subject: RE: set-content-length for FOP Serializer
> 
> 
> > From: Argyn Kuketayev [mailto:[EMAIL PROTECTED]]
> > 
> > It was announced that c2.0.2 has new parameter for FOPSerializer
> > "set-content-length".
> > 
> > Where to set it and does it deal with IE issue of not 
> showing properly
> PDF
> > files?
>  
> According to FOPSerializer.java (2.0.3-dev) it's true by default:
> 
> this.setContentLength =
> conf.getChild("set-content-length").getValueAsBoolean(true);
> 
> 
> Vadim
> 
> 
> > Argyn
> 
> 
> -
> 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: set-content-length for FOP Serializer

2002-06-12 Thread Vadim Gritsenko

> From: Argyn Kuketayev [mailto:[EMAIL PROTECTED]]
> 
> It was announced that c2.0.2 has new parameter for FOPSerializer
> "set-content-length".
> 
> Where to set it and does it deal with IE issue of not showing properly
PDF
> files?
 
According to FOPSerializer.java (2.0.3-dev) it's true by default:

this.setContentLength =
conf.getChild("set-content-length").getValueAsBoolean(true);


Vadim


> Argyn


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




set-content-length for FOP Serializer

2002-06-12 Thread Argyn Kuketayev

It was announced that c2.0.2 has new parameter for FOPSerializer
"set-content-length".

Where to set it and does it deal with IE issue of not showing properly PDF
files?

Argyn

-
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] XSLT transform error messages

2002-06-12 Thread Nicola Ken Barozzi


Christopher Painter-Wakefield wrote:
> A request for the C2 developers:
> 
> *Please* find a way to send back a reasonable error message when there is a
> problem with a stylesheet.  The generic "Exception in creating Transform
> Handler" (below) is so unhelpful.  It doesn't give any clue as to the
> nature of the problem, which is often subtle.  Surely the XSLT transform
> classes have better error reporting that can be passed on?

What version of Cocoon are you using?
Presently, if all goes as intended, you should get the correct 
exception, and also the row and column of the problem.

Please send me a testcase that fails on latest 2.0.3 CVS branch and I'll 
personally look into it.

-- 
Nicola Ken Barozzi   [EMAIL PROTECTED]
 - verba volant, scripta manent -
(discussions get forgotten, just code remains)
-


-
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: NoValidConnectionException: No valid JdbcConnection classavailable

2002-06-12 Thread Brian P. Millett

On Wed, 2002-06-12 at 13:29, Gerhard Hipfinger wrote:
> Hi!
> 
> I use the current cvs snapshot, and it is working with mm.mysql jdbc 
> driver and jdk 1.4. It seems the new excalibur version is already in 
> 2.1-dev.

Thanks, that did it.  Much easier compiling cocoon-2.1-dev than the
Excalibur src.
-- 
Brian Millett
Enterprise Consulting Group   "Shifts in paradigms
(314) 205-9030   often cause nose bleeds."
[EMAIL PROTECTED]   Greg Glenn


-
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: Redirect in XSP

2002-06-12 Thread Vadim Gritsenko

> From: Matthew Hailstone [mailto:[EMAIL PROTECTED]]
> 
> > > From: Matthew
> > >
> Scenario:
>   Homepage XSP generates an initial form.
>   Parameters are set.
>   I would like to then access my sub-sitemap URI space depending
> on the parameter values.
>   Ex.
>   eval/first/first if parameter value is 1
>   eval/second/second if parater value is 2
> 
>   Is this possible by doing the following?

Yes, it's possible.

What Cocoon version do you use? Update either cocoon or just sitemap.xsl
with the latest one from the cvs, cocoon_2_0_3_branch.

Vadim

...

> Here is my latest try:
> 
> 
>   ...
>   
> 
> 
>   
> 
> 
>   
> 
> 
>   
> 
> 
>   
> 
>   
> 
>   
> 
> 
>   
>   
>   
> 
> 
>   
>   ...
> 
> 
> I get the following compile error:
> 
> org.apache.cocoon.ProcessingException: Language Exception:
> org.apache.cocoon.components.language.LanguageException: Error
compiling
> sitemap_xmap:
> Line 440, column 6:  Undefined variable: param
> Line 441, column 6:  Undefined variable or class name: param
> Line 444, column 46:  Undefined variable: param
> Line 462, column 48:  Undefined variable: param
> Line 0, column 0:
> Note: D:\apps\Apache Tomcat
>
4.0\work\localhost\cocoon\cocoon-files\org\apache\cocoon\www\eval\sitema
> p_xmap.java uses or overrides a deprecated API.  Recompile with
> "-deprecation" for details.
> 4 errors, 1 warning
> 
>   at
>
org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.cre
> ateResource(ProgramGeneratorImpl.java:285)
>   at
>
org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.loa
> d(ProgramGeneratorImpl.java:196)
>   at org.apache.cocoon.sitemap.Handler.run(Handler.java:228)
>   at java.lang.Thread.run(Thread.java:484)
> 
> Any thoughts?
> 
> Thanks again.
> 
> Matthew


-
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: Redirect in XSP

2002-06-12 Thread Matthew Hailstone

> > From: Matthew
> > 
Scenario:
Homepage XSP generates an initial form.
Parameters are set.
I would like to then access my sub-sitemap URI space depending
on the parameter values.
Ex.
eval/first/first if parameter value is 1
eval/second/second if parater value is 2

Is this possible by doing the following?

From: Vadim
> 
> Matcher (RequestParameterMatcher.java):
>  
> 
>
> 
> 
> Selector (RequestParameterSelector.java):
> 
> 
>   
> 
>   
> 
>   
>   
> 
>   
> 
> 
> 
> PS see javadocs also
http://xml.apache.org/cocoon/apidocs/

> > > -- You can and you should do this in the sitemap. Please use one
of 
> > > the matchers, ParameterMatcher is one which can help.

> Vadim
> 

Here is my latest try:


...
  


  


  


  

  
  

  

  


  
  
  


  
...


I get the following compile error:

org.apache.cocoon.ProcessingException: Language Exception:
org.apache.cocoon.components.language.LanguageException: Error compiling
sitemap_xmap:
Line 440, column 6:  Undefined variable: param
Line 441, column 6:  Undefined variable or class name: param
Line 444, column 46:  Undefined variable: param
Line 462, column 48:  Undefined variable: param
Line 0, column 0: 
Note: D:\apps\Apache Tomcat
4.0\work\localhost\cocoon\cocoon-files\org\apache\cocoon\www\eval\sitema
p_xmap.java uses or overrides a deprecated API.  Recompile with
"-deprecation" for details.
4 errors, 1 warning

at
org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.cre
ateResource(ProgramGeneratorImpl.java:285)
at
org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.loa
d(ProgramGeneratorImpl.java:196)
at org.apache.cocoon.sitemap.Handler.run(Handler.java:228)
at java.lang.Thread.run(Thread.java:484)

Any thoughts?

Thanks again.

Matthew

-
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: Could you help me find the article?

2002-06-12 Thread Andrew Savory


Hi,

On Wed, 12 Jun 2002, Robert Nicholson wrote:

> I was wondering if somebody could help me I've lost the reference to a
> cocoon article that was posted last week.

I think this is the one you mean:

"Spread your wings with Cocoon"
http://www.sys-con.com/java/articleprint.cfm?id=1480


For finding random URLs like this, Cocoon-URL comes in handy. Cocoon-URL
is a weekly summary of interesting links posted to the mailing lists of
the Cocoon project:

http://www.luminas.co.uk/technology/cocoon/url/


Of course, the URL you were after won't show up until tomorrow ;-)


Andrew.

-- 
Andrew SavoryEmail: [EMAIL PROTECTED]
Managing Director  Tel:  +44 (0)870 741 6658
Luminas Internet Applications  Fax:  +44 (0)700 598 1135
This is not an official statement or order.Web:www.luminas.co.uk


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




when does sitemap_xmap compile?

2002-06-12 Thread daniel robinson

Hi,

I have been using CHello as the basis for my project and it has worked 
well for me.  I have repeatedly used the provided ant script to move my 
dev material into the Tomcat directories, and whenever I change my XMAP 
it gets copied over and then (I believe) it is re-compiled on the fly by 
Cocoon and is dynamically available (without having to re-start Tomcat etc.)

Now I am in the process of moving to an ISP (that supports Cocoon) and I 
used the CHello scripts to create a war file.  I placed it on the 
server, it was unpacked by the servers Servlet app (resin I believe) and 
everything looked ok.  When I went to fetch the page I got:

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

I located the java source file, but it hadn't been compiled (and 
attempting to manually compile failed without an error).

It seems like it is a config issue on their side (classpath or 
something) but I'm just wondering if I'm doing something wrong in Cocoon 
land.

Thanks,

Dan


-
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: MSFT answer to Cocoon? (Plaease don't throw stones :)

2002-06-12 Thread Stefan Seifert

Well, this is no problem, done it many times - it is well documented in the Tomcat 
documentation: see i.e. "tomcat-iis-howto.html" from the tomcat 3.x distribution.
For futher questions or problems see tomcat mailing lists.

Stefan

> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, June 12, 2002 9:13 PM
> To: [EMAIL PROTECTED]
> Subject: RE: MSFT answer to Cocoon? (Plaease don't throw stones :)
> 
> 
>   Thanks Roger - this solution INTRIGUES me... Has anyone 
> done this or knows where to get info to couple IIS with 
> Tomcat?  Are cases/examples on Apache.org somewhere?
> 
>   Mike
> 
> -Original Message-
> From: Roger I Martin PhD [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, June 11, 2002 4:55 PM
> To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
> Subject: Re: MSFT answer to Cocoon? (Plaease don't throw stones :)
> 
> 
> Hi folks,
> 
> Sorry Michael.  You were looking for a solution.
> 
> I was being incredibly facetious when I typed .net. It is one of those
> reasons I got a minus on my report card(parochial school) for 
> lack of self
> control .
> 
> There is nothing like Cocoon but Cocoon.
> 
> Use IIS with Jakarta Tomcat, and run Cocoon in it as 
> Microsoft's answer to
> Cocoon/Xalan/Xerces functionality?
> 
> -Roger
> - Original Message -
> From: "Nicola Ken Barozzi" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Tuesday, June 11, 2002 5:14 PM
> Subject: Re: MSFT answer to Cocoon? (Plaease don't throw stones :)
> 
> 
> >
> >
> > [EMAIL PROTECTED] wrote:
> > > This sounds right - from my research with .Net it doesn't 
> rival cocoon -
> was hoping there was a snap-in to IIS that mimics Cocoon
> >
> > Use IIS with Jakarta Tomcat, and run Cocoon in it.
> >
> > --
> > Nicola Ken Barozzi   [EMAIL PROTECTED]
> >  - verba volant, scripta manent -
> > (discussions get forgotten, just code remains)
> > 
> -
> >
> >
> > 
> -
> > 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]>
> 
> 
> Visit our website at http://www.ubswarburg.com
> 
> This message contains confidential information and is intended only 
> for the individual named.  If you are not the named addressee you 
> should not disseminate, distribute or copy this e-mail.  Please 
> notify the sender immediately by e-mail if you have received this 
> e-mail by mistake and delete this e-mail from your system.
> 
> E-mail transmission cannot be guaranteed to be secure or error-free 
> as information could be intercepted, corrupted, lost, destroyed, 
> arrive late or incomplete, or contain viruses.  The sender therefore 
> does not accept liability for any errors or omissions in the contents 
> of this message which arise as a result of e-mail transmission.  If 
> verification is required please request a hard-copy version.  This 
> message is provided for informational purposes and should not be 
> construed as a solicitation or offer to buy or sell any securities or 
> related financial instruments.
> 
> 
> -
> 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]>




[C2] XSLT transform error messages

2002-06-12 Thread Christopher Painter-Wakefield


A request for the C2 developers:

*Please* find a way to send back a reasonable error message when there is a
problem with a stylesheet.  The generic "Exception in creating Transform
Handler" (below) is so unhelpful.  It doesn't give any clue as to the
nature of the problem, which is often subtle.  Surely the XSLT transform
classes have better error reporting that can be passed on?

Thanks,
Christopher


type fatal


message Exception in creating Transform Handler


description org.apache.cocoon.ProcessingException: Exception in creating
Transform Handler


sender org.apache.cocoon.servlet.CocoonServlet


source Cocoon servlet


stack-trace
org.apache.cocoon.ProcessingException: Exception in creating Transform
Handler
 at
org.apache.cocoon.components.xslt.XSLTProcessorImpl.getTransformerHandler(XSLTProcessorImpl.java:271)

 at
org.apache.cocoon.components.xslt.XSLTProcessorImpl.getTransformerHandler(XSLTProcessorImpl.java:204)

 at
org.apache.cocoon.transformation.TraxTransformer.setup(TraxTransformer.java:295)

 at
org.apache.cocoon.components.pipeline.AbstractEventPipeline.setupPipeline(AbstractEventPipeline.java:215)

 at
org.apache.cocoon.components.pipeline.CachingEventPipeline.setup(CachingEventPipeline.java:279)

 at
org.apache.cocoon.components.pipeline.CachingEventPipeline.generateKey(CachingEventPipeline.java:142)

 at
org.apache.cocoon.components.pipeline.CachingStreamPipeline.process(CachingStreamPipeline.java:320)

 at
org.apache.cocoon.components.treeprocessor.sitemap.SerializeNode.invoke(SerializeNode.java:153)

 at
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:85)

 at
org.apache.cocoon.components.treeprocessor.sitemap.PreparableMatchNode.invoke(PreparableMatchNode.java:156)

 at
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:109)

 at
org.apache.cocoon.components.treeprocessor.sitemap.PipelineNode.invoke(PipelineNode.java:140)

 at
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:109)

 at
org.apache.cocoon.components.treeprocessor.sitemap.PipelinesNode.invoke(PipelinesNode.java:130)

 at
org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreeProcessor.java:323)

 at
org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreeProcessor.java:293)

 at org.apache.cocoon.Cocoon.process(Cocoon.java:575)
 at
org.apache.cocoon.servlet.CocoonServlet.service(CocoonServlet.java:998)
 at
javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
 at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)

 at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)

 at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:243)

 at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)

 at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
 at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
 at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:190)

 at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)

 at
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:475)

 at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)

 at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
 at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
 at
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2343)
 at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)

 at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)

 at
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170)

 at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)

 at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170)

 at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)

 at
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:468)
 at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)

 at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)

define elements.xsl

2002-06-12 Thread Christoph Stocker

hi!

i have a test.xsp and a test.xsl and a elements.xsl

i use tags like , , ,  in my XSP-page.
so i write a elements.xsl which defines these tags like (i put
the elements.xsl also as attachement) -->













  
  




i import these elements.xsl in the testxsl, so all my
tags in the xsp-site are defined.



is there a possibility to write down this in a logicsheet, so that i 
have not to import the elements.xsl in the test.xsl and define the
logicsheet in the xsp-page?


i tried the logicsheet (mylogic.xsl) at 
http://www.cocooncenter.de/cc/documents/resources/logicsheet/filelist.ht
ml
it works fine - i want to add a template given above for  -->
but this doesn't work (no  is written out to my page.

what's wrong with my logicsheet.


greetings, chris



http://www.w3.org/1999/XSL/Transform";>




	
		
	
	
		
	
	
		
	
	
		
	
	
		
	
	
  
  

  
  
  
  

	
		
	
	
		
	
	
		
	
	
  
  

  
  
  
  

	
		
	
	
		
	
	
		
	
	
		
	
	
		
	
	
  
  

  
  
  
  

	
		
	
	
		
	
	
		
	
	
  
  

  
  
  
  
  	
  		
		
	
	
  
 
  	
  
  
  
  

	
		
	
	
		
	
	
		
	
	
		
	
	
		
	
	
		
	
	
		
	
	
		
	
	
		
	
	
		
	
	
		
	
	
		
	
	
		
	
		
	
	
		
	
	
		
	
	
	
  
  

  


  
 		
 			
		
	
	
		
	
	
		
	
	
		
	
	
		
	
	
		
	
	
		
	
	
	
   
 		
  
  
  
 		
 			
		
	
	
		
	
 			
		
	
	
		
	
	
		
	
	
		
	
	
		
	
	
		
	
 	
	
   
 		
  
  
  
  
  
		
		  
		
	
			
		
	
	
	
	
		
			
		
	
	
	
	
			
  
	
	
	
  	
  		
  			

			
			

	

			
	 	
  
  
  
  
  	
  	  
		
	
	
		
	
  	  
	
	
  	
  






http://www.w3.org/1999/XSL/Transform";
  xmlns:xsp="http://apache.org/xsp";
  xmlns:mylogic="http://hostname/mylogic/1.0";
>

  

  

	
  
java.util.Date
java.text.SimpleDateFormat
  

	
	
	

  


  

  
  

  	formatDate(new Date(), "dd/MM/ HH:mm:ss")

  

  
  

  	formatDate(new Date(), "dd/MM/")

  

  
  

  	formatDate(new Date(), "HH:mm:ss")

  

  
/* Format attribute is  */

  	formatDate(new Date(), "")

  

  

  


  

  
  ""

  

  

  

  





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


Logging Error - who can help?

2002-06-12 Thread Volker Schneider

Dear colleagues,

I have some problems with the cocoon logger. Can anybody help me? I am
working with WebSphere Application Developer, but maybe the does not depend
on the tool.

This is my error message:

Logging Error: Could not set up Cocoon Logger, will use screen instead
java.net.MalformedURLException: java.lang.NullPointerException
at java.net.URL.(URL.java(Compiled Code))
at java.net.URL.(URL.java(Compiled Code))
at java.net.URL.(URL.java:344)
at
org.apache.xerces.impl.XMLEntityManager.startEntity(XMLEntityManager.java:73
1)
at
org.apache.xerces.impl.XMLEntityManager.startDocumentEntity(XMLEntityManager
.java:676)
at
org.apache.xerces.impl.XMLDocumentScannerImpl.setInputSource(XMLDocumentScan
nerImpl.java:252)
at
org.apache.xerces.parsers.StandardParserConfiguration.parse(StandardParserCo
nfiguration.java:499)
at
org.apache.xerces.parsers.StandardParserConfiguration.parse(StandardParserCo
nfiguration.java:581)
at org.apache.xerces.parsers.XMLParser.parse(XMLParser.java:147)
at
org.apache.xerces.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:115
7)
at
org.apache.avalon.framework.configuration.DefaultConfigurationBuilder.build(
DefaultConfigurationBuilder.java:187)
at
org.apache.avalon.framework.configuration.DefaultConfigurationBuilder.build(
DefaultConfigurationBuilder.java:166)
at
org.apache.cocoon.servlet.CocoonServlet.initLogger(CocoonServlet.java:773)
at org.apache.cocoon.servlet.CocoonServlet.init(CocoonServlet.java:241)
at
com.ibm.servlet.engine.webapp.StrictServletInstance.doInit(ServletManager.ja
va:802)
at
com.ibm.servlet.engine.webapp.StrictLifecycleServlet._init(StrictLifecycleSe
rvlet.java:141)
at
com.ibm.servlet.engine.webapp.PreInitializedServletState.init(StrictLifecycl
eServlet.java:254)
at
com.ibm.servlet.engine.webapp.StrictLifecycleServlet.init(StrictLifecycleSer
vlet.java:107)
at
com.ibm.servlet.engine.webapp.ServletInstance.init(ServletManager.java:388)
at javax.servlet.GenericServlet.init(GenericServlet.java:258)
at
com.ibm.servlet.engine.webapp.ServletManager.addServlet(ServletManager.java:
84)
at
com.ibm.servlet.engine.webapp.WebAppServletManager.loadServlet(WebAppServlet
Manager.java:226)
at
com.ibm.servlet.engine.webapp.WebAppServletManager.loadAutoLoadServlets(WebA
ppServletManager.java:357)
at
com.ibm.servlet.engine.webapp.WebApp.loadServletManager(WebApp.java:1010)
at com.ibm.servlet.engine.webapp.WebApp.init(WebApp.java:133)
at com.ibm.servlet.engine.srt.WebGroup.loadWebApp(WebGroup.java:234)
at com.ibm.servlet.engine.srt.WebGroup.init(WebGroup.java:139)
at
com.ibm.servlet.engine.ServletEngine.addWebApplication(ServletEngine.java:65
2)
at com.ibm.ws.runtime.WebContainer.install(WebContainer.java:36)
at com.ibm.ws.runtime.Server.startModule(Server.java:617)
at
com.ibm.ws.runtime.StandardServer.initializeModules(StandardServer.java:333)
at
com.ibm.ws.runtime.StandardServer.initializeRuntime0(StandardServer.java:349
)
at com.ibm.ws.runtime.Server.initializeRuntime(Server.java:884)
at com.ibm.ws.runtime.StandardServer.main(StandardServer.java:519)
at java.lang.reflect.Method.invoke(Native Method)
at com.ibm.ws.bootstrap.WSLauncher.main(WSLauncher.java:158)
at
com.ibm.etools.websphere.tools.runner.api.ServerRunner$1.run(ServerRunner.ja
va)

Thank you, best regards
- Volker -


-
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: MSFT answer to Cocoon? (Plaease don't throw stones :)

2002-06-12 Thread Michael-K . Hansen

  Thanks Roger - this solution INTRIGUES me... Has anyone done this or knows where to 
get info to couple IIS with Tomcat?  Are cases/examples on Apache.org somewhere?

  Mike

-Original Message-
From: Roger I Martin PhD [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, June 11, 2002 4:55 PM
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Subject: Re: MSFT answer to Cocoon? (Plaease don't throw stones :)


Hi folks,

Sorry Michael.  You were looking for a solution.

I was being incredibly facetious when I typed .net. It is one of those
reasons I got a minus on my report card(parochial school) for lack of self
control .

There is nothing like Cocoon but Cocoon.

Use IIS with Jakarta Tomcat, and run Cocoon in it as Microsoft's answer to
Cocoon/Xalan/Xerces functionality?

-Roger
- Original Message -
From: "Nicola Ken Barozzi" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, June 11, 2002 5:14 PM
Subject: Re: MSFT answer to Cocoon? (Plaease don't throw stones :)


>
>
> [EMAIL PROTECTED] wrote:
> > This sounds right - from my research with .Net it doesn't rival cocoon -
was hoping there was a snap-in to IIS that mimics Cocoon
>
> Use IIS with Jakarta Tomcat, and run Cocoon in it.
>
> --
> Nicola Ken Barozzi   [EMAIL PROTECTED]
>  - verba volant, scripta manent -
> (discussions get forgotten, just code remains)
> -
>
>
> -
> 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]>


Visit our website at http://www.ubswarburg.com

This message contains confidential information and is intended only
for the individual named.  If you are not the named addressee you
should not disseminate, distribute or copy this e-mail.  Please
notify the sender immediately by e-mail if you have received this
e-mail by mistake and delete this e-mail from your system.

E-mail transmission cannot be guaranteed to be secure or error-free
as information could be intercepted, corrupted, lost, destroyed,
arrive late or incomplete, or contain viruses.  The sender therefore
does not accept liability for any errors or omissions in the contents
of this message which arise as a result of e-mail transmission.  If
verification is required please request a hard-copy version.  This
message is provided for informational purposes and should not be
construed as a solicitation or offer to buy or sell any securities or
related financial instruments.


-
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: sitemap processing bug?

2002-06-12 Thread Vadim Gritsenko

> From: Gerhard Hipfinger [mailto:[EMAIL PROTECTED]]
> 
> Hi Vadim,
> 
> but this method is still in the tutorial section of the distribution
> (webapp/tutorial/sitemap.xmap), so I assumed it is still working :-(

Sorry for spreading disinformation. I'm wrong, it should work.

Try your sitemap with Cocoon 2.0.3-dev. If it works with 2.0.3 and same
sitemap does not work with 2.1, file a bug.


Vadim

> Is there a new pattern to nest actions? I think this was an elegant
> solution to handle chained actions.
> 
> Thanks,
> Gerhard
> 
> Vadim Gritsenko wrote:
> 
> >>From: Gerhard Hipfinger [mailto:[EMAIL PROTECTED]]
> >>
> >>Hi!
> >>
> >>I have the following problem with sitemap processing in the current
> >>2.1-dev CVS Snapshot.
> >>
> >>I have the following action set:
> >>
> >>
> >>
> >>
> >>
> >>  
> >>
> >>  
> >>
> >>  
> >>
> >>
> >>  
> >>
> >>
> >
> >It looks like a bug (or, it is a feature - there is no sitemap
> >validation) in the sitemap implementation. This should not be allowed
> >and sitemap should not get loaded.
> >
> >Action set can contain only actions and these actions can have only
> >parameters.
> >
> >
> >>Even if all parameters are validated without errors, the dbAdd
action
> >>
> >is
> >
> >>never called (not even a entry in the sitemap.log)
> >>
> >>The DB configuration is 100% working, because when I do
> >>
> >>
> >>
> >>
> >>  
> >>
> >>  
> >>
> >>  
> >>
> >>  
> >>
> >>
> >>
> >>
> >>
> >>
> >>A new record is successfully created. I guess I use the new
> >>TreeProcessor and not the compiled sitemap. Maybe there is a bug in
> >>
> >this
> >
> >>implementation. Btw. - how do I use the old compiled sitemap style
in
> >>current cvs snapshot?!? Or has the compiled version been deprecated
> >>
> >and
> >
> >>is gone?
> >>
> >
> >It is gone from 2.1-dev. Use 2.0.3-dev if you want compiled version.
> >
> >
> >Vadim
> >
> >
> >>Thanks in advance,
> >>Gerhard


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




Link Livesites: Taygeta Scientific, Cocoon 2

2002-06-12 Thread Skip Carter


http://www.taygeta.com/
http://www.taygeta.net/
http://www.taygeta.org/
http://www.forth.org/

Taygeta Scientific has finally moved to Cocoon 2 from Cocoon 1,
using Apache 1.3.24, Tomcat 4.0.4, and Cocoon 2.0.2.

Our configuration is running multiple virtual hosts
on a single server and is chrooted.





-- 
 Dr. Everett (Skip) Carter  Phone: 831-641-0645 FAX:  831-641-0647
 Taygeta Scientific Inc.INTERNET: [EMAIL PROTECTED]
 1340 Munras Ave., Suite 314WWW: http://www.taygeta.com
 Monterey, CA. 93940

-
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: sitemap processing bug?

2002-06-12 Thread Gerhard Hipfinger

Hi Vadim,

but this method is still in the tutorial section of the distribution 
(webapp/tutorial/sitemap.xmap), so I assumed it is still working :-(

Is there a new pattern to nest actions? I think this was an elegant 
solution to handle chained actions.

Thanks,
Gerhard

Vadim Gritsenko wrote:

>>From: Gerhard Hipfinger [mailto:[EMAIL PROTECTED]]
>>
>>Hi!
>>
>>I have the following problem with sitemap processing in the current
>>2.1-dev CVS Snapshot.
>>
>>I have the following action set:
>>
>>
>>
>>
>>
>>  
>>
>>  
>>
>>  
>>
>>
>>  
>>
>>
>
>It looks like a bug (or, it is a feature - there is no sitemap
>validation) in the sitemap implementation. This should not be allowed
>and sitemap should not get loaded.
>
>Action set can contain only actions and these actions can have only
>parameters.
>
>
>>Even if all parameters are validated without errors, the dbAdd action
>>
>is
>
>>never called (not even a entry in the sitemap.log)
>>
>>The DB configuration is 100% working, because when I do
>>
>>
>>
>>
>>  
>>
>>  
>>
>>  
>>
>>  
>>
>>
>>
>>
>>
>>
>>A new record is successfully created. I guess I use the new
>>TreeProcessor and not the compiled sitemap. Maybe there is a bug in
>>
>this
>
>>implementation. Btw. - how do I use the old compiled sitemap style in
>>current cvs snapshot?!? Or has the compiled version been deprecated
>>
>and
>
>>is gone?
>>
>
>It is gone from 2.1-dev. Use 2.0.3-dev if you want compiled version.
>
>
>Vadim
>
>
>>Thanks in advance,
>>Gerhard
>>
>
>
>-
>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: NoValidConnectionException: No valid JdbcConnection class available

2002-06-12 Thread Gerhard Hipfinger

Hi!

I use the current cvs snapshot, and it is working with mm.mysql jdbc 
driver and jdk 1.4. It seems the new excalibur version is already in 
2.1-dev.

Gerhard

Brian P. Millett wrote:

>Configuration:
>Using CATALINA_BASE:   /opt2/jakarta-tomcat-4.0.4-b3
>Using CATALINA_HOME:   /opt2/jakarta-tomcat-4.0.4-b3
>Using CATALINA_TMPDIR: /opt2/jakarta-tomcat-4.0.4-b3/temp
>Using JAVA_HOME:   /usr/j2se
>
>Solaris 8, jdk 1.4, postgresql 7.2, mysql 4.01
>
>>From cocoon.xconf:
>  
>
>  
>  true
>  jdbc:postgresql://localhost:5432/test
>  
>  
>
>
>  
>  true
>  jdbc:postgresql://localhost:5432/ids_tropicos
>  
>  
>
>
>  
>  true
>  jdbc:mysql://tropicos:3306/ids_tropicos
>  
>  
>
>  
>
>from web.xml
>
>  load-class
>  
>
>org.postgresql.Driver
>
>org.gjt.mm.mysql.Driver
>  
>
>
>I get this error in my sitemap.log
>ERROR   (2002-06-12) 12:02.09:800  
>[sitemap.generator.serverpages](/cocoon/xsp/esql)
>HttpProcessor[8080][4]/esql_xsp: Could not get the datasource
>org.apache.avalon.excalibur.datasource.NoValidConnectionException: No
>valid JdbcConnection class available
>   at
>org.apache.avalon.excalibur.datasource.JdbcConnectionFactory.newInstance(JdbcConnectionFactory.java:183)
>   at
>org.apache.avalon.excalibur.pool.ResourceLimitingPool.newPoolable(ResourceLimitingPool.java:491)
>   at
>org.apache.avalon.excalibur.pool.ValidatedResourceLimitingPool.newPoolable(ValidatedResourceLimitingPool.java:140)
>   at
>org.apache.avalon.excalibur.datasource.ResourceLimitingJdbcConnectionPool.newPoolable(ResourceLimitingJdbcConnectionPool.java:81)
>   at
>org.apache.avalon.excalibur.pool.ResourceLimitingPool.get(ResourceLimitingPool.java:314)
>   at
>org.apache.avalon.excalibur.pool.ValidatedResourceLimitingPool.get(ValidatedResourceLimitingPool.java:91)
>   at
>org.apache.avalon.excalibur.datasource.ResourceLimitingJdbcDataSource.getConnection(ResourceLimitingJdbcDataSource.java:131)
>   at
>org.apache.cocoon.www.docs.samples.xsp.esql_xsp.generate(/opt2/jakarta-tomcat-4.0.4-b3/work/Standalone/localhost/cocoon/cocoon-files/org/apache/cocoon/www/docs/samples/xsp/esql_xsp.java:338)
>
>
>Any ideas other than "use jdk 1.3.1"?  Is this a JNDI problem or a JDBC
>problem?
>
>Thanks.
>




-
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: Redirect in XSP

2002-06-12 Thread Vadim Gritsenko

> From: Matthew Hailstone [mailto:[EMAIL PROTECTED]]
> 
> Vadim,
>   Thanks for the input.
> 
> > -Original Message-
> > From: Vadim Gritsenko [mailto:[EMAIL PROTECTED]]
> > Sent: Wednesday, June 12, 2002 11:31 AM
> > To: [EMAIL PROTECTED]
> > Subject: RE: Redirect in XSP
> >
> >
> > From: Matthew Hailstone [mailto:[EMAIL PROTECTED]]
> > Sent: Wednesday, June 12, 2002 12:35 PM
> > To: [EMAIL PROTECTED]
> > Subject: Redirect in XSP
> >
> > Can I redirect to another URI from an xsp page? Depending on
> > the value of the initial form, I would like to go to a
> > dynamic URI in cocoon. Can I do that in the sitemap,
> 
> I've looked at the tutorial found from searching the mail archives:
> 
> Here is some sample sitemap pipeline entries:

Either matcher or selector.


Matcher (RequestParameterMatcher.java):
 

  



Selector (RequestParameterSelector.java):


  

  

  
  

  



PS see javadocs also

Vadim

 
> I know I'm probably slaughtering syntax, but do I have the right idea?
> 
> Matthew
> 
> >
> >
> > -- You can and you should do this in the sitemap. Please use
> > one of the matchers, ParameterMatcher is one which can help.
> >
> > PS Answering on HTML mail isn't that easy as on plain text
> >
> > Vadim
> >
> >
> >
> > or can I do that in the xsp page? Any help would be greatly
> > appreciated.
> >
> > Thanks in advance.
> >
> > Matthew


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




Could you help me find the article?

2002-06-12 Thread Robert Nicholson

I was wondering if somebody could help me I've lost the reference to a
cocoon article that was posted last week. I believe it was a two-three page
article with an overview of the architecture and an example including
pipeline/xsp etc with Cocoon. Anybody remember a reference like this
recently?


-
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: Redirect in XSP

2002-06-12 Thread Matthew Hailstone

Let's make sure this is clear. :)

> -Original Message-
> From: Matthew Hailstone 
> Sent: Wednesday, June 12, 2002 12:05 PM
> To: [EMAIL PROTECTED]
> Subject: RE: Redirect in XSP
> 
> 
> Vadim,
>   Thanks for the input.
> 
> > -Original Message-
> > From: Vadim Gritsenko [mailto:[EMAIL PROTECTED]]
> > Sent: Wednesday, June 12, 2002 11:31 AM
> > To: [EMAIL PROTECTED]
> > Subject: RE: Redirect in XSP
> > 
> > 
> > From: Matthew Hailstone [mailto:[EMAIL PROTECTED]]
> > Sent: Wednesday, June 12, 2002 12:35 PM
> > To: [EMAIL PROTECTED]
> > Subject: Redirect in XSP
> > 
> > Can I redirect to another URI from an xsp page? Depending on
> > the value of the initial form, I would like to go to a 
> > dynamic URI in cocoon. Can I do that in the sitemap,
> 
> I've looked at the tutorial found from searching the mail archives:
> 
> Here is some sample sitemap pipeline entries:
> 
>   
> 
>   
>   
>   
>   
> 
>   
> 
>   
> 
>   
> 
> 
>   
>   
>   
> 
> 
>   
> 
> I know I'm probably slaughtering syntax, but do I have the right idea?

I'm hoping to redirect based on the parameter value, and then use the associated xsp 
generator that corresponds to the parameter value.

Thanks.

> 
> Matthew
> 
> > 
> > 
> > -- You can and you should do this in the sitemap. Please use
> > one of the matchers, ParameterMatcher is one which can help.
> > 
> > PS Answering on HTML mail isn't that easy as on plain text
> > 
> > Vadim
> > 
> > 
> > 
> > or can I do that in the xsp page? Any help would be greatly
> > appreciated.
> >  
> > Thanks in advance.
> >  
> > Matthew
> > 
> > 
> > 
> -
> > 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]>
> 
> 

-
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: Redirect in XSP

2002-06-12 Thread Matthew Hailstone

Vadim,
  Thanks for the input.

> -Original Message-
> From: Vadim Gritsenko [mailto:[EMAIL PROTECTED]] 
> Sent: Wednesday, June 12, 2002 11:31 AM
> To: [EMAIL PROTECTED]
> Subject: RE: Redirect in XSP
> 
> 
> From: Matthew Hailstone [mailto:[EMAIL PROTECTED]] 
> Sent: Wednesday, June 12, 2002 12:35 PM
> To: [EMAIL PROTECTED]
> Subject: Redirect in XSP
> 
> Can I redirect to another URI from an xsp page? Depending on 
> the value of the initial form, I would like to go to a 
> dynamic URI in cocoon. Can I do that in the sitemap,

I've looked at the tutorial found from searching the mail archives:

Here is some sample sitemap pipeline entries:

  
  




  

  


  


  
  
  


  

I know I'm probably slaughtering syntax, but do I have the right idea?

Matthew

> 
> 
> -- You can and you should do this in the sitemap. Please use 
> one of the matchers, ParameterMatcher is one which can help.
> 
> PS Answering on HTML mail isn't that easy as on plain text
> 
> Vadim
> 
> 
> 
> or can I do that in the xsp page? Any help would be greatly 
> appreciated.
>  
> Thanks in advance.
>  
> Matthew
> 
> 
> -
> 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: NoValidConnectionException: No valid JdbcConnection class available

2002-06-12 Thread Vadim Gritsenko

> From: Brian P. Millett [mailto:[EMAIL PROTECTED]]
> 
> Configuration:
> Using CATALINA_BASE:   /opt2/jakarta-tomcat-4.0.4-b3
> Using CATALINA_HOME:   /opt2/jakarta-tomcat-4.0.4-b3
> Using CATALINA_TMPDIR: /opt2/jakarta-tomcat-4.0.4-b3/temp
> Using JAVA_HOME:   /usr/j2se
> 
> Solaris 8, jdk 1.4, postgresql 7.2, mysql 4.01
...
> I get this error in my sitemap.log
> ERROR   (2002-06-12) 12:02.09:800
> [sitemap.generator.serverpages](/cocoon/xsp/esql)
> HttpProcessor[8080][4]/esql_xsp: Could not get the datasource
> org.apache.avalon.excalibur.datasource.NoValidConnectionException: No
> valid JdbcConnection class available
>   at
>
org.apache.avalon.excalibur.datasource.JdbcConnectionFactory.newInstance
(JdbcC
> onnectionFactory.java:183)
...
> 
> Any ideas other than "use jdk 1.3.1"? 

That's easy. Recompile excalibur.


> Is this a JNDI problem or a JDBC
> problem?

Java 1.3/1.4 JDBC incompatibility.


Vadim


> 
> Thanks.
> --
> Brian Millett
> Enterprise Consulting Group   "Shifts in paradigms
> (314) 205-9030   often cause nose bleeds."
> [EMAIL PROTECTED]   Greg Glenn


-
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: Redirect in XSP

2002-06-12 Thread Vadim Gritsenko

From: Matthew Hailstone [mailto:[EMAIL PROTECTED]] 
Sent: Wednesday, June 12, 2002 12:35 PM
To: [EMAIL PROTECTED]
Subject: Redirect in XSP

Can I redirect to another URI from an xsp page? Depending on the value
of the initial form, I would like to go to a dynamic URI in cocoon. Can
I do that in the sitemap,


-- You can and you should do this in the sitemap. Please use one of the
matchers, ParameterMatcher is one which can help.

PS Answering on HTML mail isn't that easy as on plain text

Vadim



or can I do that in the xsp page? Any help would be greatly appreciated.
 
Thanks in advance.
 
Matthew


-
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: execution order inside aggregator

2002-06-12 Thread Vadim Gritsenko

> From: Sternath Elmar [mailto:[EMAIL PROTECTED]]
> 
> Hi,
> 
> I noticed that, when I set up another pipeline inside an aggregator,
the order
> of execution of  entries is changed:
> 
>   
src="http://localhost/BOLServlet/ProductService.uploadDocument?PrvsId={I
d}&
>
;Title={Title}&DocType={DocType}&Language={Language}&Publish
er={Pu
> blisher}&Description={Description}&SalesChannel={../1}"/>
>   
> 
> The second part is executed before the first one. Is that standard
cocoon
> behaviour or did I somethin wrong??

Map parts are executed in document (sitemap) order. At least they should
be.

I never have seen other execution order.

Vadim


> Regards,
> Elmar



-
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: sitemap processing bug?

2002-06-12 Thread Vadim Gritsenko

> From: Gerhard Hipfinger [mailto:[EMAIL PROTECTED]]
> 
> Hi!
> 
> I have the following problem with sitemap processing in the current
> 2.1-dev CVS Snapshot.
> 
> I have the following action set:
> 
> 
> 
> 
> 
>   
> 
>   
> 
>   
> 
> 
>   
> 

It looks like a bug (or, it is a feature - there is no sitemap
validation) in the sitemap implementation. This should not be allowed
and sitemap should not get loaded.

Action set can contain only actions and these actions can have only
parameters.


> Even if all parameters are validated without errors, the dbAdd action
is
> never called (not even a entry in the sitemap.log)
> 
> The DB configuration is 100% working, because when I do
> 
> 
> 
> 
>   
> 
>   
> 
>   
> 
>   
> 
> 
> 
> 
> 
> 
> A new record is successfully created. I guess I use the new
> TreeProcessor and not the compiled sitemap. Maybe there is a bug in
this
> implementation. Btw. - how do I use the old compiled sitemap style in
> current cvs snapshot?!? Or has the compiled version been deprecated
and
> is gone?

It is gone from 2.1-dev. Use 2.0.3-dev if you want compiled version.


Vadim


> Thanks in advance,
> Gerhard


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




NoValidConnectionException: No valid JdbcConnection class available

2002-06-12 Thread Brian P. Millett

Configuration:
Using CATALINA_BASE:   /opt2/jakarta-tomcat-4.0.4-b3
Using CATALINA_HOME:   /opt2/jakarta-tomcat-4.0.4-b3
Using CATALINA_TMPDIR: /opt2/jakarta-tomcat-4.0.4-b3/temp
Using JAVA_HOME:   /usr/j2se

Solaris 8, jdk 1.4, postgresql 7.2, mysql 4.01

>From cocoon.xconf:
  

  
  true
  jdbc:postgresql://localhost:5432/test
  
  


  
  true
  jdbc:postgresql://localhost:5432/ids_tropicos
  
  


  
  true
  jdbc:mysql://tropicos:3306/ids_tropicos
  
  

  

from web.xml

  load-class
  

org.postgresql.Driver

org.gjt.mm.mysql.Driver
  


I get this error in my sitemap.log
ERROR   (2002-06-12) 12:02.09:800  
[sitemap.generator.serverpages](/cocoon/xsp/esql)
HttpProcessor[8080][4]/esql_xsp: Could not get the datasource
org.apache.avalon.excalibur.datasource.NoValidConnectionException: No
valid JdbcConnection class available
at
org.apache.avalon.excalibur.datasource.JdbcConnectionFactory.newInstance(JdbcConnectionFactory.java:183)
at
org.apache.avalon.excalibur.pool.ResourceLimitingPool.newPoolable(ResourceLimitingPool.java:491)
at
org.apache.avalon.excalibur.pool.ValidatedResourceLimitingPool.newPoolable(ValidatedResourceLimitingPool.java:140)
at
org.apache.avalon.excalibur.datasource.ResourceLimitingJdbcConnectionPool.newPoolable(ResourceLimitingJdbcConnectionPool.java:81)
at
org.apache.avalon.excalibur.pool.ResourceLimitingPool.get(ResourceLimitingPool.java:314)
at
org.apache.avalon.excalibur.pool.ValidatedResourceLimitingPool.get(ValidatedResourceLimitingPool.java:91)
at
org.apache.avalon.excalibur.datasource.ResourceLimitingJdbcDataSource.getConnection(ResourceLimitingJdbcDataSource.java:131)
at
org.apache.cocoon.www.docs.samples.xsp.esql_xsp.generate(/opt2/jakarta-tomcat-4.0.4-b3/work/Standalone/localhost/cocoon/cocoon-files/org/apache/cocoon/www/docs/samples/xsp/esql_xsp.java:338)


Any ideas other than "use jdk 1.3.1"?  Is this a JNDI problem or a JDBC
problem?

Thanks.
-- 
Brian Millett
Enterprise Consulting Group   "Shifts in paradigms
(314) 205-9030   often cause nose bleeds."
[EMAIL PROTECTED]   Greg Glenn


-
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: write logicsheet

2002-06-12 Thread Naquin, Beth
Title: RE: write logicsheet






I found this site useful for giving an example of writing a simple logicsheet.



http://www.cocooncenter.org/cc/documents/resources/logicsheet/index.html



If you don't want to declare your logicsheet in cocoon.xconf(so you do not have to restart Tomcat every time you change the logicsheet), you can do this in your xsp page (and not change cocoon.xconf at all):


" <-- reference to your logicsheet



    language="java"
    xmlns:xsp="http://apache.org/xsp"
    xmlns:db_query="http://apache.org/otda/logicsheet/dbquery/1.0"  <-- namespace for your logicsheet
    xmlns:log="http://apache.org/xsp/log/2.0"
>


...

    
    

...
=
Then in your logicsheet file (here db_query.xsl):




    xmlns:xsl="http://www.w3.org/1999/XSL/Transform" 
    xmlns:xsp="http://apache.org/xsp"
    xmlns:db_query="http://apache.org/otda/logicsheet/dbquery/1.0"  <-- same namespace as above xsp page
>


...



...



-Original Message-
From: daniel robinson [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, June 12, 2002 7:55 AM
To: [EMAIL PROTECTED]
Subject: Re: write logicsheet



Chris,


Have you looked at:


docs\userdocs\xsp\logicsheet-concepts.html


and also the examples in:


docs\samples\xsp\aggregate.xsp


I would suggest that you get one of the samples running and then work 
from there.  I'm just beginning myself but it seems like your xconf 
entry is for a "request" logicsheet (see doc re: logicsheet-concepts and 
others.  You can use the xconf file from the Cocoon demo until you get a 
little more proficient.  Also I have used the CHello project (on 
sourceforge.net) as a basis for my own work.  Some on the list have 
suggested there are problems with it, but it has worked well for me.


Regards,


Dan


Christoph Stocker wrote:


>hi!
>
>
>anyone knows how to write a logicsheet and how
>to install it - so that i can use it in my xsp-site?
>
>
>i know, that i have to do some settings in the cocoon.xconf
>and to write something like this -->
>
>
>   
>   http://apache.org/xsp/request/2.0"/>
>   
>value="resource://org/apache/cocoon/components/language/markup/xsp/java/
>request.xsl"/>
>
>
>but what does these parameters are for? how will changes to these
>parameters affect cocoon?
>
>are there more parameters?
>   
>
>
>maybe, someone have links to sites, explaining to to this.
>
>greetings, chris
>
>
>-
>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: How many form validation methods in cocoon?

2002-06-12 Thread Ivan Luzyanin

On óÒÄ, 2002-06-12 at 16:03, steeven wrote:
> hi all,
> 
> i'm new in cocoon world. I have found several form validation method in cocoon 
>documents:
> 
> 1. in user guide -> xsp -> forms , using validate taglib.
> 2. in tutorials, using action & action-sets to process form<->DB.
> 3. read form input directly from xsp-request.
> 4. XMLForm in cocoon how-to. (cocoon2.1)
> 
> is there some method else?
> who can make a list that compare the benifits of them?

I think best way to understand how to work with FormValidationAction is
to read API documentation for this class. Also i sugest you to read
tutorial at IBM developerworks called like "Building Database-driven
applications with Cocoon"

Best regards.

Ivan.


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




Redirect in XSP

2002-06-12 Thread Matthew Hailstone
Title: Message



Can I redirect to 
another URI from an xsp page? Depending on the value of the initial form, I 
would like to go to a dynamic URI in cocoon. Can I do that in the sitemap, or 
can I do that in the xsp page? Any help would be greatly 
appreciated.
 
Thanks in 
advance.
 
Matthew


execution order inside aggregator

2002-06-12 Thread Sternath Elmar

Hi,

I noticed that, when I set up another pipeline inside an aggregator, the order of 
execution of  entries is changed:

http://localhost/BOLServlet/ProductService.uploadDocument?PrvsId={Id}&Title={Title}&DocType={DocType}&Language={Language}&Publisher={Publisher}&Description={Description}&SalesChannel={../1}"/>


The second part is executed before the first one. Is that standard cocoon behaviour or 
did I somethin wrong??

Regards,
Elmar

-
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 and J2EE

2002-06-12 Thread Adam_Waldal


To respond to the question of what an .ear or Enterprise Archive was:

It is part of the J2EE specification that encapsulates the .war ( Web
Archive ), the EJB .jar, and Client .jar.

The hierarchy is as follows: EAR can contain multiple .WAR and EJBjar and
.car (Client jar).

The naming convention can differ slightly, but the essence should be the
same.

This allows a single file to be deployed to migrate all components of a
J2EE application.

-Adam


   

  ROSSEL Olivier   

   
  irbus.com>   cc: 

   Subject:  RE: Cocoon and J2EE   

  06/12/02 09:57 AM

  Please respond to

  cocoon-users 

   

   





> OK, I see. Thank you Olivier.
>
> Finally if I want the basic stuff I need cocoon.jar (and
> others? Do you exist a description list of the additionnal
> libraries?) in my "something.war" (or cocoon.war).
> But do you have to include this cocoon.war in each Enterprise
> ARchive??
>
> Thank you
> Sylvain

I think that the jars in wikiland.war (minus chaperon.jar) are
the basic stuff.

I do not know what a Entreprise Archive is, but in any .war you make
you need all the .jars of Cocoon.
A .war is a hermetic context, with its own classes.

If a .ear is (simply) an enhanced .war, then in any .ear that will embed
Cocoon, you need
to put all the .jar.

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




upload parameter don't return FilePartFile object

2002-06-12 Thread Gerhard Hipfinger

Hi!

I still have problems with the file upload functionality. When I try to 
get the parameter with the uploaded file, the parameter is of String 
type and not of FilePartFile!

Here is an example code:



http://apache.org/xsp";
xmlns:xsp-request="http://apache.org/xsp/request/2.0";
xmlns:esql="http://apache.org/cocoon/SQL/v2";>
 

  
org.apache.cocoon.components.request.multipart.*
  java.util.*


http://www.w3.org/2001/XInclude";>


   

   
  Object uploadData = null;
  String filename = "";
 
  uploadData = request.getParameter("data");
 
  filename = uploadData.getClass().getName();
 
  if (uploadData instanceof FilePart) {
 
  Filepart confirmed
 
  }


  uploadData.toString()


  filename

 

  
 





I played with this xsp file to track down the problem and after 
execution the value of filename = java.lang.String

The file is uploaded in the dir specified in the web.xml but everything 
else is not working as expected.

Thanks in advance,
Gerhard


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




How many form validation methods in cocoon?

2002-06-12 Thread steeven

hi all,

i'm new in cocoon world. I have found several form validation method in cocoon 
documents:

1. in user guide -> xsp -> forms , using validate taglib.
2. in tutorials, using action & action-sets to process form<->DB.
3. read form input directly from xsp-request.
4. XMLForm in cocoon how-to. (cocoon2.1)

is there some method else?
who can make a list that compare the benifits of them?

regards,
steeven

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




sitemap processing bug?

2002-06-12 Thread Gerhard Hipfinger

Hi!

I have the following problem with sitemap processing in the current 
2.1-dev CVS Snapshot.

I have the following action set:




   
  

  
 
  


  

 

Even if all parameters are validated without errors, the dbAdd action is 
never called (not even a entry in the sitemap.log)

The DB configuration is 100% working, because when I do



   
  

  
 
  

  


 



A new record is successfully created. I guess I use the new 
TreeProcessor and not the compiled sitemap. Maybe there is a bug in this 
implementation. Btw. - how do I use the old compiled sitemap style in 
current cvs snapshot?!? Or has the compiled version been deprecated and 
is gone?

Thanks in advance,
Gerhard


-
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: Util LogicSheet

2002-06-12 Thread Vadim Gritsenko

Please mind text nodes. XML is not HTML and does not ignore (empty)
text.

PS It could be an error in util logicsheet also.

Vadim


-Original Message-
From: Mike Ash [mailto:[EMAIL PROTECTED]] 
Sent: Wednesday, June 12, 2002 10:20 AM
To: '[EMAIL PROTECTED]'
Subject: Util LogicSheet

If we do this it works just fine 
 
 
 
 
 

This doesn't work with the error below. 
 
     
         
             
         
     
 
org.apache.cocoon.ProcessingException: Language Exception:
org.apache.cocoon.components.language.LanguageException: Error compiling
ServerList_xsp: Line 127, column 28: ')' expected. Line 0, column 0: 1
error 
Not a huge problem but something to note. 


-
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 and J2EE

2002-06-12 Thread Vadim Gritsenko

> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
> 
> OK, I see. Thank you Olivier.
> 
> Finally if I want the basic stuff I need cocoon.jar (and others? Do
you exist
> a description list of the additionnal libraries?)

See http://xml.apache.org/cocoon/installing/jars.html.

Simple procedure to customize your war is:

0. Have cocoon source distribution
1. Remove all unnecessary (for you) libraries from lib/optional
2. Add libraries you need to lib/local (or lib/optional if you don't
have lib/local)
3. build clean
4. build -Dinclude.webapp.libs=yes webapp

You will get customized war.


> in my "something.war" (or cocoon.war).
> But do you have to include this cocoon.war in each Enterprise
ARchive??

Yes. If you don't have war in the ear - you don't have web application.
If you don't have web application in ear - you don't have web interface.

Vadim


> 
> Thank you
> Sylvain
> 
> 
> -Message d'origine-
> De: ROSSEL Olivier [mailto:[EMAIL PROTECTED]]
> Date: mercredi, 12. juin 2002 16:29
> À: '[EMAIL PROTECTED]'
> Objet: RE: Cocoon and J2EE
> 
> 
> > My cocoon.war comes with the binary distribution.
> > I thought that this cocoon.war was necessary to work with Cocoon!?!
> >
> > My question is: What is necessary to work with Coccon and do
> > you have to include it in each Enterprise ARchive you create??
> >
> > Thank you
> > Sylvain
> 
> Vadim will tell if I am wrong, but Cocoon is a servlet, ie a Java
class.
> It needs several Java dependencies for XML parsing and other
fundamental
> things
> to work properly.
> 
> Additionnal Java libraries can be added to extend its functionnalities
(fop
> for PDF rendering, batik for SVG and graphics management). They are
not
> mandatory.
> If they are needed in your application, you have to list them in
> cocoon.xconf
> and/or sitemap.xmap.
> 
> For example, for wikiLand, I needed the basic Cocoon stuff and the
chaperon
> parser.
> So I removed all the .jar uneeded that are usually shipped with Cocoon
(big)
> archive,
> and added chaperon.jar.
> 
> If you want, you can take the .war available at the homepahe of
wikiLand,
> and
> study it.
> In fact, to remove the dependencies of Chaperon, simply have a look at
the
> beginning
> the sitemap.xmap and comment everything that talks about chaperon or
> wiki-parser.
> 
> Then you will have the skeleton for any Cocoon application.
> 


-
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 and J2EE

2002-06-12 Thread ROSSEL Olivier

> OK, I see. Thank you Olivier.
> 
> Finally if I want the basic stuff I need cocoon.jar (and 
> others? Do you exist a description list of the additionnal 
> libraries?) in my "something.war" (or cocoon.war).
> But do you have to include this cocoon.war in each Enterprise 
> ARchive??
> 
> Thank you
> Sylvain

I think that the jars in wikiland.war (minus chaperon.jar) are 
the basic stuff.

I do not know what a Entreprise Archive is, but in any .war you make
you need all the .jars of Cocoon.
A .war is a hermetic context, with its own classes.

If a .ear is (simply) an enhanced .war, then in any .ear that will embed
Cocoon, you need
to put all the .jar.

-
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: write logicsheet

2002-06-12 Thread daniel robinson

Chris,

Have you looked at:

docs\userdocs\xsp\logicsheet-concepts.html

and also the examples in:

docs\samples\xsp\aggregate.xsp

I would suggest that you get one of the samples running and then work 
from there.  I'm just beginning myself but it seems like your xconf 
entry is for a "request" logicsheet (see doc re: logicsheet-concepts and 
others.  You can use the xconf file from the Cocoon demo until you get a 
little more proficient.  Also I have used the CHello project (on 
sourceforge.net) as a basis for my own work.  Some on the list have 
suggested there are problems with it, but it has worked well for me.

Regards,

Dan

Christoph Stocker wrote:

>hi!
>
>
>anyone knows how to write a logicsheet and how
>to install it - so that i can use it in my xsp-site?
>
>
>i know, that i have to do some settings in the cocoon.xconf
>and to write something like this -->
>
>
>   
>   http://apache.org/xsp/request/2.0"/>
>   value="resource://org/apache/cocoon/components/language/markup/xsp/java/
>request.xsl"/>
>
>
>but what does these parameters are for? how will changes to these
>parameters affect cocoon?
>
>are there more parameters?
>   
>
>
>maybe, someone have links to sites, explaining to to this.
>
>greetings, chris
>
>
>-
>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: Unsubscribe me

2002-06-12 Thread Graaf, Edgar de (fin)
Title: Unsubscribe me



Mail a empty mail to: 
[EMAIL PROTECTED]
Sometimes it takes some 
time

  -Oorspronkelijk bericht-Van: João Moita 
  [mailto:[EMAIL PROTECTED]]Verzonden: woensdag 12 juni 2002 
  16:27Aan: Cocoon-Users (E-mail)Onderwerp: Unsubscribe 
  me
  Could you please unsubscribe me? 
  Thanks! 
   João Moita PayCenter 
  e-mail   :[EMAIL PROTECTED] Telem.   : +351.916.610.721 Telef.   : +351.218.394.860 Fax  : +351.218.394.868 
  www.eb-focus.pt 
  


RE: Cocoon and J2EE

2002-06-12 Thread Sylvain.Thevoz

OK, I see. Thank you Olivier.

Finally if I want the basic stuff I need cocoon.jar (and others? Do you exist a 
description list of the additionnal libraries?) in my "something.war" (or cocoon.war).
But do you have to include this cocoon.war in each Enterprise ARchive??

Thank you
Sylvain


-Message d'origine-
De: ROSSEL Olivier [mailto:[EMAIL PROTECTED]]
Date: mercredi, 12. juin 2002 16:29
À: '[EMAIL PROTECTED]'
Objet: RE: Cocoon and J2EE


> My cocoon.war comes with the binary distribution.
> I thought that this cocoon.war was necessary to work with Cocoon!?!
> 
> My question is: What is necessary to work with Coccon and do 
> you have to include it in each Enterprise ARchive you create??
> 
> Thank you
> Sylvain

Vadim will tell if I am wrong, but Cocoon is a servlet, ie a Java class.
It needs several Java dependencies for XML parsing and other fundamental
things
to work properly.

Additionnal Java libraries can be added to extend its functionnalities (fop
for PDF rendering, batik for SVG and graphics management). They are not
mandatory.
If they are needed in your application, you have to list them in
cocoon.xconf
and/or sitemap.xmap.

For example, for wikiLand, I needed the basic Cocoon stuff and the chaperon
parser.
So I removed all the .jar uneeded that are usually shipped with Cocoon (big)
archive,
and added chaperon.jar.

If you want, you can take the .war available at the homepahe of wikiLand,
and
study it.
In fact, to remove the dependencies of Chaperon, simply have a look at the
beginning 
the sitemap.xmap and comment everything that talks about chaperon or
wiki-parser.

Then you will have the skeleton for any Cocoon application.

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




AW: write logicsheet

2002-06-12 Thread Andres, Judith

Hi Chris,

in your xsp you will have to use a namespace to work with the tags described
in the logicsheet.
This namespace will have to look like xmlns:prefix="uri".

http://apache.org/xsp";
xmlns:xsp-request="http://apache.org/xsp/request/2.0";>


The href parameter tells Cocoon where to find your logicsheet in the import
"resource://org/apache/cocoon/components/language/markup/xsp/java/request.xs
l", for instance, means request.xsl is in
org.apache.cocoon.components.language.markup.xsp.java somewhere in the
classpath.

regards,
Judith

> -Ursprüngliche Nachricht-
> Von:  Christoph Stocker [SMTP:[EMAIL PROTECTED]]
> Gesendet am:  Mittwoch, 12. Juni 2002 16:33
> An:   [EMAIL PROTECTED]
> Betreff:  write logicsheet
> 
> hi!
> 
> 
> anyone knows how to write a logicsheet and how
> to install it - so that i can use it in my xsp-site?
> 
> 
> i know, that i have to do some settings in the cocoon.xconf
> and to write something like this -->
> 
> 
>
>http://apache.org/xsp/request/2.0"/>
> value="resource://org/apache/cocoon/components/language/markup/xsp/java/
> request.xsl"/>
> 
> 
> but what does these parameters are for? how will changes to these
> parameters affect cocoon?
> 
> are there more parameters?
>
> 
> 
> maybe, someone have links to sites, explaining to to this.
> 
> greetings, chris
> 
> 
> -
> 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]>




write logicsheet

2002-06-12 Thread Christoph Stocker

hi!


anyone knows how to write a logicsheet and how
to install it - so that i can use it in my xsp-site?


i know, that i have to do some settings in the cocoon.xconf
and to write something like this -->


   
   http://apache.org/xsp/request/2.0"/>
   


but what does these parameters are for? how will changes to these
parameters affect cocoon?

are there more parameters?
   


maybe, someone have links to sites, explaining to to this.

greetings, chris


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




Unsubscribe me

2002-06-12 Thread João Moita
Title: Unsubscribe me





Could you please unsubscribe me?


Thanks!





João Moita
PayCenter


e-mail   :[EMAIL PROTECTED]
Telem.   : +351.916.610.721
Telef.   : +351.218.394.860
Fax  : +351.218.394.868


www.eb-focus.pt






RE: Cocoon and J2EE

2002-06-12 Thread ROSSEL Olivier

> My cocoon.war comes with the binary distribution.
> I thought that this cocoon.war was necessary to work with Cocoon!?!
> 
> My question is: What is necessary to work with Coccon and do 
> you have to include it in each Enterprise ARchive you create??
> 
> Thank you
> Sylvain

Vadim will tell if I am wrong, but Cocoon is a servlet, ie a Java class.
It needs several Java dependencies for XML parsing and other fundamental
things
to work properly.

Additionnal Java libraries can be added to extend its functionnalities (fop
for PDF rendering, batik for SVG and graphics management). They are not
mandatory.
If they are needed in your application, you have to list them in
cocoon.xconf
and/or sitemap.xmap.

For example, for wikiLand, I needed the basic Cocoon stuff and the chaperon
parser.
So I removed all the .jar uneeded that are usually shipped with Cocoon (big)
archive,
and added chaperon.jar.

If you want, you can take the .war available at the homepahe of wikiLand,
and
study it.
In fact, to remove the dependencies of Chaperon, simply have a look at the
beginning 
the sitemap.xmap and comment everything that talks about chaperon or
wiki-parser.

Then you will have the skeleton for any Cocoon application.

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




Util LogicSheet

2002-06-12 Thread Mike Ash
Title: Util LogicSheet





If we do this it works just fine



 






This doesn't work with the error below.



    
         
            
        
    



org.apache.cocoon.ProcessingException: Language Exception: org.apache.cocoon.components.language.LanguageException: Error compiling ServerList_xsp: Line 127, column 28: ')' expected. Line 0, column 0: 1 error 

Not a huge problem but something to note.





RE: Cocoon and J2EE

2002-06-12 Thread Sylvain.Thevoz

My cocoon.war comes with the binary distribution.
I thought that this cocoon.war was necessary to work with Cocoon!?!

My question is: What is necessary to work with Coccon and do you have to include it in 
each Enterprise ARchive you create??

Thank you
Sylvain

-Message d'origine-
De: Vadim Gritsenko [mailto:[EMAIL PROTECTED]]
Date: mercredi, 12. juin 2002 15:57
À: [EMAIL PROTECTED]
Objet: RE: Cocoon and J2EE


> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
> 
> Hello,
> 
> How to use Cocoon in a J2EE project??
> 
> I have created an app.cocoon_war.ear Enterprise ARchive which contains
the
> cocoon.war (with web context = cocoon).
> It seems to work because I can see the Cocoon welcome page when I
request
> http://localhost/cocoon.
> 
> Now I want to test a simple Hello World program. I have these files:
> sitemap.xmap
> hello.xsl
> helloworld.xml
> 
> Do I put these files in a Web ARchive (.war)?

Yes.


> Do I put these files or the Web ARchive in the app.cocoon_war.ear
Enterprise
> ARchive or in another Enterprise ARchive?

Do you want to create new enterprise app or modify one you already have?


> Is it necessary to have the cocoon.war in a Enterprise ARchive to work
with
> Cocoon?

What is cocoon.war? One which comes with distribution, with samples and
lots of optional components?

You can create own war with customized set of components and no samples
and name it as you want.


Vadim

 
> Thank you very much
> Sylvain


-
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: using pooled connection inside action or reader

2002-06-12 Thread Vadim Gritsenko

> From: Ricardo Trindade [mailto:[EMAIL PROTECTED]]
> 
> thanks. but I still wonder how to get it in the first place...

ComponentSelector selector = (ComponentSelector)
manager.lookup(DataSourceComponent.ROLE + "Selector");

DataSourceComponent datasource = (DataSourceComponent)
selector.select("poolname");

java.sql.Connection connection = datasource.getConnection();



Vadim


> 
> -Original Message-
> From: Vadim Gritsenko [mailto:[EMAIL PROTECTED]]
> Sent: quarta-feira, 12 de Junho de 2002 14:05
> To: [EMAIL PROTECTED]
> Subject: RE: using pooled connection inside action or reader
> 
> 
> > From: Ricardo Trindade [mailto:[EMAIL PROTECTED]]
> >
> > Hi,
> >
> > I'm about to write an action or a reader (or both). They will be
> used to
> > generate reports with the JasperReports tool.
> >
> > To be able to use this tool, I have to pass it a connection to
> my
> > datasource.
> > I was wondering if I will be able (inside the reader or action
> code) to
> > pass it one of the pooled connectios, and if so, if that would be a
> good
> > aproach.
> >
> > Would there be a problem, for example, if jasper closed the
> connection ?
> 
> close() on database connection will just return it to the pool. This
> call is mandatory for all connections taken from the pool.
> 
> Vadim
> 
> >
> > thanks
> > Ricardo Trindade
> >
> >
> >
-
> > 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]>
> 
> 
> 
> -
> 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: Cocoon and J2EE

2002-06-12 Thread Vadim Gritsenko

> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
> 
> Hello,
> 
> How to use Cocoon in a J2EE project??
> 
> I have created an app.cocoon_war.ear Enterprise ARchive which contains
the
> cocoon.war (with web context = cocoon).
> It seems to work because I can see the Cocoon welcome page when I
request
> http://localhost/cocoon.
> 
> Now I want to test a simple Hello World program. I have these files:
> sitemap.xmap
> hello.xsl
> helloworld.xml
> 
> Do I put these files in a Web ARchive (.war)?

Yes.


> Do I put these files or the Web ARchive in the app.cocoon_war.ear
Enterprise
> ARchive or in another Enterprise ARchive?

Do you want to create new enterprise app or modify one you already have?


> Is it necessary to have the cocoon.war in a Enterprise ARchive to work
with
> Cocoon?

What is cocoon.war? One which comes with distribution, with samples and
lots of optional components?

You can create own war with customized set of components and no samples
and name it as you want.


Vadim

 
> Thank you very much
> Sylvain


-
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: using pooled connection inside action or reader

2002-06-12 Thread Ricardo Trindade

thanks. but I still wonder how to get it in the first place...

-Original Message-
From: Vadim Gritsenko [mailto:[EMAIL PROTECTED]]
Sent: quarta-feira, 12 de Junho de 2002 14:05
To: [EMAIL PROTECTED]
Subject: RE: using pooled connection inside action or reader


> From: Ricardo Trindade [mailto:[EMAIL PROTECTED]]
> 
> Hi,
> 
>   I'm about to write an action or a reader (or both). They will be
used to
> generate reports with the JasperReports tool.
> 
>   To be able to use this tool, I have to pass it a connection to
my
> datasource.
>   I was wondering if I will be able (inside the reader or action
code) to
> pass it one of the pooled connectios, and if so, if that would be a
good
> aproach.
> 
>   Would there be a problem, for example, if jasper closed the
connection ?

close() on database connection will just return it to the pool. This
call is mandatory for all connections taken from the pool.

Vadim

> 
> thanks
> Ricardo Trindade
> 
> 
> -
> 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]>



-
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: AW: Help with install in WebSphere

2002-06-12 Thread Adam_Waldal


Michael,
I am running WAS 4.0, but I have questions about the performance issues you
brought up.

What were the problems, and what activities or pipelines created them.  Was
the development difficult, how about deployment, etc..

I have got it running in WSAD 4.0.2 with the apache binary, not my own.

Did you have to extend or modify the Cocoon framework at all?

Thanks,
Adam


   

  "Michael Zehrer" 

   

  ystems.de>   cc: 

   Subject:  AW: Help with install in 
WebSphere
  06/12/02 05:41 AM

  Please respond to

  cocoon-users 

   

   





We have developed with Cocoon 1.x and 2.x and deployed our projects with
no (cocoon related) problems on Websphere 3.5.5, we did this for a very
large company. The main problem with the acceptance for Cocoon in these
projects was (and still is) always the performance. I miss a detailed
description that puts all the knobs together that can be turned to scale
Cocoon for a real high-load project.

If you need any help with WAS 3.5.x, I will answer your questions.


Michael

-Ursprüngliche Nachricht-
Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Gesendet: Dienstag, 11. Juni 2002 21:13
An: [EMAIL PROTECTED]
Betreff: Re: Help with install in WebSphere



J.

Running a current version of WebSphere( 4.0.2 ).  I already have several
web projects working and deployed from WSAD to WS 4.0.

I am just not sure why the bin works and the build war fails?  It comes
back with internal server errors, that are specific to Cocoon.

Was hoping someone else had gone through this.  I think this shows the
lack
of large companies that have implemented Cocoon, which is good for us
Developers and Architects that are implementing it now.

The binary distribution does work for those who care in WSAD 4.0.2 Test
Environment.
"So your saying there a chance."

Thanks,
Adam




  "J.Pietschmann"

  <[EMAIL PROTECTED]To:
[EMAIL PROTECTED]

  e>   cc:

   Subject:  Re: Help with
install in WebSphere
  06/11/02 01:27 PM

  Please respond to

  cocoon-users









[EMAIL PROTECTED] wrote:
> Has anyone had any practical experience using Cocoon in a WebSphere
> environment, including WebSphere Application Developer?

I got Cocoon 2.0.2 more or less running on a somewhat patched 3.5.4.
Your problem looks like you are also using 3.5.x. If you can, upgrade
to 4.x.

J.Pietschmann


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


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




Cocoon and J2EE

2002-06-12 Thread Sylvain.Thevoz

Hello,

How to use Cocoon in a J2EE project??

I have created an app.cocoon_war.ear Enterprise ARchive which contains the cocoon.war 
(with web context = cocoon).
It seems to work because I can see the Cocoon welcome page when I request 
http://localhost/cocoon.

Now I want to test a simple Hello World program. I have these files:
sitemap.xmap
hello.xsl
helloworld.xml

Do I put these files in a Web ARchive (.war)?
Do I put these files or the Web ARchive in the app.cocoon_war.ear Enterprise ARchive 
or in another Enterprise ARchive?

Is it necessary to have the cocoon.war in a Enterprise ARchive to work with Cocoon?

Thank you very much
Sylvain

-
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: Empty html page

2002-06-12 Thread Helena Ginzburg

Yes.

-Original Message-
From: Vadim Gritsenko [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, June 12, 2002 3:12 PM
To: [EMAIL PROTECTED]
Subject: RE: Empty html page


> From: Helena Ginzburg [mailto:[EMAIL PROTECTED]]
> 
> Hi All,
> 
> I am trying to test simple Hello World on WebLogic6.1.sp2
> If I am using LogTransformer this is work correctly ( I see my xml
file
> output on the server console ).
> While if I am using org.apache.cocoon.transformation, TraxTransformer
> output on the browser is just empty html page.

Do you have:


  
  


in cocoon.xconf?


Vadim


> 
> All logs are without errors.
> Do I have forgotten something?
> 
> Any help or ideas would be appreciated very much.
> 
> Thank you in advance
> Helena.
> 
> 
> from sitemap.xml :
>  pool-max="32" pool-min="8"
> src="org.apache.cocoon.transformation.TraxTransformer">
> false
> false
> false
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> -
> 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]>

-
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: Empty html page

2002-06-12 Thread Vadim Gritsenko

> From: Helena Ginzburg [mailto:[EMAIL PROTECTED]]
> 
> Hi All,
> 
> I am trying to test simple Hello World on WebLogic6.1.sp2
> If I am using LogTransformer this is work correctly ( I see my xml
file
> output on the server console ).
> While if I am using org.apache.cocoon.transformation, TraxTransformer
> output on the browser is just empty html page.

Do you have:


  
  


in cocoon.xconf?


Vadim


> 
> All logs are without errors.
> Do I have forgotten something?
> 
> Any help or ideas would be appreciated very much.
> 
> Thank you in advance
> Helena.
> 
> 
> from sitemap.xml :
>  pool-max="32" pool-min="8"
> src="org.apache.cocoon.transformation.TraxTransformer">
> false
> false
> false
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> -
> 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: using pooled connection inside action or reader

2002-06-12 Thread Vadim Gritsenko

> From: Ricardo Trindade [mailto:[EMAIL PROTECTED]]
> 
> Hi,
> 
>   I'm about to write an action or a reader (or both). They will be
used to
> generate reports with the JasperReports tool.
> 
>   To be able to use this tool, I have to pass it a connection to
my
> datasource.
>   I was wondering if I will be able (inside the reader or action
code) to
> pass it one of the pooled connectios, and if so, if that would be a
good
> aproach.
> 
>   Would there be a problem, for example, if jasper closed the
connection ?

close() on database connection will just return it to the pool. This
call is mandatory for all connections taken from the pool.

Vadim

> 
> thanks
> Ricardo Trindade
> 
> 
> -
> 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: reference to Session is ambiguous. 2.0.3-DEV

2002-06-12 Thread Vadim Gritsenko

> From: Montier Patrick [mailto:[EMAIL PROTECTED]]
> 
> hi,
> 
> I found in previous emails (18 April 2002) ; the same error than i get
with
> my sendmail so i'm not alone :
> 
> long Path to javax.mail.Session on account of ambiguous to
> org.apache.cocoon.environment.Session
> 
> Vadim advised to change the sendmail logicsheet in order to avoid the
> session object, i try without any result even if i use the folder
object.
> 
> IS there any cocoon patch to resolve the problem of the "Session
session =
> request.getSession(true);" ?

Have you tried latest version?

http://cvs.apache.org/viewcvs.cgi/xml-cocoon2/src/java/org/apache/cocoon
/components/language/markup/xsp/java/sendmail.xsl?rev=1.4.2.1&only_with_
tag=cocoon_2_0_3_branch&content-type=text/vnd.viewcvs-markup

Vadim

> 
> Thank you.
> 
> Patrick
> 


-
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: Tutorial & Xindice

2002-06-12 Thread Vadim Gritsenko

> From: F Baube [mailto:[EMAIL PROTECTED]]
> 
> Cocoon 2.0.2, Xindice 1.0, Tomcat 4.0.4-b3 on Linux...
> 
> I'm trying to work thru the Cocoon tutorial,
> and I'd like to get it to work with Xindice.
> And I'm afraid that DB's are not my strong point.
> 
> I have Xindice running, and I get an exception (below)
> when I try to add a department (which takes me to the URL
> 
>   http://localhost:8080/cocoon/tutorial/create-dept.html
> 
> How could I get the tutorial to work with Xindice ?
> 
> I see that SQL tables are created and filled with sample
> data in src/webapp/docs/samples/sql/sql-page.xml.sql .
> 
> If I create similar documents in Xindice, what
> else would be required to make the tutorial run ?
> 
> Or ... does use of the ESQL logicsheet require
> a JDBC driver that Xindice simply does not have ?
> Do I have to use a relational database instead ?

ESQL is a logicsheet to work with SQL (relational) databases. Java
connects to SQL databases using JDBC.

Xindice neither relational database nor has JDBC interface (because,
again, it is not relational database).

To work with xindice, you can use XML:DB source (see sample sitemap) and
XML:DB transformer (in the scratchpad).

Vadim

...


-
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 and Oracle 8 - more informations.

2002-06-12 Thread TREGAN Fabien

I'm still stuck trying to use Oracle 8.0.6 instead of HSQLDB.

I've got a basic sample (using xsp-esql), wich work Ok if I use the HSQL
connection, and retour the attached error (NoValidConnectionException) when
used with the Oracle connection.

Oracle works fine when accessed with the Oracle Client.

I use nls_*12.jar ans classes12.jar provided by oracle (in web-inf/lib), I
followed the install instructio (path).


If you have any hint...


-


in Web.XML :



  load-class
  
  oracle.jdbc.driver.OracleDriver
  org.hsqldb.jdbcDriver
  



in Cocoon.XCONF:


  



  jdbc:hsqldb:hsql://localhost:9002
  sa
  




  
  jdbc:oracle:thin:@carlos:1521:FUSION
  dba
  dba


  


In the XSP : 




fusionoracle


SELECT * from serveur

















logs.zip
Description: Binary data

-
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: XMLForms. HOWTO bug?

2002-06-12 Thread Andrew C. Oliver

As soon as I figure out how to use it I plan to :-)

I've started my rewrite of this site: www.bringmethis.com using Cocoon 
(and hence XMLForm).   In the process I'll be happy to contribute a 
hello XMLForm example once I actually figure out how to get it working. 
 I'm a little slower than the rest of ya.

-Andy

Ivelin Ivanov wrote:

>
> Interested to write one ? ;)
>
>
> Andrew C. Oliver wrote:
>
>> Yromem.com MailingList wrote:
>>
>>> Hi,
>>>
>>> do you plan to write a simple way to use XMLForm when we need only 
>>> one Form :
>>>with no need to write a javabean (or javacode)
>>> I trie to understand all the XMLForm, but it is difficult to me. 
>>> (the java part)
>>>
>>> Khalid.
>>
>>
>>
>>
>> +1 -- We need a "Hello XMLForm" example.
>>
>>>
>>>
>>> Ivelin Ivanov wrote:
>>>

 UserBean.java:
   private Node system;

 This an attribute which is of type org.w3c.dom.Node

 This is used in the FeedBack Wiazard demo to show how JavaBeans can 
 be mixed with dom nodes. It is referenced on the page where you 
 select Operating System, RAM, App server, etc.

 If you're not going to need DOM nodes in your Form model, you can 
 ignore   this attribute. Just delete it.

 I am not sure why it is in the HowTo though. Don't think it is 
 necessary. Heidi?


 Ivelin

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



-
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: ESQL, Multiple Queries

2002-06-12 Thread Michael Mangeng

Hi

thanx it works perfectly.

greetings
mike

- Original Message -
From: "Derek Hohls" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Wednesday, June 12, 2002 9:54 AM
Subject: Re: ESQL, Multiple Queries


> Mike
>
> Suggest you work through the IBM Developer Works Tutorial -
> Cocoon 2: Build database-driven sites (05/30/2002)
> it explains things nesting/grouping really clearly...
>
>
http://www-105.ibm.com/developerworks/education.nsf/dw/xml-onlinecourse-byne
west?OpenDocument&Count=500
>
> Derek
>
> >>> [EMAIL PROTECTED] 12/06/2002 09:53:30 >>>
> Hi
>
> I m wondering how i can do multiple selects with the esql
> logicsheet.
>
> thanx
> mike
>
> -
> 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]>




AW: Help with install in WebSphere

2002-06-12 Thread Michael Zehrer

We have developed with Cocoon 1.x and 2.x and deployed our projects with
no (cocoon related) problems on Websphere 3.5.5, we did this for a very
large company. The main problem with the acceptance for Cocoon in these
projects was (and still is) always the performance. I miss a detailed
description that puts all the knobs together that can be turned to scale
Cocoon for a real high-load project.

If you need any help with WAS 3.5.x, I will answer your questions.


Michael

-Ursprüngliche Nachricht-
Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Gesendet: Dienstag, 11. Juni 2002 21:13
An: [EMAIL PROTECTED]
Betreff: Re: Help with install in WebSphere



J.

Running a current version of WebSphere( 4.0.2 ).  I already have several
web projects working and deployed from WSAD to WS 4.0.

I am just not sure why the bin works and the build war fails?  It comes
back with internal server errors, that are specific to Cocoon.

Was hoping someone else had gone through this.  I think this shows the
lack
of large companies that have implemented Cocoon, which is good for us
Developers and Architects that are implementing it now.

The binary distribution does work for those who care in WSAD 4.0.2 Test
Environment.
"So your saying there a chance."

Thanks,
Adam


 

  "J.Pietschmann"

  <[EMAIL PROTECTED]To:
[EMAIL PROTECTED]

  e>   cc:

   Subject:  Re: Help with
install in WebSphere
  06/11/02 01:27 PM

  Please respond to

  cocoon-users

 

 





[EMAIL PROTECTED] wrote:
> Has anyone had any practical experience using Cocoon in a WebSphere
> environment, including WebSphere Application Developer?

I got Cocoon 2.0.2 more or less running on a somewhat patched 3.5.4.
Your problem looks like you are also using 3.5.x. If you can, upgrade
to 4.x.

J.Pietschmann


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


-
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: XMLForms. HOWTO bug?

2002-06-12 Thread Yromem.com MailingList

Ivelin Ivanov wrote:

>>
> This will be fine for very simple forms.
>
> How would validation errors be accessed?
> How would branching control be implemented based on the submitted data 
> (like in the HOWTO example)?
>
> I am still qurious what will handle the submitted data if not an Action?
>
> I would recommend that Khalid writes a few samples subclassing 
> AbstractXMLForm action and if he can come up with a couple of commonly 
> encountered use cases, then he can propose a concrete implementation 
> which we will consider to add in Cocoon 2.1.

I am not a java programmer, but i will try that.

Khalid

>
> How does this sound?
>
>
> Ivelin
>



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

2002-06-12 Thread Tom Klaasen

ROSSEL Olivier wrote:
> 
>>-Message d'origine-
>>De: Tom Klaasen [mailto:[EMAIL PROTECTED]]
>>Date: mercredi 12 juin 2002 11:34
>>À: [EMAIL PROTECTED]
>>Objet: Re: Cocoon dictionnary.
>>
>>
>>ROSSEL Olivier wrote:
>>
>>>I would like to deploy wikiLand on a public server, in 
>>
>>order to launch
>>
>>>a 'Cocoon dictionnary', managed as a wiki.
>>>
>>>Does anyone know where such a project can be hosted for free?
>>>
>>
>>If it is a java servlet, and not too big: www.mycgiserver.com
> 
> 
> 
> No, servlet policy at mycgiserver is for home-made servlets.
> I do not want to patch C2 code in order to be compliant with 
> their policy.

IANAL ;)



-- 
tomK


This is a test of the emergency signature system.  Were this an actual
signature, you would see amusing mottos, disclaimers, a zillion net
addresses, or edifying philisophical statements.  This is only a test.


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




Empty html page

2002-06-12 Thread Helena Ginzburg

Hi All,

I am trying to test simple Hello World on WebLogic6.1.sp2
If I am using LogTransformer this is work correctly ( I see my xml file
output on the server console ). 
While if I am using org.apache.cocoon.transformation, TraxTransformer
output on the browser is just empty html page.

All logs are without errors.
Do I have forgotten something?

Any help or ideas would be appreciated very much.

Thank you in advance
Helena.


from sitemap.xml : 

false
false
false










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

2002-06-12 Thread ROSSEL Olivier



> -Message d'origine-
> De: Tom Klaasen [mailto:[EMAIL PROTECTED]]
> Date: mercredi 12 juin 2002 11:34
> À: [EMAIL PROTECTED]
> Objet: Re: Cocoon dictionnary.
> 
> 
> ROSSEL Olivier wrote:
> > I would like to deploy wikiLand on a public server, in 
> order to launch
> > a 'Cocoon dictionnary', managed as a wiki.
> > 
> > Does anyone know where such a project can be hosted for free?
> > 
> 
> If it is a java servlet, and not too big: www.mycgiserver.com


No, servlet policy at mycgiserver is for home-made servlets.
I do not want to patch C2 code in order to be compliant with 
their policy.

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

2002-06-12 Thread Tom Klaasen

ROSSEL Olivier wrote:
> I would like to deploy wikiLand on a public server, in order to launch
> a 'Cocoon dictionnary', managed as a wiki.
> 
> Does anyone know where such a project can be hosted for free?
> 

If it is a java servlet, and not too big: www.mycgiserver.com

-- 
tomK


This is a test of the emergency signature system.  Were this an actual
signature, you would see amusing mottos, disclaimers, a zillion net
addresses, or edifying philisophical statements.  This is only a test.


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




Cocoon dictionnary.

2002-06-12 Thread ROSSEL Olivier

I would like to deploy wikiLand on a public server, in order to launch
a 'Cocoon dictionnary', managed as a wiki.

Does anyone know where such a project can be hosted for free?

-
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: how to write a simple Hello World

2002-06-12 Thread Bertrand Delacretaz

On Wednesday 12 June 2002 10:40, [EMAIL PROTECTED] wrote:
> I'm new in the Cocoon world and I try to test a simple Hello World program.

What you're missing is a sitemap to tie your XML and XSLT togerther to 
generate HTML

This is explained at 
http://xml.apache.org/cocoon/userdocs/concepts/sitemap.html, and you could 
study how the main cocoon sitemap (sitemap.xmap in the webapps/cocoon 
directory) generates the "hello.html" example page.

An easy way to experiment without breaking your existing configuration is to 
use the automount mechanism described at (shameless plug - I wrote this)  
http://www.cocooncenter.de/cc/documents/resources/hot-plugging/index.html

Hope this helps!
-- 
 Bertrand Delacrétaz (codeconsult.ch, jfor.org)

 buzzwords: XML, java, XSLT, cocoon, mentoring/teaching/coding.
 disclaimer: eternity is very long. mostly towards the end. get ready.






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




reference to Session is ambiguous. 2.0.3-DEV

2002-06-12 Thread Montier Patrick

hi,

I found in previous emails (18 April 2002) ; the same error than i get with
my sendmail so i'm not alone :

long Path to javax.mail.Session on account of ambiguous to
org.apache.cocoon.environment.Session

Vadim advised to change the sendmail logicsheet in order to avoid the
session object, i try without any result even if i use the folder object.

IS there any cocoon patch to resolve the problem of the "Session session =
request.getSession(true);" ?

Thank you.

Patrick






-
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: XMLForms. HOWTO bug?

2002-06-12 Thread Nicola Ken Barozzi


Ivelin Ivanov wrote:
> Piroumian Konstantin wrote:
> 
>>> From: Yromem.com MailingList [mailto:[EMAIL PROTECTED]]
>>> I was thinking about a default javabeans, with N parameter :
>>>1. where to go when the form is validated ?
>>>2. what is the validator file ?
>>>3. other ?
>>
>>
>>
>> I suspect that you have a little wrong understanding of XMLForms.
>> The XMLForm were intended to implement the Model - View - Controller
>> pattern, where:
>>
>> Model - is your Instance data that holds the form data (JavaBean or
>> DOM object) (See http://www.w3c.org/ - XForms).
>>
>> View - an XML description of the form that is transformed by the
>> XMLFormTransformer, filled by the instance date, then transformed into
>> desired format by XSLT
>>
>> Controller - currently, the role of the controller performs the
>> sitemap, but you can use some other (maybe the flowmap) approach to 
>> control
>> the sequence of actions, states, etc. - flow - of your application.
> 
> 
> 
> Minor note. The controller would ideally be the sitemap or the flow 
> engine. However in many practical situations, control and flow is 
> handled by java code accessible in an Action. This is how Struts 
> applications work.

Our "Action" is not a struts "Action", and has a different meaning.
Our controller is the sitemap and the flow stuff.
Actions are "plugins" for these two defined controllers.


-- 
Nicola Ken Barozzi   [EMAIL PROTECTED]
 - verba volant, scripta manent -
(discussions get forgotten, just code remains)
-


-
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: "Please Wait" Message

2002-06-12 Thread Nicola Ken Barozzi



Stephen Ng wrote:
> Another (microsoft-only) possibility would be to use an XMLHTTP object to
> grab status dynamically and display progress.

AFAIK Mozilla should have it too (not that I recommend using it ;-)


>>-Original Message-
>>From: J.Pietschmann [mailto:[EMAIL PROTECTED]]
>>Sent: Tuesday, June 11, 2002 12:44 PM
>>To: [EMAIL PROTECTED]
>>Subject: Re: "Please Wait" Message
>>
>>
>>David Vos wrote:
>>
>>>It would be nice to send the user
>>>some kind of "Please Wait" message, and then send them the
>>
>>file when it is
>>
>>>ready.
>>
>>Some more ideas:
>>  http://marc.theaimsgroup.com/?l=fop-user&m=102356941400834&w=2
>>
>>J.Pietschmann
>>


-- 
Nicola Ken Barozzi   [EMAIL PROTECTED]
 - verba volant, scripta manent -
(discussions get forgotten, just code remains)
-


-
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: Vadim : RE: XSP Upload example - I do not understand

2002-06-12 Thread Nicola Ken Barozzi


Jeroen ter Voorde wrote:
> Hi,
> 
> You can use an action to move the attachment to where you want. Here's how:
> 
> http://marc.theaimsgroup.com/?l=xml-cocoon-dev&m=101878098524370&w=2

Or fix the upload mechanism ;-)

Having to pass upload stuff conf to Cocoon directly is an ugly hack, 
that nobody ever took time to change.

If you are willing...

-- 
Nicola Ken Barozzi   [EMAIL PROTECTED]
 - verba volant, scripta manent -
(discussions get forgotten, just code remains)
-


-
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: Can't build last Cocoon dev-snapshot

2002-06-12 Thread Carsten Ziegeler

This problem is fixed in the current CVS, you can either check it out
or you have to add

import org.apache.cocoon.environment.ObjectModelHelper;

to the import list of the Paginator class

Carsten

> -Original Message-
> From: Ivan Luzyanin [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, June 12, 2002 1:47 PM
> To: Cocoon-users
> Subject: Can't build last Cocoon dev-snapshot
>
>
> Hi!
>
> I have dowloaded today last dev snapshot
> xml-cocoon2_20020612041724.tar.gz build failes with error message:
>
> Compiling 82 source files to
> /home/ivan/storage/downloads/Cocoon/xml-cocoon2/build/cocoon/scrat
> chpad/classes
> /home/ivan/storage/downloads/Cocoon/xml-cocoon2/build/cocoon/scrat
chpad/src/org/apache/cocoon/transformation/pagination/Paginator.java:172:
cannot resolve symbol
> symbol  : variable ObjectModelHelper
> location: class org.apache.cocoon.transformation.pagination.Paginator
> this.request = ObjectModelHelper.getRequest(objectModel);
>^
> Note: Some input files use or override a deprecated API.
> Note: Recompile with -deprecation for details.
> 1 error
>
> BUILD FAILED
>
> /home/ivan/storage/downloads/linux/Cocoon/xml-cocoon2/build.xml:943:
> Compile failed, messages should have been provided.
>
> Cocoon 2.1dev, Tomcat 4.0.4b3, JDK 1.3.1_02b (Blackdown), RedHat 7.3
>
>
> -
> 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: how to write a simple Hello World

2002-06-12 Thread ROSSEL Olivier

> Hi folks,
> 
> I'm new in the Cocoon world and I try to test a simple Hello 
> World program.
> 
> Here my hello.xml document:
> 
> 
> 
> 
> 
>   Hello World!
>   
> It's my first Cocoon page !
>   
> 
> 
> 
> And here my hello.xsl stylesheet:
> 
> 
>  xmlns:xsl="http://www.w3.org/1999/XSL/Transform";>
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> But when I request the hello.xml from my browser, nothing happend!
> I just see my hello.xml file in the browser.
> do I have fogotten something?
> 
> 
> Thank you
> Sylvain

If you use Cocoon2, it does not work the way it used to work in Cocoon1.
You have to declare excplicitely which URL pattern will trigger your
XML+XSL.
In fact, in the file sitemap.xmap, you declare all URL patterns that Cocoon
will handle, and associate a data chain (called a "pipeline").

Have a look at your sitemap.xmap.

A piepilne is a chain of Cocoon components that send SAX events to the next
component.
A pipeline is defined as a XML generator, zero or more XSL transformers and
a HTML serializer
(: transforms SAX events into a character stream). I think that by studying
the sitemap.xmap, you will
find a pipeline description that matches your HelloWorld example.

Feel free to tell us which difficulties block you.

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




Can't build last Cocoon dev-snapshot

2002-06-12 Thread Ivan Luzyanin

Hi!

I have dowloaded today last dev snapshot
xml-cocoon2_20020612041724.tar.gz build failes with error message:

Compiling 82 source files to
/home/ivan/storage/downloads/Cocoon/xml-cocoon2/build/cocoon/scratchpad/classes
/home/ivan/storage/downloads/Cocoon/xml-cocoon2/build/cocoon/scratchpad/src/org/apache/cocoon/transformation/pagination/Paginator.java:172:
 cannot resolve symbol
symbol  : variable ObjectModelHelper
location: class org.apache.cocoon.transformation.pagination.Paginator
this.request = ObjectModelHelper.getRequest(objectModel);
   ^
Note: Some input files use or override a deprecated API.
Note: Recompile with -deprecation for details.
1 error

BUILD FAILED

/home/ivan/storage/downloads/linux/Cocoon/xml-cocoon2/build.xml:943:
Compile failed, messages should have been provided.

Cocoon 2.1dev, Tomcat 4.0.4b3, JDK 1.3.1_02b (Blackdown), RedHat 7.3


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




AW: ESQL, Multiple Queries

2002-06-12 Thread Philipp Bo?em

i have got following runnig. is probably not the most elegant way, but it
works.


http://apache.org/xsp";
xmlns:xsp-formval="http://apache.org/xsp/form-validator/2.0";
xmlns:xsp-request="http://apache.org/xsp/request/2.0";
xmlns:esql="http://apache.org/cocoon/SQL/v2";>


seminarnoten


update studenten set matrikelnr='' where id = ''




update studenten set name=''
where id = ''




update studenten set vorname='' where id = ''




update studenten set thema=''
where id = ''




update studenten set betreuer='' where id = ''




update studenten set abgabetermin='' where id = ''




update studenten set seminarnote='' where id = ''




select * from studenten



















-Ursprungliche Nachricht-
Von: Derek Hohls [mailto:[EMAIL PROTECTED]]
Gesendet: Mittwoch, 12. Juni 2002 09:54
An: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Betreff: Re: ESQL, Multiple Queries


Mike

Suggest you work through the IBM Developer Works Tutorial -
Cocoon 2: Build database-driven sites (05/30/2002)
it explains things nesting/grouping really clearly...

http://www-105.ibm.com/developerworks/education.nsf/dw/xml-onlinecourse-byne
west?OpenDocument&Count=500

Derek

>>> [EMAIL PROTECTED] 12/06/2002 09:53:30 >>>
Hi

I m wondering how i can do multiple selects with the esql
logicsheet.

thanx
mike

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




how to write a simple Hello World

2002-06-12 Thread Sylvain.Thevoz

Hi folks,

I'm new in the Cocoon world and I try to test a simple Hello World program.

Here my hello.xml document:





  Hello World!
  
It's my first Cocoon page !
  



And here my hello.xsl stylesheet:


http://www.w3.org/1999/XSL/Transform";>















But when I request the hello.xml from my browser, nothing happend!
I just see my hello.xml file in the browser.
do I have fogotten something?


Thank you
Sylvain

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




Cocoon and Oracle 8

2002-06-12 Thread TREGAN Fabien

Hi,

I have a demo that works fine with the database provided with Cocoon.

I want to use the Oracle DB (8.0.6 on solaris). Oracle works fine from my PC
with the Oracle Client. So here is what I made to use Oracle in Cocoon :

-edit web.xml so it loads the oracle server (that seems to work, no error)
-edit the datasource (something like :
jdbc:oracle:thin:user/pass@server:port:SERVICE. I also tryed without the
user/pass)
-tell the actions to use this datasource.

The sample no give a "Invalide Source Exception"

Any idea ? any sample of something that DO work with Oracle ?

thx, fabien.

-
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: ESQL, Multiple Queries

2002-06-12 Thread Derek Hohls

Mike

Suggest you work through the IBM Developer Works Tutorial -
Cocoon 2: Build database-driven sites (05/30/2002)
it explains things nesting/grouping really clearly...

http://www-105.ibm.com/developerworks/education.nsf/dw/xml-onlinecourse-bynewest?OpenDocument&Count=500

Derek

>>> [EMAIL PROTECTED] 12/06/2002 09:53:30 >>>
Hi

I m wondering how i can do multiple selects with the esql
logicsheet.

thanx
mike

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




ESQL, Multiple Queries

2002-06-12 Thread Michael Mangeng



Hi
 
I´m wondering how i can do multiple selects with 
the esql logicsheet.
 
thanx
mike


i18n problem

2002-06-12 Thread Hahn Kurt (CHA)

This is a fragment of my XML, which is processed through the i18n
transformer. Below are the results: They all get translated but one. There
are a lot of more of these elements in my document, it seems that they all
get translated except this one. I discovered this problem yesterday, the
only guess I can make is that the i18n in Cocoon isn't 100% reliable. Can
anybody see any other reason why the last one of these four elements
wouldn't get translated? All elements are dynamically created, so I really
can't see how they can be different...?

Kurt

2002002612 
21.02.02 
17:00 

PR-ACT 

  
  
2002002614 
21.02.02 
17:00 

PR-ACT 

  
  
2002002617 
21.02.02 
17:00 

PR-ACT 

  
  
2002002618 
21.02.02 
17:00 

PR-ACT 

  


RESULTS:

 
2002002612 
21.02.02 
17:00 
Pris acte 
 
 
2002002614 
21.02.02 
17:00 
Pris acte 
 
 
2002002617 
21.02.02 
17:00 
Pris acte 
 
 
2002002618 
21.02.02 
17:00 
untranslated-text 


-
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: Vadim : RE: XSP Upload example - I do not understand

2002-06-12 Thread Jeroen ter Voorde

Hi,

You can use an action to move the attachment to where you want. Here's how:

http://marc.theaimsgroup.com/?l=xml-cocoon-dev&m=101878098524370&w=2

Jeroen


- Original Message - 
From: "Chitharanjan Das" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, June 12, 2002 12:32 AM
Subject: RE: Vadim : RE: XSP Upload example - I do not understand


> 
> Thanks a million
> 
> I understand it now...
> 
> Let me try to clarify
> 
> 1. Upload directory is read from init parameter. Hence it is kinda fixed
> .
> 2. We do not get the control of uploaded files.
> As soon as the Cocoon gets a request. The request is processed
> for Multipart request processing. Is this how it has to be processed ?
> The only way to change this is to provide my own version of multi-part
> request processing factory. However, the problem is that you can have
> utmost one kind of behaviour.
> 3. In my implementation, I need to store the files in different
> directories, depending upon the type of files uploaded. How do you
> suggest I go ant it...
> 
> 
> Thanks in advance,
> Chiths
> 
> 
> 
> 
> 
> 
> 
> 
> 
> -Original Message-
> From: Vadim Gritsenko [mailto:[EMAIL PROTECTED]] 
> Sent: Tuesday, June 11, 2002 1:18 PM
> To: [EMAIL PROTECTED]
> Subject: RE: Vadim : RE: XSP Upload example - I do not understand
> 
> > From: Chitharanjan Das [mailto:[EMAIL PROTECTED]]
> > 
> > Hello Vadim...
> > 
> > If you might explain the upload functionality ...
> > 
> > 1. Form with multipart data is submitted to upload.xsp
> > 2. The form parameters have to be processed. I changed the form
> variable
> > name from uploaded_file to files and still it works.
> > 3. If I have to do additional processing like throw error if the file
> > exists or the file needs to be stored in a specific pattern say
> > $upload_directory///_uniqueId. How can I
> customize
> > it.
> 
> Look into the source. Start with CocoonServlet:
> 
> HttpServletRequest request =
> RequestFactory.getRequestFactory(requestFactoryClass).getServletRequest(
> req,
>  
> CocoonServlet.SAVE_UPLOADED_FILES_TO_DISK,
>  this.uploadDir,
>  CocoonServlet.ALLOW_OVERWRITE,
>  CocoonServlet.SILENTLY_RENAME,
>  this.maxUploadSize);
> 
> 
> > 4. If there are additional form elements, how do I process them.
> > 5. Where is the upload functionality being invoked.. Its kind a vague
> > (for my intellect).
> 
> From the servlet, see line(s) above.
> 
> Vadim
> 
> 
> > 
> > Thanks in Advance,
> > Chiths
> > 
> > 
> > -Original Message-
> > From: Vadim Gritsenko [mailto:[EMAIL PROTECTED]]
> > Sent: Tuesday, June 11, 2002 6:51 AM
> > To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
> > Subject: RE: XSP Upload example - I do not understand
> > 
> > > From: Stefan Riegel [mailto:[EMAIL PROTECTED]]
> > >
> > > Hello, everybody,
> > >
> > > I do not understand the XSP upload example. Yes, it works fine, but
> I
> > would
> > > like to understand as much as possible. I guess their is some
> "magic"
> > behind
> > > the scene.
> > >
> > > I did some reading of the API Javadoc, but I'am still not
> experienced
> > enough
> > > reading source code. What to do? Should I give up learning Cocoon
> :-(
> > 
> > Try reading Java source code generated from the XSP.
> > 
> > 
> > > The example XSP-Source follows. I added comments about what I don't
> > > understand.
> > >
> > >
> > > 
> > >
> > > 
> > >
> > >
> > > 
> > 
> > If not used then can be omitted.
> > 
> > 
> > >  > >   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";
> > >   xmlns:log="http://apache.org/xsp/log/2.0";>
> > >
> > >   
> > > 
> > 
> > Same.
> > 
> > 
> > >
> >
> org.apache.cocoon.components.language.markup.xsp.XSPUtil > sp:i
> > > nclude>
> > >
> > >
> >
> org.apache.avalon.framework.context.ContextException > nclu
> > > de>
> > >   
> > >
> > > 
> > >   
> > >   File uploadDir = null;
> > >   /** Contextualize this class */
> > >   public void contextualize(Context context) throws ContextException
> {
> > > uploadDir = (File) context.get(Constants.CONTEXT_UPLOAD_DIR);
> > >   }
> > >   
> > >
> > >   
> > >This form allows you upload files
> > >
> > >  
> > > > > action="upload.xsp">
> > >  File:  
> > >  
> > >
> > >  
> > >  
> > >  
> > >
> > > getLogger().debug("Dir=" + uploadDir);
> > >  String[] filelist = uploadDir.list();
> > >  
> > >
> > >  filelist[i]
> > >
> > >  
> > >
> > >  
> > >  
> > >  Brought to you by Cocoon at new
> > > Date().
> > >
> > >
> > >   
> > > 
> > >
> > >
> > > Thank You.
> > >
> > > Regards
> > > Stefan
> > > --
> >