Re: background task management

2003-07-01 Thread Peter Nuetzel . inglobo
Hi David,

I am interested in your background task manager.

I downloaded your document and your code from Bugzilla and found that several
source files are missing.
e.g. the Actions described in the document and
com.dotech.cocoon.environment.thread.BackgroundThreadEnvironment used by the
FileUploadTask.

I'm specially interested in calling a cocoon pipeline from a background thread.
Am I right that the BackgroundThreadEnvironment is responsible for that?

Maybe you can upload the missing source files to bugzilla.

Regards, Peter

BTW: I would not recommend to use Microsoft Word files for documentation in an
open source project. Especially if it's not bound to the Microsoft Windows
platform. Better you use plain text, html or xml for contributing
documentation.


David Kavanagh [EMAIL PROTECTED] wrote:
For those who were interested in something to manage background tasks in
cocoon, have a look at bug 20271 in the bugzilla database. Please vote
for it so it gets some attention.

Thanks,
David




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



Re: background task management

2003-07-01 Thread Peter Nuetzel . inglobo
Hi David,

there are still missing the sources for
com.dotech.cocoon.environment.thread.BackgroundThreadEnvironment
and com.dotech.messaging.Message
to compile all classes. The latter one is less interesting, but the
BackgroundThreadEnvironment seems to be pretty cocoon specific ;-)
I would suggest you to create a complete source package with sitemap.xmap and
cocoon.xconf snippets (already in user documentation) which can be easily
compiled and testet. I think this will raise the changes that a commiter will
review and commit the code.

Do I unterstand correct that the BackgroundThreadEnvironment is some kind of
FakeEnvironment (no output/no input)?
I digged a bit around in your code and in the cocoon core and environment code
and now I am a bit confused about using different Environments with the same
Cocoon instance. What I was wondering about is that you use the HTTPEnvironment
to resolve (and construct) a Source object (in UploadTaskAction) and later use
your own BackgroundThreadEnvironment (in FileUploadTask) to process the source.
Does this work without problems?
What I want to do is generating PDF files in a background thread triggered by a
HTTP request. I guess I have to use the FileSavingEnvironment to do this. I am
somehow curious how to correctly use Cocoon and the CocoonComponentManager to
do this. Can you give me some hints or point to some docs about this?
Is this the following code the right approach?

env = new FileSavingEnvironment(...);
Processor processor =
(Processor)this.componentManager.lookup(Processor.ROLE);
processor.process(environment);

Thank You,
Peter



David Kavanagh [EMAIL PROTECTED] wrote:

Peter,
Thanks for finding the omission. I've uploaded a zip including the two
actions.
Yes, that environment object was needed to keep the underlying code
happy. I don't do anything with the pipeline results. I just scan for
error elements because I was doing some SQL commands via the
SQLTransformer.
If I can be of any further help, please let me know.
Thanks,
David

Peter Nuetzel . inglobo wrote:

Hi David,

I am interested in your background task manager.

I downloaded your document and your code from Bugzilla and found that several
source files are missing.
e.g. the Actions described in the document and
com.dotech.cocoon.environment.thread.BackgroundThreadEnvironment used by the
FileUploadTask.

I'm specially interested in calling a cocoon pipeline from a background
thread.
Am I right that the BackgroundThreadEnvironment is responsible for that?

Maybe you can upload the missing source files to bugzilla.

Regards, Peter

BTW: I would not recommend to use Microsoft Word files for documentation in
an
open source project. Especially if it's not bound to the Microsoft Windows
platform. Better you use plain text, html or xml for contributing
documentation.


David Kavanagh [EMAIL PROTECTED] wrote:


For those who were interested in something to manage background tasks in
cocoon, have a look at bug 20271 in the bugzilla database. Please vote
for it so it gets some attention.

Thanks,
David





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



Re: background task management

2003-07-01 Thread Peter Nuetzel . inglobo
Hi David,

there are still missing the sources for
com.dotech.cocoon.environment.thread.BackgroundThreadEnvironment
and com.dotech.messaging.Message
to compile all classes. The latter one is less interesting, but the
BackgroundThreadEnvironment seems to be pretty cocoon specific ;-)
I would suggest you to create a complete source package with sitemap.xmap and
cocoon.xconf snippets (already in user documentation) which can easily be
compiled and testet. I think this will raise the changes that a commiter will
review and commit the code.

Do I unterstand correct that the BackgroundThreadEnvironment is some kind of
FakeEnvironment (no output/no input)?
I digged a bit around in your code and in the cocoon core and environment code
and now I am a bit confused about using different Environments with the same
Cocoon instance. What I was wondering about is that you use the HTTPEnvironment
to resolve (and construct) a Source object (in UploadTaskAction) and later use
your own BackgroundThreadEnvironment (in FileUploadTask) to process the source.
Does this work without problems?
What I want to do is generating PDF files in a background thread triggered by a
HTTP request. I guess I have to use the FileSavingEnvironment to do this. I am
somehow curious how to correctly use Cocoon and the CocoonComponentManager to
do this. Can you give me some hints or point to some docs about this?
Is this the following code the right approach?

env = new FileSavingEnvironment(...);
Processor processor =
(Processor)this.componentManager.lookup(Processor.ROLE);
processor.process(environment);


or is there some way to directly get the Cocoon object from the manager or
somewhere else?

Thank You,
Peter



David Kavanagh [EMAIL PROTECTED] wrote:

Peter,
Thanks for finding the omission. I've uploaded a zip including the two
actions.
Yes, that environment object was needed to keep the underlying code
happy. I don't do anything with the pipeline results. I just scan for
error elements because I was doing some SQL commands via the
SQLTransformer.
If I can be of any further help, please let me know.
Thanks,
David

Peter Nuetzel . inglobo wrote:

Hi David,

I am interested in your background task manager.

I downloaded your document and your code from Bugzilla and found that several
source files are missing.
e.g. the Actions described in the document and
com.dotech.cocoon.environment.thread.BackgroundThreadEnvironment used by the
FileUploadTask.

I'm specially interested in calling a cocoon pipeline from a background
thread.
Am I right that the BackgroundThreadEnvironment is responsible for that?

Maybe you can upload the missing source files to bugzilla.

Regards, Peter

BTW: I would not recommend to use Microsoft Word files for documentation in
an
open source project. Especially if it's not bound to the Microsoft Windows
platform. Better you use plain text, html or xml for contributing
documentation.


David Kavanagh [EMAIL PROTECTED] wrote:


For those who were interested in something to manage background tasks in
cocoon, have a look at bug 20271 in the bugzilla database. Please vote
for it so it gets some attention.

Thanks,
David






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



Re: once again urlrewriting

2002-10-29 Thread Peter Nuetzel . inglobo
Hi

I don't know what may cause your problem. But I realized that your sitemap
snippet is wrong: The map:serialize must be in the map:act element

-peter

 .
 .
 map:match pattern=startOR
map:act type=ORAction
   map:generate src=orneu/{nextpage}.xsp type=serverpages/
   map:transform src=orneu/xml2html.xsl type=xslt/
 map:transform type=encodeURL/
/map:act
map:serialize type=html/
 /map:match








-
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: I feel stupid. COCOON + TOMCAT

2002-10-01 Thread Peter Nuetzel . inglobo

Hi Mauro,

check the tomcat logfiles in $TOMCAT_HOME/logs. There should be hint to
what went wrong.

-peter



Von: Mauro Daniel Ardolino [EMAIL PROTECTED]

Hi! I think I'll go mad.  About a week ago I was trying to install cocoon
on tomcat on windows: I couldn't and I thought it was a windows problem.
Some of you were trying to help me.

Now after some changes I am working on RH73.  I've installed Tomcat 4.1.12
and still can't make cocoon to deploy.

I downloaded the cocoon 2.0.3 binary distribution, and put the cocoon.war
inside the tomcat_home/webapps folder.  I restarted Tomcat and nothing
happens.  The folder cocoon does not apear inside webapps and of
course I'm not seeing the http://localhost:8080/cocoon presentation page.

I feel really stupid.  What am I doing wrong (again)?

Thanks in advance.

-- Mauro

--
Ing.Mauro Daniel Ardolino
Departamento de Desarrollo y Servicios
Altersoft
Billinghurst 1599 - Piso 9
C1425DTE - Capital Federal
Tel/Fax: 4821-3376 / 4822-8759
mailto: [EMAIL PROTECTED]
website: http://www.altersoft.com.ar






-
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: Help - TEXTAREA in XSLT

2002-01-24 Thread Peter Nuetzel - inglobo

Hi,

You may use xsl:text to write whitespace characters to the output tree.
eg:

...
TEXTAREA name=.. rows=.. cols=..xsl:text[line break]
/xsl:text
/TEXTAREA.
...

- peter

PS: Please dont send HTML mail to the list


--
Von: jagannath narayan [EMAIL PROTECTED]


Hi,

Can u please give me the solution for this.

In the stylesheet I define a textarea like this:
TEXTAREA name=.. rows=.. cols=../TEXTAREA.
 The XSLT-processor (Xalan) optimizes my code and the
 result is this: TEXTAREA name=.. rows=..
 cols=../. I know that this correct but my browser
 does not understand it.

Bye
Jagannath



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

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




Re: Strange Netscape Behavior

2001-11-15 Thread Peter Nuetzel - inglobo

Netscape 4.x has some trouble with UTF-* encoding - better you use
ISO-8859-1. Encoding of the serializer can be configured in the sitemap's
component definition.

map:serializer name=html mime-type=text/html
src=org.apache.cocoon.serialization.HTMLSerializer
encodingISO-8859-1/encoding
/map:serializer

- peter

PS: I don't know why this isn't the standard configuration for the
HTMLSerializer. I think its the default encoding of HTML versions  4 and
the most used on the net. This is also s.th. for the FAQ.


-Ursprüngliche Nachricht-
Von: Henrik Hofmann [EMAIL PROTECTED]


Well, I think I found the problem, its about the encoding and other META
Tags in the Header. After saving the source to  text and deleting the
Meta Tags I opend the page again and it looked normal. Saved the now
normal source again and put the Metatag in it it was messed up again.
The Tag was the one from the serializer for UTF-8 encoding. When I
switched it manually to UTF-16 it worked.

There were also some other Meta Tags for caching information. Some
combinations of encoding tag together with caching worked some didn't
and I couldn't see any system in it.

When I look at the Cocoon start page its also UTF-8 and everything is
fine.

Can I change or configure the html serializer so it serializes with
UTF-16 in the Header instead of UFT-8?

bye


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

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



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

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




Re: the saga continues: cocoon2rc1a with tomcat4.0 (as a service on win2K)

2001-09-26 Thread Peter Nuetzel - inglobo

I had also no problems installing current C2 on Tomcat4:
JDK1.3.1 on Linux - Tomcat 4.0 release
I've not touched crimson.jar or jaxp.jar in $tomcat/common/libs. Cocoon is
correctly using its included xerces parser).

- peter


-Ursprüngliche Nachricht-
Von: Vadim Gritsenko [EMAIL PROTECTED]
An: [EMAIL PROTECTED] [EMAIL PROTECTED]
Datum: Mittwoch, 26. September 2001 16:11
Betreff: RE: the saga continues: cocoon2rc1a with tomcat4.0 (as a service
on win2K)


I have default installation of Tomcat 4 (no mods), dropped there
cocoon.war, and it's working.
No tomcat libs were replaced/removed.

Platform: JDK1.3.1 on Win, Tomcat 4.0.

Regards,
Vadim

 -Original Message-
 From: Ed Nixon [mailto:[EMAIL PROTECTED]]
 Sent: Wednesday, September 26, 2001 9:28 AM
 To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
 Subject: the saga continues: cocoon2rc1a with tomcat4.0 (as a service on
win2K)


 This is a continuation of a thread begun yesterday on cocoon-users. I've
 cross posted in the hopes that the feedback and solutions will be
quicker.

 According to various sources, cocoon2rc1a and tomcat4 can be run
together if:
 - crimson.jar and jaxp.jar in the tomcat_home/common/lib directory are
 replaced by xerxes and xalan from the cocoon2 distribution.
 - all other steps in the build, install documentation are completed as
 documented for tomcat4.0

 this enables the cocoon demo pages to be run, provided the tomcat server
is
 operating in console mode.

 On win2k it is possible to run tomcat as a service. Because of issues
with
 classpaths when running as a service, the cocoon servlet environment
does
 not work. http://www.pigbite.co.uk/ctwig/index.html notes this problem
and
 suggests changes to a file called tomcat_home\conf\wrapper.properties to
 update classpath information regarding xerxes and xalan presumably.

 Unfortunately wrapper.properties does not exist in my/the tomcat4.0
 distribution. this is the windows MSI installation package.
 (wrapper.properties does not exist in the zip distribution either, by
the way.)

 Can anyone suggest
 - whether classpaths are in fact the issue with cocoon2, tomcat and
win2k
 service?
 - where to find the file(s) in tomcat that duplicate the functionality
of
 wrapper.properties with respect to classpaths?

 thanks for your help....edN




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

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


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

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



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

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




Re: [C2] Don't know how to use character encoding ?! Please HELP

2001-08-30 Thread Peter Nuetzel - inglobo

again:
add encoding parameter to your HTML Serializer definition in your sitemap
(in /map:sitemap/map:components/map:serializers)

map:serializer name=html mime-type=text/html
src=org.apache.cocoon.serialization.HTMLSerializer
   encodingISO-8859-1/encoding
/map:serializer

if this doesn't work it might be a caching problem. If you use Tomcat
shutdown Tomact delete everything in the cocoon directory in your tomcat
work directory ($TOMCAT_HOME/work/localhost/cocoon) and restart Tomcat. If
this still does not work it might be a bug somewhere. Then please post a
description of your environment and a snippet of your sitemap (and perhaps
also the xml and xsl files - but better not to the list).

- peter

-Ursprüngliche Nachricht-
Von: Samuel ARNOD-PRIN [EMAIL PROTECTED]
An: [EMAIL PROTECTED] [EMAIL PROTECTED];
[EMAIL PROTECTED] [EMAIL PROTECTED]
Datum: Donnerstag, 30. August 2001 18:25
Betreff: Re: [C2] Don't know how to use character encoding ?! Please HELP


 Its working perfectly in my environment (Tomcat/latest Cocoon2). It also
 worked with earlier versions of C2. Perhaps you have a caching/reloading
 problem.

 In my HTML head:
 meta http-equiv=Content-Type content=text/html; charset=ISO-8859-1

I confirm too, I still have charset=UTF-8... did you do something
particular for this ?

how can I rid of this *** UTF-8 ???

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

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



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

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




Re: [C2] Don't know how to use character encoding ?! Please HELP

2001-08-27 Thread Peter Nuetzel - inglobo

add a parameter to the HTML or XML serializer definition in your sitemap to
specify encoding:

map:serializer name=html   mime-type=text/html
src=org.apache.cocoon.serialization.HTMLSerializer
encodingISO-8859-1/encoding
/map:serializer

- peter


-Ursprüngliche Nachricht-
Von: Samuel ARNOD-PRIN [EMAIL PROTECTED]
An: [EMAIL PROTECTED] [EMAIL PROTECTED]
Datum: Sonntag, 26. August 2001 19:53
Betreff: [C2] Don't know how to use character encoding ?! Please HELP


Hello,

I've got a big problem I have to handle files with french and german
special characters.

With Xerces, I successfully asked to use java encoding and put this
?xml version=1.0 encoding=Cp1252?
but with cocoon, I don't know what to put. If I use the default utf-8, I
can't write éà and others

thanx for telling to me how to do

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

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



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

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




Re: XML-XSP-XML-HTML

2001-06-26 Thread Peter Nuetzel - inglobo

AFAIK this is not possible with Cocoon2. Currently XSP can only be used as
Generator.

- peter


-Ursprüngliche Nachricht-
Von: franck delarue [EMAIL PROTECTED]
An: [EMAIL PROTECTED] [EMAIL PROTECTED]
Datum: Dienstag, 26. Juni 2001 19:40
Betreff: XML-XSP-XML-HTML


hi,
I want to produce a XSP file with a XML and a XSL
file, and that the XSP file generates an other xml
file. But I don't know how to configure the file
sitemap.xmap.
This is what I have done to configure the sitemap but
it doesn't work :

   map:match pattern=doc
map:generate src=doc.xml/
map:transform type=serverPage
src=doc.xsl/
map:serialize type=html/
   /map:match

I work on linux redhat, with the server engine
Resin 2.0.0 and cocoon 2.

Thanks in advance.



___
Do You Yahoo!? -- Pour faire vos courses sur le Net,
Yahoo! Shopping : http://fr.shopping.yahoo.com

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

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



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

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