Re: Leading newline inserted by xsl:copy-of

2002-09-23 Thread Joerg Heinicke

Hello Daniel,

can you provide some code?

Whitespace stripping in spec: http://www.w3.org/TR/xslt#strip.

Regards,

Joerg

Daniel Fournier wrote:
> Hi,
> 
> Using several xsl:copy-of in a template, I get a leading newline 
> character inserted in front of each copy except for the first one.
> Even if the source XML contains no newline between tags and specifying 
> xsl;strip-space on all elements.
> 
> Is that a Xerces, Xalan or Cocoon bug?


-
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: Sunrise for Dummies

2002-09-23 Thread Richard Reyes

thanks
- Original Message -
From: "Carsten Ziegeler" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, September 23, 2002 11:21 PM
Subject: RE: Sunrise for Dummies


> Another tutorial is at: http://ziegeler.bei.t-online.de/tecart.html
>
> Carsten
>
> -Original Message-
> From: Richard [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, September 24, 2002 9:25 PM
> To: C2 Users
> Subject: Sunrise for Dummies
>
>
> Hi Guys,
>
> Aside from
>
http://radio.weblogs.com/0103021/stories/2002/02/28/usingTheSunriseComponent
> s.html
>
> Any other tutorials you can give to me?
>
> The one on the C2 website is pretty advance, I think and i'm looking for
> more examples...
>
> Thanks
> Richard
>
>
> -
> 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: Sunrise for Dummies

2002-09-23 Thread Carsten Ziegeler

Another tutorial is at: http://ziegeler.bei.t-online.de/tecart.html

Carsten

-Original Message-
From: Richard [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, September 24, 2002 9:25 PM
To: C2 Users
Subject: Sunrise for Dummies


Hi Guys,

Aside from
http://radio.weblogs.com/0103021/stories/2002/02/28/usingTheSunriseComponent
s.html

Any other tutorials you can give to me?

The one on the C2 website is pretty advance, I think and i'm looking for
more examples...

Thanks
Richard


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




Leading newline inserted by xsl:copy-of

2002-09-23 Thread Daniel Fournier

Hi,

Using several xsl:copy-of in a template, I get a leading newline 
character inserted in front of each copy except for the first one.
Even if the source XML contains no newline between tags and specifying 
xsl;strip-space on all elements.

Is that a Xerces, Xalan or Cocoon bug?

-
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: Schematron question

2002-09-23 Thread Ivelin Ivanov


How about:


 
 
 The Password Should be @ least 8 character.
 
 
 
 
 The Password Should be the same as before.
 
 

If this still doesn't work, try


 
 
 The Password Should be @ least 8 character.
 
 
 The Password Should be the same as before.
 
 



- Original Message - 
From: "Mohamed El-Refaey" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, September 23, 2002 6:42 PM
Subject: Schematron question


> Hi all
> 
> I have a question related to Schematron validation :
> How I can validate a 2 Text box in XMLForm values that they are 
> identical for example (a password should be entered twice by the user 
> and it must be identical in both field)
> 
> I tried to write the Rule in the schematron validation file as follow 
> but it didn't work well :
> 
> 
> 
> The Password Should be @ least 8 character.
> 
> 
> 
> 
> The Password Should be the same as before.
> 
> 
> 
> also I tried :
>
> 
> 
> The Password Should be the same as before.
> 
> 
> 
> but unfortunately I have no result ..
> 
> any body tried this before ?
> 
> Thanx in advance
> 
> 
> -
> 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]>




command line for cocoon1.8

2002-09-23 Thread nico

hi,

i am trying to run cocoon1.8 from the command line
and i am having a hard time finding docs or examples
explaining how this is done.

i've looked at the cocoon1.8 faq's and at Cocoon.java
and Engine.java in org.apache.cocoon

the command i am using seems to work so far as to
produce the Usage statement (from Cocoon.java) so
i am pretty sure i am setting the correct classpaths.

what i am not clear on is the format of the Input and Output
files that should be specified in the command line.

ideally i would like to specify my xml source file, the xsl
page to transform the data, and the output format (html, pdf, etc..)

thanks in advance for any help you can provide,

nico


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




Sunrise for Dummies

2002-09-23 Thread Richard




Hi Guys,
 
Aside from http://radio.weblogs.com/0103021/stories/2002/02/28/usingTheSunriseComponents.html
 
Any other tutorials you can give 
to me?
 
The one on the C2 website is 
pretty advance, I think and i'm looking for more examples... 
 
Thanks
Richard


Re: PERFUME PROPOSAL: SOAP FOR COCOON

2002-09-23 Thread Steven Punte

> > PERFUME PROPOSAL:  SOAP FOR COCOON
> > 
> > For the web application project I'm orchestrating,
we
> > wish to add commercial quality support for SOAP 
> > messaging: both act as a client and as a server.
> > 
> > I have examined the existing soap client package,
> > and new soap package, but I'm uncomfortable with
> > them because the former is xsp based, and the
later
> > is implemented only as a reader.
> 
> Is there something the reader currently
prohibits you from doing ?


My anticipated application solution will probably
have two or 
three XSL transformation steps, one or two SQL, and
possibly
a custom transformer or two.  It is a style of
software architecture
I call XML-Directed Software, and it seems highly
suitable
for creating soap services.

I'm under the impression a reader cannot do this. 
That somehow
a reader is first, last, and all elements of a
pipeline.  Is
this true, or am I misinformed?


> 
> > It is my opinion that Cocoon needs components that
can
> > 
> > play well together, and can be mixed and matched.
> > Therefore, I'd like to propose a package I call
> > "PERFUME."
> > 
> > PERFUME:
> > 
> >   1)  The implementation of Perfume shall
result
> >   in three distinct Cocoon components:
> > 
> >   a)  A generator that can receive
a soap
> >   message and turn it into an
xml sax
> >   stream.
> 
> StreamGenerator ?
> 
> >   b)  A serializer that can
convert an xml
> >   stream into a return soap
message.
> 
> XMLSerializer ?
> 
> or do you mean a serializer that can magically
convert something like:
> 
> 
>   123123123
> 
> 
> into:
> 
> http://schemas.xmlsoap.org/soap/envelope/";;
> xmlns:xsd="http://www.w3.org/2001/XMLSchema";;
>
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";;>
>  
>
soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/";;

> xmlns:ns1="Cocoon-JVM-Memory">
>123123123
>  
> 
>   
> 
> If this is the case, note that the serializer
requires knowledge of the
> request content to build up the response xml
structure appropriately,
> and also how it should convert the first xml
document into the second.


Yes, it does looks the StreamGenerator and
XMLSerializer could do
the job.  Handling errors according to the SOAP
standard may
be a bit difficult, but it seems like these two
components 
should handle the more straight forward situations.

 
> >   c)  A transformer that can act
as a soap
> >   client.  Incoming xml is
transmitted
> >   as a soap message, the pipe
is blocked
> >   until return or time out,
and then the 
> >   received message is returned
into the xml 
> >   sax stream.
> 
> Yes. Something like this is on my TODO list at
the moment. I was
> considering reusing the markup from the xsp tag
lib - did you see any
> problems with that ?


You tell me?  I haven't downloaded your client code
yet.  The question
is whether your approach is too "reader" oriented to
be metamorphosised
into a transformer.


> 
> >   2)  The intended usage is:
> > 
> >   a)  If one wishes to implement a
soap service,
> >   a pipeline beginning with
the generator
> >   and ending with the
serializer is 
> >   constructed.
> 
> How will this actually work for the end user
though ?
> 
> Lets look at a simple pipeline:
> 
> 
>   
>   
>   
> 


You pipeline above is exactly what I'm think of for a
soap-service!


> 
> So the real work of doing the service is done
during the transform stage,
> which means the end-user will have to write
their own transformer/s to
> convert the soap request into a soap response,
manually parsing the
> input soap document (!)


Yes, but Cocoon components like SQLTransformer and
XSLTransformer are
good at this tasks. My biggest concern is that they
are NOT good
at handling errors, for example if someone sends the
wrong message
to the wrong port.


> 
> That could be simplified by writing a
SOAPTransformer that provides a
> framework for calling a user defined class to do
the work and return the
> results, but that's actually the same as the
current AxisRPCReader - just
> that in the case of the reader the explicit
generation and serialization
> stages are removed from the pipeline.


Again, see comments about XML-Directed Software.  The
key concept is
to solve the problem in the framework of a stream of
XML transformer
components.  Is this new, and is the present
available arse

[Auth-Framework] Diference between xsp-session and session

2002-09-23 Thread Antonio Gallardo Rivera

Can someone explain what is the diference between xsp-session and session?

I am trying to do this. But does not work:

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





My main development is using XSP and I cannot get the authentication data in 
anyway.

I need to use then:

http://cocoon.apache.org/session/1.0"; 
  xmlns:xsp="http://apache.org/xsp";>

Then after generate a servepage, I need to do a transformation to make work 
the session name space.

All this works fine. But when I need to use esql. This all the stuf is broken. 
The serverpages is generated first and then he cannot use 



to filter the result of a query. What can I do?

Thanks, in advance.

Antonio Gallardo.

-
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: PERFUME PROPOSAL: SOAP FOR COCOON

2002-09-23 Thread Steven Punte

> >> PERFUME:
> >>>
> >>>   1)  The implementation of Perfume
shall result
> >>>   in three distinct Cocoon
components:
> >>>
> >>>   a)  A generator that can
receive a soap
> >>>   message and turn it into
an xml sax
> >>>   stream.
> >>
> >> Why not use an Action? Then you could set sitemap
variables, call 
> >> other
> >> actions, use an existing generator...
> >
> >   Please elaborate more here.  I've only
written one action component 
> > so far, that is used to set a sitemap
> > variable. How would an action component take the
place of a generator 
> > component.
> 
> My first reason for not using a generator to handle
the SOAP request is 
> that it doesn't quite fit into the role of
generators, I think the 
> generator should be used to create the response.


A generator would be best suited to part of the task

of creating a "soap service", right?  I think we are
on the same page here, just different terminology.


> But the real problem I see here is how to do
something useful with the 
> SOAP request. Once you receive the request you've go
to do something 
> with it. If all you have is a SOAPGenerator and a
SOAPSerializer, then 
> all you can so is put some transformers in between
them to turn the 
> request into a response. You wouldn't be able to do
a whole lot unless 
> you wrote your own transformer. With the built in
transformers the most 
> complex thing I could see doing in using an
XSLTransformer and the an 
> SQLTransformer to do a database lookup. If you want
to perform some of 
> the functions that are typically done with Actions
or flowscript you'll 
> need Actions.


On the contrary, I do not see this as the problem,
but rather the
solution.  In My Humble Opinion, the future of
software is in
Cocoon like architectures which are XML centric, and
posses
transformers that modify information from start to
finish.
I call this XML-Directed Software: SQLTransformer,
XSLTransform
LDAPTransformer, are specific instance of this
concept.   


> If you had a SOAPAction though, you could take
information about the 
> soap request and place it into sitemap parameters,
from there you could 
> use those parameters with selectors to choose
appropriate pieces of the 
> pipeline.


I'm intrigue by this, but still unable to visualize
it.  Can
you provide a example of a sitemap fragment(s) that
demonstrate
what you are articulating?

> >
> >   Where can I find out more about flowscript?
> 
> Got me. I followed the discussion of the dev list
for a while, but I've 
> never played with 2.1 and there's no doc that I've
found yet. I guess 
> download 2.1.


Can anyone else point us to an overview of
flowscript?


Steve Punte

__
Do you Yahoo!?
New DSL Internet Access from SBC & Yahoo!
http://sbc.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]>




Re: turning off storeJanitor

2002-09-23 Thread Vadim Gritsenko

kyle koss wrote:

>I want to know if it's possible to disable the storeJanitor, as I would
>like the JVM to manage the garbage collection itself. We are using
>jdk1.4, and I have read that it is actually more efficient to do it this
>way, and that calls to the gc in a program can actually slow it down.
>

Who told you that StoreJanitor calls gc? :)

Anyway, set cleanupthreadinterval high enough, freememory low enough, 
and it won't bother you. Just make sure you don't have large maxobjects 
(cache-transient's parameter) and you have enough memory.

Vadim



>Please advise,
>Thanx
>
>Kyle
>  
>




-
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: Passing unknown parameters through a site-map

2002-09-23 Thread Hunsberger, Peter

>> That could work, but the problem is that the parameters names are mapped
to
>> various meta-data and I don't know which ones I want and which ones I
don't
>> want until I examine the meta-data.  Moving the management of the
metadata
>> into an XSLT would in effect mean moving converting a chunk of my action
>> handler logic into an XSLT.
> If your metadata is XML, you can aggregate it with the
> request parameters in order to filter them.

That would be too simple :-)  At this particular point in time the metadata
comes from a relational database, which is why this particular data mapping
problem is resolved using an action handler and not in an XML/XSLT in the
first place...

-
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: Passing unknown parameters through a site-map

2002-09-23 Thread J.Pietschmann

Hunsberger, Peter wrote:
> That could work, but the problem is that the parameters names are mapped to
> various meta-data and I don't know which ones I want and which ones I don't
> want until I examine the meta-data.  Moving the management of the metadata
> into an XSLT would in effect mean moving converting a chunk of my action
> handler logic into an XSLT.
If your metadata is XML, you can aggregate it with the
request parameters in order to filter them.

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




Other webapps with Cocoon

2002-09-23 Thread Mark Kent

Simple question (easy answer?)

We are using the JBoss-3.0.0_Tomcat-4.0.3 package and running our webapps
from the "deploy" folder in [JBOSS_HOME]/server/default/deploy (where the
webapps are deployed).  The Cocoon 2.0.3 (as cocoon.war) runs nicely from
there.  I have another existing webapp (call it "CL") running all of my
JSP's from an deploy/cl.ear/cl.war setup.  Everything is fine.  Each app
(mine and Cocoon) runs nicely on it's own.

i.e.:
  [JBOSS_HOME]/server/default/deploy/cl.ear./cl.war
  [JBOSS_HOME]/server/default/deploy/cocoon.war

These are referenced in a URL with:
http://localhost/cl/   and
http://localhost/cocoon/

Now, I want an existing JSP form from my cl.app to gather and post report
selection criteria to create HTML/PDF/XML/CSV reports (using Cocoon and it's
nifty serializers).  I'm trying to figure out how to configure these under
JBoss/Tomcat (mostly Tomcat I think) to send this form to my Cocoon URI
which is in a different "context" (is that the right term?).

Sequence:
- User logs in to cl app through JSP page and creates Tomcat session var for
"authentication".
- User selects report options from a form in my app. (this page checks for a
valid session var before allowing access)
- What is the best way to pass (post) these parameters to my Cocoon XML page
making sure that the person is logged in before running the report (I don't
want to allow "any" visitor to run reports)?

As you can see, my site is running Cocoon for the reporting part only, not
all of the other bells and whistles that Cocoon can do (rewriting to use
Cocoon only is not an option).  My reports DO run just fine from the cocoon
URI using Oracle db pooling and XSL styles sheets.

How can I call them from my other webapps securely?

mark


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




turning off storeJanitor

2002-09-23 Thread kyle koss

I want to know if it's possible to disable the storeJanitor, as I would
like the JVM to manage the garbage collection itself. We are using
jdk1.4, and I have read that it is actually more efficient to do it this
way, and that calls to the gc in a program can actually slow it down.

Please advise,
Thanx

Kyle




-
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: Passing unknown parameters through a site-map

2002-09-23 Thread Hunsberger, Peter

> Is there some reason which forces you not to copy the
> parameters wholesale? Otherwise, use use-request-parameters
> and simply ignore the parameters you don't want. 

Should have made that clear; if I pass all parameters I can clobber
parameters where I don't want the values from the form.  Also, not being
able to filter out some specific parameters could potentially be a bit of a
security hole (we are running generic parameter driven templates).  I'd
definitely require some way of being able to detect that a parameter was
passed to me from the form and was also being set specifically by the
sitemap...

> You can
> also try to override the wholesale parameter import by
> passing an empty string for the unwanted parameters

That would cause problems when the value I really wanted was defaulted to
something else in the stylesheet: I'd then get the wrong value...  Since the
pipeline is generic at this point I'd have to parse the stylesheet to figure
out what the proper defaults are.

> You can use an internal pipeline with an request-generator
> and an XSLT to filter out unwanted parameters, and aggregate
> it to you main source:

That could work, but the problem is that the parameters names are mapped to
various meta-data and I don't know which ones I want and which ones I don't
want until I examine the meta-data.  Moving the management of the metadata
into an XSLT would in effect mean moving converting a chunk of my action
handler logic into an XSLT.  Now, (as you may know, if you've caught any of
my architectural discussions on the list) I am trying to head that direction
anyways, so that's a good long term solution.  However, short term this is a
problem since we have cases where the action handler is already running a
XSLT transform under the covers to evaluate rules on which metadata to pick
up (evaluation of metadata about metadata): I'd have to generate the XSLT on
the fly in order to filter the parameters properly and that doesn't seem
like a very efficient way to get parameters into a stylesheet when all I
really want to do is ignore some of them...  

A better possibility would be to create a custom request generator (moving
the metadata handling from the action handler to the generator).  This
complicates the stylesheet somewhat since you going from being able to use
global parameters to (at best) having to use XSLT keys to access the
equivalent values.  This strikes me as a good way to go except that it could
also have performance implications?

One of my long goals is, essentially, to replace the sitemap with an
XML/XSLT combination that implements mapping as a dynamic rules based
system.  I'd like to hold off on doing that until I see how the 2.1 flowmap
stuff shakes out...

-
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 can I output ESQL value as CDATA?

2002-09-23 Thread Ilya A. Kriveshko

Hi,

I can tell you what in my opinion should work, but at least in the 
version of Cocoon that I have on my system it doesn't. It would be great 
if one of the developers commented on this approach, why it doesn't work 
and how to possibly make it work.

Here's the XSP snippet that I think should work:


String test = resultSet.getString("data"); // Or however else 
you would get at your data
this.lexicalHandler.startCDATA();
this.contentHandler.characters(test.toCharArray(), 0, 
test.length());
this.lexicalHandler.endCDATA();


The reason it doesn't work, I suspect, is because the LexicalHandler 
part of the XMLConsumer is implemented by the AbstractXMLConsumer as 
empty methods, and the real entity that consumes the SAX events and 
output the text to be sent to the client is not overriding those methods.

So, the quiestion is: is it possible to communicate the lexical 
structure of the XML all the way thtough to the entity that serializes 
XML as text? And if it already is communicated, then can we make it 
reflect the lexical structure in its output?

Thank you for doing such a great job, and thank you in advance for your 
insight on this issue.
--
Ilya

gv wrote:

>Hi,
>
>Is there any way to put an ESQL result string into a
>CDATA section in the XSP output?
>
>I want to do something like the following, but
>(predictably) the ESQL tag itself is put into CDATA:
>
>
>
>Also tried < and > entities for the braces
>surrounding the CDATA; didn't work (< and > stay
>as entities in the XSP output).
>
>Desired XSP output:
>
><[CDATA[ result ]]>
>
>Is there any way to do this?
>
>Thanks,
>John
>
>
>__
>Do You Yahoo!?
>Yahoo! Finance - Get real-time stock quotes
>http://finance.yahoo.com
>
>-
>Please check that your question  has not already been answered in the
>FAQ before posting. 
>
>To unsubscribe, e-mail: <[EMAIL PROTECTED]>
>For additional commands, e-mail:   <[EMAIL PROTECTED]>
>
>
>  
>




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

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




Re: Passing unknown parameters through a site-map

2002-09-23 Thread J.Pietschmann

Hunsberger, Peter wrote:
> I've got a situation where I've got to pass a bunch of parameters with
> unknown names from a (Cocoon generated) HTML form through an action to a
> standard Cocoon pipeline.  There are certain parameters I don't want to pass
> on to the stylesheet so I can't use 
> 
>

Is there some reason which forces you not to copy the
parameters wholesale? Otherwise, use use-request-parameters
and simply ignore the parameters you don't want. You can
also try to override the wholesale parameter import by
passing an empty string for the unwanted parameters
 

> However, I can, in my action selectively not copy the unwanted parameters
> into the map (since they have well defined names).  The issue is, how do I
> then pass these onto the transform from the from the sitemap? Normally, I'd
> do something like:
> 
>value="{gunk_data_id}"/>
> 
> to pass on individual parameters.  In this case, since I don't know all the
> parameter names I can't do that.  I basically want to say, pass all the
> parameters in the map returned from the action onto the transform (the
> equivalent of use-action-parameters perhaps?)

You can use an internal pipeline with an request-generator
and an XSLT to filter out unwanted parameters, and aggregate
it to you main source:
  



  
  

  


  
  ...
(beware: untested code)

A filter XSLT can be basically the generic copy-through
template and empty templates for the parameters you don't
want:
   
(beware: element and attr names just guessed).

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




Re: How can I output ESQL value as CDATA?

2002-09-23 Thread Steven Cummings

I sometimes need this type of feature to get the result of some expression (I'm not 
really working with ESQL specifically) that is an XML document or fragment. Sometimes 
you just want to show the XML result without writing a stylesheet that reproduces the 
text to display the elements in HTML. For instance, if you wanted to display a raw 
SOAP response with a construct like 



But obviously as John stated, the fact that the expression is already in CDATA means 
that it won't get evaluated at all. What would be nice in XSP are node-construction 
tags like those found in XSLT, such as xsl:attribute. Having something like 
 to complement  would be nice. But then again, I guess you could 
write a logicsheet to perform this sort of function:

  
 
   

Then the expression should already be evaluated before YOUR logicsheet replaces 
 with . I hope this helps.

/S

Joerg Heinicke <[EMAIL PROTECTED]> wrote:

>Hi John,
>
>it's not possible as you find out, but why would you need it?
>
>I assume that the result of ESQL is escaped, otherwise there will be trouble 
>to often. So why do you want to escape it one more often?
>
>Regards,
>
>Joerg
>
>
>gv wrote:
>> Hi,
>> 
>> Is there any way to put an ESQL result string into a
>> CDATA section in the XSP output?
>> 
>> I want to do something like the following, but
>> (predictably) the ESQL tag itself is put into CDATA:
>> 
>> 
>> 
>> Also tried < and > entities for the braces
>> surrounding the CDATA; didn't work (< and > stay
>> as entities in the XSP output).
>> 
>> Desired XSP output:
>> 
>> <[CDATA[ result ]]>
>> 
>> Is there any way to do this?
>> 
>> Thanks,
>> John
>
>-- 
>
>System Development
>VIRBUS AG
>Fon  +49(0)341-979-7419
>Fax  +49(0)341-979-7409
>[EMAIL PROTECTED]
>www.virbus.de
>
>
>-
>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]>
>
>


-- 
Steven Cummings
Columbia, MO
Email: [EMAIL PROTECTED]
AIM:   cummingscs
ICQ:   3330114


__
The NEW Netscape 7.0 browser is now available. Upgrade now! 
http://channels.netscape.com/ns/browsers/download.jsp 

Get your own FREE, personal Netscape Mail account today at http://webmail.netscape.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]>




Passing unknown parameters through a site-map

2002-09-23 Thread Hunsberger, Peter

I've got a situation where I've got to pass a bunch of parameters with
unknown names from a (Cocoon generated) HTML form through an action to a
standard Cocoon pipeline.  There are certain parameters I don't want to pass
on to the stylesheet so I can't use 

   

However, I can, in my action selectively not copy the unwanted parameters
into the map (since they have well defined names).  The issue is, how do I
then pass these onto the transform from the from the sitemap? Normally, I'd
do something like:

  

to pass on individual parameters.  In this case, since I don't know all the
parameter names I can't do that.  I basically want to say, pass all the
parameters in the map returned from the action onto the transform (the
equivalent of use-action-parameters perhaps?)

Peter Hunsberger

Phone: 901-495-5252
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]>




action as input for a generator ??

2002-09-23 Thread Daniel Pfuhl

hi

imagine the following scenario:

i have an xml-src which i have to enrich with
different
elements depending on the input document. with other
words the input xml will scale my process. in this
process i have to call different methods not driven
by cocoon but another underlaying system.
so i was thinking of using an action which will take
the input src and after processing it, it will return
the final document for transformation and
serialization
controled by the sitemap.

now my question(s):

is it possible to use an action as the input for
a generator or do i have to write my own generator?

i also thought of xsp, but i think it is to complex
to do it this way. i want to separate the logic which
processes the input as an autonomic module.

fyi: before i only used actions to manage formdata,
e.g.
manipulating xml-files depending on formdata. but now
i have no real file i can write to - so i have to
manipulate it to transform and serialize it directly
afterwards.

it would be very nice if somebody could give me an
advice how a solution can look like!!

thanks in advance !!

daniel

__

Gesendet von Yahoo! Mail - http://mail.yahoo.de
Möchten Sie mit einem Gruß antworten? http://grusskarten.yahoo.de

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

2002-09-23 Thread JohnsBrn

Also, I'd check out the commons source to see what exactly it's choking on.

[EMAIL PROTECTED] wrote:

>This looks like a Tomcat issue to me at this point. After looking around at some 
>Tomcat docs, the only two suggestions I have are that you do not have an AuthType 
>specified in your Resource tag (auth="Container"). I don't know if this is required. 
>Also, did you check to make sure you updated the name in your ResourceParams entry to 
>add jdbc/. Everything seems to be working OK on the Cocoon side I think.
>
>Ugo Cei <[EMAIL PROTECTED]> wrote:
>
>>[EMAIL PROTECTED] wrote:
>>> Are you sure you have a valid datasource in Tomcat? Looks like it's having trouble 
>creating a connection. I noticed 
>>> oracl.jdbc.driver.OracleDriver 
>>> contains a type-o. Shouldn't it be oracle.jdbc.driver.OracleDriver instead of 
>oracl with no e?
>>
>>The error is just a typo due to cut&paste. The name of the class is 
>>correct in the server.xml file. But yes, it looks like Tomcat has 
>>troubles creating a connection, even though all it reports in his logs 
>>is the following:
>>
>>DBCP DataSource configured without a 'username'
>>
>>which I can't figure out because I sure have a username in the 
>>datasource configuration.
>>
>>Ugo
>>
>>-- 
>>Ugo Cei - Consorzio di Bioingegneria e Informatica Medica
>>P.le Volontari del Sangue, 2 - 27100 Pavia - Italy
>>Phone: +39.0382.525100 - 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]>
>>
>>
>
>__
>The NEW Netscape 7.0 browser is now available. Upgrade now! 
>http://channels.netscape.com/ns/browsers/download.jsp 
>
>Get your own FREE, personal Netscape Mail account today at 
>http://webmail.netscape.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]>
>
>

__
The NEW Netscape 7.0 browser is now available. Upgrade now! 
http://channels.netscape.com/ns/browsers/download.jsp 

Get your own FREE, personal Netscape Mail account today at http://webmail.netscape.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]>




Re: Using J2EE datasources

2002-09-23 Thread JohnsBrn

This looks like a Tomcat issue to me at this point. After looking around at some 
Tomcat docs, the only two suggestions I have are that you do not have an AuthType 
specified in your Resource tag (auth="Container"). I don't know if this is required. 
Also, did you check to make sure you updated the name in your ResourceParams entry to 
add jdbc/. Everything seems to be working OK on the Cocoon side I think.

Ugo Cei <[EMAIL PROTECTED]> wrote:

>[EMAIL PROTECTED] wrote:
>> Are you sure you have a valid datasource in Tomcat? Looks like it's having trouble 
>creating a connection. I noticed 
>> oracl.jdbc.driver.OracleDriver 
>> contains a type-o. Shouldn't it be oracle.jdbc.driver.OracleDriver instead of oracl 
>with no e?
>
>The error is just a typo due to cut&paste. The name of the class is 
>correct in the server.xml file. But yes, it looks like Tomcat has 
>troubles creating a connection, even though all it reports in his logs 
>is the following:
>
>DBCP DataSource configured without a 'username'
>
>which I can't figure out because I sure have a username in the 
>datasource configuration.
>
>Ugo
>
>-- 
>Ugo Cei - Consorzio di Bioingegneria e Informatica Medica
>P.le Volontari del Sangue, 2 - 27100 Pavia - Italy
>Phone: +39.0382.525100 - 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]>
>
>

__
The NEW Netscape 7.0 browser is now available. Upgrade now! 
http://channels.netscape.com/ns/browsers/download.jsp 

Get your own FREE, personal Netscape Mail account today at http://webmail.netscape.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]>




Re: Using J2EE datasources

2002-09-23 Thread Ugo Cei

[EMAIL PROTECTED] wrote:
> Are you sure you have a valid datasource in Tomcat? Looks like it's having trouble 
>creating a connection. I noticed 
> oracl.jdbc.driver.OracleDriver 
> contains a type-o. Shouldn't it be oracle.jdbc.driver.OracleDriver instead of oracl 
>with no e?

The error is just a typo due to cut&paste. The name of the class is 
correct in the server.xml file. But yes, it looks like Tomcat has 
troubles creating a connection, even though all it reports in his logs 
is the following:

DBCP DataSource configured without a 'username'

which I can't figure out because I sure have a username in the 
datasource configuration.

Ugo

-- 
Ugo Cei - Consorzio di Bioingegneria e Informatica Medica
P.le Volontari del Sangue, 2 - 27100 Pavia - Italy
Phone: +39.0382.525100 - 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 J2EE datasources

2002-09-23 Thread JohnsBrn

Are you sure you have a valid datasource in Tomcat? Looks like it's having trouble 
creating a connection. I noticed 
oracl.jdbc.driver.OracleDriver 
contains a type-o. Shouldn't it be oracle.jdbc.driver.OracleDriver instead of oracl 
with no e?


Ugo Cei <[EMAIL PROTECTED]> wrote:

>Ugo Cei wrote:
>> I am trying to use a J2EE datasource, but am having troubles.
>
>Update: I have deduced that the datasource name in Tomcat must be 
>prefixed by "jdbc/". Somehow I thought this was implicit. I have thus 
>made progress, but now I get this:
>
>Original exception : org.apache.commons.dbcp.DbcpException: 
>java.sql.SQLException: invalid arguments in call
>at 
>org.apache.commons.dbcp.DriverConnectionFactory.createConnection(DriverConnectionFactory.java:85)
>at 
>org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:184)
>at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(Unknown 
>Source)
>at 
>org.apache.commons.dbcp.AbandonedObjectPool.borrowObject(AbandonedObjectPool.java:117)
>at 
>org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:110)
>at 
>org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:312)
>at 
>org.apache.avalon.excalibur.datasource.J2eeDataSource.getConnection(J2eeDataSource.java:124)
>
>What call is it talking about?
>
>Ugo
>
>-- 
>Ugo Cei - Consorzio di Bioingegneria e Informatica Medica
>P.le Volontari del Sangue, 2 - 27100 Pavia - Italy
>Phone: +39.0382.525100 - 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]>
>
>

__
The NEW Netscape 7.0 browser is now available. Upgrade now! 
http://channels.netscape.com/ns/browsers/download.jsp 

Get your own FREE, personal Netscape Mail account today at http://webmail.netscape.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]>




RE: Using J2EE datasources

2002-09-23 Thread JohnsBrn

By default org.apache.avalon.excalibur.datasource.J2eeDataSource looks for your J2EE 
datasource in the java:/comp/env/jdbc context. You can change this using the 
lookup-name parameter:

java:/FirebirdDS

I'm not that familiar with Tomcat or it's config files, but you need to store your 
J2EE datasource in JNDI to access it from this component.

Ugo Cei <[EMAIL PROTECTED]> wrote:

>I am trying to use a J2EE datasource, but am having troubles.
>
>Environment:
>
>Cocoon 2.0.3
>Jakarta Tomcat 4.1.9
>Sun JDK 1.3.1
>Solaris 8
>
>I have defined a datasource in Tomcat via the Administrator interface. 
>It has put the following in server.xml, under the appropriate Context:
>
>   type="javax.sql.DataSource"/>
>   
> 
>   validationQuery
>   select 1 from dual
> 
> 
>   user
>   resl
> 
> 
>   url
>   jdbc:oracle:thin:@ias:1521:ORCL
> 
> 
>   password
>   xxx
> 
> 
>   maxActive
>   4
> 
> 
>   maxWait
>   5000
> 
> 
>   driverClassName
>   oracl.jdbc.driver.OracleDriver
> 
> 
>   maxIdle
>   2
> 
>   
>
>These are the parameters I used with the jdbc datasource and they worked 
>well.
>
>I have added the following datasource definition in cocoon.xconf:
>
> 
>   resl
> 
>
>but when I try to use the datasource in XSP, I get the following error:
>
>org.apache.avalon.framework.component.ComponentException: Could not find 
>component
>
>Browsing through error.log, I think I found the origin of the problem here:
>
>ERROR   (2002-09-23) 18:10.42:478   [core.manager] (Unknown-URI) 
>Unknown-thread/J2eeDataSource: Problem with JNDI lookup of datasource
>javax.naming.NameNotFoundException: Name jdbc is not bound in this Context
> at org.apache.naming.NamingContext.lookup(NamingContext.java:811)
> at org.apache.naming.NamingContext.lookup(NamingContext.java:181)
> at org.apache.naming.NamingContext.lookup(NamingContext.java:822)
> at org.apache.naming.NamingContext.lookup(NamingContext.java:181)
> at org.apache.naming.NamingContext.lookup(NamingContext.java:822)
> at org.apache.naming.NamingContext.lookup(NamingContext.java:194)
> at 
>org.apache.naming.SelectorContext.lookup(SelectorContext.java:183)
> at javax.naming.InitialContext.lookup(InitialContext.java:350)
> at 
>org.apache.avalon.excalibur.datasource.J2eeDataSource.configure(J2eeDataSource.java:95)
>...
>
>I am afraid I am doing something wrong, but the docs, either the Cocoon 
>or the Tomcat ones don't help much.
>
>Ugo
>
>
>-- 
>Ugo Cei - Consorzio di Bioingegneria e Informatica Medica
>P.le Volontari del Sangue, 2 - 27100 Pavia - Italy
>Phone: +39.0382.525100 - 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]>
>
>

__
The NEW Netscape 7.0 browser is now available. Upgrade now! 
http://channels.netscape.com/ns/browsers/download.jsp 

Get your own FREE, personal Netscape Mail account today at http://webmail.netscape.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]>




Re: Using J2EE datasources

2002-09-23 Thread Ugo Cei

Ugo Cei wrote:
> I am trying to use a J2EE datasource, but am having troubles.

Update: I have deduced that the datasource name in Tomcat must be 
prefixed by "jdbc/". Somehow I thought this was implicit. I have thus 
made progress, but now I get this:

Original exception : org.apache.commons.dbcp.DbcpException: 
java.sql.SQLException: invalid arguments in call
at 
org.apache.commons.dbcp.DriverConnectionFactory.createConnection(DriverConnectionFactory.java:85)
at 
org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:184)
at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(Unknown 
Source)
at 
org.apache.commons.dbcp.AbandonedObjectPool.borrowObject(AbandonedObjectPool.java:117)
at 
org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:110)
at 
org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:312)
at 
org.apache.avalon.excalibur.datasource.J2eeDataSource.getConnection(J2eeDataSource.java:124)

What call is it talking about?

Ugo

-- 
Ugo Cei - Consorzio di Bioingegneria e Informatica Medica
P.le Volontari del Sangue, 2 - 27100 Pavia - Italy
Phone: +39.0382.525100 - 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: web app design

2002-09-23 Thread Hunsberger, Peter

> This framework will be for small business or medium business and to
> construct and publish their corporative webs.

Just this constraint alone will get you a long way towards creating some
performance targets and usages numbers:  You can make an assumption about
the max. number of users in a company (possibly adding some users for
extranet type usage if applicable).  From there you can make some
assumptions about max. simultaneous users based on the application type.
Using the first number you can make some estimates on max data based on
application type times number of users.  Using the second number you can
make some assumptions about bandwidth requirements (max. users times data
sizes in play at any moment).  Now you've got some idea of your database
size, # of simultaneous users, amount of data being accessed and generated.
Next you need to make some assumptions about response time.  Again, you know
the application type (eg. generating credit card responses is way different
than generating seismic analysis result sets) and should be able to come up
with some reasonable numbers.  This will allow you to estimate transactions
per sec, page views per sec. etc. 

What you don't know is how Cocoon maps to any performance metrics; you can't
do that without some real load analysis software and hardware.  But at this
point, that isn't really the issue:  what you really want to estimate is
whether a processing heavy architecture can handle the transaction
requirements on some reasonable hardware (as defined what your company is
comfortable supporting).  If it starts to look like you've got a lot of
transactions per second or a lot of page views per second with a lot of data
per page view then maybe a pure Cocoon architecture isn't the best way to
go.  In my experience, apps targeted at small companies aren't generally an
issue.  App's targeted at 1000's of simultaneous users might start to get
questionable (although that's our ball park with a mostly pure Cocoon
architecture, albeit mixed with a good chunk of EJBs).  We're targeting a
single large database processor, a couple of EJB' servers and in the order
of 10 front end web/app servers as the largest possible hardware config we
will need (a couple of years out). However, our app splits nicely into small
user communities that can be easily mapped to individual app servers. (Note
that fail over hardware is a separate issue from the hardware needed for
performance reasons).

How to start?  Create a spread sheet and fill in some guesses for max users,
max. simultaneous users, largest data set sizes, required transaction
response times.  Validate the assumptions with as many people as you can.
Now figure out, disk space usage, bandwidth, transactions per sec. etc. If
these numbers are small, don't worry about the architecture much more.  If
they start to imply lot's of hardware invest some more time in validating
the numbers.  If you're still nervous after that you've got to start
benchmarking


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




[AUTH-FRAMEWORK] Session in xsp.

2002-09-23 Thread Antonio Gallardo Rivera

Can I use session variables into a XSP? I cannot reach it only trought a 
transformation. How I must declare the name space to use it in XSP since

http://apache.org/xsp/session/2.0"; 
create-session="true"
xmlns:xsp="http://apache.org/xsp";>

does not work.

Currently I need to use:

xmlns:session="http://cocoon.apache.org/session/1.0"; 

and then make a transformation before the use: for example (sitemap):


  




   ^^
-> The transform needed currently :(



  

Regards,

Antonio Gallardo

-
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 can I output ESQL value as CDATA?

2002-09-23 Thread Joerg Heinicke

Hi John,

it's not possible as you find out, but why would you need it?

I assume that the result of ESQL is escaped, otherwise there will be trouble 
to often. So why do you want to escape it one more often?

Regards,

Joerg


gv wrote:
> Hi,
> 
> Is there any way to put an ESQL result string into a
> CDATA section in the XSP output?
> 
> I want to do something like the following, but
> (predictably) the ESQL tag itself is put into CDATA:
> 
> 
> 
> Also tried < and > entities for the braces
> surrounding the CDATA; didn't work (< and > stay
> as entities in the XSP output).
> 
> Desired XSP output:
> 
> <[CDATA[ result ]]>
> 
> Is there any way to do this?
> 
> Thanks,
> John

-- 

System Development
VIRBUS AG
Fon  +49(0)341-979-7419
Fax  +49(0)341-979-7409
[EMAIL PROTECTED]
www.virbus.de


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




Using J2EE datasources

2002-09-23 Thread Ugo Cei

I am trying to use a J2EE datasource, but am having troubles.

Environment:

Cocoon 2.0.3
Jakarta Tomcat 4.1.9
Sun JDK 1.3.1
Solaris 8

I have defined a datasource in Tomcat via the Administrator interface. 
It has put the following in server.xml, under the appropriate Context:

   
   
 
   validationQuery
   select 1 from dual
 
 
   user
   resl
 
 
   url
   jdbc:oracle:thin:@ias:1521:ORCL
 
 
   password
   xxx
 
 
   maxActive
   4
 
 
   maxWait
   5000
 
 
   driverClassName
   oracl.jdbc.driver.OracleDriver
 
 
   maxIdle
   2
 
   

These are the parameters I used with the jdbc datasource and they worked 
well.

I have added the following datasource definition in cocoon.xconf:

 
   resl
 

but when I try to use the datasource in XSP, I get the following error:

org.apache.avalon.framework.component.ComponentException: Could not find 
component

Browsing through error.log, I think I found the origin of the problem here:

ERROR   (2002-09-23) 18:10.42:478   [core.manager] (Unknown-URI) 
Unknown-thread/J2eeDataSource: Problem with JNDI lookup of datasource
javax.naming.NameNotFoundException: Name jdbc is not bound in this Context
 at org.apache.naming.NamingContext.lookup(NamingContext.java:811)
 at org.apache.naming.NamingContext.lookup(NamingContext.java:181)
 at org.apache.naming.NamingContext.lookup(NamingContext.java:822)
 at org.apache.naming.NamingContext.lookup(NamingContext.java:181)
 at org.apache.naming.NamingContext.lookup(NamingContext.java:822)
 at org.apache.naming.NamingContext.lookup(NamingContext.java:194)
 at 
org.apache.naming.SelectorContext.lookup(SelectorContext.java:183)
 at javax.naming.InitialContext.lookup(InitialContext.java:350)
 at 
org.apache.avalon.excalibur.datasource.J2eeDataSource.configure(J2eeDataSource.java:95)
...

I am afraid I am doing something wrong, but the docs, either the Cocoon 
or the Tomcat ones don't help much.

Ugo


-- 
Ugo Cei - Consorzio di Bioingegneria e Informatica Medica
P.le Volontari del Sangue, 2 - 27100 Pavia - Italy
Phone: +39.0382.525100 - 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 can I output ESQL value as CDATA?

2002-09-23 Thread gv

Hi,

Is there any way to put an ESQL result string into a
CDATA section in the XSP output?

I want to do something like the following, but
(predictably) the ESQL tag itself is put into CDATA:



Also tried < and > entities for the braces
surrounding the CDATA; didn't work (< and > stay
as entities in the XSP output).

Desired XSP output:

<[CDATA[ result ]]>

Is there any way to do this?

Thanks,
John


__
Do You Yahoo!?
Yahoo! Finance - Get real-time stock quotes
http://finance.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]>




Re: Problem redirecting to an XSP

2002-09-23 Thread Steven Cummings

Antonio,

I discovered that my problem, very strangely enough was some misplaced jars. What 
confused the heck out of me is why I didn't get an exception (on the browser page 
and/or in the logs: there was none) and just a blank page. As for your problem, the 
only thing I can note is that you redirect to {resource:url} on authentication and on 
reading the documentation it tells me that the parameter passed by the authentciation 
framework is called 'resource', so it should be  wrote:

>I will try to explain the same error as yours.
>
>Have you checking if the authentication manager is getting the right
>parameters?
>
>1-I am now getting this:
>
>DEBUG   (2002-09-23) 03:19.57:700   [core.manager] (/myapp/my-login)
>Thread-6/ResourceLimitingPool: Got a
>org.apache.cocoon.webapps.authentication.components.AuthenticationManager
>from the pool.
>DEBUG   (2002-09-23) 03:19.57:700   [core.roles] (/myapps/my-login)
>Thread-6/DefaultRoleManager: looking up shorthand authentication-manager,
>returning
>org.apache.cocoon.webapps.authentication.components.AuthenticationManager
>DEBUG   (2002-09-23) 03:19.57:701   [core.authentication-manager]
>(/multipremios/ags-login) Thread-6/AuthenticationManager: BEGIN authenticate
>handler=myhandler, parameters=SourceParameters: {password = (), name = ()}
>  
>2-The sitemap is not "serving" the params as requested, see the fragment of my
>sitemap:
>
>
>
>
>value="{request:name}"/>
>value="{request:password}"/>
>
>
>
>
>
>
>
>  
>
>3-I also check and the caller is serving the params as follow (from core.log):
>
>REQUEST PARAMETERS:
>
>PARAM: 'password' VALUES: '[mypass]'
>PARAM: 'name' VALUES: '[myname]'
>
>4-What I am doing wrong?
>
>Thanks in advance,
>
>Antonio Gallardo
>
>El Viernes, 20 de Septiembre de 2002 16:09, Steven Cummings escribió:
>> Hello,
>>
>> I have what *seems* to be a problem redirecting to an XSP after
>> authentication. At first I was trying out the sunRise components per
>> Matthew's tutorial and it seems to work until my login component in the
>> pipeline is called, and the authentication pipeline configured in the
>> handler is called. When this occurs I get a blank page and NO error
>> message. I looked at my log files and it appears that the login pipeline
>> uses the sunRise config to call my authentication component, which happens
>> to be an XSP and then it just kind of stops. I don't see any error messages
>> in the log, and the page returned is blank.
>>
>> Then I tried the same situation with my own custom authentication
>> components (having NOTHING to do with sunRise), just my own set of actions
>> and sitemap flow-control. Again, all was fine and well until a redirect to
>> my authenticate.xsp was made, and a blank page was returned and no
>> information in the log file. This seems really wierd to me. My XSP does do
>> work, and I would figure that some exception would be thrown at the very
>> least. Does this problem sound familiar to anyone? I couldn't find this
>> problem in the mailing list archives. Thanks ahead of time for any help
>> anyone can provide.
>>
>> /S
>
>-
>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]>
>
>


-- 
Steven Cummings
Columbia, MO
Email: [EMAIL PROTECTED]
AIM:   cummingscs
ICQ:   3330114


__
The NEW Netscape 7.0 browser is now available. Upgrade now! 
http://channels.netscape.com/ns/browsers/download.jsp 

Get your own FREE, personal Netscape Mail account today at http://webmail.netscape.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]>




RE: [C 2.1 - SUMMARY] Problem in auth-framework

2002-09-23 Thread Carsten Ziegeler

Yes, someone thought to change the names for the so called input modules
from
request to request-param, but did forget to check the examples...

I fixed this today.

Carsten

> -Original Message-
> From: Antonio Gallardo Rivera [mailto:[EMAIL PROTECTED]]
> Sent: Monday, September 23, 2002 4:52 PM
> To: [EMAIL PROTECTED]
> Subject: Re: [C 2.1 - SUMMARY] Problem in auth-framework
>
>
> After the lastes CVS update at Sep, 23 14:20 GMT It works again.
> The changes
> in the auth-manager is:
>
> use:
> {request-param:name}
>
> in place of:
> {request:name}
>
> For example:
>
> 
> 
> 
>value="{request-param:name}"/>
>value="{request-param:password}"/>
> 
> 
> 
> 
> 
> 
> 
> 
>   
>
> Many thanks,
>
> Antonio Gallardo
>
>
> El Domingo, 22 de Septiembre de 2002 16:37, Antonio Gallardo
> Rivera escribió:
> > I am using the lastes CVS and since yesterday the auth error is not
> > working. I see that the paramaters are not going to the
> my-checkuser in the
> > sitemap:
> >
> > 
> > 
> > 
> > 
> > 
> > 
> >   
> >
> > Also it works before. And I dont touched it. In the log core.log I see:
> >
> > ...
> > REQUEST: /myapp/my-login
> >
> > CONTEXT PATH: /myapp
> > SERVLET PATH: /my-login
> > PATH INFO: null
> >
> > REMOTE HOST: localhost
> > REMOTE ADDRESS: 127.0.0.1
> > REMOTE USER: null
> > REQUEST SESSION ID: null
> > REQUEST PREFERRED LOCALE: es
> > SERVER HOST: localhost
> > SERVER PORT: 8080
> >
> > METHOD: POST
> > CONTENT LENGTH: 27
> > PROTOCOL: HTTP/1.1
> > SCHEME: http
> > AUTH TYPE: null
> >
> > CURRENT ACTIVE REQUESTS: 1
> > REQUEST PARAMETERS:
> >
> > PARAM: 'password' VALUES: '[mypass]'
> > PARAM: 'name' VALUES: '[myname]'
> > HEADER PARAMETERS:
> >
> > PARAM: 'user-agent' VALUES: '[Mozilla/5.0 (compatible;
> Konqueror/3; Linux;
> > X11; i686)]'
> > PARAM: 'referer' VALUES: '[http://localhost:8080/myapp/aut-inicio]'
> > PARAM: 'pragma' VALUES: '[no-cache]'
> > PARAM: 'cache-control' VALUES: '[no-cache]'
> > PARAM: 'accept' VALUES: '[text/*, image/jpeg, image/png, image/*, */*]'
> > PARAM: 'accept-encoding' VALUES: '[x-gzip, gzip, identity]'
> > PARAM: 'accept-charset' VALUES: '[iso-8859-1, utf-8;q=0.5, *;q=0.5]'
> > PARAM: 'accept-language' VALUES: '[es]'
> > PARAM: 'host' VALUES: '[localhost:8080]'
> > PARAM: 'content-type' VALUES: '[application/x-www-form-urlencoded]'
> > PARAM: 'content-length' VALUES: '[27]'
> >
> > SESSION ATTRIBUTES:
> >
> >
> > DEBUG   (2002-09-22) 22:19.50:591   [core.manager] (/myapp/my-login)
> > Thread-10/ResourceLimitingPool: Got a
> >
> org.apache.cocoon.webapps.authentication.components.AuthenticationManager
> > from the pool.
> > DEBUG   (2002-09-22) 22:19.50:592   [core.roles] (/myapp/my-login)
> > Thread-10/DefaultRoleManager: looking up shorthand
> authentication-manager,
> > returning
> >
> org.apache.cocoon.webapps.authentication.components.AuthenticationManager
> > DEBUG   (2002-09-22) 22:19.50:592   [core.authentication-manager]
> > (/myapp/my-login) Thread-10/AuthenticationManager: BEGIN authenticate
> > handler=myhandler, parameters=SourceParameters: {password = (),
> name = ()}
> >
> > As you can see here he dont send correctly the parameters to the
> > auth-action. I looks like it lossed the params!
> >
> > ... and continue:
> >
> > INFO(2002-09-22) 22:19.50:592   [core.authentication-manager]
> > (/myapp/my-login) Thread-10/AuthenticationManager:
> AuthenticationManager:
> > Trying to authenticate using handler 'myhandler'
> > DEBUG   (2002-09-22) 22:19.50:592   [core.authentication-manager]
> > (/myapp/my-login) Thread-10/AuthenticationManager: start authentication
> > DEBUG   (2002-09-22) 22:19.50:592   [core.authentication-manager]
> > (/myapp/my-login) Thread-10/AuthenticationManager: start invoking auth
> > resource
> > DEBUG   (2002-09-22) 22:19.50:593   [core.manager] (/myapp/my-login)
> > Thread-10/ResourceLimitingPool: Got a
> >
> org.apache.cocoon.webapps.session.connector.ResourceConnectorImpl from the
> > pool.
> > DEBUG   (2002-09-22) 22:19.50:593   [core.manager] (/myapp/my-login)
> > Thread-10/ResourceConnectorImpl: start loading
> 'cocoon:raw://my-checkuser'
> > DEBUG   (2002-09-22) 22:19.50:593   [core.manager] (/myapp/my-login)
> > Thread-10/ResourceConnectorImpl: BEGIN loadXMLFromURI
> > uri=cocoon:raw://my-checkuser, typeParams=null,
> > parameters=SourceParameters: {password = (), name = ()}
> >
> > Please help me:
> >
> > Regards,
> >
> > Antonio Gallardo
> >
> > -
> > 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: [C 2.1 - SUMMARY] Problem in auth-framework

2002-09-23 Thread Antonio Gallardo Rivera

After the lastes CVS update at Sep, 23 14:20 GMT It works again. The changes 
in the auth-manager is:

use:
{request-param:name}

in place of:
{request:name}

For example:














  

Many thanks,

Antonio Gallardo


El Domingo, 22 de Septiembre de 2002 16:37, Antonio Gallardo Rivera escribió:
> I am using the lastes CVS and since yesterday the auth error is not
> working. I see that the paramaters are not going to the my-checkuser in the
> sitemap:
>
> 
> 
> 
> 
> 
> 
>   
>
> Also it works before. And I dont touched it. In the log core.log I see:
>
> ...
> REQUEST: /myapp/my-login
>
> CONTEXT PATH: /myapp
> SERVLET PATH: /my-login
> PATH INFO: null
>
> REMOTE HOST: localhost
> REMOTE ADDRESS: 127.0.0.1
> REMOTE USER: null
> REQUEST SESSION ID: null
> REQUEST PREFERRED LOCALE: es
> SERVER HOST: localhost
> SERVER PORT: 8080
>
> METHOD: POST
> CONTENT LENGTH: 27
> PROTOCOL: HTTP/1.1
> SCHEME: http
> AUTH TYPE: null
>
> CURRENT ACTIVE REQUESTS: 1
> REQUEST PARAMETERS:
>
> PARAM: 'password' VALUES: '[mypass]'
> PARAM: 'name' VALUES: '[myname]'
> HEADER PARAMETERS:
>
> PARAM: 'user-agent' VALUES: '[Mozilla/5.0 (compatible; Konqueror/3; Linux;
> X11; i686)]'
> PARAM: 'referer' VALUES: '[http://localhost:8080/myapp/aut-inicio]'
> PARAM: 'pragma' VALUES: '[no-cache]'
> PARAM: 'cache-control' VALUES: '[no-cache]'
> PARAM: 'accept' VALUES: '[text/*, image/jpeg, image/png, image/*, */*]'
> PARAM: 'accept-encoding' VALUES: '[x-gzip, gzip, identity]'
> PARAM: 'accept-charset' VALUES: '[iso-8859-1, utf-8;q=0.5, *;q=0.5]'
> PARAM: 'accept-language' VALUES: '[es]'
> PARAM: 'host' VALUES: '[localhost:8080]'
> PARAM: 'content-type' VALUES: '[application/x-www-form-urlencoded]'
> PARAM: 'content-length' VALUES: '[27]'
>
> SESSION ATTRIBUTES:
>
>
> DEBUG   (2002-09-22) 22:19.50:591   [core.manager] (/myapp/my-login)
> Thread-10/ResourceLimitingPool: Got a
> org.apache.cocoon.webapps.authentication.components.AuthenticationManager
> from the pool.
> DEBUG   (2002-09-22) 22:19.50:592   [core.roles] (/myapp/my-login)
> Thread-10/DefaultRoleManager: looking up shorthand authentication-manager,
> returning
> org.apache.cocoon.webapps.authentication.components.AuthenticationManager
> DEBUG   (2002-09-22) 22:19.50:592   [core.authentication-manager]
> (/myapp/my-login) Thread-10/AuthenticationManager: BEGIN authenticate
> handler=myhandler, parameters=SourceParameters: {password = (), name = ()}
>
> As you can see here he dont send correctly the parameters to the
> auth-action. I looks like it lossed the params!
>
> ... and continue:
>
> INFO(2002-09-22) 22:19.50:592   [core.authentication-manager]
> (/myapp/my-login) Thread-10/AuthenticationManager: AuthenticationManager:
> Trying to authenticate using handler 'myhandler'
> DEBUG   (2002-09-22) 22:19.50:592   [core.authentication-manager]
> (/myapp/my-login) Thread-10/AuthenticationManager: start authentication
> DEBUG   (2002-09-22) 22:19.50:592   [core.authentication-manager]
> (/myapp/my-login) Thread-10/AuthenticationManager: start invoking auth
> resource
> DEBUG   (2002-09-22) 22:19.50:593   [core.manager] (/myapp/my-login)
> Thread-10/ResourceLimitingPool: Got a
> org.apache.cocoon.webapps.session.connector.ResourceConnectorImpl from the
> pool.
> DEBUG   (2002-09-22) 22:19.50:593   [core.manager] (/myapp/my-login)
> Thread-10/ResourceConnectorImpl: start loading 'cocoon:raw://my-checkuser'
> DEBUG   (2002-09-22) 22:19.50:593   [core.manager] (/myapp/my-login)
> Thread-10/ResourceConnectorImpl: BEGIN loadXMLFromURI
> uri=cocoon:raw://my-checkuser, typeParams=null,
> parameters=SourceParameters: {password = (), name = ()}
>
> Please help me:
>
> Regards,
>
> Antonio Gallardo
>
> -
> 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: form validator

2002-09-23 Thread Ivan Luzyanin

On Monday 23 September 2002 17:27, Vadim Gritsenko wrote:
> Gabor Bartha wrote:
> > Hi,
> >
> > I've got a page with  parameters, I want to post it via
> > formvalidator.
> > I've got the descriptor.xml, with the required parameters. eg:
> >
> > 
> > 
> >> nullable="yes"/>
> >
> >   
> >   
> >
> > 
> >
> > If I don't give value to the persons  parameter (at the site
> > into the textbox) the formvalidator drop the default page back, not
> > the next page.
> >
> > I don't understand Why? - I defined it with nullable=yes.
> >
> > So - I mean - if I define a parameter at the descriptor.xml I need to
> > post it with an exact value?
>
> Do you have latest Cocoon release?
>
This problem exist in latest Cocoon 2.0.3 release too.

Regards!
Ivan Luzyanin.

-
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: form validator

2002-09-23 Thread Ivan Luzyanin

On Monday 23 September 2002 14:08, Gabor Bartha wrote:
> Hi,
>
> I've got a page with  parameters, I want to post it via
> formvalidator.
> I've got the descriptor.xml, with the required parameters. eg:
>
> 
> 
> nullable="yes"/>
>
>
>
> 
> 
>
> If I don't give value to the persons  parameter (at the site into
> the textbox) the formvalidator drop the default page back, not the next
> page.
>
> I don't understand Why? - I defined it with nullable=yes.
>
> So - I mean - if I define a parameter at the descriptor.xml I need to
> post it with an exact value?

nullable="yes" means that parameter with given name exist in request object 
but its value could be null. If you look in you sitemap.log you will see a 
NullPointerException in FormValidator action.
To fix your problem just put  in your 
HTML form.

Regards!
Ivan Luzyanin.

-
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: form validator

2002-09-23 Thread Gabor Bartha

I have Cocoon 2.0, might it be the problem?

Vadim Gritsenko wrote:

> Gabor Bartha wrote:
>
>> Hi,
>>
>> I've got a page with  parameters, I want to post it via
>> formvalidator.
>> I've got the descriptor.xml, with the required parameters. eg:
>>
>> 
>> 
>>   > nullable="yes"/>
>>
>>   
>>   
>>
>> 
>>
>> If I don't give value to the persons  parameter (at the site
>> into the textbox) the formvalidator drop the default page back, not
>> the next page.
>>
>> I don't understand Why? - I defined it with nullable=yes.
>>
>> So - I mean - if I define a parameter at the descriptor.xml I need to
>> post it with an exact value?
>
>
>
> Do you have latest Cocoon release?
>
> Vadim
>
>
>> Thanks,
>> Gabor
>
>
>
>
>
>
> -
> 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: form validator

2002-09-23 Thread Vadim Gritsenko

Gabor Bartha wrote:

> Hi,
>
> I've got a page with  parameters, I want to post it via 
> formvalidator.
> I've got the descriptor.xml, with the required parameters. eg:
>
> 
> 
>nullable="yes"/>
>
>   
>   
>
> 
>
> If I don't give value to the persons  parameter (at the site 
> into the textbox) the formvalidator drop the default page back, not 
> the next page.
>
> I don't understand Why? - I defined it with nullable=yes.
>
> So - I mean - if I define a parameter at the descriptor.xml I need to 
> post it with an exact value?


Do you have latest Cocoon release?

Vadim


> Thanks,
> Gabor





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




Schematron question

2002-09-23 Thread Mohamed El-Refaey

Hi all

I have a question related to Schematron validation :
How I can validate a 2 Text box in XMLForm values that they are 
identical for example (a password should be entered twice by the user 
and it must be identical in both field)

I tried to write the Rule in the schematron validation file as follow 
but it didn't work well :



The Password Should be @ least 8 character.




The Password Should be the same as before.



also I tried :
   


The Password Should be the same as before.



but unfortunately I have no result ..

any body tried this before ?

Thanx in advance


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




[help]stopping after fatal error: the encoding "ms932" is not supported.

2002-09-23 Thread prathibha



Hai
I am getting the following exception when i am executing a xml file which 
uses MS932 encoding..
I am using the latest cocoon version 2.0.3
description:org.apache.cocoon.processingexception: stopping after fatal 
error: the encoding "ms932" is not supported.: org.xml.sax.saxexception: 
stopping after fatal error: the encoding "ms932" is not supported.
thanks & Regards
Prathibha A.R


form validator

2002-09-23 Thread Gabor Bartha

Hi,

I've got a page with  parameters, I want to post it via 
formvalidator.
I've got the descriptor.xml, with the required parameters. eg:



   

   
   



If I don't give value to the persons  parameter (at the site into 
the textbox) the formvalidator drop the default page back, not the next 
page.

I don't understand Why? - I defined it with nullable=yes.

So - I mean - if I define a parameter at the descriptor.xml I need to 
post it with an exact value?

Thanks,
Gabor



-
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 2.0.3 and CastorTransformer

2002-09-23 Thread Michael Homeijer

Werner,

There aren't many mistakes you can make in things like sitemap or your xml
input for castor. I could send you some sitemap snippets or castor xml input
but they are pretty obvious. Looking at the stacktrace, I don't think you
have made any "obvious" mistakes.

I am using Xerces 1.4.4 and have no problems with it.

HTH,
Michael

-Original Message-
From: Werner Guttmann
To: [EMAIL PROTECTED]
Sent: 23-9-2002 10:55 
Subject: Re: Cocoon 2.0.3 and CastorTransformer

Michael,

good news, indeed. I'd appreciate if you could send a working example so
that I
could rule otu my own stupidity ... ;-). Re: Classpath issue, I think
you are
probably right here. In my original email, I asked whether using Xerces
1.4.4
could be the issue ...

Werner

Michael Homeijer wrote:

> Hi,
>
> I have successfully used the CastorTransformer. I am working on a new
> version that can be used to marshal and unmarshal, and doesn't use
> deprecated classes/code anymore. It's not finished, but I allready use
it in
> a project.
>
> I have it working in the latest CVS version of Cocoon, but it will
probably
> also work with 2.03. If you'r interessted, I can mail a copy of the
latest
> source.
>
> You'r problem sounds like a classpath/version issue, otherwise I can
also
> find no explanation for the NoSuchMethodError
>
> HTH,
>
> Michael
>
> -Original Message-
> From: Werner Guttmann
> To: [EMAIL PROTECTED]
> Sent: 20-9-2002 5:07
> Subject: Re: Cocoon 2.0.3 and CastorTransformer
>
> Thanks, Vadim. Now, please find below the stack trace (just the root
> cause) from
> Catalina's app specific log file. Looking at line 94  of
> CastorTransformer.java
> (from the scratchpad of the Cocoon 2.0.3 source dist) I can see that
it
> fails on
> the line marked with --> <---, but simply woul dnot know enough to
tell
> why ?
>
> Is anybody actually using the CastorTransformer sucessfully ?
>
> Werner
>
>/**
>  * Inner class eventhandler, forward the Castor SAX events
>  * to Cocoon 2 Events
>  */
> CastorEventAdapter = new HandlerBase(){
> public void startElement(String name, AttributeList attributes)
> throws
> SAXException
> {
>   AttributesImpl a= new AttributesImpl();
>   for(int i=0;i 
> a.addAttribute("",attributes.getName(i),attributes.getName(i),
>   "",attributes.getValue(i));
>   }
>
> --->
> CastorTransformer.super.contentHandler.startElement("",name,name,a);
> <
> }
>
> public void characters(char[] chars, int offset, int length)
> throws
> SAXException
> {
>   CastorTransformer.super.contentHandler.characters(chars,
> offset,
> length);
> }
>
> public void endElement(String name) throws SAXException
> {
>
>   CastorTransformer.super.contentHandler.endElement("",
> name,name);
> }
> };
>   }
>
> java.lang.NoSuchMethodError
> at
>
org.apache.cocoon.transformation.CastorTransformer$1.startElement(Castor
> Transformer.java:94)
>
> at
org.exolab.castor.xml.Marshaller.marshal(Marshaller.java:876)
> at
org.exolab.castor.xml.Marshaller.marshal(Marshaller.java:540)
> at
>
org.apache.cocoon.transformation.CastorTransformer.insertBean(CastorTran
> sformer.java:225)
>
> at
>
org.apache.cocoon.transformation.CastorTransformer.process(CastorTransfo
> rmer.java:173)
>
> at
>
org.apache.cocoon.transformation.CastorTransformer.startElement(CastorTr
> ansformer.java:132)
>
> at
>
org.apache.cocoon.components.sax.XMLTeePipe.startElement(XMLTeePipe.java
> :118)
> at
> org.apache.xerces.parsers.SAXParser.startElement(SAXParser.java:1376)
> at
>
org.apache.xerces.validators.common.XMLValidator.callStartElement(XMLVal
> idator.java:1284)
>
> at
>
org.apache.xerces.framework.XMLDocumentScanner.scanElement(XMLDocumentSc
> anner.java:1806)
>
> at
>
org.apache.xerces.framework.XMLDocumentScanner$ContentDispatcher.dispatc
> h(XMLDocumentScanner.java:1182)
>
> at
>
org.apache.xerces.framework.XMLDocumentScanner.parseSome(XMLDocumentScan
> ner.java:381)
>
> at
> org.apache.xerces.framework.XMLParser.parse(XMLParser.java:1098)
> at
> org.apache.avalon.excalibur.xml.JaxpParser.parse(JaxpParser.java:269)
> at
> org.apache.avalon.excalibur.xml.JaxpParser.parse(JaxpParser.java:222)
> at
>
org.apache.cocoon.components.source.AbstractStreamSource.toSAX(AbstractS
> treamSource.java:206)
>
> at
>
org.apache.cocoon.generation.FileGenerator.generate(FileGenerator.java:1
> 43)
> at
>
org.apache.cocoon.components.pipeline.CachingEventPipeline.process(Cachi
> ngEventPipeline.java:250)
>
> at
>
org.apache.cocoon.components.pipeline.CachingStreamPipeline.process(Cach
> ingStreamPipeline.java:399)
>
> at
>
org.apache.cocoon.components.treeprocessor.sitemap.SerializeNode.invoke(
> SerializeNode.java:153)
>
> at
>
org.apache.cocoon.components.t

Tom Shepherd is out of the office.

2002-09-23 Thread Tom Shepherd

I will be out of the office starting  23/09/2002 and will not return until 24/09/2002.




--

This e-mail may contain confidential and/or privileged information. If you are not the 
intended recipient (or have received this e-mail in error) please notify the sender 
immediately and destroy this e-mail. Any unauthorized copying, disclosure or 
distribution of the material in this e-mail is strictly forbidden.



-
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 2.0.3 and CastorTransformer

2002-09-23 Thread Werner Guttmann

Michael,

good news, indeed. I'd appreciate if you could send a working example so that I
could rule otu my own stupidity ... ;-). Re: Classpath issue, I think you are
probably right here. In my original email, I asked whether using Xerces 1.4.4
could be the issue ...

Werner

Michael Homeijer wrote:

> Hi,
>
> I have successfully used the CastorTransformer. I am working on a new
> version that can be used to marshal and unmarshal, and doesn't use
> deprecated classes/code anymore. It's not finished, but I allready use it in
> a project.
>
> I have it working in the latest CVS version of Cocoon, but it will probably
> also work with 2.03. If you'r interessted, I can mail a copy of the latest
> source.
>
> You'r problem sounds like a classpath/version issue, otherwise I can also
> find no explanation for the NoSuchMethodError
>
> HTH,
>
> Michael
>
> -Original Message-
> From: Werner Guttmann
> To: [EMAIL PROTECTED]
> Sent: 20-9-2002 5:07
> Subject: Re: Cocoon 2.0.3 and CastorTransformer
>
> Thanks, Vadim. Now, please find below the stack trace (just the root
> cause) from
> Catalina's app specific log file. Looking at line 94  of
> CastorTransformer.java
> (from the scratchpad of the Cocoon 2.0.3 source dist) I can see that it
> fails on
> the line marked with --> <---, but simply woul dnot know enough to tell
> why ?
>
> Is anybody actually using the CastorTransformer sucessfully ?
>
> Werner
>
>/**
>  * Inner class eventhandler, forward the Castor SAX events
>  * to Cocoon 2 Events
>  */
> CastorEventAdapter = new HandlerBase(){
> public void startElement(String name, AttributeList attributes)
> throws
> SAXException
> {
>   AttributesImpl a= new AttributesImpl();
>   for(int i=0;i 
> a.addAttribute("",attributes.getName(i),attributes.getName(i),
>   "",attributes.getValue(i));
>   }
>
> --->
> CastorTransformer.super.contentHandler.startElement("",name,name,a);
> <
> }
>
> public void characters(char[] chars, int offset, int length)
> throws
> SAXException
> {
>   CastorTransformer.super.contentHandler.characters(chars,
> offset,
> length);
> }
>
> public void endElement(String name) throws SAXException
> {
>
>   CastorTransformer.super.contentHandler.endElement("",
> name,name);
> }
> };
>   }
>
> java.lang.NoSuchMethodError
> at
> org.apache.cocoon.transformation.CastorTransformer$1.startElement(Castor
> Transformer.java:94)
>
> at org.exolab.castor.xml.Marshaller.marshal(Marshaller.java:876)
> at org.exolab.castor.xml.Marshaller.marshal(Marshaller.java:540)
> at
> org.apache.cocoon.transformation.CastorTransformer.insertBean(CastorTran
> sformer.java:225)
>
> at
> org.apache.cocoon.transformation.CastorTransformer.process(CastorTransfo
> rmer.java:173)
>
> at
> org.apache.cocoon.transformation.CastorTransformer.startElement(CastorTr
> ansformer.java:132)
>
> at
> org.apache.cocoon.components.sax.XMLTeePipe.startElement(XMLTeePipe.java
> :118)
> at
> org.apache.xerces.parsers.SAXParser.startElement(SAXParser.java:1376)
> at
> org.apache.xerces.validators.common.XMLValidator.callStartElement(XMLVal
> idator.java:1284)
>
> at
> org.apache.xerces.framework.XMLDocumentScanner.scanElement(XMLDocumentSc
> anner.java:1806)
>
> at
> org.apache.xerces.framework.XMLDocumentScanner$ContentDispatcher.dispatc
> h(XMLDocumentScanner.java:1182)
>
> at
> org.apache.xerces.framework.XMLDocumentScanner.parseSome(XMLDocumentScan
> ner.java:381)
>
> at
> org.apache.xerces.framework.XMLParser.parse(XMLParser.java:1098)
> at
> org.apache.avalon.excalibur.xml.JaxpParser.parse(JaxpParser.java:269)
> at
> org.apache.avalon.excalibur.xml.JaxpParser.parse(JaxpParser.java:222)
> at
> org.apache.cocoon.components.source.AbstractStreamSource.toSAX(AbstractS
> treamSource.java:206)
>
> at
> org.apache.cocoon.generation.FileGenerator.generate(FileGenerator.java:1
> 43)
> at
> org.apache.cocoon.components.pipeline.CachingEventPipeline.process(Cachi
> ngEventPipeline.java:250)
>
> at
> org.apache.cocoon.components.pipeline.CachingStreamPipeline.process(Cach
> ingStreamPipeline.java:399)
>
> 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.i
> nvoke(PreparableMatchNode.java:156)
>
> at
> org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.
> invokeNodes(AbstractParentProcessingNode.java:109)
>
> at
> org.apache.cocoon.components.treeprocessor.sitemap.PipelineNode.invoke(P
> ipelineNode.java:140)
>

Re: PERFUME PROPOSAL: SOAP FOR COCOON

2002-09-23 Thread Justin Fagnani-Bell


On Sunday, September 22, 2002, at 08:54  PM, Steven Punte wrote:

>> PERFUME:
>>>
>>>   1)  The implementation of Perfume shall result
>>>   in three distinct Cocoon components:
>>>
>>>   a)  A generator that can receive a soap
>>>   message and turn it into an xml sax
>>>   stream.
>>
>> Why not use an Action? Then you could set sitemap variables, call 
>> other
>> actions, use an existing generator...
>
>   Please elaborate more here.  I've only written one action component 
> so far, that is used to set a sitemap
> variable. How would an action component take the place of a generator 
> component.

My first reason for not using a generator to handle the SOAP request is 
that it doesn't quite fit into the role of generators, I think the 
generator should be used to create the response.

But the real problem I see here is how to do something useful with the 
SOAP request. Once you receive the request you've go to do something 
with it. If all you have is a SOAPGenerator and a SOAPSerializer, then 
all you can so is put some transformers in between them to turn the 
request into a response. You wouldn't be able to do a whole lot unless 
you wrote your own transformer. With the built in transformers the most 
complex thing I could see doing in using an XSLTransformer and the an 
SQLTransformer to do a database lookup. If you want to perform some of 
the functions that are typically done with Actions or flowscript you'll 
need Actions.

If you had a SOAPAction though, you could take information about the 
soap request and place it into sitemap parameters, from there you could 
use those parameters with selectors to choose appropriate pieces of the 
pipeline.

It's kind of analogous to the difference between RequestGenerator and 
RequestParamAction. RequestGenerator is useful for using the request 
parameters and headers in the output, but RequestParamAction is what 
you normally use when you need to setup parts of your pipeline based on 
the request.

>>> b)  A serializer that can convert an xml
>>>   stream into a return soap message.
>>
>> Would the current XMLSerializer work for this? I'm not that familiar
>> with SOAP, but I was under the impression that it was xml documents
>> sent via HTTP.
>
>   This is an interesting question.  I have a sneaky feeling that
>   SOAP, especially originating from M$, has additional implied
>   requirements than simply XML (i.e. setting HTTP parameters).
>   It is just a suspicion at this point in time, and I'm hoping
>   some more experience developers can comment here.

I'm not aware of too many important HTTP response headers besides 
content-length, redirect-to, and mime-type. I'm not that knowledgeable 
about it though.

>>>   c)  A transformer that can act as a soap
>>>   client.  Incoming xml is transmitted
>>>   as a soap message, the pipe is blocked
>>>   until return or time out, and then the
>>>   received message is returned into the xml
>>>   sax stream.
>>
>> Sounds nice. You could keep the piece that transforms the sax stream
>> into soap separate from the soap client. That way you could just use 
>> an
>> xsl stylesheet, or any other transformer, to create the soap and it
>> would be more controllable by the end user.
>>
>> Another thought is to have a SOAPAction that does a similar thing, 
>> this
>> way you could receive a request, access a soap server, then setup the
>> pipeline based on the results of the soap request. And maybe there's
>> even a way to integrate this with flowscript so that flowscript can
>> perform actions based on incoming soap, or you could access a soap
>> service from within flowscript.
>
>   Where can I find out more about flowscript?

Got me. I followed the discussion of the dev list for a while, but I've 
never played with 2.1 and there's no doc that I've found yet. I guess 
download 2.1.

>>>   d)  It seems like the generator and serializer need
>>>   potentially an out-of-pipeline connection with
>>>   each other.  Or that some method of the 
>>> generator
>>>   conveying forward a soap related error to the
>>>   serializer is needed.
>>
>> If it was a soap action rather than generator it
> could set sitemap parameters, or fail.

>   An alternate strategy is to require certain xml fragment(s), like an
>   error structure, be propagated forward from the generator to the
>   serializer.  Both strategies seem to require some participation on
>   the user.  I'm wondering if there is a more robust strategy.

Marcus' reply to your post is interesting. Like I said, I don't know 
much about soap, but if the response needs to formatted acording to the 
request then some