Passing parameters to action-set

2002-10-09 Thread Robin Wyles

Hi All,

Apologies if this has been answered before, I can't find it in the
archives...

I am trying to pass a parameter to an action set, but I cannot seem to get
this to work. Should this be possible at all?

Here are some snippets from my sitemap:

[...]
map:action-set name=nodePage
   map:act type=navigation
  map:parameter name=action value=set /
  map:parameter name=nextPage value={process} /
  map:parameter name=onError value={process} /
   /map:act
/map:action-set
[...]

map:match pattern=home**
map:act type=security
map:parameter name=action value=isLoggedOn /
map:act set=nodePage
map:parameter name=process value=home /
/map:act
map:generate type=file src=docs/home.xml /
map:call resource=XHTML /
/map:act
/map:match

[...]

Thanks in advance,

Robin Wyles


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




Sitemap wildcards

2002-10-09 Thread Robin Wyles

Hi All,

I am familiar with the user of wildcards in matchers, and the use of the
resulting sitemap variables {1}, {../1} etc. But my question is this:

Is there a sitemap variable that corresponds to the matched pattern for the
current matcher? For example in the following matcher:

map:match pattern=home
map:generate type=file src=docs/home.xml /
map:call resource=XHTML /
/map:match


is there a variable I can use this will return home as the value? I would
like to have an action-set/resource that uses the matched pattern as a
parameter. I can then use this in all my matchers without having to set the
parameter manually for each one.

Thanks in advance,

Robin Wyles


-
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: Passing parameters to action-set

2002-10-09 Thread Ryan Agler

Try {../process} instead of {process}

-Original Message-
From: Robin Wyles [mailto:[EMAIL PROTECTED]] 
Sent: Wednesday, October 09, 2002 3:04 AM
To: [EMAIL PROTECTED]
Subject: Passing parameters to action-set

Hi All,

Apologies if this has been answered before, I can't find it in the
archives...

I am trying to pass a parameter to an action set, but I cannot seem to
get
this to work. Should this be possible at all?

Here are some snippets from my sitemap:

[...]
map:action-set name=nodePage
   map:act type=navigation
  map:parameter name=action value=set /
  map:parameter name=nextPage value={process} /
  map:parameter name=onError value={process} /
   /map:act
/map:action-set
[...]

map:match pattern=home**
map:act type=security
map:parameter name=action value=isLoggedOn /
map:act set=nodePage
map:parameter name=process value=home /
/map:act
map:generate type=file src=docs/home.xml /
map:call resource=XHTML /
/map:act
/map:match

[...]

Thanks in advance,

Robin Wyles


-
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: ESQL and JDBC on JDK1.4.1

2002-10-09 Thread Bert Van Kets

Is there a JDK1.4.1 compatible JDBC driver available for mySQL?
I can't seem to find any me,ntion of the supported JDKs on the mysQL sites. :-(

Bert

At 01:11 9/10/2002 +0200, you wrote:
On 08.Oct.2002 -- 10:06 PM, Bert Van Kets wrote:
  Does esql run on JDK1.4.1?
  If so, do I need a very recent Cocoon version?

It should. You need a version compiled for jdk 1.4

 
  I need to run it on a headless Suse 7.3 box with mySQL as a database.
 
 Chris.
--
C h r i s t i a n   H a u l
[EMAIL PROTECTED]
 fingerprint: 99B0 1D9D 7919 644A 4837  7D73 FEF9 6856 335A 9E08

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




RE: ESQL and JDBC on JDK1.4.1

2002-10-09 Thread Ryan Agler

I am successfully using JDK1.4.0 with the recent
mysql-connector-j-3.0.0-bin.jar.  Visit
http://www.mysql.com/downloads/api-jdbc-dev.html  According to that page
it works with JDK-1.2 or newer.

-Original Message-
From: Bert Van Kets [mailto:[EMAIL PROTECTED]] 
Sent: Wednesday, October 09, 2002 3:10 AM
To: [EMAIL PROTECTED]
Subject: Re: ESQL and JDBC on JDK1.4.1

Is there a JDK1.4.1 compatible JDBC driver available for mySQL?
I can't seem to find any me,ntion of the supported JDKs on the mysQL
sites. :-(

Bert


-
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: Passing parameters to action-set

2002-10-09 Thread Kim Jelmoni

Ryan Agler wrote:
 Try {../process} instead of {process}
 

or better if you use 2.1 try with the input-modules (check in the 
cocoon.xconf which one is set):

{request:process}
{attribute:process}


 -Original Message-
 From: Robin Wyles [mailto:[EMAIL PROTECTED]] 
 Sent: Wednesday, October 09, 2002 3:04 AM
 To: [EMAIL PROTECTED]
 Subject: Passing parameters to action-set
 
 Hi All,
 
 Apologies if this has been answered before, I can't find it in the
 archives...
 
 I am trying to pass a parameter to an action set, but I cannot seem to
 get
 this to work. Should this be possible at all?
 
 Here are some snippets from my sitemap:
 
 [...]
 map:action-set name=nodePage
map:act type=navigation
   map:parameter name=action value=set /
   map:parameter name=nextPage value={process} /
   map:parameter name=onError value={process} /
/map:act
 /map:action-set
 [...]
 
 map:match pattern=home**
 map:act type=security
 map:parameter name=action value=isLoggedOn /
 map:act set=nodePage
 map:parameter name=process value=home /
 /map:act
 map:generate type=file src=docs/home.xml /
 map:call resource=XHTML /
 /map:act
 /map:match
 
 [...]
 
 Thanks in advance,
 
 Robin Wyles
 
 
 -
 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]




local site setup

2002-10-09 Thread Peter Koellner

hi!

i'm sure this must be some dumb beginner's question, since nobody seems to
have asked it until now.

ok. now i have got this bright new xml-cocoon2 from cvs, built it,
copied the war file to tomcat3.3's webapps directory, got the whole
site running. so far, so good.

what i don't quite understand at the moment is how am i supposed to remove
the whole demo site and add my own content without intermingling with the
cocoon cvs tree? i mean, do i have to work inside the cocoon directory,
which obviously was generated from the war file? or even inside the
cocoon source repository? can't be, or can it?

-- 
peter koellner [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]




Re: local site setup

2002-10-09 Thread Kim Jelmoni


Hi,

try the target clean-webapp on build, you will get a clean cocoon 
without samples.

The other possibility is that you work in webapps/cocoon directory.
You can try to work in a subdirectory that you mount in the main sitemap 
so that you don't lose all samples and docs (that are very valuable for 
the start).
for example:
webapps/cocoon/mytests

and mount it in the main sitemap.xmap with:

!-- pipeline mounting the test dir --
   map:pipeline
 map:match pattern=mytests/**
   map:mount check-reload=yes src=mytests/ uri-prefix=mytests/
 /map:match
   /map:pipeline


have fun with cocoon !

Kim

Peter Koellner wrote:
 hi!
 
 i'm sure this must be some dumb beginner's question, since nobody seems to
 have asked it until now.
 
 ok. now i have got this bright new xml-cocoon2 from cvs, built it,
 copied the war file to tomcat3.3's webapps directory, got the whole
 site running. so far, so good.
 
 what i don't quite understand at the moment is how am i supposed to remove
 the whole demo site and add my own content without intermingling with the
 cocoon cvs tree? i mean, do i have to work inside the cocoon directory,
 which obviously was generated from the war file? or even inside the
 cocoon source repository? can't be, or can it?
 



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




accessing Authentication Session Context with java

2002-10-09 Thread michael_hampel

Hello,

   I am trying to get the user data stored in the authentication session
context in an action.
   I tried:
  SessionManager.getContext(authenticate);
   and:
 SessionContextProviderImpl.getSessionContext
(authenticate, ...);

   Both methods return a context and if I do
  context.getName();

   it returns authenticate.

   The problem is that in both cases if I try to get the xml with
for example:
  context.getXML(/authentication);
the returned document fragment is always null.

I have done this for the temporary session context as well and there it
worked.
I got the data with e.g.:
  context.getValueOfNode(/data/source);

Please tell me what I am doing wrong here.

Thanx again for any help.


 miham


-
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: local site setup

2002-10-09 Thread Piroumian Konstantin

 From: Kim Jelmoni [mailto:[EMAIL PROTECTED]] 
 
 Hi,
 
 try the target clean-webapp on build, you will get a clean cocoon 
 without samples.
 
 The other possibility is that you work in webapps/cocoon 
 directory. You can try to work in a subdirectory that you 
 mount in the main sitemap 
 so that you don't lose all samples and docs (that are very 
 valuable for 
 the start).
 for example:
 webapps/cocoon/mytests

You can simply copy the /samples/myapp to the /cocoon/myapp and start with
it.

 
 and mount it in the main sitemap.xmap with:
 
 !-- pipeline mounting the test dir --
map:pipeline
  map:match pattern=mytests/**
map:mount check-reload=yes src=mytests/ 
 uri-prefix=mytests/
  /map:match
/map:pipeline

It's not required. Every sub-directory of the context root (/cocoon) is
auto-mounted from the root sitemap.

Konstantin

 
 
 have fun with cocoon !
 
 Kim
 
 Peter Koellner wrote:
  hi!
  
  i'm sure this must be some dumb beginner's question, since nobody 
  seems to have asked it until now.
  
  ok. now i have got this bright new xml-cocoon2 from cvs, built it, 
  copied the war file to tomcat3.3's webapps directory, got the whole 
  site running. so far, so good.
  
  what i don't quite understand at the moment is how am i supposed to 
  remove the whole demo site and add my own content without 
  intermingling with the cocoon cvs tree? i mean, do i have to work 
  inside the cocoon directory, which obviously was generated from the 
  war file? or even inside the cocoon source repository? can't be, or 
  can it?
  
 
 
 
 -
 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]




Re: local site setup

2002-10-09 Thread Lajos Moczar

Hi Peter -

Not a dumb question at all. In fact, until recently, you had to add your 
own build targets to build a clean example-less distribution. But now 
you can do:

build.bat clean-webapp

or

build.sh clean-webapp.

This gives you a clean war file, without any samples, that you can copy 
to your servlet container.

Once you have a running app, then I suggest that when you rebuild Cocoon 
from the CVS sources, you copy the libs only from the 
build/cocoon/webapp/WEB-INF/lib directory. That way, you get the latest 
code but you don't have to mess up your sitemap.xmap and cocoon.xconf. 
That is, unless there are changes to those files in CVS.

It is also a good idea to do your own work in a subdirectory of the main 
cocoon installation and have your own sub-sitemap. That way, all your 
stuff won't get stomped on if you happen to update the main sitemap.

Good luck,

Lajos




Peter Koellner wrote:

 hi!
 
 i'm sure this must be some dumb beginner's question, since nobody seems to
 have asked it until now.
 
 ok. now i have got this bright new xml-cocoon2 from cvs, built it,
 copied the war file to tomcat3.3's webapps directory, got the whole
 site running. so far, so good.
 
 what i don't quite understand at the moment is how am i supposed to remove
 the whole demo site and add my own content without intermingling with the
 cocoon cvs tree? i mean, do i have to work inside the cocoon directory,
 which obviously was generated from the war file? or even inside the
 cocoon source repository? can't be, or can it?
 
 


-- 
galatea.com
Cocoon training, consulting  support



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




initialize a java variable with an xml file tag's value

2002-10-09 Thread Gabor Bartha

Hi,

I wanna use a (maybe little bit extreme) solution but I don't know how. 
I want to make a single config file for users then use that file in the 
application.

The config.xml file e.g

?xml version=1.0 encoding=ISO-8859-1?
mysite
  driveroracle.jdbc.OracleDriver/driver
  urljdbc:oracle:thin:@192.168.0.115:1521:OEMMY/url
  usernamescott/username
  passwordtiger/password
  tableNamemytable/tableName
/mysite

Then in my application I want to use the username, driver, ... 
parameters as java variables from this xml (without using of session). 
So something like that:

?xml version=1.0 encoding=ISO-8859-1?
xsp:page
   language=java
   xmlns:xsp=http://apache.org/xsp;
 
...
xsp:logic
// java code
String url =   //Here I want to use the value of driver from 
config.xml file.
/xsp:logic
...
/xsp:page

Is there any solution without using of session?

thanks,
Gabor


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




SVG image tag fails: 'xlink:href' required

2002-10-09 Thread Upayavira

Dear All,

I have been experimenting with SVG, in that I need to overlay a number of transparent 
images.

I have created a simple SVG file, shown below.

When I try to access this via Cocoon, I get the error:

The attribute 'xlink:href' of the element image is required

When I use the Batik rasterizer which I downloaded (batik1.5beta4b), it works fine. 
Any 
ideas?

SVG file

svg width=740 height=499
 xmlns=http://www.w3.org/2000/svg; 
 xmlns:xlink=http://www.w3.org/1999/xlink;
 
  image xlink:href=base.png 
 x=0 y=0 width=740 height=499/
  image xlink:href=overlay.png 
 x=0 y=0 width=740 height=499/
/svg

Sitemap fragment:
 map:pipelines
  map:pipeline
map:match pattern=test.jpg
  map:generate src=test.svg/
  map:serialize type=svg2jpeg/
/map:match
  /map:pipeline

I am using Cocoon 2.0.2 on Tomcat 4.0.3 on Windows 2000 Professional.

Regards, Upayavira


-
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: File generator problem (fetch from an URI)

2002-10-09 Thread Sylvain.Thevoz

Thank you Steve, and sorry for my beginner's question.
But by me:

Here the line that start Tomcat in my startup.bat script:

call %_TC_BIN_DIR%\tomcat start %1 %2 %3 %4 %5 %6 %7 %8 %9

which launch the tomcat.bat script with the parameter start.

You speak about a java command but it seems it is in the tomcat.bat script.

Should I modify the tomcat.bat?
I would prefer to modify the startup.bat! But what is the command in this case?

I have also tried to add a CATALINA_OPTS environment variable with the value 
-Dhttp.proxyHost=http://proxy.blabla.com -Dhttp.proxyPort=8080 but that doesn't 
work. Maybe a proxy access problem?!?

Thank you very much
Sylvain


-Message d'origine-
De: Steven Noels [mailto:[EMAIL PROTECTED]]
Date: mardi, 8. octobre 2002 20:28
À: [EMAIL PROTECTED]
Objet: Re: File generator problem (fetch from an URI)


[EMAIL PROTECTED] wrote:

 what do you mean about the java command in the tomcat startup script?

I assume you run Tomcat using some startup script (batch file), 
%CATALINA_HOME%\bin\startup.bat comes with the distribution. That script 
starts a Java application, where you can set an HTTP proxy using 
commandline parameters (-Dhttp.proxyPort etc...)

They made it easy to add those parameters since you can also store them 
in an environment variable called CATALINA_OPTS, which is added to the 
line in the %CATALINA_HOME%\bin\startup.bat that starts Tomcat:

%_STARTJAVA% %CATALINA_OPTS% -Dcatalina.base=%CATALINA_BASE% 
-Dcatalina.home=%CATALINA_HOME% org.apache.catalina.startup.Bootstrap 
%2 %3 %4 %5 %6 %7 %8 %9 start

OK now?

/Steven
-- 
Steven Noelshttp://outerthought.org/
Outerthought - Open Source, Java  XML Competence Support Center
[EMAIL PROTECTED]  [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]


-
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: SVG image tag fails: 'xlink:href' required

2002-10-09 Thread James Ashton

I posted a similar problem (although got no replies or help
from this list!)


instead of putting your reference to xmlns:xlink in your
svg header, put it in your stylesheet header as follows.
(The transformer engine won't be able to validate the
stylesheet otherwise.)

xsl:stylesheet version=1.0
xmlns:xsl=http://www.w3.org/1999/XSL/Transform;
xmlns:xlink=http://www.w3.org/1999/xlink;


That should fix the problem. I got it working so that it
would produce me the svg with embedded images. 

However, as soon as I try to then serialize the svg into a
jpeg, you get a broken image symbol rendered in the final
output. I'm trying to get the bottom of why the svg2jpeg
serializer breaks with embedded png images.  

I would be eternally greatful (OK slight exagerration) if
anyone has got that to work.

Hope that helps, and let me know if you can serialize to
jpeg.

cheers,
James Ashton


 --- Upayavira [EMAIL PROTECTED] wrote:  Dear All,
 
 I have been experimenting with SVG, in that I need to
 overlay a number of transparent 
 images.
 
 I have created a simple SVG file, shown below.
 
 When I try to access this via Cocoon, I get the error:
 
 The attribute 'xlink:href' of the element image is
 required
 
 When I use the Batik rasterizer which I downloaded
 (batik1.5beta4b), it works fine. Any 
 ideas?
 
 SVG file
 
 svg width=740 height=499
  xmlns=http://www.w3.org/2000/svg; 
  xmlns:xlink=http://www.w3.org/1999/xlink;
  
   image xlink:href=base.png 
x=0 y=0 width=740 height=499/
   image xlink:href=overlay.png 
x=0 y=0 width=740 height=499/
 /svg
 
 Sitemap fragment:
  map:pipelines
   map:pipeline
 map:match pattern=test.jpg
   map:generate src=test.svg/
   map:serialize type=svg2jpeg/
 /map:match
   /map:pipeline
 
 I am using Cocoon 2.0.2 on Tomcat 4.0.3 on Windows 2000
 Professional.
 
 Regards, Upayavira
 
 

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

__
Do You Yahoo!?
Everything you'll ever need on one web page
from News and Sport to Email and Music Charts
http://uk.my.yahoo.com

-
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: File generator problem (fetch from an URI)

2002-10-09 Thread Steven Noels

[EMAIL PROTECTED] wrote:

 Thank you Steve, and sorry for my beginner's question.
 But by me:
 
 Here the line that start Tomcat in my startup.bat script:
 
 call %_TC_BIN_DIR%\tomcat start %1 %2 %3 %4 %5 %6 %7 %8 %9

hm - what version of tomcat is that?

 which launch the tomcat.bat script with the parameter start.
 
 You speak about a java command but it seems it is in the tomcat.bat script.

there should be - perhaps using some JAVA_CMD variable that is defined 
in the beginning of your batch script

 Should I modify the tomcat.bat?
 I would prefer to modify the startup.bat! But what is the command in this case?
 
 I have also tried to add a CATALINA_OPTS environment variable with the value 
-Dhttp.proxyHost=http://proxy.blabla.com -Dhttp.proxyPort=8080 but that doesn't 
work. Maybe a proxy access problem?!?

Have you tried TOMCAT_OPTS?

Catalina = Tomcat version 4.

/Steven
-- 
Steven Noelshttp://outerthought.org/
Outerthought - Open Source, Java  XML Competence Support Center
[EMAIL PROTECTED]  [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]




Re: File generator problem (fetch from an URI)

2002-10-09 Thread Steven Noels

Ilya A. Kriveshko wrote:

 1) I don't believe you should specify the protocol when specifying the 
 proxy host. The protocol is implied by the property that you are 
 setting: http.proxyHost. So, try using -Dhttp.proxyHost=proxy.blabla.com 
 (drop the 'http://' part).

 Sorry if that was obvious.

duh - I must remember to read what I'm replying to :-|

nice gotcha - the http:// part must be omitted, of course :-)

/Steven
-- 
Steven Noelshttp://outerthought.org/
Outerthought - Open Source, Java  XML Competence Support Center
[EMAIL PROTECTED]  [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]




RE: File generator problem (fetch from an URI)

2002-10-09 Thread Sylvain.Thevoz

OK, now it works!

I use Tomcat 3.3 and I have to use TOMCAT_OPTS!!

I have added an environment variable like:
TOMCAT_OPTS = -DproxySet=true -DproxyHost=proxy.swissptt.ch -DproxyPort=8080

and it works.

Thank you all of you
Sylvain

-Message d'origine-
De: Ilya A. Kriveshko [mailto:[EMAIL PROTECTED]]
Date: mercredi, 9. octobre 2002 14:41
À: [EMAIL PROTECTED]
Objet: Re: File generator problem (fetch from an URI)


[EMAIL PROTECTED] wrote:

Should I modify the tomcat.bat?
I would prefer to modify the startup.bat! But what is the command in this case?

I have also tried to add a CATALINA_OPTS environment variable with the value 
-Dhttp.proxyHost=http://proxy.blabla.com -Dhttp.proxyPort=8080 but that doesn't 
work. Maybe a proxy access problem?!?

  


I missed the beginning of this post, but let me give it a try:

1) I don't believe you should specify the protocol when specifying the 
proxy host. The protocol is implied by the property that you are 
setting: http.proxyHost. So, try using -Dhttp.proxyHost=proxy.blabla.com 
(drop the 'http://' part).

2) If you are using Tomcat 4, use CATALINA_OPTS environment variable, 
if you are using Tomcat 3.x, use TOMCAT_OPTS. One of them should work 
for you.

Sorry if that was obvious.
--
Ilya


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




Cocoon, sockets and not a web browser.

2002-10-09 Thread Mauro Daniel Ardolino

Hello!
I need to know if cocoon can be used to apply transformations to
xml files that comes from a socket or from a soap communication.
Also I need to know if I can serialize the results to a java class
to parse them for example with sax.

So what I mean is that I want to use cocoon to make only the 
transformations.  I need to make transformations (using xpath)
and I think that cocoon (and XSL) can help me, but the results will
not go to a web-browser.  They have to go to a class.

My program can be a stand alone program with Swing or SWT gui interface,
or can be a batch program.

Am I clear?  If not, please let me know.

Thanks in advance, reggards,

-- Mauro


-
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 2.1 + Tomcat 4.1 + reloadable=true

2002-10-09 Thread Barbara Post

Hi and sorry for the cross-posting, this might interest both lists although
I think it may be purely a Tomcat-specific problem.

Tomcat 4.1.12 - CATALINA_OPTS allow 128 MB of RAM (out of 512 physical),
with catalina run command to see more console log.
Cocoon 2.1-dev from CVS.
JDK 1.3.1
Windows NT4 SP6
Few other apps running, at least memory is not fully used.
Eclipse 2.0.1 to edit and compile java code.
reloadable=true for my webapp (other webapps are defined in server.xml and
also reloadable but I don't call their URI.

Issue :

I change some code in a java class, save so that it compiles automaticaly.
After a few (3 to 6) compiles/reloads my webapp dies with
ClassCastException, IllegalStateException, or Tomcat dies with
OutOfMemoryError.

When I was using Tomcat 4.0.5 and JBuilder 6 I had few problems with
automatic reloads, at least not so many errors...

Barbara


-
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: Cocoon 2.1 + Tomcat 4.1 + reloadable=true

2002-10-09 Thread Ilya A. Kriveshko

I am running Tomcat 3.3 on Win2k, and a recent snapshot of Cocoon
from the HEAD of CVS. I am periodically having the same problems
whereby Tomcat  is running out of memory when either Tomcat or
Cocoon are reloading some stuff.
Is it possible that some cache collections are not being cleared?

Also, given that I'm having a similar problem with Tomcat 3.3, is
Cocoon a more plausible suspect?

On another note, every once in a while upon auto-reloading some of
the updated components either Tomcat or Cocoon hang up, and stop
responding to requests. CPU usage spikes at first, but then goes down.
Seems like a dead-lock. However, I have saved the full VM thread
dump, and cannot see anything unusual there that would indicate a
deadlock of any sort. (BTW, If you are interested, I can post the thread
dump.) I can see from it that three Tomcat threads are waiting in
ServerSocket.accept() calls, but I cannot connect to any of the ports
that it is supposed to listen on either with the browser or with telnet.
Calling Tomcat's shutdown.bat does nothing to stop the hung up process.
Killing Tomcat's Java process is the only thing that helps.

Does anyone have any idea on this and the OutOfMemory issues?

Sorry for cross-replying, but... what she said. :-)
--
Ilya

Barbara Post wrote:

Hi and sorry for the cross-posting, this might interest both lists although
I think it may be purely a Tomcat-specific problem.

Tomcat 4.1.12 - CATALINA_OPTS allow 128 MB of RAM (out of 512 physical),
with catalina run command to see more console log.
Cocoon 2.1-dev from CVS.
JDK 1.3.1
Windows NT4 SP6
Few other apps running, at least memory is not fully used.
Eclipse 2.0.1 to edit and compile java code.
reloadable=true for my webapp (other webapps are defined in server.xml and
also reloadable but I don't call their URI.

Issue :

I change some code in a java class, save so that it compiles automaticaly.
After a few (3 to 6) compiles/reloads my webapp dies with
ClassCastException, IllegalStateException, or Tomcat dies with
OutOfMemoryError.

When I was using Tomcat 4.0.5 and JBuilder 6 I had few problems with
automatic reloads, at least not so many errors...

Barbara
  




-
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: Cocoon, sockets and not a web browser.

2002-10-09 Thread Jacob L E Blain Christen

 So what I mean is that I want to use cocoon to make only the 
 transformations.  I need to make transformations (using xpath)
 and I think that cocoon (and XSL) can help me, but the results will
 not go to a web-browser.  They have to go to a class.
 
 My program can be a stand alone program with Swing or SWT gui interface,
 or can be a batch program.

So then why are you considering Cocoon?

--
Jacob L E Blain Christen
Entheal LLC

-
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: Cocoon, sockets and not a web browser.

2002-10-09 Thread Steven Noels

Mauro Daniel Ardolino wrote:

 My program can be a stand alone program with Swing or SWT gui interface,
 or can be a batch program.

maybe it's better to simply use the TRAX API and do your own SAX 
pipelines, or have a look at 
http://www.apache.org/~andyc/neko/doc/style/index.html...?

/Steven
-- 
Steven Noelshttp://outerthought.org/
Outerthought - Open Source, Java  XML Competence Support Center
[EMAIL PROTECTED]  [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]




Re: Cocoon, sockets and not a web browser.

2002-10-09 Thread Dario Liberman

Hola Mauro,
I am trying the same path for similar reasons.

I send attached a message interchange with Marcus (the Soap guru of Cocoon).

Sounds like it has to be with extending some part of the 'action' part
See http://localhost:8080/cocoon/documents/developing/extending.html

Best Regards,
Dario.

PD: Lets join efforts in this try Mauro, we can then make public some
examples of how to accomplish this.

PD2: To all the others, please let us know if you have gone with a similar
approach of having cocoon be an internal module for xml transformations
pipeline, so that one may have the input source and the output target be
both of them memory objects.

PD3: What I am looking for is to be able to do something like this: (is it
your need too?)

/* Pseudocode here inside my servlet or whatever: */
While ( manager.keepOnWorking()==true) {
/* in this example I get an XML from a soap request
but it may be any other source, Like a database XML. */
SoapObj.SyncWaitMessage();
myInputXmlDomRef = SoapObj.GetXMLRequest();

cocoonref = Cocoons.getCocoonInstance();

/* Here I add objects to a hash table So That an Xsp (or whatever) Can
Call Me for logic questions, DB interaction, etc  */
cocoonref.PutObject(mylogicClass, this);


/* Here I call cocoon with the xml input (it may be even empty), and ask
it to process the transformation pipeline (using cocoons cache and all its
cool stuff). The entry 6 in the map in this case produces an XML, so I
transform the Sax into Dom and put it in myOuputXML object. */
cocoonref.ApplyPipeline(MapEntry6,myInputXmlDomRef, myOutputXML);
/* Cocoon may call me back many times during the transformation process
through mylogicClass entry or EJB lookup, etc */

Try {
/* I am done! thank you cocoon! Lets send the reply:  */
SoapObj.PutResponse(myOutputXML);
SoapObj.SendXMLResponse();
} catch(error e) {
cocoonref.PutObject(error, e);
cocoonref.ApplyPipeline(MapEntry99_errorlogguer,myOutputXML,
myLogOutputStream);
/* The output may also be a stream of bytes in case of an image,
etc. For example here it is a simple text log file */
}

cocoonref.free();
}


I hope this is not too crazy an example, and that I managed to explain the
idea.
Thanks to everyone having got to here in the message, stay in contact.
Bye.


- Original Message -
From: Mauro Daniel Ardolino [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, October 09, 2002 09:47
Subject: Cocoon, sockets and not a web browser.


 Hello!
 I need to know if cocoon can be used to apply transformations to
 xml files that comes from a socket or from a soap communication.
 Also I need to know if I can serialize the results to a java class
 to parse them for example with sax.

 So what I mean is that I want to use cocoon to make only the
 transformations.  I need to make transformations (using xpath)
 and I think that cocoon (and XSL) can help me, but the results will
 not go to a web-browser.  They have to go to a class.

 My program can be a stand alone program with Swing or SWT gui interface,
 or can be a batch program.

 Am I clear?  If not, please let me know.

 Thanks in advance, reggards,

 -- Mauro


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

---BeginMessage---

Hi Dario,

On Mon, Oct 07, 2002 at 03:19:50PM -0300, Dario Liberman wrote:
 Hi Marcus, thank you very much for your super-prompt response.
 
 I attach the message I sent to the list, perhaps you can tell me what you
 think about it.

Ok, I've got come comments in your message below.

 I followed the tutorial for the jwsdp from sun, and they have a very nice
 framework for soap, it supports attachments (and even does an automatic
 webtier of SOAP-RPC for you if you provide an interface for your
 methods).Comparing it to apache soap, I dont care much about the automatic
 inteface since I can do it myself, but the attachments stuff is usefull and
 is working.

Ok. I haven't looked at jwsdp, perhaps its worth examining. The
SOAP support in Cocoon is based on Apache AXIS (not Apache SOAP
which is an older project), which has just been released as final 1.0.

Axis has passed all of the acceptance tests from Sun, so I presume
all of what is in jwsdp is in Axis somewhere.

 Getting to the point:
 
 I have cocoon-2.0.3 and the directories you mention arent there, I guess I
 have to download something. Where should I download the lastest version of
 the cocoon-Soap implementation you made and where can I find a guide in
 order to make it work?

First thing, get Cocoon 2.1 from CVS. The SOAP support is in the
src/scratchpad directory in CVS - 

Re: Cocoon, sockets and not a web browser.

2002-10-09 Thread Emmanuil Batsis (Manos)

Jacob L E Blain Christen wrote:
So what I mean is that I want to use cocoon to make only the 
transformations.  I need to make transformations (using xpath)
and I think that cocoon (and XSL) can help me, but the results will
not go to a web-browser.  They have to go to a class.

My program can be a stand alone program with Swing or SWT gui interface,
or can be a batch program.
 
 
 So then why are you considering Cocoon?

Why not?

Manos


-
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: [Ann] Amazon Functionality Syndication demo

2002-10-09 Thread Piroumian Konstantin

Great showcase!

Minor issues (e.g.
http://www.cocoonhive.org/portal/page-amazon-bookInfo?AsinSearch=047120708X
):
- the page is wider than it is supposed to be, isn't it?
- seems that you don't process the inline P, HR and BR
elements and they come out as text. 

I feel that I've seen that page styles somewhere else ;)

--
  Konstantin Piroumian


 -Original Message-
 From: Ivelin Ivanov [mailto:[EMAIL PROTECTED]] 
 Sent: Wednesday, October 09, 2002 5:45 PM
 To: [EMAIL PROTECTED]
 Subject: [Ann] Amazon Functionality Syndication demo
 
 
 
 As a demo of the WebServiceProxyGenerator
 I built a little portal syndicating Amazon.com functionality. 
 I think its value is the simplicity. Using Cocoon's powerful 
 sitemap and refactoring Amazon's sample stylesheets anyone 
 can build a personalized Amazon.com in hours. 0 lines of 
 programming language code (Java,PHP,Perl,Pyhon, etc.)! Only 
 styling (XSLT)! Here is the demo: 
 http://www.cocoonhive.org/portal/home
 
 -=Ivelin=-
 
 
 
 
 -
 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]




how do you document your projects?

2002-10-09 Thread Joern_Hoos

Hi,

i am just wondering: if and how do you document your cocoon projects? I
don´t mean cocoon itself, but the projects you build up on cocoon.

For the moment i am working on my own, but i  think if i should give the
results in someoneelse´s hand, noone could easily understand what i did and
why i did it. Also when developing in a team, a project documentation would
be useful. (Besides that i sometimes loose my own structure ;)

Are there any thougths about how to structure a cocoon project
documentation? Is there maybe a graphical notation on what happens inside
cocoon? E. g. which context is mapped where to and what kind of generators,
transformators etc. are applied? Any tools you can recommend?

best regards
Jörn


-
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: Cocoon, sockets and not a web browser.

2002-10-09 Thread Jacob L E Blain Christen

 So what I mean is that I want to use cocoon to make only the
 transformations.  I need to make transformations (using xpath)
 and I think that cocoon (and XSL) can help me, but the results will
 not go to a web-browser.  They have to go to a class.
 
 My program can be a stand alone program with Swing or SWT gui interface,
 or can be a batch program.
 
 
  So then why are you considering Cocoon?

 Why not?

Okay, so the apparent obvious answer to my question is only obvious to me.
Look at Mauro's requirements:  standalone program, gui or batch processs,
XLS and XPath.  Yes Cocoon does utilize XPath and XSL but these are easily
utilized without Cocoon.  Given all of this, WHY would you want to go
through
the non-trivial task (if you think otherwise I suggest you go back and read
the
various installation problem posts) of setting up a servlet container with
Cocoon?

Cocoon is superfluous to Mauro's needs and can only get in the way.  Thus my
somewhat rhetorical question--rhetorical because I thought the answer to be
quite obvious.

--
Jacob L E Blain Christen
Entheal LLC


-
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: how do you document your projects?

2002-10-09 Thread Ola Berg

 Hi,
 
 i am just wondering: if and how do you document your cocoon projects? I
 don´t mean cocoon itself, but the projects you build up on cocoon.

I use UML interaction diagrams (where the pipelines are instances of a Pipeline class).

/O


-
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: Cocoon, sockets and not a web browser.

2002-10-09 Thread Emmanuil Batsis (Manos)

Jacob L E Blain Christen wrote:

Why not?
 
 
 Okay, so the apparent obvious answer to my question is only obvious to me.
 Look at Mauro's requirements:  standalone program, gui or batch processs,
 XLS and XPath.  Yes Cocoon does utilize XPath and XSL but these are easily
 utilized without Cocoon.  Given all of this, WHY would you want to go
 through
 the non-trivial task (if you think otherwise I suggest you go back and read
 the
 various installation problem posts) of setting up a servlet container with
 Cocoon?

Ok, in my case, where I already have my data(sources) bundled under 
Cocoon, I just wouldn't want to duplicate them or the presentation logic.
I'd go for a fat client (the desktop app per the original poster) making 
requests to Cocoon.


 Cocoon is superfluous to Mauro's needs and can only get in the way.  Thus my
 somewhat rhetorical question--rhetorical because I thought the answer to be
 quite obvious.

If he doesn't have a remote fat client in mind but instead want to have 
local files, you are absolutely right. I guess it all comes down to an 
accurate use case.

Thanks for the reply,

Manos


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




Writing a custom Transformer?

2002-10-09 Thread simo kauranen

Hi,

Does anyone happen to know where I could find a simple
and thorough example of writing a custom transformer.
I've searched all over the net but haven't found
anything detailed enough.

Thanks for tips!

Simo K.

__
Do You Yahoo!?
Everything you'll ever need on one web page
from News and Sport to Email and Music Charts
http://uk.my.yahoo.com

-
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: Cocoon, sockets and not a web browser.

2002-10-09 Thread Ola Berg


  So then why are you considering Cocoon?

Cocoon has actions, aggregations, pseudo-protocols and other declarative goodies.

/O


-
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: Writing a custom Transformer?

2002-10-09 Thread Piroumian Konstantin

 From: simo kauranen [mailto:[EMAIL PROTECTED]] 
 
 Hi,
 
 Does anyone happen to know where I could find a simple
 and thorough example of writing a custom transformer.
 I've searched all over the net but haven't found
 anything detailed enough.

Take a look at the Cocoon transformers' source:
org.apache.cocoon.transformation.*;
Not that they are all simple, but you'll get the idea.

Konstantin

 
 Thanks for tips!
 
 Simo K.
 
 __
 Do You Yahoo!?
 Everything you'll ever need on one web page
 from News and Sport to Email and Music Charts http://uk.my.yahoo.com
 
 -
 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]




Re: Cocoon 2.1 + Tomcat 4.1 + reloadable=true

2002-10-09 Thread Barbara Post

Well, clearing Tomcat's work directory helps. Is this more Tomcat or
Cocoon-related then ? Since we know both of them use caching... We know that
Cocoon had (still has) some caching issues.

I also had hang ups of Tomcat after an error, thanks for the more precise
info you provided !

Barbara
- Original Message -
From: Ilya A. Kriveshko [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Wednesday, October 09, 2002 3:21 PM
Subject: Re: Cocoon 2.1 + Tomcat 4.1 + reloadable=true


 I am running Tomcat 3.3 on Win2k, and a recent snapshot of Cocoon
 from the HEAD of CVS. I am periodically having the same problems
 whereby Tomcat  is running out of memory when either Tomcat or
 Cocoon are reloading some stuff.
 Is it possible that some cache collections are not being cleared?

 Also, given that I'm having a similar problem with Tomcat 3.3, is
 Cocoon a more plausible suspect?

 On another note, every once in a while upon auto-reloading some of
 the updated components either Tomcat or Cocoon hang up, and stop
 responding to requests. CPU usage spikes at first, but then goes down.
 Seems like a dead-lock. However, I have saved the full VM thread
 dump, and cannot see anything unusual there that would indicate a
 deadlock of any sort. (BTW, If you are interested, I can post the thread
 dump.) I can see from it that three Tomcat threads are waiting in
 ServerSocket.accept() calls, but I cannot connect to any of the ports
 that it is supposed to listen on either with the browser or with telnet.
 Calling Tomcat's shutdown.bat does nothing to stop the hung up process.
 Killing Tomcat's Java process is the only thing that helps.

 Does anyone have any idea on this and the OutOfMemory issues?

 Sorry for cross-replying, but... what she said. :-)
 --
 Ilya

 Barbara Post wrote:

 Hi and sorry for the cross-posting, this might interest both lists
although
 I think it may be purely a Tomcat-specific problem.
 
 Tomcat 4.1.12 - CATALINA_OPTS allow 128 MB of RAM (out of 512 physical),
 with catalina run command to see more console log.
 Cocoon 2.1-dev from CVS.
 JDK 1.3.1
 Windows NT4 SP6
 Few other apps running, at least memory is not fully used.
 Eclipse 2.0.1 to edit and compile java code.
 reloadable=true for my webapp (other webapps are defined in server.xml
and
 also reloadable but I don't call their URI.
 
 Issue :
 
 I change some code in a java class, save so that it compiles
automaticaly.
 After a few (3 to 6) compiles/reloads my webapp dies with
 ClassCastException, IllegalStateException, or Tomcat dies with
 OutOfMemoryError.
 
 When I was using Tomcat 4.0.5 and JBuilder 6 I had few problems with
 automatic reloads, at least not so many errors...
 
 Barbara
 
 



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




Re: how do you document your projects?

2002-10-09 Thread Barbara Post

I plainly :

- produce good javadoc of the few java classes I create,
- comment my sitemap and xsl while developping them,
- produce a text (Word) document explaining more in detail pipelines' and
xsl' roles... and also some notes about the Cocoon components I used (what
they are for), and since I did not use every component available...

But I am not creating a new system, just redesigning an old one. So my
documents contain some info on Cocoon and much on what I developped.

IMHO, you might think project documenting needs 15% of project developping
time, and better a lot of comments in the code to be reordered afterwards.

Babs
- Original Message -
From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, October 09, 2002 4:33 PM
Subject: how do you document your projects?


 Hi,

 i am just wondering: if and how do you document your cocoon projects? I
 don´t mean cocoon itself, but the projects you build up on cocoon.

 For the moment i am working on my own, but i  think if i should give the
 results in someoneelse´s hand, noone could easily understand what i did
and
 why i did it. Also when developing in a team, a project documentation
would
 be useful. (Besides that i sometimes loose my own structure ;)

 Are there any thougths about how to structure a cocoon project
 documentation? Is there maybe a graphical notation on what happens inside
 cocoon? E. g. which context is mapped where to and what kind of
generators,
 transformators etc. are applied? Any tools you can recommend?

 best regards
 Jörn


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

 __
 Etudiant: Wanadoo t'offre le Pack eXtense Haut Débit soit 150,92 euros
 d'économies ! Clique ici : http://www.ifrance.com/_reloc/mail.etudiant


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




Action and ArrayList

2002-10-09 Thread Barbara Post

My 2 cents : since Cocoon reuses Actions instances, if I parse and store
sitemap parameters in Array Lists (ok it is special...) it is useful to
reset these ArrayLists... you guess why. ;-)

Babs


-
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: Cocoon FAILS in transforming XML

2002-10-09 Thread Roger Ting


I kind of doubt that it has to do with XSP because if i serialize the
output as XML and do the transformation later by reading the xml file
generated from the XSP directly, it works fine . HOwever, if i generate
the XSP directly, some of the output just missing

Anyone use XSP with ESQL and use XSLT transformation faces the same
problem?



From: Ryan Agler [EMAIL PROTECTED]
Reply-To: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: RE: Cocoon FAILS in transforming XML
Date: Wed, 9 Oct 2002 00:20:19 -0400

Best guess is that something is wrong with the xsp.  Can you post your
log file?

-Original Message-
From: Roger Ting [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, October 08, 2002 11:48 PM
To: [EMAIL PROTECTED]
Subject: Re: Cocoon FAILS in transforming XML

I am using the latest binary distribution which is the 2.0.3.

I just change the Xalan and Xerces to the latest version. This
doesn't help.

This only happens when i am using xsp with xslt to do transformation.
The xsp are using esql logicsheet. This doesn't happen when i am
using file generator to read xml and transform to SVG using XSLT.

Any idea?

Thx


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


\

_
Send and receive Hotmail on your mobile device: http://mobile.msn.com


-
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: how do you document your projects?

2002-10-09 Thread Antonio Gallardo Rivera

For xsl I saw there are a xsldoc tag.

I use OpenOffice.org Writer to make a formal developer manual.
Javadocs and comments in the sources files.

Antonio Gallardo.

El Miércoles, 09 de Octubre de 2002 08:33, [EMAIL PROTECTED] 
escribió:
 Hi,

 i am just wondering: if and how do you document your cocoon projects? I
 don´t mean cocoon itself, but the projects you build up on cocoon.

 For the moment i am working on my own, but i  think if i should give the
 results in someoneelse´s hand, noone could easily understand what i did and
 why i did it. Also when developing in a team, a project documentation would
 be useful. (Besides that i sometimes loose my own structure ;)

 Are there any thougths about how to structure a cocoon project
 documentation? Is there maybe a graphical notation on what happens inside
 cocoon? E. g. which context is mapped where to and what kind of generators,
 transformators etc. are applied? Any tools you can recommend?

 best regards
 Jörn


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




Re: Cocoon, sockets and not a web browser.

2002-10-09 Thread Mauro Daniel Ardolino

Hi again! I've been out for a couple of hours...
 
 So then why are you considering Cocoon?
Well, because may be a crosspoint between my standalone application/s
and some others web applications I have to do.  And of course I do 
not want to make the transformations programming java classes 
(using parsers like Xerces and Xalan) by myself, if there's 
something done in this way.

I haven't seen the links of your posts yet.  May be the answer is there.

Also I want to use some XSP logic.

I'm starting and I want to know if all the transformation classes used
by cocoon can be used by programs in the same way as cocoon does.
I mean: pipelines.

For example:

A gui program must create a screen dinamically with certain attributes
of some entity.  So by a socket it communicates with a legacy program 
requesting a XML definition file (the file contents the list of the
attributes and some constraints).  After the java program  receives 
this information, it has to apply a XSL sheet with some filters
of non desired attributes.  The resulting XML file must be converted 
to a screen or may be converted to an html to show on a browser.

May be not only a filter must be applied, may be some transformation
must (e.g. i18n).

What do you think?  Must I try to use cocoon for this?

Thanks.

Mauro


 
 --
 Jacob L E Blain Christen
 Entheal LLC
 
 -
 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]
 
 

-- 
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: speeding up svg serialization?

2002-10-09 Thread lrs

Hi Joerg,

From: Joerg Heinicke [EMAIL PROTECTED]
 Hello Leona,

 we use SVG generated PNGs at www.ekommunen.de too and the serialization
 is really fast except the very first request on a SVG serializer. I
 guess this is because of the first instantiation of Batik, but maybe
 somebody can say something more about this. Is it really a problem if
 the very first user accessing the very first time the site has to wait
 some seconds more?

It wouldn't be so bad if it was just the first user, but in our
architecture,
every user is running Tomcat and Cocoon, thus every user is also a
first user! I'll have to do some research on Batik, but hints would be
welcome.

 Maybe therefore you can optimize your sitemap or the XSLT. For example
 you are passing the request parameters and some other parameters to the
 stylesheets, which prevents effective caching. Stylesheets are cached in
 combination with passed parameters. We changed this by storing such
 parameters in an extra XML, which is aggregated in the sitemap. So there
 is really only one instance of the stylesheet in the cache.

Are you talking about storing the parameters in an XML file? What I
think I really need is the concept of a session object that can pass
parameters between pages.

 Furthermore I see

 add_image
 img_file={concat('http://localhost:8080/GS/name.jpg?display=',
./Role)}/

 in the stylesheets, which can be simplified to

 add_image img_file=http://localhost:8080/GS/name.jpg?display={Role}/

This was a beginners mistake which has been fixed.

 And the third point: You have a template creating an add_image/
 element and one matching one them. Hmm, I can only guess, but are you
 storing add_image/ in a Result Tree Fragment, which you convert back
 to a node set and apply a template to it? If it is so, maybe there are
 better processings possible.


add_image/ generates the HTML output which goes to the serializer.

In general the Cocoon/XML/Java parts perform well. I am new to Cocoon,
so, of course, there is room for improvement, but it really is the svg
processing
that slows it down the first time.

 Regards,

 Joerg

Thanks for your help,
Leona

 lrs wrote:
  Hi All,
 
  I have an application that is generating some labels for a table
  using svg. All it does is generate some text and rotate it 180.
  This is the sitemap fragement that applies to this function.
 
 map:match pattern=name.jpg
   map:generate src=gs.xml/
  map:transform src=page2svg.xsl
map:parameter name=use-request-parameters value=true/
map:parameter name=pagename value=name.jpg/
map:parameter name=display value={display}/
  /map:transform
   map:serialize type=svg2jpeg/
 /map:match
 
  which is called from this piece of XSL.
xsl:template match=Role name=Role
   ...
  add_image
  img_file={concat('http://localhost:8080/GS/name.jpg?display=',
./Role)}/
  ...
/xsl:template
 
  and add_image is a simple template:
 
xsl:template name=add_image match=add_image
  xsl:element name=img
xsl:attribute name=src
  xsl:value-of select=@img_file/
/xsl:attribute
  /xsl:element
/xsl:template
 
  The problem is that the rendering of the svg is sooo slow. It takes
  up to 15 seconds to generate as few a 8 labels, whereas the table
  itself (plain HTML) can have hundreds of cells, yet render in as
  little as 2 seconds. Subsequent views of the page are faster
  because the images are cached, but I would like to get better
  performance on the first viewing.
 
  Does anyone know if this can be optimized, either in the configuration
  files, the sitemap, the XSL or some other method?
 
  Any help would be greatly appreciated.
 
  Thanks very much,
  Leona Slepetis


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




Re: Cocoon, sockets and not a web browser.

2002-10-09 Thread Mauro Daniel Ardolino

 PD: Lets join efforts in this try Mauro, we can then make public some
 examples of how to accomplish this.
All right! But I warn you I'm new with this.

 PD3: What I am looking for is to be able to do something like this: (is it
 your need too?)
 the examplelook down.
Yes.  I'm trying to do something like this.  Exactly!  Even more complicated,
but thanking cocoon for its services.  
May be some part of cocoon may be used without cocoon.  I mean that may
be we can simply use the transformation classes (generators,tranformers)
inside our java code, without needing a sitemap.  We can write the
pipelines like this:
  ...
  xmlFile= generatorX.generate(doc/anXmlFile.xml,file);
  xmlFile= transformerY.transform(xmlFile,style/anXslStylesheet.xsl);
  xmlFile= transformerZ.transform(xmlFile,style/otherXslStylesheet.xsl);
  ...   

-- Mauro


On Wed, 9 Oct 2002, Dario Liberman wrote:

 Hola Mauro,
 I am trying the same path for similar reasons.
 
 I send attached a message interchange with Marcus (the Soap guru of Cocoon).
 
 Sounds like it has to be with extending some part of the 'action' part
 See http://localhost:8080/cocoon/documents/developing/extending.html
 
 Best Regards,
 Dario.
 
 PD: Lets join efforts in this try Mauro, we can then make public some
 examples of how to accomplish this.
 
 PD2: To all the others, please let us know if you have gone with a similar
 approach of having cocoon be an internal module for xml transformations
 pipeline, so that one may have the input source and the output target be
 both of them memory objects.
 
 PD3: What I am looking for is to be able to do something like this: (is it
 your need too?)
 
 /* Pseudocode here inside my servlet or whatever: */
 While ( manager.keepOnWorking()==true) {
 /* in this example I get an XML from a soap request
 but it may be any other source, Like a database XML. */
 SoapObj.SyncWaitMessage();
 myInputXmlDomRef = SoapObj.GetXMLRequest();
 
 cocoonref = Cocoons.getCocoonInstance();
 
 /* Here I add objects to a hash table So That an Xsp (or whatever) Can
 Call Me for logic questions, DB interaction, etc  */
 cocoonref.PutObject(mylogicClass, this);
 
 
 /* Here I call cocoon with the xml input (it may be even empty), and ask
 it to process the transformation pipeline (using cocoons cache and all its
 cool stuff). The entry 6 in the map in this case produces an XML, so I
 transform the Sax into Dom and put it in myOuputXML object. */
 cocoonref.ApplyPipeline(MapEntry6,myInputXmlDomRef, myOutputXML);
 /* Cocoon may call me back many times during the transformation process
 through mylogicClass entry or EJB lookup, etc */
 
 Try {
 /* I am done! thank you cocoon! Lets send the reply:  */
 SoapObj.PutResponse(myOutputXML);
 SoapObj.SendXMLResponse();
 } catch(error e) {
 cocoonref.PutObject(error, e);
 cocoonref.ApplyPipeline(MapEntry99_errorlogguer,myOutputXML,
 myLogOutputStream);
 /* The output may also be a stream of bytes in case of an image,
 etc. For example here it is a simple text log file */
 }
 
 cocoonref.free();
 }
 
 
 I hope this is not too crazy an example, and that I managed to explain the
 idea.
 Thanks to everyone having got to here in the message, stay in contact.
 Bye.
 
 
 - Original Message -
 From: Mauro Daniel Ardolino [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Wednesday, October 09, 2002 09:47
 Subject: Cocoon, sockets and not a web browser.
 
 
  Hello!
  I need to know if cocoon can be used to apply transformations to
  xml files that comes from a socket or from a soap communication.
  Also I need to know if I can serialize the results to a java class
  to parse them for example with sax.
 
  So what I mean is that I want to use cocoon to make only the
  transformations.  I need to make transformations (using xpath)
  and I think that cocoon (and XSL) can help me, but the results will
  not go to a web-browser.  They have to go to a class.
 
  My program can be a stand alone program with Swing or SWT gui interface,
  or can be a batch program.
 
  Am I clear?  If not, please let me know.
 
  Thanks in advance, reggards,
 
  -- Mauro
 
 
  -
  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]
 

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

Re: how do you document your projects?

2002-10-09 Thread Joern_Hoos


Hi,

thanks, thought about UML as well, but I am not too deeply into it. Could
you send me an example of a cocoon interaction diagram?

My Email-Adress is:

[EMAIL PROTECTED]

Bye
Joern




-
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: Cocoon FAILS in transforming XML

2002-10-09 Thread Ryan Agler

My apologies as I'm having trouble following sitemap flow from your
description.  You can find most likely the root cause in the
WEB-INF/logs.  A couple things that might help:

Make sure you have include type=serverpages when generating the xsp
(map:generate type=serverpages src=myfile.xsp/).  

Also, I have had problems before when trying to do generate--serialize
instead of generate--transform--serialize.  So, I wrote a simple
stylesheet that just copies the generated xsp content before
serialization:

   xsl:template match=/
  xsl:element name={name(*)}
 xsl:copy-of select=*/*/
  /xsl:element
   /xsl:template

Good Luck

-Original Message-
From: Roger Ting [mailto:[EMAIL PROTECTED]] 
Sent: Wednesday, October 09, 2002 12:15 PM
To: [EMAIL PROTECTED]
Subject: RE: Cocoon FAILS in transforming XML


I kind of doubt that it has to do with XSP because if i serialize the
output as XML and do the transformation later by reading the xml file
generated from the XSP directly, it works fine . HOwever, if i generate
the XSP directly, some of the output just missing

Anyone use XSP with ESQL and use XSLT transformation faces the same
problem?


-
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: Cocoon on Headless Linux with JDK1.4

2002-10-09 Thread Vadim Gritsenko

Ilya A. Kriveshko wrote:

 This seems to be the magic key -- a JVM 1.4 option to enable headless AWT:

  -Djava.awt.headless=true


FYI: http://xml.apache.org/cocoon/installing/index.html has:

*UNIX with X server
...
*/Sun JDK 1.4 does not require graphics display anymore, but Java has to 
be started with the argument |-Djava.awt.headless=true|, and X libraries 
still must be installed./
*...*

Vadim


 Ilya A. Kriveshko wrote:

 quote from=JDK-1-4-release-notes
   strongHeadless support/strong is now enabled by new graphics
   environment methods that indicate whether a display, keyboard, and
   mouse can be supported in a graphics environment.
 /quote

 I wonder what they are talking about? Are you sure it doesn't work as 
 is with JDK 1.4?
 Read more at:
 http://java.sun.com/j2se/1.4/docs/guide/awt/AWTChanges.html#headless

 Hope this helps
 -- 
 Ilya


 Jeff Turner wrote:

 On Wed, Oct 02, 2002 at 01:04:29PM +0200, Bert Van Kets wrote:
  

 Doesn't Xvfb need the X libraries too?
   



 I don't think so; at least Debian doesn't list any X packages as a
 dependencies, and says Xvfb can be used as an aid to porting the X
 server to a new platform.

 --Jeff

  

 Bert



-
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: Servlet-Ouput as Cocoon-Input

2002-10-09 Thread Vadim Gritsenko

Dario Liberman wrote:

What is the correct way of doing it?
I am new to cocoon too, but I see here serialization and deserialization
done perhaps unnecessary.


Servlet API is stream-based, thus if you want to use servlet's output, 
you have to parse XML again.


If the servlet used a DOMXML object to represent the outermost data, and
then serialized it to give it to cocoon, it is a waste.
Is there anyway to have the servlet give an XMLobject to the cocoon pipeline
instead of a character-stream?


You can store DOM as request attribute and then forward request 
processing to the Cocoon. In cocoon, you can pick up this DOM object and 
generate SAX out of this into the pipeline, using something similar to 
SessionDOMGenerator.

Instead of forward() in the Servlet it is also possible to write a 
ServletFilter.
Instead of DOM, it is possible to use Cocoon's XMLizable interface.


In my case, I am used to WebMacro, that is similar to Velocity from apache.
In this architecture (more or less), the servlet receives a request, and
then processes an action (like searching something in the database) and then
puts objects in a hashtable (like a collection of javabeans representing the
query result) and then invokes a template. The template can use the objects
passed to the hashtable by specifying $keyname.method() for example. It has
primitive logic directives as iteration, if-then-else, and a set statement
in order to modify variables (this way you are forced to code well, since
most of the logic must be in a java class, not in the template). This output
then can be sent to the response stream, or to a file or to wherever you
like (but 99% of the time you set it to the response).

I like this architecture, and I would like to mix it with cocoon. So I
suppose that instead of WebMacro, I should be doing similar things with an
xsp, so that instead of a stream of characters I get as output an XMLobject
to introduce into the pipeline.

Does anybody have a simple starter example of how to do this? Because I like
to decide the final pipeline (decide the template) from the servlet. As far
as I could see, the usual way is to have a fixed pipeline map.

Also, I need to get hold of the final xmlobject from the pipeline (instead
of serializing it to the response) since I have to put this xml in a SOAP
message as the final result (not a webbrowser).


Is it SOAP request to other server? Cocoon can do this. Or, you can use 
SourceWritingTransformer, or write own transformer or serializer.


So what I need cocoon to be, is an invisible module that I put objects to it
in some hashtable as input


Use request's attributes to pass input data.


 and a template name (or map ref, as you like),


URI is a template name.


and gives me magically as output (after a pipeline of transformations with
automatic-caching, etc) a nice XMLobject.


SessionDOMTransformer can do this. Also, see SourceWritingTransformer.

Vadim


 Then with it I do what I like (for
example put it in a soap message response/request or even put it back in a
cocoon-pipeline of transformations get yet another xmlobject).


Perhaps I am lost, since I managed to make cocoon2 work just today, on my
tomcat 4.1.2 container on jdk1.4 I was told to look for a manifest file
entry problem or rather unpack the war (I went with the second choice and
was just fine). Thanks to Vadim!!
http://www.mail-archive.com/cocoon-users@xml.apache.org/msg18532.html

Well, I hope someone did this style of programming.

Salutes,
Dario.

  

...



-
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: Cocoon, sockets and not a web browser.

2002-10-09 Thread JohnsBrn

I think I may be doing something similar to what you want to do. I am calling cocoon 
from an axis provider, and also directly from within an ejb. There are several things 
you need to do to accomplish this: The first thing you should look at is the 
commandline context under org.apache.cocoon.environment. That will give you some clues 
on where to start with creating a non-servlet based cocoon application. I am also 
using cocoon from within a servlet context, so I took the easy way out and created a 
remote wrapper for cocoon to place in the JNDI naming context, but it still required 
me to write a custom Environment, Request, Response, etc... for my application 
context. You should be able to use the standard serializers and generators from 
cocoon. The output from cocoon will be captured in the output stream in your 
Environment class. The other option you have is to use the pipeline classes directly, 
but then you lose the ability to configure the pipeline using the cocoon/avalon 
framework. Hope that helps.


Mauro Daniel Ardolino [EMAIL PROTECTED] wrote:

Hello!
I need to know if cocoon can be used to apply transformations to
xml files that comes from a socket or from a soap communication.
Also I need to know if I can serialize the results to a java class
to parse them for example with sax.

So what I mean is that I want to use cocoon to make only the 
transformations.  I need to make transformations (using xpath)
and I think that cocoon (and XSL) can help me, but the results will
not go to a web-browser.  They have to go to a class.

My program can be a stand alone program with Swing or SWT gui interface,
or can be a batch program.

Am I clear?  If not, please let me know.

Thanks in advance, reggards,

-- Mauro


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



__
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/



Re: multiple webapps sharing XSPs

2002-10-09 Thread Vadim Gritsenko

Ryan Agler wrote:

Can a guru out there give me a hand?


The problem with loggin comes from the fact that in your setup 
org.apache.log classes are loaded once and shared among contexts, and 
from the fact that logging uses some static methods/variables. Example 
(from CocoonServlet):

final Logger logger = 
Hierarchy.getDefaultHierarchy().getLoggerFor();

Thus, all instances will share same instance of the log - all instances 
will write to same log file.

Cannot comment on XSP problem right now. But try latest 2.0.4-dev 
version: it has one patch for XSP reloading problem.

Vadim



I recently installed Tomcat 4.1.12 with the latest Cocoon CVS.  I have 4
Cocoon webapps which share the cocoon jars, are all in
$TOMCAT_HOME/shared/lib.  When I fire up Tomcat, the webapps get
initialized and the normal log files appear under each one's
WEB-INF/logs.  

It starts getting crazy here -- All 4 webapps seem to write their logs
to ONE of the webpps' WEB-INF/logs when I start accessing pages.  On top
of that, say webapp1 has a page called test.xsp. I access test.xsp,
it compiles just fine and the .class file appears in $TOMCAT_HOME/work,
etc.  However, if the sitemap for webapp2 matches test.xsp, the page
from webapp1 gets pulled from webapp1's cache and used!?  No .class file
gets compiled for webapp2, unless I explicitly go in and touch
webapp2's test.xsp so cocoon thinks it has been modified.

I found that this only happens if the cocoon jars are shared (i.e. in
$TOMCAT_HOME/shared/lib), as opposed to each webapp having copies of the
jars in WEB-INF/lib.  I have made the usual precautions of deleting the
work directory before starting Tomcat each time.

I suspect this has something to do with contexts?  I say that because
the log files for all 4 webapps are all being written to a single
${context-root} (from logkit.xconf).  Here is a snippet from my
server.xml if you can see anything wrong:

Host name=www.domain1.com debug=0 appBase=webapps
unpackWARs=true
   Context path= docBase=webapp1 debug=0/
   Realm className=org.apache.catalina.realm.MemoryRealm
pathname=webapps/webapp1/users.xml /
/Host

Host name=www.domain2.com debug=0 appBase=webapps
unpackWARs=true
   Context path= docBase=webapp2 debug=0/
   Realm className=org.apache.catalina.realm.MemoryRealm
pathname=webapps/webapp2/users.xml /
/Host

Thanks much,
Ryan Agler
  



-
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: Response status 207

2002-10-09 Thread Vadim Gritsenko

Michael Homeijer wrote:

Hi,

I need to send a response status 207 to the client. Is there a way to do
this in Cocoon? I expected this parameter to be in a serializer, but cant
find one.


map:serialize status-code=207/

Does this help?

Vadim

TIA,
Michael
  



-
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: General questions about caching in Cocoon

2002-10-09 Thread Vadim Gritsenko

Lenz, Evan wrote:

Does Cocoon provide a mechanism by which all pages on the site can be cached
(perhaps via a crawler)?


You can try indexer (see docs search demo).


 I'm aware of the command-line interface (and had
trouble getting the crawler to get past the first page, but that's another
story). Ultimately, I would like to use Cocoon as a servlet but have as many
pages cached as possible at the click of a button, as opposed to waiting
for each page to be requested. I suppose this could be done externally (with
my own crawler) but I was wondering if Cocoon had some built-in mechanism
for doing this.

Also, I am building a site that has three versions per page (Flash,
non-Flash, etc.) and that uses cookies to set a user's preference. All of my
cookie logic is specified in sitemap.xmap, so I am already committed to
using Cocoon as a servlet. Are there caching issues with such an approach?


No. If done properly, every page will have then three cache entries: 
flash, non-flash, ...


If performance ultimately becomes a problem, I suppose I could statically
generate most of the pages and just use readers for each version of each
page, but that wouldn't be ideal, as certain portions of the site are indeed
dynamic.


Better yet, try cache like Squid in front of Cocoon.


Finally, if anyone has any words of wisdom with respect to using Cocoon for
serving multiple versions of a page (from the same URL), I'd be happy to
hear them.


Study http headers (like Vary:) and use cache in front of cocoon - these 
together can make lots of requests serve from cache.

Vadim


Thanks,
Evan
  




-
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: Re: how do you document your projects?

2002-10-09 Thread robert_hitchins

Joern,

I am in the process of developing documentation that describes an 
admittedly simple usage of Cocoon within an application.  The diagram 
is only for the Cocoon portion of the system.  There is a Visio diagram 
that I think does a good job of describing what takes place.  There is 
also a Word doc that goes along with it.  I'll be happy to send it to 
you and anyone else who is interested (Don't wanna spam the whole 
list).  Plz email me at:
mailto:[EMAIL PROTECTED]

if you would like the docs.  They will be completed sometime this 
afternoon.

Bob Hitchins


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]
Sent: Wednesday, October 09, 2002 1:11 PM
To: [EMAIL PROTECTED]
Subject: Re: how do you document your projects?



Hi,

thanks, thought about UML as well, but I am not too deeply into it. 
Could
you send me an example of a cocoon interaction diagram?

My Email-Adress is:

[EMAIL PROTECTED]

Bye
Joern




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




Re: URL caching in pipelines

2002-10-09 Thread Vadim Gritsenko

Miles Elam wrote:

 I want to put a Slashdot feed on my web page with the following (out 
 of context for brevity):

 pipeline
  map:match pattern=feeds/slashdot.org
map:generate src=http://slashdot.org/slashdot.xml/
map:serialize type=xml/
  /map:match
 /pipeline

 This works fine, but the server opens a socket to Slashdot on every 
 request to my page.  If my site gets some traffic, Slashdot will not 
 be happy with me.  Further, my bandwidth usage goes up.  And when 
 Slashdot (and others) become slow, my site will become slow right 
 along with them.  None is particularly appealing.

 From the Slashdot syndication page (slashcode): Do whatever you want, 
 but *don't* access the file more than once every 30 minutes.

 I went hunting in the mail archives for user and dev and came up with 
 the following:

 pipeline expires=now plus 30 minutes
  map:match pattern=feeds/slashdot.org
map:generate src=http://slashdot.org/slashdot.xml/
map:serialize type=xml/
  /map:match
 /pipeline

 No difference.  My server's still hitting Slashdot over and over.  I 
 tried telnet-ing to the port to at least check for expires headers. 
 No dice.  I looked at HttpHeaderAction but that doesn't seem to touch 
 Cocoon's cache at all (so of limited use to me).  I've used both 2.0.3 
 and 2.1 CVS (as of two weeks ago).

 A part of me smiles when I think that if Slashdot ever slashdotted 
 me, they would be somewhat slashdotted themselves, but this is not my 
 intent and I very much want to be a decent feed client.

 Anyone have any ideas?  ...preferably with little stress on my server.


If you have not found solution yet... Extend FileGenerator and override 
generateKey() and generateValidity() methods.
generateKey() may return something like HashUtil.hash(this.source), and 
generateValidity() can return new DeltaTimeCacheValidity(30) to cache 
response for 30 minutes.

See cacheable.xsp for sample code.

Vadim



 - Miles Elam




-
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: + character in source filename

2002-10-09 Thread Vadim Gritsenko

Upayavira wrote:

Dear All,

I'm using Cocoon to apply a new style to an existing site, i.e. HTML-XML-HTML. So 
far, it is working very well, however:

In the original site, there are a few HTML files that have + characters in the 
filename, 
e.g. mind+body.html. When used as the source for a pipeline, I get:

A name contained an invalid character. Error processing resource 
'http://localhost:8080/cocoon/mind+body.xml' Line 1, Position 410


Try %2B instead of '+':

http://localhost:8080/cocoon/mind%2Bbody.xml


Vadim


The sitemap fragment is simple:
  map:match pattern=**.xml
  map:generate type=html src=html/{1}.html/
  map:transform src=xsl/tidy/tidy.xsl/ 
  map:serialize type=xml/
   /map:match

Any ideas how I can get around having to rename the source files, and thus break 
compatability with the existing site?

Regards,

Upayavira
  



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




saxon as default transformer + xalan also available?

2002-10-09 Thread gv

Hello,

Because of some quirks in both Saxon  Xalan, I would
like to set Saxon to be my default XSLT transformer,
then add Xalan to be available when I need it (in the
sitemap: map:transformer type=xslt-xalan...)

I have the first part working fine (Saxon as default).
To get Xalan working too, I'm vaguely aware that I
have to add another transformer to my sitemap, and
maybe add a component into cocoon.xconf. Anyone know
how to do this? I'm using Cocoon 2.0.3.

Thanks,
John

__
Do you Yahoo!?
Faith Hill - Exclusive Performances, Videos  More
http://faith.yahoo.com

-
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.war has cocoon.jar

2002-10-09 Thread Aditya

Hi all. Does cocoon.war contains jar files? If no, how can we use cocoon after we 
deploy the war file to Tomcat, for instance modifying cocoon.properties?

Aditya
---
=Five dozens roses of love
=Keep the spirit of love flourish=



Join 18 million Eudora users by signing up for a free Eudora Web-Mail account at 
http://www.eudoramail.com

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




dbAdd does not get correclty the param

2002-10-09 Thread Antonio Gallardo Rivera

Hi:

I am using dbAdd from the Original Database Actions. All my forms work very 
well and I can add, update and remove records in a PostgreSQL. database.

But, I have a form that can add a register and it seems like after some 
javascript change values in the form (based on what the user select on a 
select tag). The dbAdd is not able to work with the parameters. I needed to 
rename some of the params to meet the right name of the field into the 
database.
For example: I before had a param called id and:

key dbcol=can_id mode=form param=id type=long/

But if I do that, then I got a error that the can_id can not be null (its 
natural, but not normal), because I have into the form fixed the value for 
id:

parameter name=id value=1/

Then there is no way how id can be null!

Please help, me.

I am using Tomcat 4.1.12, Java 1.4.1, Cocoon -dev 2.1.

Antonio Gallardo

My descriptor.xml: 
root
  parameter name=id nullable=no min=1 type=long/
  parameter name=cli_id nullable=no min=1 type=long/
  parameter name=can_estado nullable=no min=1 max=3 type=long/
  parameter name=usr_id nullable=no min=1 type=long/
  parameter name=beneficiario nullable=no min-len=3 max-len=50 
type=string/
  parameter name=metodo_entrega nullable=no min=1 max=3 type=long/
  parameter name=direccion nullable=no min-len=5 max-len=200 
type=string/
  parameter name=soc_id nullable=no min=1 type=long/
  parameter name=pre_id nullable=no min=1 type=long/
  parameter name=pre_nombre nullable=no min-len=3 max-len=50 
type=string/
  constraint-set name=update
validate name=id/
validate name=cli_id/
validate name=usr_id/
validate name=can_estado/
validate name=beneficiario/
validate name=metodo_entrega/
validate name=direccion/
validate name=soc_id/
validate name=pre_id/
validate name=pre_nombre/
  /constraint-set
  constraint-set name=add
validate name=cli_id/
validate name=usr_id/
validate name=can_estado/
validate name=beneficiario/
validate name=metodo_entrega/
validate name=direccion/
validate name=soc_id/
validate name=pre_id/
validate name=pre_nombre/
  /constraint-set
  connectionmp_pool/connection
  table name=canje
keys
  key dbcol=can_id mode=form param=id type=long/
  key dbcol=cli_id mode=form param=cli_id type=long/
  key dbcol=usr_id mode=form param=usr_id type=long/
  key dbcol=can_estado mode=form param=estado type=long/
/keys
values
  validate dbcol=can_beneficiario param=beneficiario type=string/
  validate dbcol=can_metodo_entrega param=metodo_entrega 
type=long/
  validate dbcol=can_direccion_entrega param=direccion 
type=string/
  validate dbcol=soc_id param=soc_id type=long/
  validate dbcol=pre_idparam=pre_id type=long/
  validate dbcol=pre_nombre param=pre_nombre type=string/
  validate dbcol=pre_usd param=dolares type=string/
  validate dbcol=pre_millas param=millas type=long/
/values
/table
/root
***

-
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: cocoon.war has cocoon.jar

2002-10-09 Thread Antonio Gallardo Rivera

Yes, the WAR file contains all the JAR files.

Antonio Gallardo.

El Miércoles, 09 de Octubre de 2002 13:54, Aditya Shevchenko Siregar 
escribió:
 Hi all. Does cocoon.war contains jar files? If no, how can we use cocoon
 after we deploy the war file to Tomcat, for instance modifying
 cocoon.properties?

 Aditya
 ---
 =Five dozens roses of love
 =Keep the spirit of love flourish=



 Join 18 million Eudora users by signing up for a free Eudora Web-Mail
 account at http://www.eudoramail.com

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




Re: Pipeline...

2002-10-09 Thread Vadim Gritsenko

Mauro Daniel Ardolino wrote:

Thanks a lot!!  It works fine.


Although it works fine that's not what you really need.

To get best out of Cocoon, you need to make logicsheet (read more on 
logicsheets in the cocoon docs) out of your

logic/prueba.xsl and use this logicsheet. See XSP sample which uses custom logicsheet 
in logicsheet.xsp file - it's good place to start.


Vadim



-- Mauro

On Mon, 7 Oct 2002, Joerg Heinicke wrote:

  

Hello Mauro,

you need two matches:

map:match pattern=prueba.xsp
   map:generate type=file src=content/prueba.xml/
   map:transform src=logic/prueba.xsl /
   map:serialize type=xml/
/map:match

map:match pattern=prueba.xml
   map:generate type=xsp src=cocoon://prueba.xsp/
   map:transform src=style/prueba_to_html.xsl/
   map:serialize type=html/
/map:match

Hope that's what you you want. At least it's that what I understand from 
your two mails ;-)

Regards,

Joerg

Mauro Daniel Ardolino wrote:


Hello!
I cannot understand how to configure a pipeline for this:
I have a xml-file and a xsl-file(logic).  Applying them I want to obtain a
xsp page and then apply another xsl-file(style) to obtain a html-file.

Well, I've made this pipeline in my sitemap.xmap:

   map:match pattern=prueba.xml
map:generate  type=file src=content/prueba.xml/
map:transform src=logic/prueba.xsl /
map:transform src=style/prueba_to_html.xsl/
map:serialize type=html/
   /map:match

If I comment this line:
map:transform src=style/prueba_to_html.xsl/
...I obtain the xsp page.
But it doesn't transform to a xml-file to after apply the other 
xsl-style-file.

How can I do that?

Thanks in advance.

Mauro
  





-
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: XIndice inside XSP (using eXist logicsheet), how?

2002-10-09 Thread Vadim Gritsenko

Josema Alonso wrote:

Hello.

I have XIndice working with Cocoon. I followed the directions at
Cocooncenter and everything is going fine when requesting XMLDB URIs. Now
I'd want to have a XSP querying the database so I could encapsulate the DB
calls and pass parameters easily.


Why don't you use cinclude?

Vadim



 I searched trough the archives and found
posts about the use of eXist logicsheet with XIndice inside Cocoon, but none
of them say anything about how to configure it.

I'm trying it but can't make it work. Has anybody tried and suceeded?

Oh, if you have any other solution or idea on how to make XIndice work
inside XSP, please let me know. I hope I could finally make it and write a
How-To. I really miss it.

Thanks.
  





-
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: Looking for most stable versions of JDK+Tomcat+Cocoon

2002-10-09 Thread Vadim Gritsenko

exta zi wrote:

Whats the most stable configuration of
JDK+Tomcat+Cocoon?

I using next binaries:
JDK 1.4.1FCS
+ tomcat-4.1.12-LE-jdk14
+ cocoon-2.0.3-vm14-bin

sometimes it works and sometime I get exception:

Cocoon 2 - Internal server error



type fatal

message Language Exception

description org.apache.cocoon.ProcessingException:
Language Exception:
org.apache.cocoon.components.language.LanguageException:
Error compiling sitemap_xmap: Line 0, column 0: error:
java.io.IOException: read error 1 error 


You can get this with 2.0.3 if you make an error in the sitemap.xmap. 
2.0.4-dev has better error reporting in this particular case.


Vadim



sender org.apache.cocoon.servlet.CocoonServlet

source Cocoon servlet

stack-trace

org.apache.cocoon.ProcessingException: Language
Exception:
org.apache.cocoon.components.language.LanguageException:
Error compiling sitemap_xmap:
Line 0, column 0: 
error: java.io.IOException: read error
1 error

   at
org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.createResource(ProgramGeneratorImpl.java:340)
   at
org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.load(ProgramGeneratorImpl.java:292)
   at
org.apache.cocoon.sitemap.Handler.run(Handler.java:265)
   at java.lang.Thread.run(Thread.java:536)
Caused by:
org.apache.cocoon.components.language.LanguageException:
Error compiling sitemap_xmap:
Line 0, column 0: 
error: java.io.IOException: read error
1 error

   at
org.apache.cocoon.components.language.programming.java.JavaLanguage.compile(JavaLanguage.java:243)
   at
org.apache.cocoon.components.language.programming.CompiledProgrammingLanguage.load(CompiledProgrammingLanguage.java:207)
   at
org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.generateResource(ProgramGeneratorImpl.java:388)
   at
org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.createResource(ProgramGeneratorImpl.java:333)
   ... 3 more
org.apache.cocoon.components.language.LanguageException:
Error compiling sitemap_xmap:
Line 0, column 0: 
error: java.io.IOException: read error
1 error

   at
org.apache.cocoon.components.language.programming.java.JavaLanguage.compile(JavaLanguage.java:243)
   at
org.apache.cocoon.components.language.programming.CompiledProgrammingLanguage.load(CompiledProgrammingLanguage.java:207)
   at
org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.generateResource(ProgramGeneratorImpl.java:388)
   at
org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.createResource(ProgramGeneratorImpl.java:333)
   at
org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.load(ProgramGeneratorImpl.java:292)
   at
org.apache.cocoon.sitemap.Handler.run(Handler.java:265)
   at java.lang.Thread.run(Thread.java:536)


request-uri

/cocoon/

path-info

#

Please advice me about most stable configuration of
JDK,TomcatCocoon.

Thanks in advance!
  





-
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: problem with NT

2002-10-09 Thread Vadim Gritsenko

Robert Siqueira wrote:

Iam installing cocoon 2.0.1 + tomcat 4.0.3 in winnt 4.0... So, when I


Advice: Upgrade tomcat 4.0.3 as soon as possible, to at least version 
4.0.4 (known to be stable).

If you can not, read cocoon install guide: it goes in deep details on 
how to make 4.0.3 work.

Vadim


start
the cocoon I get the follow error:

==
type Exception report

message Internal Server Error

description The server encountered an internal error (Internal Server
Error) that prevented it from fulfilling this request.

exception

javax.servlet.ServletException: Servlet.init() for servlet Cocoon2 threw
exception
 at
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:935)

 at
org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:653)

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

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

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

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

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

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

 at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
 at
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2343)

 at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)

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

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

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

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

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

 at
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:468)

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

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

 at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
 at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)

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

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

 at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
 at
org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java:1012)

 at
org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1107)

 at java.lang.Thread.run(Unknown Source)


root cause

java.lang.NoClassDefFoundError: javax/xml/transform/URIResolver
 at java.lang.ClassLoader.defineClass0(Native Method)
 at java.lang.ClassLoader.defineClass(Unknown Source)
 at java.security.SecureClassLoader.defineClass(Unknown Source)
 at
org.apache.catalina.loader.WebappClassLoader.findClassInternal(WebappClassLoader.java:1631)

 at
org.apache.catalina.loader.WebappClassLoader.findClass(WebappClassLoader.java:926)

 at
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1360)

 at java.lang.ClassLoader.loadClass(Unknown Source)
 at java.lang.ClassLoader.loadClass(Unknown Source)
 at
org.apache.avalon.excalibur.component.ExcaliburComponentManager.configure(ExcaliburComponentManager.java:408)

 at org.apache.cocoon.Cocoon.configure(Cocoon.java:406)
 at org.apache.cocoon.Cocoon.initialize(Cocoon.java:267)
 at
org.apache.cocoon.servlet.CocoonServlet.createCocoon(CocoonServlet.java:991)

 at org.apache.cocoon.servlet.CocoonServlet.init(CocoonServlet.java:308)

 at
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:916)

 at
org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:653)

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

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

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

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

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

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

 at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
 at
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2343)

 at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)

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

 at

Re: Sitemap wildcards

2002-10-09 Thread Vadim Gritsenko

Robin Wyles wrote:

Hi All,

I am familiar with the user of wildcards in matchers, and the use of the
resulting sitemap variables {1}, {../1} etc. But my question is this:

Is there a sitemap variable that corresponds to the matched pattern for the
current matcher? For example in the following matcher:

map:match pattern=home
map:generate type=file src=docs/home.xml /
map:call resource=XHTML /
/map:match


is there a variable I can use this will return home as the value?


All Wildcard/Regexp matchers (IIRC) should return whole pattern string 
in the {0} variable.

Vadim


 I would
like to have an action-set/resource that uses the matched pattern as a
parameter. I can then use this in all my matchers without having to set the
parameter manually for each one.

Thanks in advance,

Robin Wyles
  



-
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: dbAdd does not get correclty the param

2002-10-09 Thread Antonio Gallardo Rivera

I resolve the problem:

A stupid problem! I alone made it! I miss it:

 values
  validate dbcol=can_beneficiario param=beneficiario
^
Here is not validatre is value!

 values
  value dbcol=can_beneficiario param=beneficiario

Thanks to all ;)

Antonio Gallardo

El Miércoles, 09 de Octubre de 2002 14:06, Antonio Gallardo Rivera escribió:
 Hi:

 I am using dbAdd from the Original Database Actions. All my forms work very
 well and I can add, update and remove records in a PostgreSQL. database.

 But, I have a form that can add a register and it seems like after some
 javascript change values in the form (based on what the user select on a
 select tag). The dbAdd is not able to work with the parameters. I needed
 to rename some of the params to meet the right name of the field into the
 database.
 For example: I before had a param called id and:

 key dbcol=can_id mode=form param=id type=long/

 But if I do that, then I got a error that the can_id can not be null (its
 natural, but not normal), because I have into the form fixed the value for
 id:

 parameter name=id value=1/

 Then there is no way how id can be null!

 Please help, me.

 I am using Tomcat 4.1.12, Java 1.4.1, Cocoon -dev 2.1.

 Antonio Gallardo

 My descriptor.xml: 
 root
   parameter name=id nullable=no min=1 type=long/
   parameter name=cli_id nullable=no min=1 type=long/
   parameter name=can_estado nullable=no min=1 max=3 type=long/
   parameter name=usr_id nullable=no min=1 type=long/
   parameter name=beneficiario nullable=no min-len=3 max-len=50
 type=string/
   parameter name=metodo_entrega nullable=no min=1 max=3
 type=long/ parameter name=direccion nullable=no min-len=5
 max-len=200 type=string/
   parameter name=soc_id nullable=no min=1 type=long/
   parameter name=pre_id nullable=no min=1 type=long/
   parameter name=pre_nombre nullable=no min-len=3 max-len=50
 type=string/
   constraint-set name=update
 validate name=id/
 validate name=cli_id/
 validate name=usr_id/
 validate name=can_estado/
 validate name=beneficiario/
 validate name=metodo_entrega/
 validate name=direccion/
 validate name=soc_id/
 validate name=pre_id/
 validate name=pre_nombre/
   /constraint-set
   constraint-set name=add
 validate name=cli_id/
 validate name=usr_id/
 validate name=can_estado/
 validate name=beneficiario/
 validate name=metodo_entrega/
 validate name=direccion/
 validate name=soc_id/
 validate name=pre_id/
 validate name=pre_nombre/
   /constraint-set
   connectionmp_pool/connection
   table name=canje
 keys
   key dbcol=can_id mode=form param=id type=long/
   key dbcol=cli_id mode=form param=cli_id type=long/
   key dbcol=usr_id mode=form param=usr_id type=long/
   key dbcol=can_estado mode=form param=estado type=long/
 /keys
 values
   validate dbcol=can_beneficiario param=beneficiario
 type=string/ validate dbcol=can_metodo_entrega param=metodo_entrega
 type=long/
   validate dbcol=can_direccion_entrega param=direccion
 type=string/
   validate dbcol=soc_id param=soc_id type=long/
   validate dbcol=pre_idparam=pre_id type=long/
   validate dbcol=pre_nombre param=pre_nombre type=string/
   validate dbcol=pre_usd param=dolares type=string/
   validate dbcol=pre_millas param=millas type=long/
 /values
 /table
 /root
 ***

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




Re: saxon as default transformer + xalan also available?

2002-10-09 Thread Vadim Gritsenko

gv wrote:

Hello,

Because of some quirks in both Saxon  Xalan, I would
like to set Saxon to be my default XSLT transformer,
then add Xalan to be available when I need it (in the
sitemap: map:transformer type=xslt-xalan...)

I have the first part working fine (Saxon as default).
To get Xalan working too, I'm vaguely aware that I
have to add another transformer to my sitemap, and
maybe add a component into cocoon.xconf. Anyone know
how to do this? I'm using Cocoon 2.0.3.


Read: http://xml.apache.org/cocoon/snippet/snippet-xslt-options.html

Should help


Vadim




Thanks,
John
  





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




map:resource/ and parameter prob in 2.0.3

2002-10-09 Thread Robin Wyles

Hi All,

I am having problems passing sitemap parameters to resources in cocoon
2.0.3. Below are some sitemap snippets that illustrate what I am trying to
achieve. For example, if the uri home is requested then the home
resource is called which in turn calls the nodePage resource, which uses
the originally requested uri as a parameter to generate the correct page.

These resources/pipelines worked fine under 2.0.2, but under 2.0.3 the src
for the generate in the nodePage resource is resolved to docs/.xml - the
parameter is empty. I have tried using {1}, {../../1} and various other
combinations, and have also tried passing named sitemap parameters with
string values in them as a test - these also fail. It seems that I just
cannot pass parameters from a pipeline to the resource.

Is this still possible under 2.0.3? If so can someone tell what has changed,
so I can get this working again!

[..]

map:resource name=nodePage
map:act type=debug
map:parameter name=action value={../1} /
/map:act
map:act type=navigation
map:parameter name=action value=set /
map:parameter name=nextPage value={../1} /
map:parameter name=onError value={../1} /
/map:act
map:generate type=file src=docs/{../1}.xml /
map:call resource=XHTML /
/map:resource

map:resource name=home
map:act type=security
map:parameter name=action value=isLoggedOn /
map:call resource=securityFailure/
/map:act
map:call resource=nodePage/
/map:resource

[..]

map:match pattern=*
map:call resource={1}/
/map:match

[..]

Thanks in advance,

Robin Wyles


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




Xindice logicsheet - initial success

2002-10-09 Thread Josema Alonso

Dear Friends,

Since I got no response to my previous email message, I tried it hard and I
finally could make a xmldb logicsheet to work with Cocoon. It's the eXist
logicsheet. I could only try it for retrieving documents by now but it works
as expected.
I'm too tired now. It's been a lot of hours to make Xindice and the
logicsheet work with Cocoon and I need some rest. I'll test more tomorrow
and I'll try to make a How-To. Now that Isee it running I must say it
shoudn't be so hard...
I hope I could understand better the whole Cocon Wiki thing and make it
available there...if someone can help me a bit here...

Best.

ps: I've browsed carefully the archives and I read the mailing list
frequently. I know there are still some people who can't make Xindice work
with Cocoon. I understand you all... and I must say to all of you...it can
be done! Don't give up! :-)




-
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: Xindice logicsheet - initial success

2002-10-09 Thread Vadim Gritsenko

Josema Alonso wrote:

Dear Friends,

Since I got no response to my previous email message,


I've sent email. Why do you need xsp logicsheet and why don't you use 
xmldb protocol with cinclude? This works out of the box, with no effort.

Vadim


 I tried it hard and I
finally could make a xmldb logicsheet to work with Cocoon. It's the eXist
logicsheet. I could only try it for retrieving documents by now but it works
as expected.
I'm too tired now. It's been a lot of hours to make Xindice and the
logicsheet work with Cocoon and I need some rest. I'll test more tomorrow
and I'll try to make a How-To. Now that Isee it running I must say it
shoudn't be so hard...
I hope I could understand better the whole Cocon Wiki thing and make it
available there...if someone can help me a bit here...

Best.

ps: I've browsed carefully the archives and I read the mailing list
frequently. I know there are still some people who can't make Xindice work
with Cocoon. I understand you all... and I must say to all of you...it can
be done! Don't give up! :-)
  




-
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: Cocoon FAILS in transforming XML

2002-10-09 Thread Joerg Heinicke

If your Cocoon is working in general, I can only guess that the error is 
to search in your stylesheet. Cocoon itself uses XSLT more or less 
heavily (e.g. for creating sitemap_xmap.java). Can you show a bit code 
of your XSP, XSL and sitemap? You can post a minimum example, where your 
code gets already wrong.

Regards,

Joerg

Roger Ting wrote:
 
 I kind of doubt that it has to do with XSP because if i serialize the
 output as XML and do the transformation later by reading the xml file
 generated from the XSP directly, it works fine . HOwever, if i generate
 the XSP directly, some of the output just missing
 
 Anyone use XSP with ESQL and use XSLT transformation faces the same
 problem?
 
 From: Ryan Agler [EMAIL PROTECTED]
 Reply-To: [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Subject: RE: Cocoon FAILS in transforming XML
 Date: Wed, 9 Oct 2002 00:20:19 -0400

 Best guess is that something is wrong with the xsp.  Can you post your
 log file?

 -Original Message-
 From: Roger Ting [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, October 08, 2002 11:48 PM
 To: [EMAIL PROTECTED]
 Subject: Re: Cocoon FAILS in transforming XML

 I am using the latest binary distribution which is the 2.0.3.

 I just change the Xalan and Xerces to the latest version. This
 doesn't help.

 This only happens when i am using xsp with xslt to do transformation.
 The xsp are using esql logicsheet. This doesn't happen when i am
 using file generator to read xml and transform to SVG using XSLT.

 Any idea?

 Thx


-
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: speeding up svg serialization?

2002-10-09 Thread Joerg Heinicke

HI Leona,

lrs wrote:
 Hi Joerg,
 
 From: Joerg Heinicke [EMAIL PROTECTED]
 
Hello Leona,

we use SVG generated PNGs at www.ekommunen.de too and the serialization
is really fast except the very first request on a SVG serializer. I
guess this is because of the first instantiation of Batik, but maybe
somebody can say something more about this. Is it really a problem if
the very first user accessing the very first time the site has to wait
some seconds more?
 
 
 It wouldn't be so bad if it was just the first user, but in our
 architecture,
 every user is running Tomcat and Cocoon, thus every user is also a
 first user! I'll have to do some research on Batik, but hints would be
 welcome.

Then it's a bit more important of course, but I can't help anymore. 
There *must* be some specialists on batik on this list.

Maybe therefore you can optimize your sitemap or the XSLT. For example
you are passing the request parameters and some other parameters to the
stylesheets, which prevents effective caching. Stylesheets are cached in
combination with passed parameters. We changed this by storing such
parameters in an extra XML, which is aggregated in the sitemap. So there
is really only one instance of the stylesheet in the cache.
 
 
 Are you talking about storing the parameters in an XML file? What I
 think I really need is the concept of a session object that can pass
 parameters between pages.

Yes. We have a huge layout.xsl, which really must efficiently be cached. 
Therefore the XML it is transforming is an aggregation of the XML file 
itself and a little XML file, which is created via XSP and contains some 
parameterization. But if the latter accessing of an SVG generated image 
is not that problem, maybe it's not that important.

And the third point: You have a template creating an add_image/
element and one matching one them. Hmm, I can only guess, but are you
storing add_image/ in a Result Tree Fragment, which you convert back
to a node set and apply a template to it? If it is so, maybe there are
better processings possible.
 
 add_image/ generates the HTML output which goes to the serializer.
 
 In general the Cocoon/XML/Java parts perform well. I am new to Cocoon,
 so, of course, there is room for improvement, but it really is the svg
 processing
 that slows it down the first time.

Hmm, I still don't exactly understand, in which way you are doing it, 
but the same like above: maybe not so important.

Sorry, that I can't help you more.

Regards,

Joerg


-
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: saxon as default transformer + xalan also available?

2002-10-09 Thread Gabriele Domenichini

Alle 21:54, mercoledì 9 ottobre 2002, gv ha scritto:
 Hello,

 Because of some quirks in both Saxon  Xalan, I would
 like to set Saxon to be my default XSLT transformer,
 then add Xalan to be available when I need it (in the
 sitemap: map:transformer type=xslt-xalan...)

I've done exactly the opposite (xalan the default and saxon as an option  (in 
the sitemap: map:transformer type=xslt-Saxon...).
If this can give you an help I've put it on cocoon wiky:
http://outerthought.net/wiki/Wiki.jsp?page=DocbookTransformation



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




Creating PDF for dynamic queried result after processing in XSP using forms

2002-10-09 Thread Sreenivasan N.

Hi ALL

1.i am using this part of the sitemap for generating an xsp .

map:match pattern=xsp/*
 map:generate src=docs/samples/xsp/{1}.xsp type=serverpages/
 map:transform src=stylesheets/dynamic-page2html.xsl
 /map:transform
 map:serialize type=html/
/map:match

the xsp generated will be a html form with two list boxes populated with 
data from the oracle database(using the query already in the xsp) and a 
submit query button.
On clicking the submit button after selecting values from the list boxes , 
a query is dynamically executed based on these values and the result is 
shown in html format.
Till now it works fine..
will it be possible to show the final result in xml or pdf format.

2.

  i have an UploadAction.java file.But i don't know how to add it as a 
class file and invoke it as an Action sitemap component.

Regards
Sreenivasan.







Attitudes are much more important than aptitudes.
Nothing is impossible for a willing heart

Sreenivasan N.
Sony SARD
Ext 5816

Email. [EMAIL PROTECTED]
Per: [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]




Re: Xindice logicsheet - initial success

2002-10-09 Thread Bertrand Delacretaz

On Thursday 10 October 2002 00:15, Josema Alonso wrote:
. . .
 I hope I could understand better the whole Cocon Wiki thing and make it
 available there...if someone can help me a bit here...
. . .

See the about page at http://outerthought.net/wiki/Wiki.jsp?page=About

I just reviewed and completed it, it should give you all the required 
information - this wiki thing is probably simpler than what you think!

-Bertrand

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