Re: Newbie Use of Request Params with DB Action

2003-03-04 Thread Christian Haul
On 03.Mar.2003 -- 06:43 PM, Samuel Bruce wrote:
 Thanks for responding and sorry for the ambiguity of
 my post. Your reply was helpful.
 
 The parameters that I am referring to are request
 parameters sent from a post in an HTML form to a
 pipeline in my sitemap. That pipeline has a mod-db
 action. 
 I'd like to capture one of the input parameters from
 the form to be available as a parameter in an XSLT 
 transformer after that input parameter has been used
 by the mod-db action.
 Is it possible? My interpretation of your response
 along with the behavior that I see is that the request
 parameter is consumed by the mod-db action.

This is absolutely possible! Request parameter are read-only and are
not removed after reading them. BTW none of the input modules removes
a value. Conceptually, they are only for reading values, not modifying
state. Although this is not enforced, all current ones obey this
principle.

You can verify that the parameter is still there for example by using
the request generator in the same pipeline as you have the action.

If you can't make it work, include the pipeline and your xsl file
(head and template that uses the parameter).

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

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



Re: [modules] url path of pipeline

2003-03-04 Thread Jakob Praher
Am Mon, 2003-03-03 um 12.17 schrieb Jakob Praher:
  Well, all the methods of o.a.c.environment.Request are available through 
  JXPath here. getContextPath() and getSitemapURI() carry some of the 
  information you are looking for.
  
 ok, thanks.
 But I thought I could get the url of the pipeline where the call is
 made. 
 
 like for instance:
 
 getCurrentPipeline( ).getUrlPath( )

ok. I can work with what you have mentioned. thanks.
It was a mistake of mine, as I had a sitemap fragment like:

map:match pattern=branded/**
   map:act type=x
  map:generate src=cooon:/{1} /
  map:serialize/
   /map:act
   !-- here I needed the pipeline context path, 
but after thinking it over,
I know that I can use your code --

   
/map:match


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



Solution: entity encoding error within an inline java script

2003-03-04 Thread hgadm
Thanks Jens and the others that responded so promptly !

that works now - xalan does recognise
'disable-output-escaping' 

I used map:transform src=data.xsl type=xalan/

Regards,
Holger

[EMAIL PROTECTED] wrote:

 
 
 Hi,
 
  I am using the standard Cocoon config (Xalan, Xerces
 ..)
 The default Transformer is XSLTC. It is configured
 in the sitemap.xmap in your cocoon folder.
 Just search for map:transformers. You will
 find there a transformer named 'xalan' and one
 named 'xsltc' (and course many other transformers).
 You can set the default transformer there or you
 can specify it directly in the pipeline using e.g.:
 map:transform src=data.xsl type=xalan/
 to use xalan instead of the default transformer.
 
  What is xsltc ???
 its just an xsl processor
 
 
 kind regards
 Jens Maukisch
 -
 sn AG
 netBank solutions
 Klingenderstr. 5mailto:[EMAIL PROTECTED]
 D-33100 Paderborn   a
href=http://mail.cswebmail.com/jump/http://www.s-und-n.de;http://www.s-und-n.de/a
 -
 CeBIT 2003 * Hannover * 12.-19.3.2003
 Besuchen Sie uns auf dem Stand der Software AG
 Halle 18 EG * Bank-Finanz-Systeme * Stand A24.15
 -
 
 

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

___
The ALL NEW CS2000 from CompuServe
 Better!  Faster! More Powerful!
 250 FREE hours! Sign-on Now!
 http://www.compuserve.com/trycsrv/cs2000/webmail/





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



Re: Generate XSL with XSP?

2003-03-04 Thread robert . soesemann
Sorry for accidentally sending private mail to the list.

My fault. Won't happen again.

Robert
 Du hast es hingekriegt ?!!! Yipee! Ich habs genahnt das das
 geht.
 
 Super, danke Thommi, must mir heute abend mal zeigen was bei mir falsch
 war.
 Dann kannste ja mindestens 4 XSL wegschmeissen
 Und dann gibts auch nur noch basepath und net mehr cms.
 
 Col Rob
 - Original Message -
 From: Thomas Haditsch [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Tuesday, March 04, 2003 3:22 AM
 Subject: Re: Generate XSL with XSP?
 
 
 sorry, should have used 'cocoon:/' instead of 'cocoon://'. that solved the
 problem!
 
 At 03:19 04.03.2003 +0100, you wrote:
 no, that's not the problem. i managed to dynamically create the xsl using
 a custom generator instead of a xsp, but now the xsl that includes it
 complains that the variable 'basepath' has not been defined if i do it
 this way:
 xsl:include href=cocoon://include-basepath.xsl/
 
 and if i do
 xsl:include href=include-basepath.xsl/
 it tries to load the file from disk.
 
 any ideas if (and how) this can be solved?
 
 thanx in advance,
 thomas
 
 
 At 00:47 04.03.2003 +0100, you wrote:
 Thanks alot for your answer. Yes that was wrong BUT I didn't even came
 to
 the point where including the stylesheet was of interest.
 
 That is because the XSP did never generate the desired XSL.  The output
 of
 my XSP was just an emtpty ?xml ... Tag.
 No other elements were created. I guess it a namespace problem. What do
 you
 think?
 
 Robert
 - Original Message -
 From: Upayavira [EMAIL PROTECTED]
 To: Robert Sösemann [EMAIL PROTECTED];
 [EMAIL PROTECTED]
 Sent: Monday, March 03, 2003 8:03 PM
 Subject: Re: Generate XSL with XSP?
 
 
   Robert,
  
xsl:include href=include-basepath.xsl/
  
   Is it as simple as changing this line to:
xsl:include href=cocoon:/include-basepath.xsl/
   to allow the include to call an internal pipeline?
  
   Regards, Upayavira
  
  
   -
   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]
 

-- 
+++ 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: Newbie Use of Request Params with DB Action

2003-03-04 Thread Samuel Bruce
Thank you once again.

Before I created this post to cocoon-users, I tried
using the request generator after the mod-db action
and all of the request parameters were gone (weren't
displayed with xml serializer). Before the mod-db
action they were all there (using the request
generator). That's why I created this thread.
Maybe I did something wrong. I'll try again - work on
it some more. If I'm successful, I'll let you know. If
not, I'll send my pipeline and xsl. 

Thanks so much for your assistance and patience with a
newbie!

--- Christian Haul
[EMAIL PROTECTED] wrote:
 On 03.Mar.2003 -- 06:43 PM, Samuel Bruce wrote:
  Thanks for responding and sorry for the ambiguity
 of
  my post. Your reply was helpful.
  
  The parameters that I am referring to are request
  parameters sent from a post in an HTML form to a
  pipeline in my sitemap. That pipeline has a mod-db
  action. 
  I'd like to capture one of the input parameters
 from
  the form to be available as a parameter in an XSLT
 
  transformer after that input parameter has been
 used
  by the mod-db action.
  Is it possible? My interpretation of your response
  along with the behavior that I see is that the
 request
  parameter is consumed by the mod-db action.
 
 This is absolutely possible! Request parameter are
 read-only and are
 not removed after reading them. BTW none of the
 input modules removes
 a value. Conceptually, they are only for reading
 values, not modifying
 state. Although this is not enforced, all current
 ones obey this
 principle.
 
 You can verify that the parameter is still there for
 example by using
 the request generator in the same pipeline as you
 have the action.
 
 If you can't make it work, include the pipeline and
 your xsl file
 (head and template that uses the parameter).
 
   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
 

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


__
Do you Yahoo!?
Yahoo! Tax Center - forms, calculators, tips, more
http://taxes.yahoo.com/

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



Re: big ESQL performance problem

2003-03-04 Thread Leszek Gawron
On wto, mar 04, 2003 at 09:05:44 -0500, Peter Royal wrote:
 On Tuesday, March 4, 2003, at 08:55  AM, Leszek Gawron wrote:
 I've been fighting with this all day and cannot find a cause. I'm 
 using quite
 fresh esql implementation to access Pervasive SQL 2000 database. The 
 problem
 is I have to pull 5500 rows from database. Performing query in 
 Squirell SQL it
 takes 3 second to execute and 16 to build output table (build squirell 
 view).
 The same query executed under cocoon takes 3.5 MINUTES! I'm desperate.
 Pervasive is a weird database (the SQL access is built on very low 
 lewel
 core).
 
 We are in the process of switching from pervasive to postgresql for 
 performance reasons. We have a 70k record table that takes *10 MINUTES* 
 to do a SELECT COUNT(col) FROM table WHERE col2 = X when col2 is 
 indexed. I have also noticed a very quick and steady decrease in 
 performance doing SELECT COUNT(col) FROM table, *no where clause*, as 
 records are added.
Things are not so simple for me because I'm plugging into an existing system
(database change is impossible).

Second thing is that the same query that works reasonably fast under Squirell
JBDC client is a nightmare under cocoon
LG
-- 
__
 | /  \ |Leszek Gawron//  \\
\_\\  //_/  [EMAIL PROTECTED]  _\\()//_
 .'/()\'. Phone: +48(600)341118 / //  \\ \
  \\  //  recursive: adj; see recursive  | \__/ |


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



Re: big ESQL performance problem

2003-03-04 Thread Peter Royal
On Tuesday, March 4, 2003, at 09:08  AM, Leszek Gawron wrote:
Things are not so simple for me because I'm plugging into an existing 
system
(database change is impossible).
We struggled with that for about two years before giving up (of course 
the existing system used the pervasive btrieve api with no 
database-level constraints and thus there was bad data all over the 
place..)

Second thing is that the same query that works reasonably fast under 
Squirell
JBDC client is a nightmare under cocoon
As it was mentioned in a reply on the dev list, try to show the user a 
subset of the records at a time.. 5500 rows will be pushing a lot of 
data through the cocoon pipelines and rendering engine of your browser. 
How large is the resulting HTML file?
-pete

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


Re: Newbie Use of Request Params with DB Action

2003-03-04 Thread Samuel Bruce
I don't know what I did the first time, but whatever I
did wrong I must not have had enough patience to look
at it closer.
The request parameters ARE displayed with the request
generator after the db action. Thank you again for
your help!

--- Samuel Bruce [EMAIL PROTECTED] wrote:
 Thank you once again.
 
 Before I created this post to cocoon-users, I tried
 using the request generator after the mod-db action
 and all of the request parameters were gone (weren't
 displayed with xml serializer). Before the mod-db
 action they were all there (using the request
 generator). That's why I created this thread.
 Maybe I did something wrong. I'll try again - work
 on
 it some more. If I'm successful, I'll let you know.
 If
 not, I'll send my pipeline and xsl. 
 
 Thanks so much for your assistance and patience with
 a
 newbie!
 
 --- Christian Haul
 [EMAIL PROTECTED] wrote:
  On 03.Mar.2003 -- 06:43 PM, Samuel Bruce wrote:
   Thanks for responding and sorry for the
 ambiguity
  of
   my post. Your reply was helpful.
   
   The parameters that I am referring to are
 request
   parameters sent from a post in an HTML form to a
   pipeline in my sitemap. That pipeline has a
 mod-db
   action. 
   I'd like to capture one of the input parameters
  from
   the form to be available as a parameter in an
 XSLT
  
   transformer after that input parameter has been
  used
   by the mod-db action.
   Is it possible? My interpretation of your
 response
   along with the behavior that I see is that the
  request
   parameter is consumed by the mod-db action.
  
  This is absolutely possible! Request parameter are
  read-only and are
  not removed after reading them. BTW none of the
  input modules removes
  a value. Conceptually, they are only for reading
  values, not modifying
  state. Although this is not enforced, all current
  ones obey this
  principle.
  
  You can verify that the parameter is still there
 for
  example by using
  the request generator in the same pipeline as you
  have the action.
  
  If you can't make it work, include the pipeline
 and
  your xsl file
  (head and template that uses the parameter).
  
  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
  
 

-
  To unsubscribe, e-mail:
  [EMAIL PROTECTED]
  For additional commands, e-mail:
  [EMAIL PROTECTED]
  
 
 
 __
 Do you Yahoo!?
 Yahoo! Tax Center - forms, calculators, tips, more
 http://taxes.yahoo.com/
 

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


__
Do you Yahoo!?
Yahoo! Tax Center - forms, calculators, tips, more
http://taxes.yahoo.com/

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



Error compiling sitemap

2003-03-04 Thread Collin VanDyck
Hi,

I've got a couple of sitemaps in my application, and I have just noticed
something which I cannot figure out.  I change the sitemap, and deploy to my
app server (JBoss).  When I request a resource that maps to the newly
changed sitemap, Cocoon pauses (compiling) and then comes back with a
compile error, which changes every time.  The strange thing, is that if I
wait 5-10 seconds, it works fine.  It is almost as if it halfway compiles it
the first time.

Has anyone had problems like this?  For all of my sitemaps, I have

check-reload=yes reload-method=synchron

Many thanks,
Collin


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



Re: Newbie Use of Request Params with DB Action

2003-03-04 Thread Christian Haul
On 04.Mar.2003 -- 06:26 AM, Samuel Bruce wrote:
 I don't know what I did the first time, but whatever I
 did wrong I must not have had enough patience to look
 at it closer.
 The request parameters ARE displayed with the request
 generator after the db action. Thank you again for
 your help!

Good to hear your problem is solved!
Take care.

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

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



Re: big ESQL performance problem

2003-03-04 Thread Leszek Gawron
On wto, mar 04, 2003 at 03:21:27 +0100, Steven Noels wrote:
 Leszek Gawron wrote:
 
 esql:execute-query
 esql:query
 SELECT
  K.K_NIP AS Knt_NipE,
  B.GST_KntID AS Knt_KntId,
  B.GST_KntID AS Knt_Kod,
  K.K_GRUPA AS Knt_Grupa,
 
 How does the rest of your pipeline looks like? Can you post the relevant 
 sitemap snippet?
Most simple as I could get: match, generate type=serverpages, serialize to
xml
ouzo
-- 
__
 | /  \ |Leszek Gawron//  \\
\_\\  //_/  [EMAIL PROTECTED]  _\\()//_
 .'/()\'. Phone: +48(600)341118 / //  \\ \
  \\  //  recursive: adj; see recursive  | \__/ |


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



Re: Error compiling sitemap

2003-03-04 Thread Collin VanDyck
I figured it out... I was working on a new computer using jdk 1.4.1, and the
computer did not have the udpated xalan libraries in the endorsed directory.

http://xml.apache.org/security/install.html

thanks,
Collin


- Original Message -
From: Collin VanDyck [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, March 04, 2003 10:00 AM
Subject: Error compiling sitemap


 Hi,

 I've got a couple of sitemaps in my application, and I have just noticed
 something which I cannot figure out.  I change the sitemap, and deploy to
my
 app server (JBoss).  When I request a resource that maps to the newly
 changed sitemap, Cocoon pauses (compiling) and then comes back with a
 compile error, which changes every time.  The strange thing, is that if I
 wait 5-10 seconds, it works fine.  It is almost as if it halfway compiles
it
 the first time.

 Has anyone had problems like this?  For all of my sitemaps, I have

 check-reload=yes reload-method=synchron

 Many thanks,
 Collin


 -
 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: Newbie Use of Request Params with DB Action

2003-03-04 Thread Samuel Bruce
Thanks. Solved with your help.

Take care, be well, God bless.

--- Christian Haul
[EMAIL PROTECTED] wrote:
 On 04.Mar.2003 -- 06:26 AM, Samuel Bruce wrote:
  I don't know what I did the first time, but
 whatever I
  did wrong I must not have had enough patience to
 look
  at it closer.
  The request parameters ARE displayed with the
 request
  generator after the db action. Thank you again for
  your help!
 
 Good to hear your problem is solved!
 Take care.
 
   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
 

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


__
Do you Yahoo!?
Yahoo! Tax Center - forms, calculators, tips, more
http://taxes.yahoo.com/

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



Re: Error compiling sitemap

2003-03-04 Thread Darren Petrie
Ahh!  I've been having that exact problem for sometime now.  It's been 
driving me crazy!  I'll try the updated Xalan as you suggested and see 
if my problem stops.

Darren

On Tuesday, Mar 4, 2003, at 16:39 Europe/Berlin, Collin VanDyck wrote:

I figured it out... I was working on a new computer using jdk 1.4.1, 
and the
computer did not have the udpated xalan libraries in the endorsed 
directory.

http://xml.apache.org/security/install.html

thanks,
Collin
- Original Message -
From: Collin VanDyck [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, March 04, 2003 10:00 AM
Subject: Error compiling sitemap

Hi,

I've got a couple of sitemaps in my application, and I have just 
noticed
something which I cannot figure out.  I change the sitemap, and 
deploy to
my
app server (JBoss).  When I request a resource that maps to the newly
changed sitemap, Cocoon pauses (compiling) and then comes back with a
compile error, which changes every time.  The strange thing, is that 
if I
wait 5-10 seconds, it works fine.  It is almost as if it halfway 
compiles
it
the first time.

Has anyone had problems like this?  For all of my sitemaps, I have

check-reload=yes reload-method=synchron

Many thanks,
Collin
-
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]

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


redirect to an external URL/xmlforms

2003-03-04 Thread Jeroen Cranendonk
Another question from my fellow worker :)

Hi,

I'm looking for a way to redirect to an external URL (by exapmle
http://xml.apache.org/cocoon) from an implementation of
AbstractXMLFormAction (or another Cocoon Action). Perhaps I can do this in
the perform() method of the Cocoon Action or in the sitemap. Do you have any
ideas?

Kind Regards,
Robert Kromkamp






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



Re: big ESQL performance problem

2003-03-04 Thread Upayavira
 On wto, mar 04, 2003 at 03:21:27 +0100, Steven Noels wrote:
  Leszek Gawron wrote:
  
  esql:execute-query
  esql:query
  SELECT
 K.K_NIP AS Knt_NipE,
 B.GST_KntID AS Knt_KntId,
 B.GST_KntID AS Knt_Kod,
 K.K_GRUPA AS Knt_Grupa,
  

It sounds like people are doubting ESQL, so it is worth trying accessing your 
database JDBC with Java, without Cocoon in the picture. Then you can work out 
whether it is Cocoon or JDBC that is causing you a problem. I had to do this 
recently, so I used some code in the O'Reilly Java Examples in a Nutshell book.

Regards, Upayavira


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



Re: big ESQL performance problem

2003-03-04 Thread Leszek Gawron
On wto, mar 04, 2003 at 04:34:52 -, Upayavira wrote:
  On wto, mar 04, 2003 at 03:21:27 +0100, Steven Noels wrote:
   Leszek Gawron wrote:
   
   esql:execute-query
   esql:query
   SELECT
K.K_NIP AS Knt_NipE,
B.GST_KntID AS Knt_KntId,
B.GST_KntID AS Knt_Kod,
K.K_GRUPA AS Knt_Grupa,
   
 
 It sounds like people are doubting ESQL, so it is worth trying accessing your 
 database JDBC with Java, without Cocoon in the picture. Then you can work out 
 whether it is Cocoon or JDBC that is causing you a problem. I had to do this 
 recently, so I used some code in the O'Reilly Java Examples in a Nutshell book.
Just as I said before. I'm using sourceforge JDBC Client named Squirell and
have no problem with retreieving large amounts of data
ouzo

-- 
__
 | /  \ |Leszek Gawron//  \\
\_\\  //_/  [EMAIL PROTECTED]  _\\()//_
 .'/()\'. Phone: +48(600)341118 / //  \\ \
  \\  //  recursive: adj; see recursive  | \__/ |


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



Datasource from pool

2003-03-04 Thread arturl
Hello,

My cocoon app is hanging on mysql database access.
I've got following messages in core.log:
DEBUG   (2003-03-04) 18:01.38:704   [core.datasources.foo] (/foo.html)
Thread-268/ResourceLimitingPool: Blocking until a Poolable is available.
Thread: Thread-268

I use this driver class:
com.mysql.jdbc.Driver
Datasource defined in cocoon.xconf:
 datasources
jdbc logger=core.datasources.foo name=foo
  pool-controller max=10 min=5/

dburljdbc:mysql://localhost/base?useUnicode=trueamp;characterEncoding=iso
-8859-2/dburl
/jdbc
  /datasources

When more pages using this coonection are requested, threads are waiting and
maxThreads parameter is exceeded.

What should I do and when to look for more debug information?

Artur


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



Re: Datasource from pool

2003-03-04 Thread Christian Haul
On 04.Mar.2003 -- 06:10 PM, arturl wrote:
 Hello,
 
 My cocoon app is hanging on mysql database access.
 I've got following messages in core.log:
 DEBUG   (2003-03-04) 18:01.38:704   [core.datasources.foo] (/foo.html)
 Thread-268/ResourceLimitingPool: Blocking until a Poolable is available.
 Thread: Thread-268
 
 I use this driver class:
 com.mysql.jdbc.Driver
 Datasource defined in cocoon.xconf:
  datasources
 jdbc logger=core.datasources.foo name=foo
   pool-controller max=10 min=5/
 
 dburljdbc:mysql://localhost/base?useUnicode=trueamp;characterEncoding=iso
 -8859-2/dburl
 /jdbc
   /datasources
 
 When more pages using this coonection are requested, threads are waiting and
 maxThreads parameter is exceeded.
 
 What should I do and when to look for more debug information?

You sure return all datasources back to the pool, don't you.

IOW which components that you have use the datasource? Stock
components should be safe, your own may have a leak?

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

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



Sunrise component help

2003-03-04 Thread JD Daniels
Hi everyone.

I have what is probably a few simple questions.. I am pretty sure I am just
not understanding a few basic concepts.

I have been searching and reading up on the sunrise components and I have a
few questions I can't seem to answer for myself:

1.) When will the portal generator be a part of the cocoon dist? (All the
info I have found seems to contradict itself... The company that made it
seems to say that it has been in a production environment for over a year,
but the cocoon docs say it is still alpha.. in the scratchpad)

2.) Why is the portal generator so involved with the authentication? ie, I
want to make a public portal, and only protect the customize pipeline. (I
have the sunshine demo up and running, and have changed it to what i need, I
have the portlets built, etc)

3.) Is there any docs or personal articles that are a little more recent
than a year old? It must have moved along somewhat in that time.

Thanks,
JD


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



map:resources and sub-sitemaps?

2003-03-04 Thread Ben Young
I created some resources in my main sitemap that work fine when requested
from there. When I try and request them from mounted sub-sitemaps I get a
resource not found error. Is there a way to reference resources from a
sub-sitemap that are contained in the root sitemap?

Thanks for your help,
Ben


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



Re: Generating dynamic attributes in xsp

2003-03-04 Thread Amelie Cordier
Hi again.

To sum up,  I'm trying to use request parameters in a logicsheet that I've
made on my own.

According to Marco's suggestions (thanks a lot Marco!), I've tried this :

In the .xsp :

mytag:year
yearxsp-request:get-parameter name=yearparam//year
/mytag:year

In the logicsheet :

xsl:template match=mytag:year[year or @year]
  xsl:variable name=mavar
xsl:call-template name=get-string-parameter
 xsl:with-param name=nameyear/xsl:with-param
/xsl:call-template
  /xsl:variable
...
/xsl:template


My problem is the following : as soon as I use my logicsheet tags, the
value of xsp-request:get-parameter name=year is lost.

---
Example :

 xsp-request:get-parameter name=year/ = returns the value of the
 parameter year

 mytag:year
   yearxsp-request:get-parameter name=year/ /year
 /mytag:year

 = returns nothing !!! or better, something like that :
 (XSPRequestHelper.getParameter(objectModel, year, null, null, null))
---

Is there something to do in the sitemap level?
Just to know : is there anybody who tried this once? Am I trying to do
something impossible?

 Thanks a lot.

 Am




 - 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: resources and sub-sitemaps?

2003-03-04 Thread Stephane Amaudruz
I think this is a security feature of Cocoon.
I had the same problem and resolve it by calling the main sitemap using
map:redirect-to
with the cocoon:// protocol.


-Original Message-
From: Ben Young [mailto:[EMAIL PROTECTED]
Sent: mardi, 4. mars 2003 21:15
To: [EMAIL PROTECTED]
Subject: map:resources and sub-sitemaps?


I created some resources in my main sitemap that work fine when requested
from there. When I try and request them from mounted sub-sitemaps I get a
resource not found error. Is there a way to reference resources from a
sub-sitemap that are contained in the root sitemap?

Thanks for your help,
Ben


-
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: Generating dynamic attributes in xsp

2003-03-04 Thread Christian Haul
Amelie Cordier wrote:
Hi again.

To sum up,  I'm trying to use request parameters in a logicsheet that I've
made on my own.
According to Marco's suggestions (thanks a lot Marco!), I've tried this :

In the .xsp :

mytag:year
yearxsp-request:get-parameter name=yearparam//year
/mytag:year
In the logicsheet :

xsl:template match=mytag:year[year or @year]
  xsl:variable name=mavar
xsl:call-template name=get-string-parameter
 xsl:with-param name=nameyear/xsl:with-param
/xsl:call-template
  /xsl:variable
...
/xsl:template
My problem is the following : as soon as I use my logicsheet tags, the
value of xsp-request:get-parameter name=year is lost.
---
Example :
 xsp-request:get-parameter name=year/ = returns the value of the
 parameter year
 mytag:year
   yearxsp-request:get-parameter name=year/ /year
 /mytag:year
 = returns nothing !!! or better, something like that :
 (XSPRequestHelper.getParameter(objectModel, year, null, null, null))
---
Is there something to do in the sitemap level?
Just to know : is there anybody who tried this once? Am I trying to do
something impossible?
Try to use get-parameter instead of get-string-parameter. That should return
the node as well. But you need to insert the variable with copy-of, not value-of
and in a place where it can safely expand to a xsp:expr/.
HTH

	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
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Generating dynamic attributes in xsp

2003-03-04 Thread Amelie Cordier
 Amelie Cordier wrote:
 Hi again.

 To sum up,  I'm trying to use request parameters in a logicsheet that
 I've made on my own.

 According to Marco's suggestions (thanks a lot Marco!), I've tried
 this :

 In the .xsp :

 mytag:year
 yearxsp-request:get-parameter name=yearparam//year
 /mytag:year

 In the logicsheet :

 xsl:template match=mytag:year[year or @year]
   xsl:variable name=mavar
 xsl:call-template name=get-string-parameter
  xsl:with-param name=nameyear/xsl:with-param
 /xsl:call-template
   /xsl:variable
 ...
 /xsl:template


 My problem is the following : as soon as I use my logicsheet tags, the
 value of xsp-request:get-parameter name=year is lost.

 ---
 Example :

  xsp-request:get-parameter name=year/ = returns the value of the
 parameter year

  mytag:year
yearxsp-request:get-parameter name=year/ /year
  /mytag:year

  = returns nothing !!! or better, something like that :
  (XSPRequestHelper.getParameter(objectModel, year, null, null,
 null))
 ---

 Is there something to do in the sitemap level?
 Just to know : is there anybody who tried this once? Am I trying to do
 something impossible?

 Try to use get-parameter instead of get-string-parameter. That
 should return the node as well. But you need to insert the variable with
 copy-of, not value-of and in a place where it can safely expand to a
 xsp:expr/.

 HTH

   Chris.

Thanks, it works better but the returned string is : null :( as if the
parameter didn't went through my custom logicsheet. May be a sitemap
problem  don't you think?

By the way, what do you mean by in a place where it can safely expand to a
xsp:expr/ ?

thanks in advance

Am.




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



Namespace Problem with XPath and XSLT

2003-03-04 Thread Guenther Schmidt
Hi all,

I've aggregated a document out of a static XML file and the output of the
request generator. The top level element of the request generator output
has its own namespace (unfortunately).

In the next step of the pipeline I use an XSLT transformation on the
aggregated document.

Due to the set namespace of the request Top element I have extreme
difficulty finding the proper XPath expression so that a xsl:template
match=reguest/ could be applied.

What would the propper XPath expression be (in regard to the namespace)?

Help!!

Thanks upfront

Guenther


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



Re: Namespace Problem with XPath and XSLT

2003-03-04 Thread J.Pietschmann
Guenther Schmidt wrote:
I've aggregated a document out of a static XML file and the output of the
request generator. The top level element of the request generator output
has its own namespace (unfortunately).
...
Due to the set namespace of the request Top element I have extreme
difficulty finding the proper XPath expression so that a xsl:template
match=reguest/ could be applied.
What would the propper XPath expression be (in regard to the namespace)?
FAQ. You could have been a bit more specific though.
Declare the namespace for your request generator somewhere,
usually this is done on the xsl:stylesheet. The prefix doesn't
matter much, it is not necessary to use the same as in the source
XML. You can add the prefix to the exclude-result-prefix-prefixes
list so that your result document wouldn't be polluted.
 xsl:stylesheet version=...
   xmlns:req=uri:my:stupid:namespace ...
Use this prefix in match patterns:
 xsl:template match=req:request...
J.Pietschmann

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


Re: Namespace Problem with XPath and XSLT

2003-03-04 Thread Guenther Schmidt
J.Pietschmann wrote:

 Guenther Schmidt wrote:
 I've aggregated a document out of a static XML file and the output of the
 request generator. The top level element of the request generator output
 has its own namespace (unfortunately).
 ...
 Due to the set namespace of the request Top element I have extreme
 difficulty finding the proper XPath expression so that a xsl:template
 match=reguest/ could be applied.
 
 What would the propper XPath expression be (in regard to the namespace)?
 
 FAQ. You could have been a bit more specific though.
 Declare the namespace for your request generator somewhere,
 usually this is done on the xsl:stylesheet. The prefix doesn't
 matter much, it is not necessary to use the same as in the source
 XML. You can add the prefix to the exclude-result-prefix-prefixes
 list so that your result document wouldn't be polluted.
   xsl:stylesheet version=...
 xmlns:req=uri:my:stupid:namespace ...
 Use this prefix in match patterns:
   xsl:template match=req:request...
 
 J.Pietschmann


J. you are a genius !

Thank you very much, it worked perfectly!

However what did you mean with the exclude-result-prefix-prefixes ?

Günther


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



Re: Namespace Problem with XPath and XSLT

2003-03-04 Thread J.Pietschmann
Guenther Schmidt wrote:
However what did you mean with the exclude-result-prefix-prefixes ?
Should be exclude-result-prefixes. Look it up in the spec.

J.Pietschmann



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


migration cocoon 1.8 to c2

2003-03-04 Thread Antonio Fletes
Hi,

I was work with cocoon 1.8 and i have my aplication in this version work

very well, but when i try in coccon2  not work and the message is


message Cocoon engine failed in process.
description The Cocoon engine said it failed to process the request for
an unknown reason.
sender org.apache.cocoon.servlet.CocoonServlet
--

this method  whith c2 not work, any body why ???
xsp:logic
  int obtenIntentos(String nombreGalleta,
javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res) {
int intentos = 0;
try{
Galleta cooki = new Galleta(req,res,nombreGalleta);
if( cooki.LaGalleta != null ){
  String v = cooki.getGalleta().getValue();
  intentos = Integer.parseInt(v);
}
else
  intentos = 0;
}catch(Exception e){
System.out.println(obtenIntento:+e.toString()); }
   return intentos;
  }
/xsp:logic

How I can migrate my aplication in cocoon 1.8 to  cocoon2 whitout
changes in code xsp.

thanks



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



Cocoon Developers Handbook: Problems with Sample Code

2003-03-04 Thread Derek Hohls



Not sure if anyone on the list has tried any of the 
sample code that comes from CDH, but I cannot
get the form validation to work - pp 252-276.

I have the first two versions of the newticket.xsp
code working fine, doing validation, updating the
database and so on. However, when I try to use
version 3, where the validation occurs in a separate
logicsheet, then the form only displays the button!
(ie. it looks as if the formvalhelper.xsl file is not being
accessed or not processing correctly, but there is 
nothing in any of the log files to indicate what the 
problem might be)

I'd appreciate some help with this, as I am really
struggling to get going with logicsheets and do not
yet have enough experience to spot where the 
'obvious' mistake/s might be

Thanks
Derek-- 
This message has been scanned for viruses and dangerous content by
MailScanner, and is believed to be clean.

"The CSIR exercises no editorial control over E-mail messages and/or
attachments thereto/links referred to therein originating in the
organisation and the views in this message/attachments thereto are
therefore not necessarily those of the CSIR and/or its employees.
The sender of this e-mail is, moreover, in terms of the CSIR's Conditions
of Service, subject to compliance with the CSIR's internal E-mail and
Internet Policy."



RE: Sunrise component help

2003-03-04 Thread Carsten Ziegeler


 -Original Message-
 From: JD Daniels [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, March 04, 2003 8:38 PM
 To: Cocoon Users
 Subject: Sunrise component help


 Hi everyone.

 I have what is probably a few simple questions.. I am pretty sure
 I am just
 not understanding a few basic concepts.

 I have been searching and reading up on the sunrise components
 and I have a
 few questions I can't seem to answer for myself:

 1.) When will the portal generator be a part of the cocoon dist? (All the
 info I have found seems to contradict itself... The company that made it
 seems to say that it has been in a production environment for over a year,
 but the cocoon docs say it is still alpha.. in the scratchpad)
The portal and the authentication framework are not alpha anymore. With the
next release (either 2.0.5 or 2.1) they will be part of the distribution.


 2.) Why is the portal generator so involved with the authentication? ie, I
 want to make a public portal, and only protect the customize pipeline. (I
 have the sunshine demo up and running, and have changed it to
 what i need, I
 have the portlets built, etc)

The authentication framework supports more than authenticaton: web
application
management. As a portal is a web application, this helps in configuring the
portal.

 3.) Is there any docs or personal articles that are a little more recent
 than a year old? It must have moved along somewhat in that time.

The latest docs in cvs should be upto-date and should not refer to sunrise
or sunspot anymore.

Carsten


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



Jetty Logging (or rather lack thereof)

2003-03-04 Thread Tony Collen
I've been playing around with Jetty in the latest CVS checkout, and I'm
noticing all my logs are empty... it doesn't look like anything is being
logged... is logging turned off by default, or is there something else
going on here?

Tony


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



Re: Jetty Logging (or rather lack thereof)

2003-03-04 Thread Tony Collen
On Wed, 5 Mar 2003, Tony Collen wrote:

 I've been playing around with Jetty in the latest CVS checkout, and I'm
 noticing all my logs are empty... it doesn't look like anything is being
 logged... is logging turned off by default, or is there something else
 going on here?

Neeever mind. It's late. I retract my question and apologize to the
lists for the spam.   Time for sleep =]



ZzZz,

Tony


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



big ESQL performance problem

2003-03-04 Thread Leszek Gawron
I've been fighting with this all day and cannot find a cause. I'm using quite
fresh esql implementation to access Pervasive SQL 2000 database. The problem
is I have to pull 5500 rows from database. Performing query in Squirell SQL it
takes 3 second to execute and 16 to build output table (build squirell view).
The same query executed under cocoon takes 3.5 MINUTES! I'm desperate.
Pervasive is a weird database (the SQL access is built on very low lewel
core). Maybe this has something to do with scrolling rowsets or something. My
query is really simple:

esql:execute-query
esql:query
SELECT
K.K_NIP AS Knt_NipE,
B.GST_KntID AS Knt_KntId,
B.GST_KntID AS Knt_Kod,
K.K_GRUPA AS Knt_Grupa,
K.K_Nazwa1 AS Knt_Nazwa1,
K.K_Nazwa2 AS Knt_Nazwa2,
K.K_NIP AS Knt_Nip,
K.K_Adres1 AS Knt_Ulica,
K.K_Miasto AS Knt_Miasto,
K.K_KodPocztowy AS Knt_KodPocztowy,
B.GST_TypMod AS SyncType
FROM
gemini_syn_knt B LEFT OUTER JOIN kontrah K ON K.K_KOD = B.GST_KntId
WHERE
B.GST_Datetime  CONVERT( 'xsp:exprtime/xsp:expr', SQL_TIMESTAMP )
AND K.K_GRUPA = 'ODB'
ORDER BY
K.K_Nazwa1
/esql:query
esql:results
esql:row-results
row
esql:get-columns/
/row
/esql:row-results
/esql:results
/esql:execute-query

I'm not using any row skipping or limit clauses and still the performance is awful.


My second thought is that esql asks the database too often for metadata
information.


Any ideas ? It's crucial for me to solve this ASAP
regards
LG
-- 
__
 | /  \ |Leszek Gawron//  \\
\_\\  //_/  [EMAIL PROTECTED]  _\\()//_
 .'/()\'. Phone: +48(600)341118 / //  \\ \
  \\  //  recursive: adj; see recursive  | \__/ |


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



Re: big ESQL performance problem

2003-03-04 Thread Steven Noels
Leszek Gawron wrote:

esql:execute-query
esql:query
SELECT
K.K_NIP AS Knt_NipE,
B.GST_KntID AS Knt_KntId,
B.GST_KntID AS Knt_Kod,
K.K_GRUPA AS Knt_Grupa,
How does the rest of your pipeline looks like? Can you post the relevant 
sitemap snippet?

/Steven
--
Steven Noelshttp://outerthought.org/
Outerthought - Open Source, Java  XML Competence Support Center
Read my weblog athttp://blogs.cocoondev.org/stevenn/
stevenn at outerthought.orgstevenn at apache.org
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]