Google App Engine

2009-10-19 Thread Jean-Claude Moissinac
I'm searching of advises about using Cocoon with some cloud like
Google App Engine.
Is anyone has point of view about such possibility?

-- 
Jean-Claude Moissinac

-
To unsubscribe, e-mail: users-unsubscr...@cocoon.apache.org
For additional commands, e-mail: users-h...@cocoon.apache.org



Re: problem showing pdf as text/plain with resourcereader

2009-10-19 Thread joao tiago a. m. viegas
Thank you very much Alexander,

i've discovered with LiveHTTPHeaders addon that the content-length is = 0
!!!

the pipeline section is this:

map:act type=invoice-save-action
map:select type=parameter
map:parameter name=parameter-selector-test
value={savepdf}/
map:when test=1
map:serialize type=invoice2filesys
map:parameter name=path
value={path}/
map:parameter name=file
value={file}/
/map:serialize
 map:read type=resource
src={path}/{file} mime-type=application/pdf /
/map:when
map:otherwise
map:serialize type=fo2pdf/
/map:otherwise

/map:select
/map:act


it tests if it's desired to save the file in the filesystem, and if so,
saves it (it does gets saved allright though), but the reader simply does
not work!

i'm I overlooking something here?

com os melhores cumprimentos
joão tiago viegas


2009/10/18 Alexander Daniel alexander.dan...@gmx.at

 On 17.10.2009, at 10:34, joao tiago a. m. viegas wrote:

  Hello everyone,

 i'm having this problem where i want to read static pdf files in the
 server and supply them to the browser for being read by the acrobat pdf
 plugin. The plugin always complains about it being a text/plain file.
 I'm using the default resource reader and specifying the mime-type, just
 like in the user documentation, strictly by the book.


 For analysis you could check with Firefox Add-on Live HTTP Headers [1]
 whether the HTTP response headers are sent correctly to the browser.

 Alex

 [1] https://addons.mozilla.org/en-US/firefox/addon/3829

 -
 To unsubscribe, e-mail: users-unsubscr...@cocoon.apache.org
 For additional commands, e-mail: users-h...@cocoon.apache.org




Re: Google App Engine

2009-10-19 Thread Jos Snellings
Good point. I have been isolating Cocoon a couple of months ago.
and need to get that one out of the fridge.
The exercise proved not straigtforward. I will keep you informed.

Jos


On Mon, 2009-10-19 at 15:33 +0200, Jean-Claude Moissinac wrote:
 I'm searching of advises about using Cocoon with some cloud like
 Google App Engine.
 Is anyone has point of view about such possibility?
 


-
To unsubscribe, e-mail: users-unsubscr...@cocoon.apache.org
For additional commands, e-mail: users-h...@cocoon.apache.org



Re: Google App Engine

2009-10-19 Thread Jean-Claude Moissinac
Results of some try tonight with Cocoon 3
with an xml source, an xslt transformer and an xml serializer
at some point cocoon 3 seems to compile an xslt transformation and has
not the right permission to write something
it's my reading of:
java.lang.NoClassDefFoundError: Could not initialize class
com.sun.org.apache.bcel.internal.util.SyntheticRepository
at 
com.sun.org.apache.bcel.internal.classfile.JavaClass.(JavaClass.java:109)
at 
com.sun.org.apache.bcel.internal.classfile.JavaClass.(JavaClass.java:228)
at 
com.sun.org.apache.bcel.internal.generic.ClassGen.getJavaClass(ClassGen.java:174)
at 
com.sun.org.apache.xalan.internal.xsltc.compiler.Stylesheet.translate(Stylesheet.java:735)
at 
com.sun.org.apache.xalan.internal.xsltc.trax.TemplatesHandlerImpl.endDocument(TemplatesHandlerImpl.java:230)
at 
com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.endDocument(AbstractSAXParser.java:737)
...

and I suspect that Google App Engine is not a good place to compile an
xslt transformation and then execute the generated code...

What are thinking about?

Jean-Claude

-
To unsubscribe, e-mail: users-unsubscr...@cocoon.apache.org
For additional commands, e-mail: users-h...@cocoon.apache.org