xsp-session:get-parameter-names and xsp-session:get-parameter-values

2003-06-23 Thread Maxime.Gheysen
Hello,
I created a session with some parameters. But if I write
xsp-session:get-parameter-names I get nothing, same if I write
xsp-session:get-parameter-values as=xml/ 
Is there anything wrong? Is there any other way to get the session
parameters


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



web services with cocoon

2003-06-23 Thread shankar
Hi,

I need to call web services using cocoon? how to do this?
Any links/examples, pls mail me.
Shankar

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


ThreadLocal with cocoon?

2003-06-23 Thread Alexandre Victoor
Hello
I would like to know if it is safe to use threadlocal variables in actions 
and xsps.  I don't know if the components called by the sitemap are always 
supposed to be executed inside the same thread. I have looked at the logs 
and the actions and the xsps seems to use the same thread for a given 
request treatment. But I don't know if it would be true on a production 
environment or with another sitemap implementation... Is there any docs 
about multi-threading in cocoon?
Thanks for your help

Alex

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


Re: woody date extension

2003-06-23 Thread Bruno Dumon
On Fri, 2003-06-20 at 14:46, Frank Taffelt wrote:
 Hi,
 
 i have a form which contains 2 fields with date entries (ex.:'17.06.2003
 13:55'). What are the steps to get woody to:
 
 * validate the values against a given dateformat ex. dd.MM. HH:mm
 * to say in a assertion rule that date2 must be greater than date1
 (date1,date2 are the formfields)
 
 do i have to create a new Woody Datatype or a new ValidationRule for
 Datatype String ?
 

The best way would be to create a new datatype, at least if you're
interested in getting/setting the value of that widget as a Date object.
Otherwise a validationrule for strings (e.g. a regexp-based rule) might
be sufficient.

-- 
Bruno Dumon http://outerthought.org/
Outerthought - Open Source, Java  XML Competence Support Center
[EMAIL PROTECTED]  [EMAIL PROTECTED]


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



Re: multiple cocoons in tomcat

2003-06-23 Thread Boris Althaus



but with mod_proxy you can avoid ports (:8080) in 
the url? 
Or do you use mod_rewrite too.

Boris

  - Original Message - 
  From: 
  Stavros Kounis 
  
  To: [EMAIL PROTECTED] 
  
  Sent: Sunday, June 22, 2003 1:50 PM
  Subject: Re: multiple cocoons in 
  tomcat
  On Tue, 17 Jun 2003, Mathias Wiegard 
  wrote:   the only problem we have is with 
  warpConnection  now we consider to leave warp solution for mod 
  proxy  to have apache at front Yeah, 
  warpConnection is really the best solution for this purpose... 
  Matzewe use to have memory problems using warpConnection when the 
  number of subsitemaps grow uptesting mod proxy i dont have see any 
  of memory problems yet, so now ithink that mod proxy is a better 
  approach.stavros 
  - 
  To unsubscribe, e-mail: [EMAIL PROTECTED] 
  For additional commands, e-mail: [EMAIL PROTECTED]-To 
  unsubscribe, e-mail: [EMAIL PROTECTED]For 
  additional commands, e-mail: [EMAIL PROTECTED]


split in sitemap

2003-06-23 Thread Maxime.Gheysen
Is there a way to make a split for a parameter  like:
input value=abc\def name=test

I want something a {request-param} with a split the \ and get the
first part (only abc )

Thanks

-Original Message-
From:
[EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]
.org] 
Sent: Wednesday, June 18, 2003 10:18 AM
To: [EMAIL PROTECTED]
Subject: RE: concat in sitemap?


I will try with value={request-param:concat(servername,'\',name)}.
But I think I have a problem getting parameter servername. I don't
know why, I just added this input in the login.xml
...
field name=name type=text length=24 description=Name/
field name=passwordtype=password length=10
description=Password/
field name=servername type=text length=24 value=CORPROOT
description=LDAP Domain/
...
The output seems correct :
...
form ...
input type=text name=name.../
input type=password name=password.../
input type=text name=servername.../
/form
...

I remarked it because in the sunrise-user.xsl I wrote :
xsl:param name=password/
xsl:param name=name/
xsl:param name=servername/
and then
testxsl:value-of select=$servername//test --returns nothing
test2xsl:value-of select=$name//test2 --returns the right name



-Original Message-
From: Konstantin Piroumian [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, June 18, 2003 10:07 AM
To: [EMAIL PROTECTED]
Subject: Re: concat in sitemap?


Try this one:
map:parameter name=rootdn
value={request-param:concat(serverurl, '\', name)}}/

Take a look at the Input Modules samples at
http://localhost:/cocoon/samples/modules . There are several
examples of
XPath usage with input modules in the sitemap.

Regards,
  Konstantin

- Original Message - 
From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, June 18, 2003 11:20
Subject: concat in sitemap?


Hello,
I wrote a little time ago because I had problems with my parameters in
the sitemap. I thought maybe I had to do like in XSL with a concat
function or something like that?
That's what I want to get :
map:parameter name=rootdn
value={request-param:serverurl}\{request-param:name}/
But this way it doesn't work.

Please help!!!
Thanks

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



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


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


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



RE: split in sitemap

2003-06-23 Thread Reinhard Pötz
I see two ways:

  - write an action
  - write an input module

Reinhard

 -Original Message-
 From: [EMAIL PROTECTED] 
 [mailto:[EMAIL PROTECTED] 
 Sent: Monday, June 23, 2003 11:47 AM
 To: [EMAIL PROTECTED]
 Subject: split in sitemap
 
 
 Is there a way to make a split for a parameter  like:
 input value=abc\def name=test
 
 I want something a {request-param} with a split the \ and 
 get the first part (only abc )
 
 Thanks
 
 -Original Message-
 From: 
 [EMAIL PROTECTED]
 [mailto:cocoon-users-return-52265-Maxime.Gheysen=swisscom.com@
 xml.apache
 .org] 
 Sent: Wednesday, June 18, 2003 10:18 AM
 To: [EMAIL PROTECTED]
 Subject: RE: concat in sitemap?
 
 
 I will try with value={request-param:concat(servername,'\',name)}.
 But I think I have a problem getting parameter servername. 
 I don't know why, I just added this input in the login.xml 
 ... field name=name type=text length=24 description=Name/
 field name=passwordtype=password length=10
 description=Password/
 field name=servername type=text length=24 
 value=CORPROOT description=LDAP Domain/ ... The output 
 seems correct : ... form ... input type=text 
 name=name.../ input type=password name=password.../ 
 input type=text name=servername.../ /form ...
 
 I remarked it because in the sunrise-user.xsl I wrote : 
 xsl:param name=password/ xsl:param name=name/ 
 xsl:param name=servername/ and then testxsl:value-of 
 select=$servername//test --returns nothing 
 test2xsl:value-of select=$name//test2 --returns the 
 right name
 
 
 
 -Original Message-
 From: Konstantin Piroumian [mailto:[EMAIL PROTECTED] 
 Sent: Wednesday, June 18, 2003 10:07 AM
 To: [EMAIL PROTECTED]
 Subject: Re: concat in sitemap?
 
 
 Try this one:
 map:parameter name=rootdn 
 value={request-param:concat(serverurl, '\', name)}}/
 
 Take a look at the Input Modules samples at 
 http://localhost:/cocoon/samples/modules . There are 
 several examples of XPath usage with input modules in the sitemap.
 
 Regards,
   Konstantin
 
 - Original Message - 
 From: [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Wednesday, June 18, 2003 11:20
 Subject: concat in sitemap?
 
 
 Hello,
 I wrote a little time ago because I had problems with my 
 parameters in the sitemap. I thought maybe I had to do like 
 in XSL with a concat function or something like that? That's 
 what I want to get : map:parameter name=rootdn 
 value={request-param:serverurl}\{request-param:name}/
 But this way it doesn't work.
 
 Please help!!!
 Thanks
 
 


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



RE: Pls help! not working response.encodeURL(String.valueOf(xsl:copy-of select=$href/))

2003-06-23 Thread a000
I've chosen copy-of in analogy to the example. But I assume that's not the
matter. Actually mixing any tag with java code causes error.

Harald 


 do you really want copy-of for $href, or value-of?
 
 Geoff
 
  -Original Message-
  From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
  Sent: Sunday, June 22, 2003 1:55 PM
  To: [EMAIL PROTECTED]
  Subject: Re: Pls help! not working
  response.encodeURL(String.valueOf(xsl:copy-of select=$href/))
 
 
  Hello!
  Does anybody have an idea to solve this problem?
 
  I'd really appreciate your help!
 
  Harry
 
   I'm a novice cocoon user and currently changing an existing site
 running
   on
   cocoon 2.01 from cookie-based session management to manual URL
 encoding.
   This
   cocoon version doesn't yet support encodeURLTransformer and I can't
   upgrade
   to a newer version.
  
   The example found at
   'cocoon\documentation\xdocs\userdocs\xsp\sessions.xml'
   I already successfully tested at a test logicsheet.
  
   At my stylesheet I use the following fragment:
  
   a
xsp:attribute name=href
   xsp:expr
 response.encodeURL(String.valueOf(xsl:copy-of
   select=$href/))
   /xsp:expr
 /xsp:attribute
 xsl:copy-of select=$href/
   /
  
   However the XSL statement appears to return no value although it works
   outside xsp:expr.
  
   The errorpage shows the following hints:
  
   The org.apache.cocoon.www.sitemap_xmap notifies that
   org.apache.cocoon.ProcessingException says:
   Exception during processing of
   http://localhost:8080/demo/XSPXSLWebSimpleMain.htm
   More precisely:
   org.apache.cocoon.ProcessingException: Exception during processing of
   http://localhost:8080/demo/XSPXSLWebSimpleMain.htm:
   org.apache.cocoon.ProcessingException: Exception during processing of
   http://localhost:8080/demo/XSPXSLSimpleTable.htm:
   org.apache.cocoon.ProcessingException: Language Exception:
   org.apache.cocoon.components.language.LanguageException: Error
 compiling
   Table_htm_xsp_xsl:
   Line 804, column 73: No method matching valueOf() found in class
   java.lang.String.
   ...
   at
  
  org.apache.cocoon.transformation.CIncludeTransformer.processCInclu
  deElement(CIncludeTransformer.java:136)
   at
  
  org.apache.cocoon.transformation.CIncludeTransformer.startElement(
  CIncludeTransformer.java:83)
  
   
  
   As I'm required to use cinclude within my stylesheets my sitemap
   definitions
   look like this:
  
   map:pipeline
 map:match pattern=XSPXSL* 
 map:generate type=serverpages
   src={1}.xsp.xsl/
 map:transform type=cinclude/
 map:serialize type=xml/
 /map:match
  
 map:match pattern=SP* 
 map:generate type=serverpages
  src={1}.xsp/
 map:transform type=cinclude/
 map:serialize type=xml/
 /map:match
 /map:pipeline
  
  map:pipeline
 map:match pattern=*.htm 
   map:generate
  src=context://dummy.xml/
   map:transform src=cocoon://SP{1}/
   map:transform
   src=cocoon://XSPXSL{1}.htm/
   map:serialize type=html/
 /map:match
  
 map:handle-errors
   map:transform src=context://error2html.xsl/
   map:serialize status-code=500/
 /map:handle-errors
  /map:pipeline
  
  
   Thanks for your help!
  
   Harry
  
   --
  
  
   +++ GMX - Mail, Messaging  more  http://www.gmx.net +++
   Bitte lächeln! Fotogalerie online mit GMX ohne eigene Homepage!
  
  
   -
   To unsubscribe, e-mail: [EMAIL PROTECTED]
   For additional commands, e-mail: [EMAIL PROTECTED]
  
 
  --
  +++ GMX - Mail, Messaging  more  http://www.gmx.net +++
  Bitte lächeln! Fotogalerie online mit GMX ohne eigene Homepage!
 
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 

-- 
+++ GMX - Mail, Messaging  more  http://www.gmx.net +++
Bitte lächeln! Fotogalerie online mit GMX ohne eigene Homepage!


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



RE: split in sitemap

2003-06-23 Thread Maxime.Gheysen
But is there no function to do that? Because I saw on a sample (sampes/modules) that a 
concat function is used: 
map:parameter name=session [truncated] value={request:concat('org. ... .', 
substring(session, 36))} / 

So maybe there is a split function also?



-Original Message-
From: Reinhard Pötz [mailto:[EMAIL PROTECTED] 
Sent: Monday, June 23, 2003 12:05 PM
To: [EMAIL PROTECTED]
Subject: RE: split in sitemap


I see two ways:

  - write an action
  - write an input module

Reinhard

 -Original Message-
 From: [EMAIL PROTECTED] 
 [mailto:[EMAIL PROTECTED] 
 Sent: Monday, June 23, 2003 11:47 AM
 To: [EMAIL PROTECTED]
 Subject: split in sitemap
 
 
 Is there a way to make a split for a parameter  like:
 input value=abc\def name=test
 
 I want something a {request-param} with a split the \ and 
 get the first part (only abc )
 
 Thanks
 
 -Original Message-
 From: 
 [EMAIL PROTECTED]
 [mailto:cocoon-users-return-52265-Maxime.Gheysen=swisscom.com@
 xml.apache
 .org] 
 Sent: Wednesday, June 18, 2003 10:18 AM
 To: [EMAIL PROTECTED]
 Subject: RE: concat in sitemap?
 
 
 I will try with value={request-param:concat(servername,'\',name)}.
 But I think I have a problem getting parameter servername. 
 I don't know why, I just added this input in the login.xml 
 ... field name=name type=text length=24 description=Name/
 field name=passwordtype=password length=10
 description=Password/
 field name=servername type=text length=24 
 value=CORPROOT description=LDAP Domain/ ... The output 
 seems correct : ... form ... input type=text 
 name=name.../ input type=password name=password.../ 
 input type=text name=servername.../ /form ...
 
 I remarked it because in the sunrise-user.xsl I wrote : 
 xsl:param name=password/ xsl:param name=name/ 
 xsl:param name=servername/ and then testxsl:value-of 
 select=$servername//test --returns nothing 
 test2xsl:value-of select=$name//test2 --returns the 
 right name
 
 
 
 -Original Message-
 From: Konstantin Piroumian [mailto:[EMAIL PROTECTED] 
 Sent: Wednesday, June 18, 2003 10:07 AM
 To: [EMAIL PROTECTED]
 Subject: Re: concat in sitemap?
 
 
 Try this one:
 map:parameter name=rootdn 
 value={request-param:concat(serverurl, '\', name)}}/
 
 Take a look at the Input Modules samples at 
 http://localhost:/cocoon/samples/modules . There are 
 several examples of XPath usage with input modules in the sitemap.
 
 Regards,
   Konstantin
 
 - Original Message - 
 From: [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Wednesday, June 18, 2003 11:20
 Subject: concat in sitemap?
 
 
 Hello,
 I wrote a little time ago because I had problems with my 
 parameters in the sitemap. I thought maybe I had to do like 
 in XSL with a concat function or something like that? That's 
 what I want to get : map:parameter name=rootdn 
 value={request-param:serverurl}\{request-param:name}/
 But this way it doesn't work.
 
 Please help!!!
 Thanks
 
 


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


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



Failed to compile sitemap when using map:call in error handlers ?

2003-06-23 Thread GUILLAUME Gabriel FTRD/DIH/HDM REN
Hi folks,
I tried to compile the following (dummy) pipeline with Cocoon 2.0.4 :
...
 map:resources
map:resource name=test
map:serialize/
/map:resource
/map:resources
...
map:pipeline
map:match pattern=dummy
map:generate src=dummy.html/
map:serialize/
/map:match

map:handle-errors
map:transform src=stylesheets/system/error2html.xsl/
map:call resource=test/
/map:handle-errors

/map:pipeline

The compilation of the sitemap failed with the following message :
Exception: org.apache.cocoon.components.language.LanguageException: Error compiling 
proxy_xmap: Line 829, column 91: variable cocoon_view not found in class 
org.apache.cocoon.www.proxy_xmap Line 0, column 0: 1 error 

If I replace the map:call by a map:serialize, the compilation works fine.
Is it forbidden to use resource inside an error handler ?
Thanks for your help.

Gabriel

PS : I'm using 2.0.4 on Tomcat 3.3.1a with SUN jdk 1.4.0 on W2k

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



Re: split in sitemap

2003-06-23 Thread Luca Morandini
[EMAIL PROTECTED] wrote:
But is there no function to do that? Because I saw on a sample (sampes/modules) that a concat function is used: 
map:parameter name=session [truncated] value={request:concat('org. ... .', substring(session, 36))} / 

So maybe there is a split function also?

not all input modules let you use XPath expressions, and, AFAIK, the 
request parameter module is one of those :(

Regards,

--
   Luca Morandini
   GIS Consultant
  [EMAIL PROTECTED]
http://space.virgilio.it/kumora/index.html
--


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


RE: Pls help! not working response.encodeURL(String.valueOf(xsl:copy-of select=$href/))

2003-06-23 Thread Geoff Howard
Can you post the Table_htm_xsp_xsl.java  Line 804, column 73?  It's
in your servlet container's work directory under cocoon-files
Geoff

At 06:59 AM 6/23/2003, you wrote:
I've chosen copy-of in analogy to the example. But I assume that's not the
matter. Actually mixing any tag with java code causes error.
Harald

 do you really want copy-of for $href, or value-of?

 Geoff

  -Original Message-
  From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
  Sent: Sunday, June 22, 2003 1:55 PM
  To: [EMAIL PROTECTED]
  Subject: Re: Pls help! not working
  response.encodeURL(String.valueOf(xsl:copy-of select=$href/))
 
 
  Hello!
  Does anybody have an idea to solve this problem?
 
  I'd really appreciate your help!
 
  Harry
 
   I'm a novice cocoon user and currently changing an existing site
 running
   on
   cocoon 2.01 from cookie-based session management to manual URL
 encoding.
   This
   cocoon version doesn't yet support encodeURLTransformer and I can't
   upgrade
   to a newer version.
  
   The example found at
   'cocoon\documentation\xdocs\userdocs\xsp\sessions.xml'
   I already successfully tested at a test logicsheet.
  
   At my stylesheet I use the following fragment:
  
   a
xsp:attribute name=href
   xsp:expr
 response.encodeURL(String.valueOf(xsl:copy-of
   select=$href/))
   /xsp:expr
 /xsp:attribute
 xsl:copy-of select=$href/
   /
  
   However the XSL statement appears to return no value although it works
   outside xsp:expr.
  
   The errorpage shows the following hints:
  
   The org.apache.cocoon.www.sitemap_xmap notifies that
   org.apache.cocoon.ProcessingException says:
   Exception during processing of
   http://localhost:8080/demo/XSPXSLWebSimpleMain.htm
   More precisely:
   org.apache.cocoon.ProcessingException: Exception during processing of
   http://localhost:8080/demo/XSPXSLWebSimpleMain.htm:
   org.apache.cocoon.ProcessingException: Exception during processing of
   http://localhost:8080/demo/XSPXSLSimpleTable.htm:
   org.apache.cocoon.ProcessingException: Language Exception:
   org.apache.cocoon.components.language.LanguageException: Error
 compiling
   Table_htm_xsp_xsl:
   Line 804, column 73: No method matching valueOf() found in class
   java.lang.String.
   ...
   at
  
  org.apache.cocoon.transformation.CIncludeTransformer.processCInclu
  deElement(CIncludeTransformer.java:136)
   at
  
  org.apache.cocoon.transformation.CIncludeTransformer.startElement(
  CIncludeTransformer.java:83)
  
   
  
   As I'm required to use cinclude within my stylesheets my sitemap
   definitions
   look like this:
  
   map:pipeline
 map:match pattern=XSPXSL* 
 map:generate type=serverpages
   src={1}.xsp.xsl/
 map:transform type=cinclude/
 map:serialize type=xml/
 /map:match
  
 map:match pattern=SP* 
 map:generate type=serverpages
  src={1}.xsp/
 map:transform type=cinclude/
 map:serialize type=xml/
 /map:match
 /map:pipeline
  
  map:pipeline
 map:match pattern=*.htm 
   map:generate
  src=context://dummy.xml/
   map:transform src=cocoon://SP{1}/
   map:transform
   src=cocoon://XSPXSL{1}.htm/
   map:serialize type=html/
 /map:match
  
 map:handle-errors
   map:transform src=context://error2html.xsl/
   map:serialize status-code=500/
 /map:handle-errors
  /map:pipeline
  
  
   Thanks for your help!
  
   Harry
  
   --
  
  
   +++ GMX - Mail, Messaging  more  http://www.gmx.net +++
   Bitte lächeln! Fotogalerie online mit GMX ohne eigene Homepage!
  
  
   -
   To unsubscribe, e-mail: [EMAIL PROTECTED]
   For additional commands, e-mail: [EMAIL PROTECTED]
  
 
  --
  +++ GMX - Mail, Messaging  more  http://www.gmx.net +++
  Bitte lächeln! Fotogalerie online mit GMX ohne eigene Homepage!
 
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 


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

--
+++ GMX - Mail, Messaging  more  http://www.gmx.net +++
Bitte lächeln! Fotogalerie online mit GMX ohne eigene Homepage!
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: File Uploads

2003-06-23 Thread juliane ndje
hello alexander,
does your offer still exist? seems this is exactly what i have to do 
next and you could save me some time ;-)
thanx a lot!
juliane

Alexander Schatten wrote:

well, I changed the parameter in the WEB-INF/web.xml:

   init-param
 param-nameupload-directory/param-name
 param-valueWEB-INF/work/upload-dir/param-value
   /init-param
and it works, but I am not sure, whether this directory has to be 
below WEB-INF?

however, one general remark: you must not forget, that this is a 
general setting for *all* Cocoon applications. So what I do is, that 
is set the directory as mentioned above, and in the cocoon application 
I use an XSP file to move an uploaded file into the projects 
destination directory, which seems to work pretty good and is rather 
easy to implement.

If you like, I could provide this XSP for you.

Alex

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



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


Re: File Uploads

2003-06-23 Thread Geoff Howard
There is good information about this at the wiki.  Go to wiki.cocoondev.org 
and search for upload.

Geoff

upload-directory does not have to be under WEB-INF - it can be relative or 
absolute anywhere on your system.  relative paths are resolved from the 
servlet context - which is the main directory of cocoon.

Geoff

At 08:20 AM 6/23/2003, you wrote:
hello alexander,
does your offer still exist? seems this is exactly what i have to do next 
and you could save me some time ;-)
thanx a lot!
juliane

Alexander Schatten wrote:

well, I changed the parameter in the WEB-INF/web.xml:

   init-param
 param-nameupload-directory/param-name
 param-valueWEB-INF/work/upload-dir/param-value
   /init-param
and it works, but I am not sure, whether this directory has to be below 
WEB-INF?

however, one general remark: you must not forget, that this is a general 
setting for *all* Cocoon applications. So what I do is, that is set the 
directory as mentioned above, and in the cocoon application I use an XSP 
file to move an uploaded file into the projects destination directory, 
which seems to work pretty good and is rather easy to implement.

If you like, I could provide this XSP for you.

Alex

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


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



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


Cocoon Build : deprecated block necessary ?

2003-06-23 Thread Olivier Billard
Hi all,

I'm trying to build a mini-clean webapp, but the compile-tests target 
seems to depend on deprecated stuffs, as said in the comment of the 
build file.
What is the cleanest solution ? Is this target necessary to build the 
webapp, or not ?
Can I squeeze the depends clause of compile target ?

Thanks in advance !

--
Olivier Billard
Jouve SI
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


[Stammtisch-Vienna] Reminder!

2003-06-23 Thread Reinhard Pötz

I want you to remind that the first Austrian Cocoon Stammtisch 
will take place on

  June, 25th, 8pm
  at Centimeter I (8th district behind the city hall). 
  (http://www.tourist-net.co.at/lokale/centimeter/centimeter1.htm)


The table is reserved for Pötz.

I'm looking forward to meeting you all!

Kind regards,
Reinhard

   


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



Re: File Uploads

2003-06-23 Thread juliane ndje
hi geoff,
i've seen the wiki pages and also the FileUploadAction in the 
Developer's Handbook (Moczar/Aston). my problem is that i don't want to 
put all the files into one directory but put them into the directory 
named after a project that is to be choosen in a select field (is that 
understandable?). there is a directory for every project and the file 
belongs to exactly one project. therefore the way suggested by alexander 
seemed quite appealing to me.
btw i need this for an app written in 2.0.4
thanx juliane

Geoff Howard wrote:

There is good information about this at the wiki.  Go to 
wiki.cocoondev.org and search for upload.

Geoff

upload-directory does not have to be under WEB-INF - it can be 
relative or absolute anywhere on your system.  relative paths are 
resolved from the servlet context - which is the main directory of 
cocoon.

Geoff

At 08:20 AM 6/23/2003, you wrote:

hello alexander,
does your offer still exist? seems this is exactly what i have to do 
next and you could save me some time ;-)
thanx a lot!
juliane

Alexander Schatten wrote:

well, I changed the parameter in the WEB-INF/web.xml:

   init-param
 param-nameupload-directory/param-name
 param-valueWEB-INF/work/upload-dir/param-value
   /init-param
and it works, but I am not sure, whether this directory has to be 
below WEB-INF?

however, one general remark: you must not forget, that this is a 
general setting for *all* Cocoon applications. So what I do is, that 
is set the directory as mentioned above, and in the cocoon 
application I use an XSP file to move an uploaded file into the 
projects destination directory, which seems to work pretty good and 
is rather easy to implement.

If you like, I could provide this XSP for you.

Alex

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


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



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



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


Woody

2003-06-23 Thread Scherler, Thorsten
Title: Woody






Hello group,

I am looking for some information of and experience with woody.

I had a look @ the wikki and I find it very usefull but I would like some use-cases.

I am planning to the following with it:

In my thesis a friend and I develop a web based consulting system. We use a highly structured method. The core elements of the method are based on more or less standardised questionnaires. This questionnaire has to be answered for different category groups and from different parties. 

We use the 9 elements of Porters value chain as category groups (I wrote this for better understanding, only). So the same questionnaire has to be used for 9 different categories. That means the questionnaire has to be highly reusable. 

After the questionnaire has been answered we have to use business logic to get the result. This result has to be finally write into a database.

I think woody is doing that but what is the main advantage in comparison with e.g. struts.

I know this are just some basic information about what we are planning to do but maybe it is enough to get some input from the group.

If somebody have experience with the use of woody please let me know.

King Regards

/Thorsten

Mit freundlichen Grüßen

Thorsten Scherler






Re: Cocoon Build : deprecated block necessary ?

2003-06-23 Thread Geoff Howard
Not sure what you mean by squeeze the depends clause, but the root
problem needs to get fixed.  It either means removing the tests for
deprecated items, or modifying the build to exclude deprecated tests
when deprecated is excluded (which means creating a deprecated test
directory somewhere and moving the offending items there) or, moving
the deprecated tests to their new home (because IIRC, the items have
not been truly deprecated but moved to excalibur??)
Patches or specific suggestions will be very welcome.

Geoff

At 08:31 AM 6/23/2003, you wrote:
Hi all,

I'm trying to build a mini-clean webapp, but the compile-tests target 
seems to depend on deprecated stuffs, as said in the comment of the build file.
What is the cleanest solution ? Is this target necessary to build the 
webapp, or not ?
Can I squeeze the depends clause of compile target ?

Thanks in advance !

--
Olivier Billard
Jouve SI
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



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


Perplexing PDF SVG question

2003-06-23 Thread Irving Salisbury III
I have embedded an SVG image into my xsl:fo document.  It renders fine 
when using command line fop.  However, when I put it in a cocoon 
pipeline, I am getting the following error:

ERROR   (2003-06-23) 08:02.42:903   [sitemap.serializer.fo2pdf.fop] 
(/medicaid/sequence/first/pdf) Thread-10/PDFRenderer: svg graphic could 
not be built: null
java.lang.NullPointerException
   at java.net.URL.init(URL.java:366)
   at java.net.URL.init(URL.java:329)
   at java.net.URL.init(URL.java:321)
   at java.net.URL.init(URL.java:252)
   at java.net.URL.init(URL.java:275)
   at org.apache.batik.util.ParsedURLData.buildURL(Unknown Source)
   at org.apache.batik.util.ParsedURLData.openStreamInternal(Unknown 
Source)
   at org.apache.batik.util.ParsedURLData.openStream(Unknown Source)
   at org.apache.batik.util.ParsedURL.openStream(Unknown Source)
   at 
org.apache.batik.dom.svg.SAXSVGDocumentFactory.createDocument(Unknown 
Source)
   at org.apache.batik.bridge.DocumentLoader.loadDocument(Unknown Source)
   at org.apache.batik.bridge.URIResolver.getNode(Unknown Source)
   at org.apache.batik.bridge.URIResolver.getElement(Unknown Source)
   at 
org.apache.batik.bridge.BridgeContext.getReferencedElement(Unknown Source)
   at org.apache.batik.bridge.CSSUtilities.convertClipPath(Unknown Source)
   at 
org.apache.batik.bridge.AbstractGraphicsNodeBridge.buildGraphicsNode(Unknown 
Source)
   at 
org.apache.batik.bridge.SVGShapeElementBridge.buildGraphicsNode(Unknown 
Source)
   at org.apache.batik.bridge.GVTBuilder.buildGraphicsNode(Unknown Source)
   at org.apache.batik.bridge.GVTBuilder.buildComposite(Unknown Source)
   at org.apache.batik.bridge.GVTBuilder.buildGraphicsNode(Unknown Source)
   at org.apache.batik.bridge.GVTBuilder.buildComposite(Unknown Source)
   at org.apache.batik.bridge.GVTBuilder.buildGraphicsNode(Unknown Source)
   at org.apache.batik.bridge.GVTBuilder.buildComposite(Unknown Source)
   at org.apache.batik.bridge.GVTBuilder.build(Unknown Source)
   at org.apache.fop.render.pdf.PDFRenderer.renderSVGDocument(Unknown 
Source)
   at org.apache.fop.render.pdf.PDFRenderer.renderSVGArea(Unknown Source)
   at org.apache.fop.svg.SVGArea.render(Unknown Source)
   at 
org.apache.fop.render.pdf.PDFRenderer.renderForeignObjectArea(Unknown 
Source)
   at org.apache.fop.layout.inline.ForeignObjectArea.render(Unknown Source)
   at org.apache.fop.render.AbstractRenderer.renderLineArea(Unknown Source)
   at org.apache.fop.layout.LineArea.render(Unknown Source)
   at org.apache.fop.render.AbstractRenderer.renderBlockArea(Unknown 
Source)
   at org.apache.fop.layout.BlockArea.render(Unknown Source)
   at 
org.apache.fop.render.AbstractRenderer.renderAreaContainer(Unknown Source)
   at org.apache.fop.layout.ColumnArea.render(Unknown Source)
   at org.apache.fop.render.AbstractRenderer.renderSpanArea(Unknown Source)
   at org.apache.fop.layout.SpanArea.render(Unknown Source)
   at 
org.apache.fop.render.AbstractRenderer.renderBodyAreaContainer(Unknown 
Source)
   at org.apache.fop.render.pdf.PDFRenderer.renderPage(Unknown Source)
   at org.apache.fop.render.pdf.PDFRenderer.render(Unknown Source)
   at org.apache.fop.apps.StreamRenderer.queuePage(Unknown Source)
   at org.apache.fop.layout.AreaTree.addPage(Unknown Source)
   at org.apache.fop.fo.pagination.PageSequence.format(Unknown Source)
   at org.apache.fop.apps.StreamRenderer.render(Unknown Source)
   at org.apache.fop.fo.FOTreeBuilder.endElement(Unknown Source)
   at 
org.apache.cocoon.xml.AbstractXMLPipe.endElement(AbstractXMLPipe.java:147)
   at 
org.apache.xalan.transformer.ResultTreeHandler.endElement(ResultTreeHandler.java:307)
   at 
org.apache.xalan.templates.ElemLiteralResult.execute(ElemLiteralResult.java:684)
   at 
org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(TransformerImpl.java:2182)
   at 
org.apache.xalan.templates.ElemLiteralResult.execute(ElemLiteralResult.java:678)
   at 
org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(TransformerImpl.java:2182)
   at 
org.apache.xalan.transformer.TransformerImpl.applyTemplateToNode(TransformerImpl.java:2008)
   at 
org.apache.xalan.transformer.TransformerImpl.transformNode(TransformerImpl.java:1171)
   at 
org.apache.xalan.transformer.TransformerImpl.run(TransformerImpl.java:3135)
   at java.lang.Thread.run(Thread.java:536)

Here is the start of the SVG element:

fo:block
   fo:instream-foreign-object height=480px width=640px
   svg fill-opacity=1 color-rendering=auto 
color-interpolation=auto stroke=black text-rendering=auto 
stroke-linecap=square width=640 stroke-miterlimit=10 
shape-rendering=auto stroke-opacity=1 fill=black 
stroke-dasharray=none font-weight=normal stroke-width=1 
height=480 font-family='sansserif' font-style=normal 
stroke-linejoin=miter font-size=12 stroke-dashoffset=0 
image-rendering=auto
defs id=genericDefs/
   g
   defs id=defs1
   clipPath clipPathUnits=userSpaceOnUse id=clipPath1
path d=M0 0 L640 0 L640 480 L0 480 L0 0 Z/
/clipPath
   clipPath 

Pass parameter to a transformer

2003-06-23 Thread Anna Afonchenko



Hi all.
I have written my own transformer, thatgets 
in an XML file as a parameter.
If I declare the parameter in the transformers 
bit:

map:transformer 
name="xsl5complete"src=""
 parameter name="xsl5" 
value="xsl5new.xml"/
/map:transformer

and then call it in the pipeline:
map:transform type="xsl5complete"/

it works fine.
But I wnat to pass the XMLfile name dynamically, and not 
when I declare the transformer, e.g.,
I want something like:

map:transformer 
name="xsl5complete"src=""/

map:transform type="xsl5complete"
 parameter name="xsl5" 
value="xsl5new.xml"/
/map:transform

But this doesn't work.
How can I pass a dynamic parameter to my transformer, and what am I doing 
wrong here?

Thank you very much for your help.

Anna




Re: Cocoon Build : deprecated block necessary ?

2003-06-23 Thread Olivier Billard
Thanks for your answer Geoff !

By squeeze, I thought brutaly delete the compile-tests depends clause 
in the compile targer, to avoid the problem. As I didn't get deep into 
this tests, I don't know what could depend on this.
But why is compile-tests not optional, as compile-deprecated ? No 
need for this ?

Thanks in advance...

Geoff Howard wrote:

Not sure what you mean by squeeze the depends clause, but the root
problem needs to get fixed.  It either means removing the tests for
deprecated items, or modifying the build to exclude deprecated tests
when deprecated is excluded (which means creating a deprecated test
directory somewhere and moving the offending items there) or, moving
the deprecated tests to their new home (because IIRC, the items have
not been truly deprecated but moved to excalibur??)
Patches or specific suggestions will be very welcome.

Geoff

At 08:31 AM 6/23/2003, you wrote:

Hi all,

I'm trying to build a mini-clean webapp, but the compile-tests 
target seems to depend on deprecated stuffs, as said in the comment 
of the build file.
What is the cleanest solution ? Is this target necessary to build the 
webapp, or not ?
Can I squeeze the depends clause of compile target ?

Thanks in advance !

--
Olivier Billard
Jouve SI
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



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


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


RE: Perplexing PDF SVG question

2003-06-23 Thread Schaper, Christoph
Just guessing: You are on Unix and you don't have the display variable set
when you run  cocoon? 
If this is the case, either point the display variable to your X environment
or, if you don't have one search in the cocoon docu for headless.


Christoph

-Original Message-
From: Irving Salisbury III [mailto:[EMAIL PROTECTED]
Sent: 23 June 2003 15:27
To: [EMAIL PROTECTED]
Subject: Perplexing PDF SVG question


I have embedded an SVG image into my xsl:fo document.  It renders fine 
when using command line fop.  However, when I put it in a cocoon 
pipeline, I am getting the following error:

ERROR   (2003-06-23) 08:02.42:903   [sitemap.serializer.fo2pdf.fop] 
(/medicaid/sequence/first/pdf) Thread-10/PDFRenderer: svg graphic could 
not be built: null
java.lang.NullPointerException
at java.net.URL.init(URL.java:366)
at java.net.URL.init(URL.java:329)
at java.net.URL.init(URL.java:321)
at java.net.URL.init(URL.java:252)
at java.net.URL.init(URL.java:275)
at org.apache.batik.util.ParsedURLData.buildURL(Unknown Source)
at org.apache.batik.util.ParsedURLData.openStreamInternal(Unknown 
Source)
at org.apache.batik.util.ParsedURLData.openStream(Unknown Source)
at org.apache.batik.util.ParsedURL.openStream(Unknown Source)
at 
org.apache.batik.dom.svg.SAXSVGDocumentFactory.createDocument(Unknown 
Source)
at org.apache.batik.bridge.DocumentLoader.loadDocument(Unknown Source)
at org.apache.batik.bridge.URIResolver.getNode(Unknown Source)
at org.apache.batik.bridge.URIResolver.getElement(Unknown Source)
at 
org.apache.batik.bridge.BridgeContext.getReferencedElement(Unknown Source)
at org.apache.batik.bridge.CSSUtilities.convertClipPath(Unknown Source)
at 
org.apache.batik.bridge.AbstractGraphicsNodeBridge.buildGraphicsNode(Unknown

Source)
at 
org.apache.batik.bridge.SVGShapeElementBridge.buildGraphicsNode(Unknown 
Source)
at org.apache.batik.bridge.GVTBuilder.buildGraphicsNode(Unknown Source)
at org.apache.batik.bridge.GVTBuilder.buildComposite(Unknown Source)
at org.apache.batik.bridge.GVTBuilder.buildGraphicsNode(Unknown Source)
at org.apache.batik.bridge.GVTBuilder.buildComposite(Unknown Source)
at org.apache.batik.bridge.GVTBuilder.buildGraphicsNode(Unknown Source)
at org.apache.batik.bridge.GVTBuilder.buildComposite(Unknown Source)
at org.apache.batik.bridge.GVTBuilder.build(Unknown Source)
at org.apache.fop.render.pdf.PDFRenderer.renderSVGDocument(Unknown 
Source)
at org.apache.fop.render.pdf.PDFRenderer.renderSVGArea(Unknown Source)
at org.apache.fop.svg.SVGArea.render(Unknown Source)
at 
org.apache.fop.render.pdf.PDFRenderer.renderForeignObjectArea(Unknown 
Source)
at org.apache.fop.layout.inline.ForeignObjectArea.render(Unknown Source)
at org.apache.fop.render.AbstractRenderer.renderLineArea(Unknown Source)
at org.apache.fop.layout.LineArea.render(Unknown Source)
at org.apache.fop.render.AbstractRenderer.renderBlockArea(Unknown 
Source)
at org.apache.fop.layout.BlockArea.render(Unknown Source)
at 
org.apache.fop.render.AbstractRenderer.renderAreaContainer(Unknown Source)
at org.apache.fop.layout.ColumnArea.render(Unknown Source)
at org.apache.fop.render.AbstractRenderer.renderSpanArea(Unknown Source)
at org.apache.fop.layout.SpanArea.render(Unknown Source)
at 
org.apache.fop.render.AbstractRenderer.renderBodyAreaContainer(Unknown 
Source)
at org.apache.fop.render.pdf.PDFRenderer.renderPage(Unknown Source)
at org.apache.fop.render.pdf.PDFRenderer.render(Unknown Source)
at org.apache.fop.apps.StreamRenderer.queuePage(Unknown Source)
at org.apache.fop.layout.AreaTree.addPage(Unknown Source)
at org.apache.fop.fo.pagination.PageSequence.format(Unknown Source)
at org.apache.fop.apps.StreamRenderer.render(Unknown Source)
at org.apache.fop.fo.FOTreeBuilder.endElement(Unknown Source)
at 
org.apache.cocoon.xml.AbstractXMLPipe.endElement(AbstractXMLPipe.java:147)
at 
org.apache.xalan.transformer.ResultTreeHandler.endElement(ResultTreeHandler.
java:307)
at 
org.apache.xalan.templates.ElemLiteralResult.execute(ElemLiteralResult.java:
684)
at 
org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(Transform
erImpl.java:2182)
at 
org.apache.xalan.templates.ElemLiteralResult.execute(ElemLiteralResult.java:
678)
at 
org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(Transform
erImpl.java:2182)
at 
org.apache.xalan.transformer.TransformerImpl.applyTemplateToNode(Transformer
Impl.java:2008)
at 
org.apache.xalan.transformer.TransformerImpl.transformNode(TransformerImpl.j
ava:1171)
at 
org.apache.xalan.transformer.TransformerImpl.run(TransformerImpl.java:3135)
at java.lang.Thread.run(Thread.java:536)

Here is the start of the SVG element:

fo:block
fo:instream-foreign-object height=480px width=640px
svg fill-opacity=1 color-rendering=auto 
color-interpolation=auto 

Re: Perplexing PDF SVG question

2003-06-23 Thread Irving Salisbury III
I am on windows XP using cocoon-2.0.4.  I understand the headless issue 
and that is not my problem. 

On the same box, I use the same version of fop (0.20.4), and the command 
line fop.bat file renders it perfectly.  Running inisde cocoon gives me 
the error that I outlined below.

Irv

Schaper, Christoph wrote:

Just guessing: You are on Unix and you don't have the display variable set
when you run  cocoon? 
If this is the case, either point the display variable to your X environment
or, if you don't have one search in the cocoon docu for headless.

Christoph

-Original Message-
From: Irving Salisbury III [mailto:[EMAIL PROTECTED]
Sent: 23 June 2003 15:27
To: [EMAIL PROTECTED]
Subject: Perplexing PDF SVG question
I have embedded an SVG image into my xsl:fo document.  It renders fine 
when using command line fop.  However, when I put it in a cocoon 
pipeline, I am getting the following error:

ERROR   (2003-06-23) 08:02.42:903   [sitemap.serializer.fo2pdf.fop] 
(/medicaid/sequence/first/pdf) Thread-10/PDFRenderer: svg graphic could 
not be built: null
java.lang.NullPointerException
   at java.net.URL.init(URL.java:366)
   at java.net.URL.init(URL.java:329)
   at java.net.URL.init(URL.java:321)
   at java.net.URL.init(URL.java:252)
   at java.net.URL.init(URL.java:275)
   at org.apache.batik.util.ParsedURLData.buildURL(Unknown Source)
   at org.apache.batik.util.ParsedURLData.openStreamInternal(Unknown 
Source)
   at org.apache.batik.util.ParsedURLData.openStream(Unknown Source)
   at org.apache.batik.util.ParsedURL.openStream(Unknown Source)
   at 
org.apache.batik.dom.svg.SAXSVGDocumentFactory.createDocument(Unknown 
Source)
   at org.apache.batik.bridge.DocumentLoader.loadDocument(Unknown Source)
   at org.apache.batik.bridge.URIResolver.getNode(Unknown Source)
   at org.apache.batik.bridge.URIResolver.getElement(Unknown Source)
   at 
org.apache.batik.bridge.BridgeContext.getReferencedElement(Unknown Source)
   at org.apache.batik.bridge.CSSUtilities.convertClipPath(Unknown Source)
   at 
org.apache.batik.bridge.AbstractGraphicsNodeBridge.buildGraphicsNode(Unknown

Source)
   at 
org.apache.batik.bridge.SVGShapeElementBridge.buildGraphicsNode(Unknown 
Source)
   at org.apache.batik.bridge.GVTBuilder.buildGraphicsNode(Unknown Source)
   at org.apache.batik.bridge.GVTBuilder.buildComposite(Unknown Source)
   at org.apache.batik.bridge.GVTBuilder.buildGraphicsNode(Unknown Source)
   at org.apache.batik.bridge.GVTBuilder.buildComposite(Unknown Source)
   at org.apache.batik.bridge.GVTBuilder.buildGraphicsNode(Unknown Source)
   at org.apache.batik.bridge.GVTBuilder.buildComposite(Unknown Source)
   at org.apache.batik.bridge.GVTBuilder.build(Unknown Source)
   at org.apache.fop.render.pdf.PDFRenderer.renderSVGDocument(Unknown 
Source)
   at org.apache.fop.render.pdf.PDFRenderer.renderSVGArea(Unknown Source)
   at org.apache.fop.svg.SVGArea.render(Unknown Source)
   at 
org.apache.fop.render.pdf.PDFRenderer.renderForeignObjectArea(Unknown 
Source)
   at org.apache.fop.layout.inline.ForeignObjectArea.render(Unknown Source)
   at org.apache.fop.render.AbstractRenderer.renderLineArea(Unknown Source)
   at org.apache.fop.layout.LineArea.render(Unknown Source)
   at org.apache.fop.render.AbstractRenderer.renderBlockArea(Unknown 
Source)
   at org.apache.fop.layout.BlockArea.render(Unknown Source)
   at 
org.apache.fop.render.AbstractRenderer.renderAreaContainer(Unknown Source)
   at org.apache.fop.layout.ColumnArea.render(Unknown Source)
   at org.apache.fop.render.AbstractRenderer.renderSpanArea(Unknown Source)
   at org.apache.fop.layout.SpanArea.render(Unknown Source)
   at 
org.apache.fop.render.AbstractRenderer.renderBodyAreaContainer(Unknown 
Source)
   at org.apache.fop.render.pdf.PDFRenderer.renderPage(Unknown Source)
   at org.apache.fop.render.pdf.PDFRenderer.render(Unknown Source)
   at org.apache.fop.apps.StreamRenderer.queuePage(Unknown Source)
   at org.apache.fop.layout.AreaTree.addPage(Unknown Source)
   at org.apache.fop.fo.pagination.PageSequence.format(Unknown Source)
   at org.apache.fop.apps.StreamRenderer.render(Unknown Source)
   at org.apache.fop.fo.FOTreeBuilder.endElement(Unknown Source)
   at 
org.apache.cocoon.xml.AbstractXMLPipe.endElement(AbstractXMLPipe.java:147)
   at 
org.apache.xalan.transformer.ResultTreeHandler.endElement(ResultTreeHandler.
java:307)
   at 
org.apache.xalan.templates.ElemLiteralResult.execute(ElemLiteralResult.java:
684)
   at 
org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(Transform
erImpl.java:2182)
   at 
org.apache.xalan.templates.ElemLiteralResult.execute(ElemLiteralResult.java:
678)
   at 
org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(Transform
erImpl.java:2182)
   at 
org.apache.xalan.transformer.TransformerImpl.applyTemplateToNode(Transformer
Impl.java:2008)
   at 
org.apache.xalan.transformer.TransformerImpl.transformNode(TransformerImpl.j
ava:1171)
   at 

Re: Perplexing PDF SVG question

2003-06-23 Thread Torsten Spindler
On Mon, 2003-06-23 at 15:27, Irving Salisbury III wrote:
 ERROR   (2003-06-23) 08:02.42:903   [sitemap.serializer.fo2pdf.fop] 
 (/medicaid/sequence/first/pdf) Thread-10/PDFRenderer: svg graphic could 
 not be built: null

If you use batik for rendering SVGs you need an X-Server running or Java
configured to run headless (java.awt.headless=true). As the latter may
introduce some problems (according to
http://wiki.cocoondev.org/Wiki.jsp?page=Cocoon2.1m2SetupLinuxredhat8.0) 

I start Xvfb from a start script (on RedHat 7.3):

export DISPLAY=:1
if [ ! -f /tmp/.X1-lock ]; then
/usr/X11R6/bin/Xvfb $DISPLAY -screen 0 800x600x8 
else
echo X-Server already running
fi

Bye,
Torsten


signature.asc
Description: This is a digitally signed message part


Re: Cocoon Build : deprecated block necessary ?

2003-06-23 Thread Geoff Howard
Well, I think that compiling and running the tests is not optional because
if something is failing a unit test, you'd want to know.  However, the present
problem is not a real problem but a fake one!  My understanding is that
it's just a problem of the real package having moved without its tests.
If you get a chance to look into where these things should go, let me know.
Someone will be looking at it - perhaps even me - eventually.  It's going
to get more important once beta stage hits real soon now.
For now, if you want to hack out the test stuff, it won't cause harm.  You
could also remove the specific offending tests (I don't even know which 
ones they are) and leave the depends target alone.

Geoff

At 09:31 AM 6/23/2003, you wrote:
Thanks for your answer Geoff !

By squeeze, I thought brutaly delete the compile-tests depends clause 
in the compile targer, to avoid the problem. As I didn't get deep into 
this tests, I don't know what could depend on this.
But why is compile-tests not optional, as compile-deprecated ? No need 
for this ?

Thanks in advance...

Geoff Howard wrote:

Not sure what you mean by squeeze the depends clause, but the root
problem needs to get fixed.  It either means removing the tests for
deprecated items, or modifying the build to exclude deprecated tests
when deprecated is excluded (which means creating a deprecated test
directory somewhere and moving the offending items there) or, moving
the deprecated tests to their new home (because IIRC, the items have
not been truly deprecated but moved to excalibur??)
Patches or specific suggestions will be very welcome.

Geoff

At 08:31 AM 6/23/2003, you wrote:

Hi all,

I'm trying to build a mini-clean webapp, but the compile-tests target 
seems to depend on deprecated stuffs, as said in the comment of the build file.
What is the cleanest solution ? Is this target necessary to build the 
webapp, or not ?
Can I squeeze the depends clause of compile target ?

Thanks in advance !

--
Olivier Billard
Jouve SI
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


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


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



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


Re: Perplexing PDF SVG question

2003-06-23 Thread Irving Salisbury III




I am running this on windows XP. Do I still need to do this?

Irv

Torsten Spindler wrote:

  On Mon, 2003-06-23 at 15:27, Irving Salisbury III wrote:
  
  
ERROR   (2003-06-23) 08:02.42:903   [sitemap.serializer.fo2pdf.fop] 
(/medicaid/sequence/first/pdf) Thread-10/PDFRenderer: svg graphic could 
not be built: null

  
  
If you use batik for rendering SVGs you need an X-Server running or Java
configured to run headless (java.awt.headless=true). As the latter may
introduce some problems (according to
http://wiki.cocoondev.org/Wiki.jsp?page=Cocoon2.1m2SetupLinuxredhat8.0) 

I start Xvfb from a start script (on RedHat 7.3):

export DISPLAY=:1
if [ ! -f /tmp/.X1-lock ]; then
/usr/X11R6/bin/Xvfb $DISPLAY -screen 0 800x600x8 
else
echo "X-Server already running"
fi

Bye,
Torsten
  





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



Re: Cocoon Build : deprecated block necessary ?

2003-06-23 Thread Olivier Billard
Ok thanks Geoff

I'll let you know if I get into a clean patch.
Thanks again !
Geoff Howard wrote:

Well, I think that compiling and running the tests is not optional because
if something is failing a unit test, you'd want to know.  However, the 
present
problem is not a real problem but a fake one!  My understanding is that
it's just a problem of the real package having moved without its tests.

If you get a chance to look into where these things should go, let me know.
Someone will be looking at it - perhaps even me - eventually.  It's going
to get more important once beta stage hits real soon now.
For now, if you want to hack out the test stuff, it won't cause harm.  You
could also remove the specific offending tests (I don't even know which 
ones they are) and leave the depends target alone.

Geoff

At 09:31 AM 6/23/2003, you wrote:

Thanks for your answer Geoff !

By squeeze, I thought brutaly delete the compile-tests depends 
clause in the compile targer, to avoid the problem. As I didn't get 
deep into this tests, I don't know what could depend on this.
But why is compile-tests not optional, as compile-deprecated ? No 
need for this ?

Thanks in advance...

Geoff Howard wrote:

Not sure what you mean by squeeze the depends clause, but the root
problem needs to get fixed.  It either means removing the tests for
deprecated items, or modifying the build to exclude deprecated tests
when deprecated is excluded (which means creating a deprecated test
directory somewhere and moving the offending items there) or, moving
the deprecated tests to their new home (because IIRC, the items have
not been truly deprecated but moved to excalibur??)
Patches or specific suggestions will be very welcome.

Geoff

At 08:31 AM 6/23/2003, you wrote:

Hi all,

I'm trying to build a mini-clean webapp, but the compile-tests 
target seems to depend on deprecated stuffs, as said in the comment 
of the build file.
What is the cleanest solution ? Is this target necessary to build 
the webapp, or not ?
Can I squeeze the depends clause of compile target ?

Thanks in advance !

--
Olivier Billard
Jouve SI
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


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




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



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




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


Re: File Uploads

2003-06-23 Thread Alexander Schatten
juliane ndje wrote:

hi geoff,
i've seen the wiki pages and also the FileUploadAction in the 
Developer's Handbook (Moczar/Aston). my problem is that i don't want 
to put all the files into one directory but put them into the 
directory named after a project that is to be choosen in a select 
field (is that understandable?). there is a directory for every 
project and the file belongs to exactly one project. therefore the way 
suggested by alexander seemed quite appealing to me.
btw i need this for an app written in 2.0.4
thanx juliane
My solution is basically working like this:

(1) set the parameters in the web.xml (I guess), so that file uploads 
are automatically accepted and enter the path where they should be put to.

(2) I have a form, where you may enter data of a publication (author, 
title, ...) plus a pdf document.

(3) the following xsp gets the pdf filename adds some timestamp to 
ensure, that the filename is unique, than creates a SQL insert and 
inserts the metainformation including filename into the database, then 
moves the PDF from the general incoming directory to the desired pdf 
directory:

so this is the xsp. maybe it is helpful for you.

?xml version=1.0 encoding=iso-8859-1?
xsp:page
   xmlns:xsp=http://apache.org/xsp;
   xmlns:esql=http://apache.org/cocoon/SQL/v2;
   xmlns:xsp-request=http://apache.org/xsp/request/2.0;
   xmlns:xsp-session=http://apache.org/xsp/session/2.0;
   language=java 
   xsp:structure
   xsp:includejava.io.*/xsp:include
   /xsp:structure
  
   response
   xsp:logic
   !-- read post parameters --
   String author= xsp-request:get-parameter name=author/;
   String title = xsp-request:get-parameter name=title/;
   String citation  = xsp-request:get-parameter 
name=citation/;
   String category  = xsp-request:get-parameter name=category/;
   String pdf   = xsp-request:get-parameter name=pdf/;
   String pdfpath   = (String)session.getAttribute(pdfpath);
   !-- extract only filename and drop path --
   !-- add timestamp to filename to make it unique --
   String pdf_fn = ;
   boolean pdfexists = false;
   if ((pdf!=null) amp;amp; (pdf.length()1) ) {
   int lastPath = pdf.lastIndexOf(File.separator)+1;
   pdf_fn =  + System.currentTimeMillis() + - + 
pdf.substring(lastPath);
   pdfexists = true;
   }
   !-- build SQL INSERT statement for mySQL --
   String sql = (author,title,citation,category,pdf) VALUES 
(' + author + ', ' + title + ', ' + citation + ', ' + category + 
', ' + pdf_fn + ');   
  
   !-- copy file to correct directory and delete from incoming --
   if (pdfexists) {
   String targetFilename = pdfpath + / + pdf_fn;
   File from = new File(pdf);
   File to  = new File(targetFilename);
   from.renameTo(to);
   }

   /xsp:logic
  
   !-- this part is performed if the data is correct --
 
   esql:connection
   esql:poolhermesdb/esql:pool
   esql:execute-query
   esql:queryINSERT INTO citation 
xsp:exprsql/xsp:expr/esql:query
   esql:error-resultsdatabase_error //esql:error-results
   /esql:execute-query
   /esql:connection
   ok /  

   /response

/xsp:page

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


Batik 1.5b4

2003-06-23 Thread Irving Salisbury III
The problem I sent out earlier seems to be a problem with the url( # ) 
functionality of batik.  Supposedly this is fixed in batik 1.5b4.  Has 
anyone built a batik1.5b4 jar file?  It looks like the cocoon 
distribution bundles all the batik files together.  Or, can someone tell 
me how to build the batik jar file? Has anyone also tested out batik 
1.5b4 with cocoon 2.0.4? 

Thanks for any info.

Irv

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


Re: Perplexing PDF SVG question

2003-06-23 Thread J.Pietschmann
Irving Salisbury III wrote:

I have embedded an SVG image into my xsl:fo document.  It renders fine 
when using command line fop.  However, when I put it in a cocoon 
pipeline, I am getting the following error:

ERROR   (2003-06-23) 08:02.42:903   [sitemap.serializer.fo2pdf.fop] 
...
java.lang.NullPointerException
   at java.net.URL.init(URL.java:366)
...
   at org.apache.batik.util.ParsedURLData.buildURL(Unknown Source)
You seem to have an internal reference like gradient id=#foo
in an inlined SVG. Don't do this, it wont work. And no, strictly
spoken this is not even a bug. Either reference the SVG as external
graphic, or use a full absolute URL to an external URL for the
reference.
J.Pietschmann



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


Re: Perplexing PDF SVG question

2003-06-23 Thread Irving Salisbury III
I am using a third partly library that does things like  url( 
#someReference), so I can't get around it. 

Why is this not a bug, it seems like something that should be supported, 
and batik even has a bug fix in 1.5b4 (that happens to break the library 
code for me)

Irv

J.Pietschmann wrote:

Irving Salisbury III wrote:

I have embedded an SVG image into my xsl:fo document.  It renders 
fine when using command line fop.  However, when I put it in a cocoon 
pipeline, I am getting the following error:

ERROR   (2003-06-23) 08:02.42:903   [sitemap.serializer.fo2pdf.fop] 
...

java.lang.NullPointerException
   at java.net.URL.init(URL.java:366)
...

   at org.apache.batik.util.ParsedURLData.buildURL(Unknown Source)


You seem to have an internal reference like gradient id=#foo
in an inlined SVG. Don't do this, it wont work. And no, strictly
spoken this is not even a bug. Either reference the SVG as external
graphic, or use a full absolute URL to an external URL for the
reference.
J.Pietschmann



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


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


Re: Pass parameter to a transformer

2003-06-23 Thread Upayavira
Why don't you use the src attribute to pass in the XML file, much as any other 
transformer? Then you'd have a lot of transformers available to look at for code 
samples.

Regards, Upayavira

On 23 Jun 2003 at 16:25, Anna Afonchenko wrote:

 Hi all.
 I have written my own transformer, that gets in an XML file as a
 parameter. If I declare the parameter in the transformers bit:
 
 map:transformer name=xsl5complete
 src=com.ubaccess.xsl5.cocoon.XSL5Transformer
 parameter name=xsl5 value=xsl5new.xml/
 /map:transformer
 
 and then call it in the pipeline:
 map:transform type=xsl5complete/
 
 it works fine.
 But I wnat to pass the XMLfile name dynamically, and not when I
 declare the transformer, e.g., I want something like:
 
 map:transformer name=xsl5complete
 src=com.ubaccess.xsl5.cocoon.XSL5Transformer/
 
 map:transform type=xsl5complete
 parameter name=xsl5 value=xsl5new.xml/
 /map:transform
 
 But this doesn't work.
 How can I pass a dynamic parameter to my transformer, and what am I
 doing wrong here?
 
 Thank you very much for your help.
 
 Anna
 
 



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



Re: Perplexing PDF SVG question

2003-06-23 Thread J.Pietschmann
Irving Salisbury III wrote:

I am using a third partly library that does things like  url( 
#someReference), so I can't get around it.
Why is this not a bug, it seems like something that should be supported, 
and batik even has a bug fix in 1.5b4 (that happens to break the library 
code for me)
Both the SVG and FO spec avoid even talking on how url(#stuff) should
be interpreted if the SVG is embedded in a FO document. Actually,
the whole semantic of embedded content is processor dependent, in
other words we could do what we see fit. Therefore, as I said, this
is spec conformant, read: no bug. I agree that it violates user
assumptions on how the whole mess ought to be resolved. There are a
few hurdles on the way which prevent simple fixes on the FOP side
though.
J.Pietschmann



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


Re: Perplexing PDF SVG question

2003-06-23 Thread Irving Salisbury III
Thanks for the info.  I will go down another path with this. 

Irv

J.Pietschmann wrote:

Irving Salisbury III wrote:

I am using a third partly library that does things like  url( 
#someReference), so I can't get around it.
Why is this not a bug, it seems like something that should be 
supported, and batik even has a bug fix in 1.5b4 (that happens to 
break the library code for me)


Both the SVG and FO spec avoid even talking on how url(#stuff) should
be interpreted if the SVG is embedded in a FO document. Actually,
the whole semantic of embedded content is processor dependent, in
other words we could do what we see fit. Therefore, as I said, this
is spec conformant, read: no bug. I agree that it violates user
assumptions on how the whole mess ought to be resolved. There are a
few hurdles on the way which prevent simple fixes on the FOP side
though.
J.Pietschmann



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


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


RE: Pls help! not working response.encodeURL(String.valueOf(xsl:copy-of select=$href/))

2003-06-23 Thread a000
I have extracted the relevant information into a small-scale example. As
follows I include the logicsheet, the stacktrace and the generated Java file.
I'd hope that somebody can give me a hint.

Regards,

Harry


Logicsheet: Test.htm.xsp.xsl


?xml version=1.0 encoding=ISO-8859-1?
xsp:page language=java
  xmlns:xsp=http://apache.org/xsp;
  xmlns:xsp-request=http://apache.org/xsp/request/2.0;
  xmlns:xsl=http://www.w3.org/1999/XSL/Transform;
  xmlns:cinclude=http://apache.org/cocoon/include/1.0;


xsl:stylesheet version=1.0

xsp:logic
  System.out.println();
  System.out.println(calling Test.htm.xsp.xsl:);
/xsp:logic


 xsl:variable name=curSel
   xsp:attribute
name=select'xsp:exprInteger.MIN_VALUE/xsp:expr'/xsp:attribute
 /xsl:variable

  xsl:template match=/

  a
  xsp:attribute name=href
xsp:expr
  response.encodeURL(String.valueOf(xsl:copy-of
select=$curSel/))
/xsp:expr
  /xsp:attribute
  xsl:value-of select=$curSel /
  /a


/xsl:template

xsl:template match=@*|node() priority=-1
xsl:copy
  xsl:apply-templates select=@*|node()/
/xsl:copy
  /xsl:template


/xsl:stylesheet

/xsp:page


Original exception :
org.apache.cocoon.components.language.LanguageException: Error compiling 
Test_htm_xsp_xsl:
Line 0, column 0: could not parse error message: Note: sun.tools.javac.Main
has been
deprecated.
D:\prj\_UIDL_EXAMPLE\Tomcat\work\demo\cocoon-files\org\apache\cocoon\www\button\Test_htm_xsp_xsl.java:139:
 No method matching valueOf() found in class
java.lang.String.
String.valueOf(response.encodeURL(String.valueOf())) + \n  + );
^

Line 0, column 0: 
1 error, 1 warning

at
org.apache.cocoon.components.language.programming.java.JavaLanguage.compile(JavaLanguage.java:205)
 
at
org.apache.cocoon.components.language.programming.CompiledProgrammingLanguage.load(CompiledProgrammingLanguage.java:140)
 
at
org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.generateResource(ProgramGeneratorImpl.java:332)
 
at
org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.createResource(ProgramGeneratorImpl.java:282)
 
at
org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.load(ProgramGeneratorImpl.java:231)
 
at
org.apache.cocoon.generation.ServerPagesGenerator.setup(ServerPagesGenerator.java:168) 
at
org.apache.cocoon.components.pipeline.AbstractEventPipeline.setupPipeline(AbstractEventPipeline.java:154)
 
at
org.apache.cocoon.components.pipeline.CachingEventPipeline.setup(CachingEventPipeline.java:238)
 
at
org.apache.cocoon.components.pipeline.CachingEventPipeline.generateKey(CachingEventPipeline.java:99)
 
at
org.apache.cocoon.components.source.SitemapSource.refresh(SitemapSource.java:240) 
at
org.apache.cocoon.components.source.SitemapSource.init(SitemapSource.java:152) 
at
org.apache.cocoon.components.source.CocoonSourceFactory.getSource(CocoonSourceFactory.java:54)
 
at
org.apache.cocoon.components.source.SourceHandlerImpl.getSource(SourceHandlerImpl.java:134)
 
at
org.apache.cocoon.environment.AbstractEnvironment.resolve(AbstractEnvironment.java:293)
 
at
org.apache.cocoon.transformation.TraxTransformer.setup(TraxTransformer.java:254) 
at
org.apache.cocoon.components.pipeline.AbstractEventPipeline.setupPipeline(AbstractEventPipeline.java:167)
 
at
org.apache.cocoon.components.pipeline.CachingEventPipeline.setup(CachingEventPipeline.java:238)
 
at
org.apache.cocoon.components.pipeline.CachingEventPipeline.generateKey(CachingEventPipeline.java:99)
 
at
org.apache.cocoon.components.pipeline.CachingStreamPipeline.process(CachingStreamPipeline.java:276)
 
at
org.apache.cocoon.www.button.sitemap_xmap.matchN10040(sitemap_xmap.java:829) 
at org.apache.cocoon.www.button.sitemap_xmap.process(sitemap_xmap.java:414) 
at org.apache.cocoon.www.button.sitemap_xmap.process(sitemap_xmap.java:320) 
at org.apache.cocoon.sitemap.Handler.process(Handler.java:180) 
at org.apache.cocoon.sitemap.Manager.invoke(Manager.java:127) 
at org.apache.cocoon.www.sitemap_xmap.matchN4002FA(sitemap_xmap.java:4517) 
at org.apache.cocoon.www.sitemap_xmap.process(sitemap_xmap.java:2850) 
at org.apache.cocoon.www.sitemap_xmap.process(sitemap_xmap.java:2563) 
at org.apache.cocoon.sitemap.Handler.process(Handler.java:180) 
at org.apache.cocoon.sitemap.Manager.invoke(Manager.java:127) 
at org.apache.cocoon.sitemap.SitemapManager.process(SitemapManager.java:144)

at org.apache.cocoon.Cocoon.process(Cocoon.java:582) 
at org.apache.cocoon.servlet.CocoonServlet.service(CocoonServlet.java:795) 
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) 
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
 
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
 
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:243) 
at

Problem integrating NT Tomcat 4.1.24 2.1.m2 (xerces?, forrest)

2003-06-23 Thread Arthur Allen
I have been using Forrest of late, which succesfully integrated with 2.1m2. 
I was
able to bring it up on tomcat 4.1.24 on NT. As I try to use more and more of 
cocoon
I thought it might be best for me to integrate with the base 2.1m2 in lieu 
of the
minimal version used by forrest.

I have had nothing but problems. These are identical to the ones reported by 
others (blank screen,
problems trace logs pointing to xexces  jar version consistency between
common/endorsed and WEB-INF/lib), and I have done everything that was 
suggested (including
reinstallation of tomcat to a path that does not have spaces, etc...),  to 
no avail.

Does anyone have any insight into this problem? It looks like a jar hell 
type
situation. What did Forrest do to make it work?

Below is the non-blank version of the screen which comes up when I replicate
the contents of common/endorsed (i.e. xalan-20030506.jar, 
xercesImpl-2.4.0.jar, xml-apis.jar 
xmlParserAPIs.jar) into WEB-INF/lib .

Thanks in advance, Arthur

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

exception

javax.servlet.ServletException: Servlet.init() for servlet Cocoon threw 
exception
	at 
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:963)
	at 
org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:668)
	at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:210)
	at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
	at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
	at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
	at 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
	at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
	at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
	at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
	at 
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2415)
	at 
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
	at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
	at 
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:171)
	at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
	at 
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172)
	at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
	at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
	at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
	at 
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
	at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
	at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
	at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
	at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:223)
	at 
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:594)
	at 
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:392)
	at 
org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:565)
	at 
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:619)
	at java.lang.Thread.run(Thread.java:536)

root cause

java.lang.VerifyError: (class: 
org/apache/xerces/parsers/IntegratedParserConfiguration, method: 
configurePipeline signature: ()V) Incompatible type for getting or setting 
field
	at java.lang.Class.getDeclaredConstructors0(Native Method)
	at java.lang.Class.privateGetDeclaredConstructors(Class.java:1590)
	at java.lang.Class.getConstructor0(Class.java:1762)
	at java.lang.Class.newInstance0(Class.java:276)
	at java.lang.Class.newInstance(Class.java:259)
	at org.apache.xerces.util.ObjectFactory.newInstance(ObjectFactory.java:296)
	at 
org.apache.xerces.util.ObjectFactory.createObject(ObjectFactory.java:224)
	at 
org.apache.xerces.util.ObjectFactory.createObject(ObjectFactory.java:119)
	at org.apache.xerces.parsers.SAXParser.(SAXParser.java:95)
	at org.apache.xerces.jaxp.SAXParserImpl.(SAXParserImpl.java:101)
	at 
org.apache.xerces.jaxp.SAXParserFactoryImpl.newSAXParser(SAXParserFactoryImpl.java:95)
	at 
org.apache.avalon.framework.configuration.DefaultConfigurationBuilder.(DefaultConfigurationBuilder.java:142)
	at 
org.apache.avalon.framework.configuration.DefaultConfigurationBuilder.(DefaultConfigurationBuilder.java:118)
	at 
org.apache.cocoon.servlet.CocoonServlet.initLogger(CocoonServlet.java:883)
	at 

sendMail sample not working for Cocoon2.1M2...

2003-06-23 Thread Yan, Charlene
I'm using Cocoon2.1M2.  I tried to run sample at 
http://localhost:8080/cocoon/samples/mail/sendmail/new.html.  It failed.  I didn't get 
any emails sent.  The mailing archive indicated to me that mail.jar and activation.jar 
should be in $tomcat/Webapps/WEB-INF/lib.  So I copied those two jars to the dir.  I 
also tested my local SMTP server using another java web appication which has mailhost 
as localhost and the email was sent successfully.  I restarted tomcat and the mail 
sample still didn't work.  I tried all three: sendMail, sendMailAction and logicsheet. 
 I also set the log-level to debug for sitemap in logkit.xconf file (see below)

category log-level=DEBUG name=sitemap
  log-target id-ref=sitemap/
  log-target id-ref=error/
/category
It did not give me much useful info (see below).

Do I have to rebuild Cocoon if I want to run sendMail sample?  Are there any ways to 
detect why it is not working?

Thanks in advance for any ideas!

Charlene


Current Sitemap Parameters:
LEVEL 2
PARAM: 'target' VALUE: 'form.xml'
PARAM: 'remove' VALUE: 'new.html'
LEVEL 1
PARAM: '../1' VALUE: 'new.html'
PARAM: '../0' VALUE: 'new.html'

DEBUG   (2003-06-23) 17:07.18:169   [sitemap] (/cocoon/samples/mail/sendmail/new.html) 
HttpProcessor[8080][4]/ResourceLimitingPool: Got a 
org.apache.cocoon.components.pipeline.impl.CachingProcessingPipeline from the pool.
DEBUG   (2003-06-23) 17:07.18:179   [sitemap] (/cocoon/samples/mail/sendmail/new.html) 
HttpProcessor[8080][4]/ExcaliburComponentSelector: generators: ComponentSelector could 
not find the component for hint [serverpages]
DEBUG   (2003-06-23) 17:07.18:179   [sitemap] (/cocoon/samples/mail/sendmail/new.html) 
HttpProcessor[8080][4]/ExcaliburComponentSelector: generators: ComponentSelector could 
not find the component for hint [serverpages]
DEBUG   (2003-06-23) 17:07.18:179   [sitemap] (/cocoon/samples/mail/sendmail/new.html) 
HttpProcessor[8080][4]/ExcaliburComponentSelector: generators: ComponentSelector could 
not find the component for hint [serverpages]
DEBUG   (2003-06-23) 17:07.18:179   [sitemap] (/cocoon/samples/mail/sendmail/new.html) 
HttpProcessor[8080][4]/ResourceLimitingPool: Got a 
org.apache.cocoon.generation.ServerPagesGenerator from the pool.
DEBUG   (2003-06-23) 17:07.18:189   [sitemap] (/cocoon/samples/mail/sendmail/new.html) 
HttpProcessor[8080][4]/ExcaliburComponentSelector: transformers: ComponentSelector 
could not find the component for hint [xslt]
DEBUG   (2003-06-23) 17:07.18:189   [sitemap] (/cocoon/samples/mail/sendmail/new.html) 
HttpProcessor[8080][4]/ExcaliburComponentSelector: transformers: ComponentSelector 
could not find the component for hint [xslt]
DEBUG   (2003-06-23) 17:07.18:199   [sitemap] (/cocoon/samples/mail/sendmail/new.html) 
HttpProcessor[8080][4]/ExcaliburComponentSelector: transformers: ComponentSelector 
could not find the component for hint [xslt]
DEBUG   (2003-06-23) 17:07.18:199   [sitemap] (/cocoon/samples/mail/sendmail/new.html) 
HttpProcessor[8080][4]/ResourceLimitingPool: Got a 
org.apache.cocoon.transformation.TraxTransformer from the pool.
DEBUG   (2003-06-23) 17:07.18:199   [sitemap] (/cocoon/samples/mail/sendmail/new.html) 
HttpProcessor[8080][4]/ResourceLimitingPool: Got a 
org.apache.cocoon.transformation.SimpleFormTransformer from the pool.
DEBUG   (2003-06-23) 17:07.18:199   [sitemap] (/cocoon/samples/mail/sendmail/new.html) 
HttpProcessor[8080][4]/ExcaliburComponentSelector: serializers: ComponentSelector 
could not find the component for hint [html]
DEBUG   (2003-06-23) 17:07.18:199   [sitemap] (/cocoon/samples/mail/sendmail/new.html) 
HttpProcessor[8080][4]/ExcaliburComponentSelector: serializers: ComponentSelector 
could not find the component for hint [html]
DEBUG   (2003-06-23) 17:07.18:199   [sitemap] (/cocoon/samples/mail/sendmail/new.html) 
HttpProcessor[8080][4]/ExcaliburComponentSelector: serializers: ComponentSelector 
could not find the component for hint [html]
DEBUG   (2003-06-23) 17:07.18:199   [sitemap] (/cocoon/samples/mail/sendmail/new.html) 
HttpProcessor[8080][4]/ResourceLimitingPool: Got a 
org.apache.cocoon.serialization.HTMLSerializer from the pool.
DEBUG   (2003-06-23) 17:07.18:209   [sitemap.transformer.xslt] 
(/cocoon/samples/mail/sendmail/new.html) HttpProcessor[8080][4]/TraxTransformer: Using 
stylesheet: 
'file:/C:/jakarta-tomcat-4.0.5/webapps/cocoon/samples/common/style/xsl/html/simple-page2html.xsl'
 in [EMAIL PROTECTED]
DEBUG   (2003-06-23) 17:07.18:359   [sitemap] (/cocoon/samples/mail/sendmail/new.html) 
HttpProcessor[8080][4]/AbstractCachingProcessingPipeline: Cached response not found 
for 'new.html' using key: 
PK_G-serverpages-file:/C:/jakarta-tomcat-4.0.5/webapps/cocoon/samples/mail/sendmail/form.xml_T-xslt-file:/C:/jakarta-tomcat-4.0.5/webapps/cocoon/samples/common/style/xsl/html/simple-page2html.xsl;remove=new.html;contextPath=/cocoon;file=form.xml;servletPath=/samples/mail/sendmail/new.html;sitemapURI=new.html
DEBUG   (2003-06-23) 17:07.18:359   

esql:query problem

2003-06-23 Thread Tim Bachta
I am attempting to call a stored procedure using esql:query.  Other
stored procedures work using this so it is not a connection issue.  I
have narrowed down the issue to being the procedure itself.  I am
selecting data and inserting it into a temp table then selecting more
data and joining the two data sets.  I need to use the temp tables there
is no way around it.  The problem is the stored procedure will not
return a result set in cocoon because it sees the insert statement then
stops thinking there is not a result set.  My code from my xsp is below,
if anyone has any information about why this does not work it would be
greatly appreciated.  Thank you

 

 

Tim Bachta

 

esql:execute-query

 esql:query

execute a_joe
'xsp:exprroom/xsp:expr','xsp:exprbeginTime/xsp:expr','xsp:expr
endTime/xsp:expr'

 /esql:query

 esql:results

task-dates

   esql:row-results

  task-date

date

 
esql:get-string column=1/

/date

 

   

 /task-date

 

   /esql:row-results

/task-dates

 /esql:results

 

   /esql:execute-query

 


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



SQL Transformer/Resin broken?

2003-06-23 Thread Ed Yavno
Hi All,

I'm having problems trying to use something under Caucho Resin that works perfectly 
fine under Tomcat:
SQL Transformer in Cocoon 2.0.4 deployed under Resin 2.1.8/10(same result) trying to 
query Oracle 8i.

Both Tomcat 4.0.6 and Resin 2.1.8 use the exact same settings (see below: web.xml, 
cocoon.xconf, sitemap.xmap, generator source), yet Tomcat is able to connect and query 
the database, but Resin generates the error with the following stack trace:

java.lang.IllegalStateException: can't clear response after writing headers
at com.caucho.server.http.ResponseStream.clear(ResponseStream.java:209)
at com.caucho.server.http.Response.reset(Response.java:1272)
at com.caucho.server.http.Response.reset(Response.java:1254)
at org.apache.cocoon.servlet.CocoonServlet.service(CocoonServlet.java:1079)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:103)
at 
com.caucho.server.http.FilterChainServlet.doFilter(FilterChainServlet.java:96)
at com.caucho.server.http.Invocation.service(Invocation.java:315)
at com.caucho.server.http.CacheInvocation.service(CacheInvocation.java:135)
at com.caucho.server.http.HttpRequest.handleRequest(HttpRequest.java:246)
at com.caucho.server.http.HttpRequest.handleConnection(HttpRequest.java:163)
at com.caucho.server.TcpConnection.run(TcpConnection.java:139)
at java.lang.Thread.run(Thread.java:536)


What interesting is that the SQL transformer sample that comes with Cocoon 
distribution and uses HSQL database is working fine with Resin, but not with Oracle.

I would appreciate any ideas/suggestions on how this can be resolved. 
I've started looking through SQLTransformer source code, but don't see anything that 
can cause the above error.

Thanks,
- Ed Y. 


Configs:


web.xml,
in
init-param
  param-nameload-class/param-name
  param-value:

!-- For oracle: --
oracle.jdbc.driver.OracleDriver

cocoon.xconf,
in datasources:

jdbc name=MyNewtConnection
pool-controller min=5 max=10 oradb=true /
dburljdbc:oracle:thin:@rosie.feedroom.com:1521:newt/dburl
useruser/user
passwordpassword/password
/jdbc


sitemap.xmap :

map:match pattern=dbtests/dbtest1
map:generate src=docs/custom/dbtest.xml/
map:transform type=sql
map:parameter name=use-connection 
value=MyNewtConnection/
/map:transform
map:transform src=stylesheets/simple-sql2html.xsl/
map:serialize type=html /
/map:match


dbstest.xml:
page xmlns:sql=http://apache.org/cocoon/SQL/2.0;
execute-query xmlns=http://apache.org/cocoon/SQL/2.0; 
xmlns:sql=http://apache.org/cocoon/SQL/2.0;
query
select * from models
/query
/execute-query
/page




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



AW: esql:query problem

2003-06-23 Thread Michael Raffenberg
Hi Tim, 

did you try the esql:call Tag?
Here you find a introduction:
http://cocoon.apache.org/2.1/userdocs/xsp/esql.html#Stored+Procedure+Support

--Raffy

 -Ursprüngliche Nachricht-
 Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
 Gesendet: Montag, 23. Juni 2003 22:55
 An: [EMAIL PROTECTED]
 Betreff: esql:query problem
 
 
 I am attempting to call a stored procedure using esql:query.  
 Other stored procedures work using this so it is not a 
 connection issue.  I have narrowed down the issue to being 
 the procedure itself.  I am selecting data and inserting it 
 into a temp table then selecting more data and joining the 
 two data sets.  I need to use the temp tables there is no way 
 around it.  The problem is the stored procedure will not 
 return a result set in cocoon because it sees the insert 
 statement then stops thinking there is not a result set.  My 
 code from my xsp is below, if anyone has any information 
 about why this does not work it would be greatly appreciated. 
  Thank you
 
  
 
  
 
 Tim Bachta
 
  
 
 esql:execute-query
 
  esql:query
 
 execute a_joe 
 'xsp:exprroom/xsp:expr','xsp:exprbeginTime/xsp:expr','
 xsp:expr
 endTime/xsp:expr'
 
  /esql:query
 
  esql:results
 
 task-dates
 
esql:row-results
 
   task-date
 
 date
 
  
 esql:get-string column=1/
 
 /date
 
  
 

 
  /task-date
 
  
 
/esql:row-results
 
 /task-dates
 
  /esql:results
 
  
 
/esql:execute-query
 
  
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 


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



clob import: best practice?

2003-06-23 Thread Arthur Allen
With some help from my friends I've been able to read largish XML clobs
into a session attributes using modular data base actions.
Unfortunately my hope of doing any actual xml processing on these suckers
using the session attribute generator (very cool) have failed miserably, as 
SAX  xsl processors
(I tried them all) refuse to accept the text as valid xml.

Ditto using the sql transformer. Drats!

Gentlemen -- I do hate to be an ungrateful spoiler-- this strikes me as a 
major shortcoming
in an environment that purports to support the development of xml based
apps.

If I were to write a custom action, is there any handy routine I could use 
to
rewrite my xml clob session attributes into a type acceptable to SAX the 
xsl processors?
Do DBMS's adhere to some standard in this area? I'm using mysql.

Pray tell, what is the current best practice for processing xml clobs under 
cocoon? Does
esql offer help?

Arthur

_
The new MSN 8: smart spam protection and 2 months FREE*  
http://join.msn.com/?page=features/junkmail

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


Re: AW: esql:query problem

2003-06-23 Thread Chris

look at: esql:get-xml


--- Michael Raffenberg [EMAIL PROTECTED] wrote:
 Hi Tim, 
 
 did you try the esql:call Tag?
 Here you find a introduction:
 http://cocoon.apache.org/2.1/userdocs/xsp/esql.html#Stored+Procedure+Support
 
 --Raffy
 
  -Ursprüngliche Nachricht-
  Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
  Gesendet: Montag, 23. Juni 2003 22:55
  An: [EMAIL PROTECTED]
  Betreff: esql:query problem
  
  
  I am attempting to call a stored procedure using esql:query.  
  Other stored procedures work using this so it is not a 
  connection issue.  I have narrowed down the issue to being 
  the procedure itself.  I am selecting data and inserting it 
  into a temp table then selecting more data and joining the 
  two data sets.  I need to use the temp tables there is no way 
  around it.  The problem is the stored procedure will not 
  return a result set in cocoon because it sees the insert 
  statement then stops thinking there is not a result set.  My 
  code from my xsp is below, if anyone has any information 
  about why this does not work it would be greatly appreciated. 
   Thank you
  
   
  
   
  
  Tim Bachta
  
   
  
  esql:execute-query
  
   esql:query
  
  execute a_joe 
  'xsp:exprroom/xsp:expr','xsp:exprbeginTime/xsp:expr','
  xsp:expr
  endTime/xsp:expr'
  
   /esql:query
  
   esql:results
  
  task-dates
  
 esql:row-results
  
task-date
  
  date
  
   
  esql:get-string column=1/
  
  /date
  
   
  
 
  
   /task-date
  
   
  
 /esql:row-results
  
  /task-dates
  
   /esql:results
  
   
  
 /esql:execute-query
  
   
  
  
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
  
  
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 


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



Problem installing cocoon 2.0.4 on Tomcat 4.1.18

2003-06-23 Thread Gururaja H


Hi,

I am having problem installing cocoon 2.0.4 on Tomcat 4.1.18
on Windows 2000(on Sun J2SDK 1.3.1_08. I have down loaded the prebuiltbinaries and
copied the cocoon.war to %CATALINA%\webapps directory.
When I start the Tomcat I get the following message:
C:\Program Files\Apache Group\Tomcat 4.1\binstartupUsing CATALINA_BASE: C:\Program Files\Apache Group\Tomcat 4.1Using CATALINA_HOME: C:\Program Files\Apache Group\Tomcat 4.1Using CATALINA_TMPDIR: C:\Program Files\Apache Group\Tomcat 4.1\tempUsing JAVA_HOME: C:\JAVA\JDK1.3.1_08[INFO] Registry - -Loading registry information[INFO] Registry - -Creating new Registry instance[INFO] Registry - -Creating MBeanServer[INFO] Http11Protocol - -Initializing Coyote HTTP/1.1 on port 8080Starting service Tomcat-StandaloneApache Tomcat/4.1.18server.properties not found, using command line or default propertiesOpening database: C:\Program Files\Apache Group\Tomcat 4.1\webapps\cocoon\WEB-INF\db\cocoondbHSQLDB server 1.7.1 is runningUse SHUTDOWN to close normally. Use [Ctrl]+[C] to abort abruptlyTue Jun 24 09:23:55 IST 2003 Listening for connections ...[INFO]
 Http11Protocol - -Starting Coyote HTTP/1.1 on port 8080[INFO] ChannelSocket - -JK2: ajp13 listening on 0.0.0.0/0.0.0.0:8009[INFO] JkMain - -Jk running ID=0 time=30/90 config=C:\Program Files\Apache Group\Tomcat 4.1\conf\jk2.properties ---

Please help me to resolve this problem.

Thanks,
Gururaja


Do you Yahoo!?SBC Yahoo! DSL - Now only $29.95 per month!
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!