FW: [BUG] : java.util.EmptyStackException on EnvironmentStack

2003-01-07 Thread Amir Rosen
Hi,

I'm using cocoon 2.0.4, and after calling a request that causes 
an exception, sometimes I get an EmptyStackException from the
environment stack.

I traced this behavior, and found out that, the environment
stack is sometimes not initialized, when the request is 
just starting to process, meaning, on the first call to
CocoonComponentManager#enterEnvironment, environmentStack.get()
returns an empty EnvironmentStack with offset = 1.

I think resetting the thread's EnvironmentStack on entry
(CocoonServlet#service) will solve this, but I'm not sure if
that is the right solution. (I'm not fluent with the behavior
of this part of the system)

Please help me solve this.


Thanks,

Amir Rosen
CTI Squared
[EMAIL PROTECTED]
+972-9-9605200 (258)
 

-
Please check that your question  has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faq/index.html

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




getSitemapURI() with cocoon:raw protocol

2002-11-25 Thread Amir Rosen
Hi,

I've encoutered a strange behaviour with the request object,
using cocoon 2.0.4-dev .

I'm using getSitemapURI() on the request object, inside a pipeline
that was called using the cocoon:raw protocol.
The getSitemapURI() returns the sitemap uri of the inner pipeline,
while all other request methods (getRequestURI(), getPathInfo(), etc.)
return the URIs of the original request.

Is this the right behaviour, and if so, how do I get the getRequestURI()
of the inner pipeline, or the getSitemapURI() of the original request ?


Thanks,

Amir Rosen
CTI Squared
[EMAIL PROTECTED]
+972-9-9605200 (258)
 

-
Please check that your question  has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faq/index.html

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




RE: Xsltc and 2.0.3

2002-09-05 Thread Amir Rosen



 -Original Message-
 From: Stephen Ng [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, September 05, 2002 5:56 PM
 To: [EMAIL PROTECTED]
 Subject: Xsltc and 2.0.3
 
 
 Is it possible to plug xsltc into 2.0.3?
 
 I tried substituting in sitemap.xmap:
 
   map:transformer name=xslt
 src=org.apache.cocoon.transformation.TraxTransformer
 logger=sitemap.transformer.xsltc
 pool-max=32 pool-min=8 pool-grow=2
   use-request-parametersfalse/use-request-parameters
   use-browser-capabilities-dbfalse/use-browser-capabilities-db
   use-delifalse/use-deli
  
 transformer-factoryorg.apache.xalan.xsltc.trax.TransformerFa
 ctoryImpl
 /transformer-factory
 /map:transformer
 

I think transformer-factory/transformer-factory should be configured in 
cocoon.xconf and not in the sitemap

 and adding xsltc-20020723.jar to my lib directory, but it doesn't seem
 to do anything (e.g. it doesn't complain if xsltc is missing, or if I
 change TransformerFactoryImpl to FooBarImpl).
 
 I thought about changing cocoon.xconf:
 
   xslt-processor
 class=org.apache.cocoon.components.xslt.XSLTProcessorImpl
 logger=core.xslt-processor
 parameter name=use-store value=true/
  parameter name=incremental-processing value=false/
   /xslt-processor
 
 But I'm not sure what I'd put here.
 
 Thanks,
 
 Steve
 
 
 -
 Please check that your question  has not already been answered in the
 FAQ before posting. http://xml.apache.org/cocoon/faq/index.html
 
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail:   [EMAIL PROTECTED]
 
 

-
Please check that your question  has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faq/index.html

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




container-encoding

2002-08-21 Thread Amir Rosen

Hi,

What is 'container-encoding' initialization parameter used for ?
What does it affect ?

Thanks,

Amir Rosen
CTI Squared
[EMAIL PROTECTED]
+972-9-9605200 (258)
 

-
Please check that your question  has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faq/index.html

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




Cocoon dated lib jars sources

2002-07-17 Thread Amir Rosen

Where can I found the sources for the jars in lib for 2.0.3 that are not official 
releases,
(for example avalon-framework-20020627.jar).

Thanks,

Amir Rosen
CTI Squared
[EMAIL PROTECTED]
+972-9-9605200 (258)
 

-
Please check that your question  has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faq/index.html

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




Upload

2002-07-17 Thread Amir Rosen

Hi,

Is there a (simple) way to override the default cocoon behavior when uploading a file ?
Is there a role I should implement and configure ?

Thanks,

Amir Rosen
CTI Squared
[EMAIL PROTECTED]
+972-9-9605200 (258)
 

-
Please check that your question  has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faq/index.html

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




XML with external DTD problem

2002-06-09 Thread Amir Rosen


I'm trying to serialize a simple XML with an external DTD declaration,
using a simple sitemap.
Somehow, the comments from the referenced DTD are serialized with the
file in the document type declaration, breaking the XML, since they
should be inside square brackets (if at all).

Why does it happen ? (parser/generator/serializer ?)
How can i turn it off ?

Thanks,

Amir Rosen
CTI Squared
[EMAIL PROTECTED]
+972-9-9605200(258)


The Sitemap:
  map:match pattern=*.vxml
map:generate type=file src=vxml/{1}.vxml/
map:serialize type=xml/
  /map:match


The File:
?xml version=1.0 encoding=ISO-8859-1?
!DOCTYPE vxml SYSTEM 'http://voicexml.nuance.com/dtd/nuancevoicexml-1-2.dtd'
vxml version=1.0
catch event=x/
/vxml


The Result:
?xml version=1.0 encoding=UTF-8?
!DOCTYPE vxml SYSTEM http://voicexml.nuance.com/dtd/nuancevoicexml-1-2.dtd;!-- A 
DTD for Voice Extensible Markup Language --!-- Copyright (c) 2000 VoiceXML Forum 
(ATT, IBM, Lucent Technologies, Motorola) --!-- debug and log permit logging 
capibilites tag within executable.content. --!-- New 'accept.attrs' entity is added 
to menu, choice, and option in
 the spirit of the VoiceXML 2.0 specification. This varies from
 2.0 in that the default value is #IMPLIED, and is extended to
 apply to option. --!--= Root 
--!-- For backwards compatibility, the version 
attribute defaults to 1.0 --!--= Dialogs 
=--!-- also allow %accept.attrs --!-- also allow 
%accept.attrs --!-- Prompts 
==--!-- Fields 
===--!-- option is more powerful with optional 
grammars and %audio;. --!-- also allow %accept.attrs 
--!--== Events 
=--!--== Audio Output 
===--!-- The 'expr' attribute permits dynamically evaluated 
audio URLs. --!--= Audio Input 
=--!-- grammar also permits redef children, which
 can be used to define external grammars --!-- an redef element describes an 
external grammar through a src,
 type and name of the grammar to be resolved by this external
 grammar --!-- Call Control 
--!-- Control Flow 
--!-- param elements are allowed to have nested 
param children,
 and an index to allow building up arrays/vectors.
 Also, if index is specified name is not required. 
--!--== Verification  ==--!-- 
Elements for destroying and manipulating voice buffers. --!-- Elements for creating, 
destroying, and manipulating voice sessions. --!--== 
Miscellaneous ==--!-- debug and log link up with 
Nuance's JLAPI framework. --!-- links allow object to be treated like other 
form-items. --!-- For debug purposes, newlines are preserved by default. --!-- 
For debug purposes, newlines are preserved by default. --
vxml version=1.0
catch event=x/
/vxml