RE : Customization in the new Portal Engine

2003-10-17 Thread Laurent Trillaud
You have no GUI to customize, but the customization is more powerful
than the first portal framework.
To do it, you can change any files in the directory skins/common (XSL,
CSS, GIF, ...). You can even create your own skin and switch it in the
portal sitemap with the global variable 
  map:global-variables
skinskins/common//skin
  /map:global-variables
Right now, the new portal engine is provided with 2 skins: basic and
common.

Laurent Trillaud

 -Message d'origine-
 De : JACOB, ERIC [mailto:[EMAIL PROTECTED]
 Envoyé : jeudi 16 octobre 2003 21:11
 À : Users
 Objet : Customization in the new Portal Engine
 
 Hi all,
 
 I tried the new Portal Engine demo (not the portal-fw) and I noticed
that
 it
 doesn't allow customization of the portal by the users in the same way
 that
 the portal-fw example allows. How I can enable this feature?
 
 Thanks,
 
 Eric
 
 
 
 -
 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: Custom Generator or Logicsheet (or something else)?

2003-10-17 Thread Ugo Cei
Patrick Dobbs wrote:
My question is what the best approach to take is. Current ideas include:
1) Logicsheet. Create a custom logicsheet which wraps calls to the
2) Custom Generators. Code generator(s) which will accept sitemap
3) Aggregate. Pull in our application data further down the pipeline
Is there a better approach I've missed?
Flowscript.

	Ugo

--
Ugo Cei - Consorzio di Bioingegneria e Informatica Medica
P.le Volontari del Sangue, 2 - 27100 Pavia - Italy
Phone: +39.0382.525100 - E-mail: [EMAIL PROTECTED]
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


[CLI] LinkSerializer not replacing href attributes in 2.1.2

2003-10-17 Thread Artur Matos
Hi to all,

I just upgraded my cocoon distribution to 2.1.2, but
the CLI in the new distribution is not generating the links correctly
for my project. Although the file names are being correctly generated,
the href attributes inside the generated files are not being
replaced. I have confirm-extensions set to true in
cli.xconf. Is anyone having the same problem?

Best regards,

Artur Matos.

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



Re: Cocon 2.1: Still Problems with large downloads

2003-10-17 Thread Philipp
Am Freitag, 17. Oktober 2003 00:24 schrieb Alexander Schatten:
 Already in Cocoon 2.0x there were severe problems with large downloads.
 Using a statement like:


 map:match pattern=downloads/**.gz
 map:read mime-type=application/x-gzip
 src=downloads/{1}.gz/
 /map:match


 basically worked with files below approx. 16MB. Files with sizes above,
 were terminated at 16MB.

Maybe you should handle downloads through apache httpd webserver, or tomcat 
itself (if you use tomcat)? From your sitemap snipplet, it looks like an 
ordinary download. Files will get served much faster, and many other cons.

 I hoped, that this is corrected in 2.1 unfortunately it seems to have a
 similar behaviour: I tried a file with about 24MB and the resulting
 downlad had 0 bytes...

 Does anyone have an idea how to solve this problem?

Haven't tried to seve big files through cocoon. Aren't there any entrys in the 
logfiles? I don't know, but maybe you have an request timeout configured?

 thank you!
 Alex

cu Philipp

-- 
XML is the ASCII for the new millenium.
(Cocoon documentation)
--

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



Re: Cocoon And Memory

2003-10-17 Thread David LAGARDERE
Thank you for your answers.
Concerning the requirements, have you ever heard about

a FAQ or a specification dealing with it ?

David LAGARDERE

___
Do You Yahoo!? -- Une adresse @yahoo.fr gratuite et en français !
Yahoo! Mail : http://fr.mail.yahoo.com

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



cocoon dont's remember locale selection

2003-10-17 Thread gounis

hi people 

my problem is that the production server i have dont remember the locale 
selection 

when i try to change to [locale=en] and then follow other links i get 
again the greek content (cocoon give me always content for el locale and 
wait for me (client) to ask a different locale)

this does not happend in my localhost cocoon instalations where i test and 
develop a web site

im my local box when i ask locale=en (for example) and without to give 
locale information in each link, cocoon give me english content until i 
ask to change to greek (one time only)

i think that cocoon store somewhere the last locale selection and store 
it, or i'm wrong?

you can see for what i'm talking about here:

http://www.fotoilektriki.gr 

try to ask for english and then follow a link


any idea? (konstantin?)

thnx
stavros



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



could not be preloaded

2003-10-17 Thread iyy



Hi,

On our cocoon web, error log I get this message.. 
And our web page has been failing..

Any help is welcome.

From,
iyyappan

error log:

ERROR (2003-10-17) 
14:32.36:089 [core.program-generator] (our url) 
Thread-13/ProgramGeneratorImpl: The serverpage [file:/path to our xml] could not 
be preloaded


CLI and checksum-uri in Cocoon 2.1 CVS (head?)

2003-10-17 Thread Rolf Kulemann
Hi People,

the last days I was adicted to play around with cocoon 2.1 CVS HEAD.
I got stuck the first time when trying to generate offline pages.

CLI complained about a Malformed URL caused in method readChecksumFile()
in class org.apache.cocoon.bean.CocoonBean.java.

As far as I understand the java source, the CoooConBean expects the tag
checksum-uri in the xconf file. So I added 

checksums-uribuild/dest/mindpipe.com/checksums/checksums-uri

to my xconf file. Everything worked fine then.


Can anybody tell me if I did sth. wrong? Does this only happening on my
machine? I'm new to cocoon. Maybe I should not use a cvs head version?


-- 
Rolf Kulemann

Democracy is good.  I say this because other systems are worse.
-- Jawaharlal Nehru


PGP/GPG public key:
 http://pgp.mit.edu:11371/pks/lookup?op=getsearch=0x6B4EA7EA


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



obscure caching in cocoon

2003-10-17 Thread Meyer, Christian
Hi,

I have an very obscure case of caching in my application and find no way to
fix that. I generate the xsp-pages with an stylesheet from a database
generated XML. This XSP Page will generated though the serverpages generator
to a HTML page.

Unfortunately is the caching very obscure. When the XML has changed the
pages will sometimes updated and sometimes not. Additionally i can occur
that only one of this two pages will updated. 

I searched in the work directory for the generate-layout-data java and class
files but i could not find them.  I had  the same effect with xsp pages on
disc space after changing.

The Parameter cacheID was created to have 2 separate URI's. The DB URI is
different too. The Parameter modification-date in the HTTP Header for
deciding the caching case existent.

I use tomcat 4.1.18, 4.1.24, cocoon 2.0.4 and various OS. 

Is there any idea to stop that effect or is it better to ask in the
developers mailing list? 

Thanks cham

map:match
pattern=generate-layout-data-*((UserID=*)(cacheID=*))
map:generate src=http://myDBhost/sendConfigXML/
map:serialize type=xml/
/map:match

map:match pattern=detail-*
map:act type=request
map:parameter name=parameters value=true/
map:generate type=serverpages
src=cocoon:/generate-detail-{../1}((UserID={UserID}))/
map:serialize type=xml/
/map:act
/map:match
map:match pattern=generate-detail-*((UserID=*))
map:generate
src=cocoon:/generate-layout-data-{1}((UserID={2})(cacheID=layout))
map:parameter name=verbose value=false/
/map:generate
map:transform src=stylesheets/xsl/fields.xsl/
map:serialize type=xml/
/map:match
map:match pattern=table-*
map:act type=request
map:parameter name=parameters value=true/
map:generate type=serverpages
src=cocoon:/generate-table-{../1}((UserID={UserID}))/
map:serialize type=xml/
/map:act
/map:match
map:match pattern=generate-table-*((UserID=*))
map:generate
src=cocoon:/generate-layout-data-{1}((UserID={2})(cacheID=table))
map:parameter name=verbose value=true/
/map:generate
map:transform src=stylesheets/xsl/table.xsl/
map:transform src=stylesheets/xsl/audi_html.xsl/
map:serialize type=xml/
/map:match



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



Upgrade to 2.1.2 - Paginator does not work correctly!

2003-10-17 Thread manfred . weigel

Hello *

I just upgraded one of my webapps from 2.1 to 2.1.2
Everything works fine except the paginator.

I get the following exception:

[10/16/03 15:57:15:234 GMT+02:00] 6c2af952 WebGroup  I SRVE0091I:
[Servlet LOG]: ERROR   (2003-10-16) 15:57.15:141   [root]
(/rzbcan/cansearch_serial_letter(1))
Servlet.Engine.Transports:9/CocoonServlet: Internal Cocoon Problem
org.apache.cocoon.ProcessingException: Unable to get transformer handler
for stylesheets/html/content_error.xsl:
org.apache.excalibur.xml.xslt.XSLTProcessorException: Exception in creating
Transform Handler
  at
org.apache.cocoon.transformation.TraxTransformer.setup(TraxTransformer.java:307)
  at
org.apache.cocoon.components.pipeline.AbstractProcessingPipeline.setupPipeline(AbstractProcessingPipeline.java:394)
  at
org.apache.cocoon.components.pipeline.impl.AbstractCachingProcessingPipeline.setupPipeline(AbstractCachingProcessingPipeline.java:652)
  at
org.apache.cocoon.components.pipeline.AbstractProcessingPipeline.preparePipeline(AbstractProcessingPipeline.java:508)
  at
org.apache.cocoon.components.pipeline.AbstractProcessingPipeline.process(AbstractProcessingPipeline.java:470)
  at
org.apache.cocoon.components.treeprocessor.sitemap.SerializeNode.invoke(SerializeNode.java:147)
  at
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java(Compiled
 Code))

My pipeline works perfectly if the paginator transformer is on the last
position before any serializer.

But when i use any other (tried even with the log transformer) transformer
after the paginator this exception occurs
Does anybody know how to solve this or where to look after this dependency?

kind regards
Manfred



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



Re: cocoon dont's remember locale selection

2003-10-17 Thread Konstantin Piroumian
Stavros,

I just have checked your site and it seems that everything works as
expected.
Either this is a cache problem (check your browser or proxy settings) or can
be a floating bug in LocaleAction, which appears only if more than one user
is requesting the same page.

Let me know if you find out the reason.

Regards,
  Konstantin

- Original Message - 
From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, October 17, 2003 12:50
Subject: cocoon dont's remember locale selection



 hi people

 my problem is that the production server i have dont remember the locale
 selection

 when i try to change to [locale=en] and then follow other links i get
 again the greek content (cocoon give me always content for el locale and
 wait for me (client) to ask a different locale)

 this does not happend in my localhost cocoon instalations where i test and
 develop a web site

 im my local box when i ask locale=en (for example) and without to give
 locale information in each link, cocoon give me english content until i
 ask to change to greek (one time only)

 i think that cocoon store somewhere the last locale selection and store
 it, or i'm wrong?

 you can see for what i'm talking about here:

 http://www.fotoilektriki.gr

 try to ask for english and then follow a link


 any idea? (konstantin?)

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



Re: could not be preloaded

2003-10-17 Thread Kim Jelmoni
iyy wrote:

Hi,
 
On our cocoon web, error log I get this message.. And our web page has 
been failing..
 
Any help is welcome.
 
From,
iyyappan
 
error log:
 
ERROR   (2003-10-17) 14:32.36:089   [core.program-generator] (our url) 
Thread-13/ProgramGeneratorImpl: The serverpage [file:/path to our xml] 
could not be preloaded
It's a little bit less information to help, but are you sure the 
serverpage xml is acessible and readable for the servlet on the 
filesystem ? It seem to me you have restarted the server and the page 
has been removed.

Kim

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


Re: cocoon dont's remember locale selection

2003-10-17 Thread gounis
kontsantin,

finaly i have find a solution to my problem but not at all.

until now i use to have in action declaration 

create-sessiontrue/create-session
store-in-sessiontrue/store-in-session
store-in-requesttrue/store-in-request
store-in-cookiefalse/store-in-cookie

and everything work fine direclt from tomcat/cocoon

but with apache at front (mod_proxy or/and mod_rewrite) i have the problem 
i have describe in previous my post 

a solution was to store in cookie:
store-in-cookietrue/store-in-cookie


i dont know if an other approach let us leave store-in-cookie false


stavros

On Fri, 17 Oct 2003, Konstantin Piroumian wrote:

 Stavros,
 
 I just have checked your site and it seems that everything works as
 expected.
 Either this is a cache problem (check your browser or proxy settings) or can
 be a floating bug in LocaleAction, which appears only if more than one user
 is requesting the same page.
 
 Let me know if you find out the reason.
 
 Regards,
   Konstantin
 
 - Original Message - 
 From: [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Friday, October 17, 2003 12:50
 Subject: cocoon dont's remember locale selection
 
 
 
  hi people
 
  my problem is that the production server i have dont remember the locale
  selection
 
  when i try to change to [locale=en] and then follow other links i get
  again the greek content (cocoon give me always content for el locale and
  wait for me (client) to ask a different locale)
 
  this does not happend in my localhost cocoon instalations where i test and
  develop a web site
 
  im my local box when i ask locale=en (for example) and without to give
  locale information in each link, cocoon give me english content until i
  ask to change to greek (one time only)
 
  i think that cocoon store somewhere the last locale selection and store
  it, or i'm wrong?
 
  you can see for what i'm talking about here:
 
  http://www.fotoilektriki.gr
 
  try to ask for english and then follow a link
 
 
  any idea? (konstantin?)
 
  thnx
  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]
 
 


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



Re: I am also having problems with logicsheets

2003-10-17 Thread pogietb
Christopher,
I'm using C2.1.1. The built-in logicsheets, at least esql and util, do work so I'll 
try your suggestion. I'll also add the trailing slash to the URI ... at this point 
I'll try anything!
Thanks,
Pogie


Christopher Painter-Wakefield [EMAIL PROTECTED] wrote:





Pogie,

Thanks, much better.  Unfortunately, I can't reproduce your error.  I
created files and sitemap entry just like yours in my environment, and it
worked just fine.  I think I am using C2.0.4, but one of the other
developers thinks we are on C2.0.3, not sure.  Which version are you on?  I
think we are also on slightly newer versions of Xalan and Xerces than were
distributed with C2.0.4, but I doubt that is impacting this issue.

I'm not sure what else to tell you to try, especially since you've stripped
things down to such a simple example.  That is usually the best way to find
the error.  All I can suggest is to go back over your cocoon.xconf and
anything else you can think of that might affect this problem, and look for
any typos, ill-formed XML, suspicious quotes, etc.  Assuming the built-in
logicsheets work for you, you can try pulling one of them out of the war
file into your webapp directory, and modifying cocoon.xconf to use the
local copy.  Make sure it still works applied to your simple example.  If
so, then you can start stripping it down template by template and then add
back in your two logicsheet templates, and see if it still works.  If it
works, then there is a problem in your cocoon.xconf or something.  If not,
then maybe you'll find a clue along the way.

This is a real longshot, but I wondered if cocoon doesn't like your URI not
having a trailing slash?

As it happens, I am wrestling with a logicsheet-related bug (I think) in
Cocoon myself, so now I get to post a plea for help...

-Christopher



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



__
McAfee VirusScan Online from the Netscape Network.
Comprehensive protection for your entire computer. Get your free trial today!
http://channels.netscape.com/ns/computing/mcafee/index.jsp?promo=393397

Get AOL Instant Messenger 5.1 free of charge.  Download Now!
http://aim.aol.com/aimnew/Aim/register.adp?promo=380455

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



RE: Authentication Components

2003-10-17 Thread Carsten Ziegeler
Ralph Goers wrote:
 Thanks for the info and letting me know that new doc was
 available. I still
 have a couple of questions.

 The section that discusses load-users and load-roles says these
 resources are called whenever information about available roles
 or users is
 needed.  What causes that to happen? Is it done just by
 session:getxml or
 ContextInputModule?
No, load-users etc. is only invoked if you have a user management tool
running in Cocoon, like e.g. the portal demo has. This tool uses the
defined pipelines to get all user etc and also to delete a user
via delte-user

 This feature looks very useful to me,
 however I'd also
 like to associate Permissions with a user in the same fashion. Can that be
 easily accomplished?
You can return all permissions in the authentication xml delivered by
the authentication pipeline.


 Also, there is an example showing parameters being specified for
 delete-user. Can I assume that in a pipeline these could then be
 referenced as map:parameter name=connection value={connection}/, etc?

Close, it's map:parameter name=connection
value={request-param:connection}/
The parameters are passed to the pipeline via request parameters, so
you can use the request-param input module to get the values.

Carsten


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



Re: i18n resource catalogs are being cached

2003-10-17 Thread Collin VanDyck
Yes, that is exactly what I was looking for. Thank you very much!!

- Original Message - 
From: Konstantin Piroumian [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, October 17, 2003 1:59 AM
Subject: Re: i18n resource catalogs are being cached


 Hi,

 Message from i18n catalogs are always cached and cache-at-startup option
 simply defined when to cache the message, either load all the messages at
 startup or just cache as they are requested. This is the intended
behavior.

 I suppose that you are looking for something that will check the last
 modification date of a resource bundle and then reload it, right?
 Unfortunately, this is a long time 'ToDo' item in i18n transformer and
don't
 know if anybody is going to fix this in the nearest future.

 So the only way to make it work is to implement this feature yourself.
 You'll need to modify XMLResourceBundle and XMLResourceBundleFactory to
 check the last modification date and reload the message if required.

 Regards,
   Konstantin Piroumian


 - Original Message - 
 From: Collin VanDyck
 To: [EMAIL PROTECTED]
 Sent: Thursday, October 16, 2003 19:24
 Subject: i18n resource catalogs are being cached


 Hey :)

 I'm seeing the caching of my i18n catalogs occur with Cocoon 2.0.  I
declare
 my xformer as:

 map:transformer name=i18n
 src=org.apache.cocoon.transformation.I18nTransformer
 catalogue-namemessages/catalogue-name
 catalogue-location../common/translations/catalogue-location
 untranslated-text[not yet translated]/untranslated-text
 cache-at-startupfalse/cache-at-startup
 /map:transformer

 And then I invoke it like this:

 map:match pattern=generateXSP/**
 map:generate type=serverpages src={1}/
 map:transform type=i18n
 map:parameter name=locale value=en/
 /map:transform
 map:serialize type=xml/
 /map:match

 I thought that specifying false for the cache-at-startup would fix this
 behavior (i need it not to cache for development purposes), but apparently
 it does cache, but only as resources that are not already cached are
 requested.

 Any help -- greatly appreciated.  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]



OT: does cocoon handle suicides in a convenient way?

2003-10-17 Thread Gianluca Sartori
I wander why... I followed the instructions. I'm still experimenting
with cocoon and I spent 3 (three) days trying to build a simple and
stupid example. I only tried to get some data out of my MS SQL Server...

God, Why did you leave me alone? Isn't true that you go with Java and
speak only XML so you can be anywhere and you can speak to everyone?

What did I do wrong? I think I'll commit suicide. The other way is wait
until that GET request handled by cocoon returns. Will this ever happen?

I'm only asking for an error message...

Gianluca


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



xsp-session:getxml XSP

2003-10-17 Thread Patrick Hess
I'm trying to get my authentification stuff back from the session in a 
XSP page - using xsp-session:getxml does not work for me. In the wiki 
there is an article that says the same:

http://wiki.cocoondev.org/Wiki.jsp?page=LDAPPortalAuthentification+and+RequestUserInfoFromXSP
(Part2 : Getting user info from XSP)
 Since it's not possible to use xsp-session:getxml I had to find an
  alternative.
Is it really not possible?

Thanks and have a nice weekend,
  Patrick


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


Re: OT: does cocoon handle suicides in a convenient way?

2003-10-17 Thread Bertrand Delacretaz
Le Vendredi, 17 oct 2003, à 15:12 Europe/Zurich, Gianluca Sartori a 
écrit :
...I'm only asking for an error message...
Most probably the connection pool is unable to connect to your database 
and tries again forever, you should see messages in the servlet engine 
logs if there are none in the Cocoon logs.

-Bertrand

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


RE: directory tree like presentation of xml contents

2003-10-17 Thread Johannes Becker
Hi Hugo,

I am using the DHTML tree from http://www.treeview.net like you are using. 
The only trouble so far is that I'm not getting the .gif's to load that the 
JavaScript is needing. I can navigate the tree without trouble, but the 
gif's are missing.
For testing I put the gif's in the same folder as the xml/xsl files.

Any hints or suggestion.

Regards
Jonny

From: Hugo Burm [EMAIL PROTECTED]
Reply-To: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: RE: directory tree like presentation of xml contents
Date: Wed, 15 Oct 2003 20:45:03 +0200
Hi,

I am using a DHTML tree from
http://www.treeview.net
to present an xml file.
The Cocoon xsl stylesheet has to generate the client side Javascript
functions like insFld that define the tree (see Treeview docs). And your
client has to load the Treeview javascript library (ftiens4.js).
Hugo Burm

 -Original Message-
 From: Johannes Becker [mailto:[EMAIL PROTECTED]
 Sent: Wednesday, October 15, 2003 8:09 PM
 To: [EMAIL PROTECTED]
 Subject: RE: directory tree like presentation of xml contents


 Hi,

 sorry I forgot something here. I want to present the XML in HTML.

 Jonny


 From: Lars Huttar [EMAIL PROTECTED]
 Reply-To: [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Subject: RE: directory tree like presentation of xml contents
 Date: Wed, 15 Oct 2003 10:40:05 -0500
 
   I want to present xml like this:
  
   a
   a1bla/a1
   a2bla/a2
   a3bla/a3
   a4
   b1bla/b1
   b2
   c1bla/c1
   /b2
   /a4
   /a
  
   in a nice directory tree-style.
  
   I looked around for a suitable xsl, but I couldn't find one.
   Has anyone got one/ knows of one?
  
   Thanks
   Jonny
 
 Internet Explorer will display XML in an indented, tree-like
 style (if there is no attached stylesheet).
 
 You can also look at the Pretty-printing XML FAQ at
 http://www.dpawson.co.uk/xsl/sect2/pretty.html
 
 By the way this is a topic for an XML or XSL list rather than Cocoon.
 (Though I understand the desire not to have to subscribe to umpteen
 different lists just to learn to use Cocoon.)
 
 HTH,
 Lars
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 

 _
 FreeSMS und 666 Webcams abräumen mit dem MSN Messenger.
 http://messenger-mania.msn.de Jetzt mitmachen und gewinnen!


 -
 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]
_
Schluß mit Spam! http://www.msn.de/antispam Wir helfen Ihnen, unerwünschte 
E-Mails zu reduzieren.

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


AW: xsp-session:getxml XSP

2003-10-17 Thread Markus Heussen
maybe use session:getxml context=mycontext path=/User/Name/ and the
session transformer of cocoon 2.1?

http://cocoon.apache.org/2.1/developing/webapps/authentication.html



-Ursprungliche Nachricht-
Von: Patrick Hess [mailto:[EMAIL PROTECTED]
Gesendet: Freitag, 17. Oktober 2003 15:03
An: [EMAIL PROTECTED]
Betreff: xsp-session:getxml  XSP



I'm trying to get my authentification stuff back from the session in a
XSP page - using xsp-session:getxml does not work for me. In the wiki
there is an article that says the same:

http://wiki.cocoondev.org/Wiki.jsp?page=LDAPPortalAuthentification+and+Reque
stUserInfoFromXSP
(Part2 : Getting user info from XSP)

  Since it's not possible to use xsp-session:getxml I had to find an
   alternative.

Is it really not possible?

Thanks and have a nice weekend,
   Patrick



-
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: editing simple-page2fo.xsl file for sql queries

2003-10-17 Thread Ashish Kumar
hi there,
  strength is just another table as name1, name2 etc.
i can't get what should i make in the stylesheet
sqlTransformerOutput2simple-page as u said. could u plz make it more clear
by giving any example tags.

ashish


On Tue, 14 Oct 2003, Joerg Heinicke wrote:

 I don't know where the sql:strength comes from, but the general hint 
 remains: add an additional sqlTransformerOutput2simple-page stylesheet 
 as a intermediate step. So you can reuse the default simple-page 
 stylesheets as they are. Imagine different output formats, the 
 intermediate step simplifies it.
 
 Joerg
 
 On 14.10.2003 14:24, Ashish Kumar wrote:
  hi there, 
  thanx for ur response,
  i have made following entries in the pipeline (file sitemap.xmap):
  
  -
  map:match pattern=pdf/simple.pdf
 map:generate src=docs/samples/simple-page.xml/
   map:transform type=sql
  map:parameter name=use-connection value=psql/ 
   /map:transform
 map:transform src=stylesheets/page/simple-page2fo.xsl/
   map:serialize type=fo2pdf/
  /map:match
  -
  
  and following is the entry in xml file:
  
  -
  execute-query xmlns=http://apache.org/cocoon/SQL/2.0;
  query
 select id,name1,name2,strength from table1
  /query
  /execute-query
  -
  
  hope this makes clear.
  
  ashish 
  
  On Tue, 14 Oct 2003, Joerg Heinicke wrote:
  
  
 What's your pipeline setup? It's hard to give valuable hints without 
 knowing your transformer stations. In general you should add a further 
 one, to make them more reusable and easier to maintain/understand.
 
 Joerg
 
 On 13.10.2003 20:12, Ashish Kumar wrote:
 
 
 hi all,
 i have to generate dynamic pdf from quering database and put it in
 proper format (tables). for that i have put an xml file with sql
 queries and modified simple-page2fo.xsl file with codes like following:
   
 xsl:template match=sql:strength
fo:block font-size=13pt space-before.optimum=12pt text-align=center
xsl:apply-templates/
/fo:block
 /xsl:template
 
 this is working fine, but i have to put many such entries in table in
 proper format. i m quite new to xsl:fo and don't know where to proper
 tags for tables (alongwith sql tags) tags and borders in the xsl file for
 formatted pdf output. 
 plz anyone tell me on how to add the tags. 
 can i have a sample file regarding it.
 also is there no graphical editor for xsl fo (as frontpage fro html)
 
 thanking in advance,
 ashish
 
 
 
 -
 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]



MySQL encoding problems with connector/J not throug ODBC

2003-10-17 Thread gounis

hi people 

i have (as many other people here)  encoding problems with greek language 

i have a mysql dadabase runing on winXP with greek content

i try a very simple query using cocoon 2.1 using two different connection 
methods

1. using MySQLConnector/j (3.0)
2. using ODBC connection


in case [1] i dont get greek characters
in case [2] i get greek characters corectly but is not the way i want 
because in production mysql and cocoon will be in a linux box ?

in my simple example i just execute a .xsp and a xml serialization

i have try the simplest query:

esql:connection
esql:pooltalanto_work/esql:pool
esql:execute-query
esql:queryselect * from contact/esql:query
esql:results
customers
esql:row-results
customer

esql:get-columns/
/customer
/esql:row-results
/customers
/esql:results
/esql:execute-query
/esql:connection



any idea ?


thnx 
--stavros


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



XSLT question

2003-10-17 Thread Jon Evans
Hi,

Sorry, this is not specifically a Cocoon question, it's more of a 
general XSLT question.

I have an xml file with a list of links, which I've just internationalized:

[...]
tab
  captioni18n:text i18n:key=resources.text//caption
  hrefi18n:text i18n:key=resources.link//href
/tab
[...]
I try to transform it into HTML like this:

[...]
xsl:template match=tab 
 lia  href={href}xsl:copy-of
 select=caption/*|caption/text()//a/li
/xsl:template
[...]
The step after this in my pipeline applies the i18ns.

Now, it doesn't work, presumably because the intermediate step isn't 
valid xml (it would be a href=i18n:text .../).

Is there a different way to specify it in the xml or the xsl.  Or am I 
stuck with having an i18n step in the pipeline both before and after 
that particular transform?

Cheers,

Jon

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


Re: OT: does cocoon handle suicides in a convenient way?

2003-10-17 Thread Gianluca Sartori
Il ven, 2003-10-17 alle 15:29, Bertrand Delacretaz ha scritto:
 Le Vendredi, 17 oct 2003, à 15:12 Europe/Zurich, Gianluca Sartori a 
 écrit :
  ...I'm only asking for an error message...
 
 Most probably the connection pool is unable to connect to your database 
 and tries again forever, you should see messages in the servlet engine 
 logs if there are none in the Cocoon logs.
 
 -Bertrand

Thanks. After sending this email, I made it work... I simply restart
tomcat. I still don't understand why sometimes I must restart the
application server. I'm used to only stop-and-go the context. And, yes,
I didn't modify tomcat related config files, but only cocoon specific
files.

Thanks anyway!
Gianluca

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



CLI - Problems with URI ending with / (with a code fix inlined)

2003-10-17 Thread Rolf Kulemann
Hello,

when using CLI to generate offline pages I get problems if my in site
uris end with /. In the following lines I describe the scenario and
small code fix to my problem. Maybe I could have achieved what I want
without that fix maybe not. Here we go.

Scenario:

Some uris in my site are
- service/
- contact/
- etc/

I access the homepage for example with http//www.mysite.com/ and a page
with http//www.mysite.com/service/ .

I want CLI to generate the following files and directories in the
destination directory:

-   index.html
-   service/index.html
-   contact/index.html
-   .

but I get:

-   index.html
-   service/index
-   contact/index
-   .

CLI is in this case not using my default-filename specified in xconf
file, which is index.html. It uses the one defined in Constants.java.

I tracked this down to a code snippet in class
org.apache.cocoon.bean.Target in method getDerivedTarget(...).

In that method you will find a code snippet like this:

 snippet 
 Target target = new Target(this.type, this.root, linkURI,
this.destURI);
target.setOriginalURI(originalLinkURI);
target.setParentURI(this.sourceURI);
target.setConfirmExtension(this.confirmExtension);
target.setFollowLinks(this.followLinks);
target.setLogger(this.logger);
return target;
 end of snippet 

I think the following line is missing before the return statement:

target.setDefaultFilename(this.defaultFilename);


Inserting that line and a recompile did the trick for me.


May be I have done some other thinsg wrongbut maybe it works for
you, too.


If someone is asking why I want urls to end with /, here is a reason:

I want to keep my uris, which are a user interface for me, independant
from the implementation of site pages. So I do not want my uris end with
.html .


I'm new to cocoon and I want to say:

Cocoon is really great software. Many thanks to all developers and
contrrbutors and other supporting people for it.



-- 
Rolf Kulemann

The individual choice of garnishment of a burger can be an important
point to the consumer in this day when individualism is an increasingly
important thing to people.
-- Donald N. Smith, president of Burger King


PGP/GPG public key:
 http://pgp.mit.edu:11371/pks/lookup?op=getsearch=0x6B4EA7EA


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



re: CLI and checksum-uri in Cocoon 2.1 CVS (head?)

2003-10-17 Thread Upayavira
I've just committed a fix. Thanks for pointing this out.

What the functionality that you came across does is store, in the file 
you referenced, a checksum for the content of a page when generated. 
Then, when pages are recreated, it only writes the file to disc if the 
checksum is different. That way you can tell whether or not a page 
should be uploaded, etc, by checking the datestamp.

Regards, Upayavira

Hi People,

the last days I was adicted to play around with cocoon 2.1 CVS HEAD.
I got stuck the first time when trying to generate offline pages.
CLI complained about a Malformed URL caused in method readChecksumFile()
in class org.apache.cocoon.bean.CocoonBean.java.
As far as I understand the java source, the CoooConBean expects the tag
checksum-uri in the xconf file. So I added 

checksums-uribuild/dest/mindpipe.com/checksums/checksums-uri

to my xconf file. Everything worked fine then.

Can anybody tell me if I did sth. wrong? Does this only happening on my
machine? I'm new to cocoon. Maybe I should not use a cvs head version?
--
Rolf Kulemann


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


Re: [CLI] LinkSerializer not replacing href attributes in 2.1.2

2003-10-17 Thread Upayavira
Artur,

Can you try with Cocoon from CVS? Or any snapshot after 1 Oct? There was 
a bug which I fixed that _may_ cause this.

Regards, Upayavira

Hi to all,

I just upgraded my cocoon distribution to 2.1.2, but
the CLI in the new distribution is not generating the links correctly
for my project. Although the file names are being correctly generated,
the href attributes inside the generated files are not being
replaced. I have confirm-extensions set to true in
cli.xconf. Is anyone having the same problem?
Best regards,

Artur Matos.





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


re: CLI and checksum-uri in Cocoon 2.1 CVS (head?)

2003-10-17 Thread Rolf Kulemann
On Fri, 2003-10-17 at 16:10, Upayavira wrote:
 I've just committed a fix. Thanks for pointing this out.
 
 What the functionality that you came across does is store, in the file 
 you referenced, a checksum for the content of a page when generated. 
 Then, when pages are recreated, it only writes the file to disc if the 
 checksum is different. That way you can tell whether or not a page 
 should be uploaded, etc, by checking the datestamp.

Thanks for committing and again thanks for that nice feature at all :)

(Sorry for thank you postings)


-- 
Rolf Kulemann

Oh, when I was in love with you,
Then I was clean and brave,
And miles around the wonder grew
How well did I behave.

And now the fancy passes by,
And nothing will remain,
And miles around they'll say that I
Am quite myself again.
-- A. E. Housman


PGP/GPG public key:
 http://pgp.mit.edu:11371/pks/lookup?op=getsearch=0x6B4EA7EA


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



Re: MySQL encoding problems with connector/J not throug ODBC

2003-10-17 Thread leo leonid
What encoding do you use in your DB? I solved all my encoding problems 
when I changed the encoding of my DB to UNICODE. (But I don't know if 
this possible in MySQL now. I migrated to PostgreSQL for this reason, a 
long time ago)

/leo

On Oct 17, 2003, at 4:02 PM, [EMAIL PROTECTED] wrote:

hi people

i have (as many other people here)  encoding problems with greek 
language

i have a mysql dadabase runing on winXP with greek content

i try a very simple query using cocoon 2.1 using two different 
connection
methods

1. using MySQLConnector/j (3.0)
2. using ODBC connection
in case [1] i dont get greek characters
in case [2] i get greek characters corectly but is not the way i want
because in production mysql and cocoon will be in a linux box ?
in my simple example i just execute a .xsp and a xml serialization

i have try the simplest query:

esql:connection
esql:pooltalanto_work/esql:pool
esql:execute-query
esql:queryselect * from contact/esql:query
esql:results
customers
esql:row-results
customer

esql:get-columns/
/customer
/esql:row-results
/customers
/esql:results
/esql:execute-query
/esql:connection


any idea ?

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


Re: CLI - Problems with URI ending with / (with a code fix inlined)

2003-10-17 Thread Upayavira
Rolf,

Again, well spotted. I've committed your fix.

[For some reason, I'm not getting list emails - I just happened to see 
these on the archives :-( ]

Regards, Upayavira

Hello,

when using CLI to generate offline pages I get problems if my in site
uris end with /. In the following lines I describe the scenario and
small code fix to my problem. Maybe I could have achieved what I want
without that fix maybe not. Here we go.
Scenario:

Some uris in my site are
- service/
- contact/
- etc/

I access the homepage for example with http//www.mysite.com/ and a page
with http//www.mysite.com/service/ .
I want CLI to generate the following files and directories in the
destination directory:
-   index.html
-   service/index.html
-   contact/index.html
-   .
but I get:

-   index.html
-   service/index
-   contact/index
-   .
CLI is in this case not using my default-filename specified in xconf
file, which is index.html. It uses the one defined in Constants.java.
I tracked this down to a code snippet in class
org.apache.cocoon.bean.Target in method getDerivedTarget(...).
In that method you will find a code snippet like this:

 snippet 
 Target target = new Target(this.type, this.root, linkURI,
this.destURI);
   target.setOriginalURI(originalLinkURI);
   target.setParentURI(this.sourceURI);
   target.setConfirmExtension(this.confirmExtension);
   target.setFollowLinks(this.followLinks);
   target.setLogger(this.logger);
   return target;
 end of snippet 
I think the following line is missing before the return statement:

	target.setDefaultFilename(this.defaultFilename);

Inserting that line and a recompile did the trick for me.

May be I have done some other thinsg wrongbut maybe it works for
you, too.
If someone is asking why I want urls to end with /, here is a reason:

I want to keep my uris, which are a user interface for me, independant
from the implementation of site pages. So I do not want my uris end with
.html .
I'm new to cocoon and I want to say:

Cocoon is really great software. Many thanks to all developers and
contrrbutors and other supporting people for it.


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


Re: OT: does cocoon handle suicides in a convenient way?

2003-10-17 Thread Bertrand Delacretaz
Le Vendredi, 17 oct 2003, à 16:07 Europe/Zurich, Gianluca Sartori a 
écrit :
...Thanks. After sending this email, I made it work... I simply restart
tomcat. I still don't understand why sometimes I must restart the
application server.
I prefer (by far) the lightweight setup using the cocoon.sh (or 
cocoon.bat) script for testing, restart is so much faster than tomcat.
I've also seen weird things when running under tomcat, like having to 
stop tomcat *and* empty its work directory sometimes to get things 
running.

Anyway I'm glad your suicide plans are over ;-)

-Bertrand

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


gallery example: browser doesn't display images

2003-10-17 Thread vg
Hi there!

This is my first time working with Cocoon. I am running:

+--+
|- SuSe Linux 8.2 |
|- ANT 1.5.4  |
|- Tomcat 4.1.27  |
|- Cocoon 2.1.2   |
+--+

I try to understand the _personalized gallery_ described in
Cocoon: Building XML Applications (Langham/Ziegler).


I followed the example, *BUT* apparently I am missing something important,
*BECAUSE* all my browser displays is the image not found icon (broken
image).


1.) pipeline in sitemap.xmap

  map:pipeline
map:match pattern=mygallery
map:generate src=gallery type=imagedirectory/
map:transform src=mygallery.xsl
map:parameter name=use-request-parameters value=true/
/map:transform
map:serialize type=html/
/map:match
!-- Gallery Images --
map:match pattern=gallery/**
map:read src=context://gallery/{1}/
/map:match
  /map:pipeline



2.) xsl file

?xml version=1.0?
xsl:stylesheet version=1.0
xmlns:xsl=http://www.w3.org/1999/XSL/Transform;
xmlns:dir=http://apache.org/cocoon/directory/2.0;

xsl:param name=color/
xsl:template match=/
html
body
xsl:choose
xsl:when test=$color=''
xsl:attribute name=bgcolor#FF/xsl:attribute
/xsl:when
xsl:when test=$color='red'
xsl:attribute name=bgcolor#FF/xsl:attribute
/xsl:when
xsl:when test=$color='black'
xsl:attribute name=bgcolor#00/xsl:attribute
/xsl:when
xsl:otherwise
xsl:attribute name=bgcolor
xsl:text#/xsl:textxsl:value-of select=$color/
/xsl:attribute
/xsl:otherwise
/xsl:choose
centerh1MyGallery/h1/center
xsl:for-each select=dir:directory/dir:file
  img src={/dir:directory/@name}/[EMAIL PROTECTED]
   width=100 height=100/#160;#160;
/xsl:for-each
br/
a href=mygallery?color=redI want red/abr/
a href=mygallery?color=blackI want black/abr/
a href=mygallery?color=AAI want grey/abr/
a href=mygalleryI want white/abr/
/body
/html
/xsl:template
/xsl:stylesheet



3.) HTML-Code
The data, which is sent to my browser, contains the following code:

html xmlns:dir=http://apache.org/cocoon/directory/2.0;
body bgcolor=#FF
  center
h1MyGallery/h1
  /center
  img height=100 width=100 src=gallery/pic1.jpgnbsp;nbsp;
  img height=100 width=100 src=gallery/pic2.jpgnbsp;nbsp;
  img height=100 width=100 src=gallery/pic3.jpgnbsp;nbsp;
  br
  a href=mygallery?color=redI want red/a
  br
  a href=mygallery?color=blackI want black/a
  br
  a href=mygallery?color=AAI want grey/a
  br
  a href=mygalleryI want white/a
  br
/body
/html



4.) path to directory
- When I view the source code, the paths to the images seem to be correct.
The pictures are located within gallery, which is a subdirectory to my
cocoon context: cocoon/gallery/*.jpg

- If I save this data as HTML file within the cocoon context, I can point
my browser at this file and every image is displayed.

- If I try to View Image from within my browser, Cocoon generates a
resource not found message, which states that there is *no* local
sitemap.xmap in directory gallery. Did I miss something here?

org.apache.cocoon.ResourceNotFoundException: Resource not found.:
org.apache.excalibur.source.SourceNotFoundException:
file:/{localpath}/cocoon/gallery/sitemap.xmap doesn't exist.



5.) cocoon error logs
- sitemap.log: is polluted with infos:
[sitemap] (/cocoon/gallery/pic1.jpg) Thread-34/HandleErrorsNode:
Processing handle-errors at
file:/{localpath}/cocoon/sitemap.xmap:741:24

- handled-errors.log: is polluted with errors:
[sitemap.handled-errors] (/cocoon/gallery/pic1.jpg)
Thread-34/PipelineNode: Resource not found.



The entries in these error logs should tell me something, but I can't
figure out what it means. Can someone please give me a hint?

Thank you in advance!

Regards,
Nele.


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



Re: XSLT question

2003-10-17 Thread leo leonid
I don't really get what want to to, but probably its the attribute  
translation you are looking for.

snip  
src=http://cocoon.apache.org/2.1/userdocs/transformers/i18n- 
transformer.html

Additionally we can translate attributes. This is very useful for  
HTML-forms since labels of buttons are set via an attribute in HTML. To  
translate attributes of a tag, add an additional attribute named  
'i18n:attr' containing a list of attributes, which should be  
translated, separated by spaces. An example:

INPUT type=submit value=Submit i18n:attr=value/

The attribute, which will be translated is 'value'. Parameter  
replacement is not available for attributes at this time.

/snip

On Oct 17, 2003, at 4:06 PM, Jon Evans wrote:

Hi,

Sorry, this is not specifically a Cocoon question, it's more of a  
general XSLT question.

I have an xml file with a list of links, which I've just  
internationalized:

[...]
tab
  captioni18n:text i18n:key=resources.text//caption
  hrefi18n:text i18n:key=resources.link//href
/tab
[...]
I try to transform it into HTML like this:

[...]
xsl:template match=tab 
 lia  href={href}xsl:copy-of
 select=caption/*|caption/text()//a/li
/xsl:template
[...]
The step after this in my pipeline applies the i18ns.

Now, it doesn't work, presumably because the intermediate step isn't  
valid xml (it would be a href=i18n:text .../).

Is there a different way to specify it in the xml or the xsl.  Or am I  
stuck with having an i18n step in the pipeline both before and after  
that particular transform?

Cheers,

Jon

-
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: xsp-session:getxml XSP

2003-10-17 Thread Simeon Walker
On Fri, 2003-10-17 at 14:02, Patrick Hess wrote:
 I'm trying to get my authentification stuff back from the session in a 
 XSP page - using xsp-session:getxml does not work for me. In the wiki 
 there is an article that says the same:
 
 http://wiki.cocoondev.org/Wiki.jsp?page=LDAPPortalAuthentification+and+RequestUserInfoFromXSP
 (Part2 : Getting user info from XSP)
 
   Since it's not possible to use xsp-session:getxml I had to find an
alternative.
 
 Is it really not possible?
 
 Thanks and have a nice weekend,
Patrick
 
I've been through this too...

I think you want to use something like:

xsp-session-fw:getxml context=authentication path=/authentication/data/something/

The namespace is:

xmlns:xsp-session-fw=http://apache.org/xsp/session-fw/1.0;

Regards,
Simeon


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



Re: Serializing to a request attribute Database Actions questions....

2003-10-17 Thread Andrzej Jan Taramina
Steve

 I'm just getting this to work myself... Have you taken a look at the
 modular db samples in 2.1? You'll have to pick your way through the sample;
 there is a lot going on there. 

Yup...I have looked at that in detail, and have my first Database Add action 
almost working.

 Also this doc shows a one liner about doing what you describe:
 
 http://cocoon.apache.org/2.1/userdocs/actions/database-actions.html
 
 Specifically:
table name=user_groups
   keys
  key name=uid type=int
 mode name=request type=request
parameteruser_groups.uid/parameter
 /mode
 mode name=attribute type=attrib
 parameterorg.apache.cocoon.components.modules.output.OutputModule:user.uid[0
 ]/parameter
 /mode
  /key
  key name=gid type=int set=master
 mode name=request type=all
parameteruser_groups.gid/parameter
 /mode
  /key
   /keys
/table

What confuses me a bit still is how the modes actually work. It seems that 
you can specify multiple modes and then select them, which will in turn cause 
the input/output data to be read/written to different places.

In the example above, I'm not sure what the parameter tag is doing.  Is it 
writing a request attribute with the name 
org.apache.cocoon.components.modules.output.OutputModule:user.uid[0 and a 
value of that key column?

 An important thing to know is that the mode name corresponds to the input
 module name in the cocoon.xconf file. So with the latest 2.1 code you'd want
 to substitute mode name=request-attr above. The mode type can be set to
 all to make it work in all cases. What the above does is allow the request
 to contain the attribute user.uid (the modules always return a list - so if
 there is always one field you need index 0) to database field uid in table
 user_groups.

Which mode are you suggesting doing the substitute on, the request or the 
attribute one?  And what do the type designators do?

 Unfortunately, that's about all I can help with...

Every little bit helps!  Thanks!


Andrzej Jan Taramina
Chaeron Corporation: Enterprise System Solutions
http://www.chaeron.com


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



Modular DB Actions, MS SQLServer and AutoIncrement columns?

2003-10-17 Thread Andrzej Jan Taramina
I'm trying to figure out how to use MS SQLServer 2K's Identity columns as a 
primary key, which automatically generate a new value for the field when 
using Modular DB Actions to do an insert.

I kinda thought it should look like this for an identity column called id 
in the database descriptor:

key name=id type=int autoincrement=true
mode name=auto type=autoincr/
/key

But it didn't work.the DatabasAddAction tried to insert the value for the 
actual key, and SQLServer punted that since you can't manually set identity 
columns.

Is it the mode above that is causing this behaviour?

Any hints as to how to set up the key section in the database descriptor 
for this to work.

Thanks!
Andrzej Jan Taramina
Chaeron Corporation: Enterprise System Solutions
http://www.chaeron.com


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



RE: MySQL encoding problems with connector/J not throug ODBC

2003-10-17 Thread Mark H
Came across a similar problem a while back. The solution was to add
parameters to the database url, setting the character encoding to the one
that java uses.

in WEB-INF/cocoon.xconf:

datasources
jdbc name=databaseName logger=core.datasources.databaseName
  pool-controller min=5 max=10/

dburljdbc:mysql://localhost/databaseName?useUnicode=trueamp;characterEnco
ding=Cp1252/dburl
  userusername/user
  passwordpassword/password
/jdbc
 /datasources

Mark

 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED]
 ]On Behalf Of leo leonid
 Sent: 17 October 2003 15:20
 To: [EMAIL PROTECTED]
 Subject: Re: MySQL encoding problems with connector/J not throug ODBC



 What encoding do you use in your DB? I solved all my encoding problems
 when I changed the encoding of my DB to UNICODE. (But I don't know if
 this possible in MySQL now. I migrated to PostgreSQL for this reason, a
 long time ago)

 /leo

 On Oct 17, 2003, at 4:02 PM, [EMAIL PROTECTED] wrote:

 
  hi people
 
  i have (as many other people here)  encoding problems with greek
  language
 
  i have a mysql dadabase runing on winXP with greek content
 
  i try a very simple query using cocoon 2.1 using two different
  connection
  methods
 
  1. using MySQLConnector/j (3.0)
  2. using ODBC connection
 
 
  in case [1] i dont get greek characters
  in case [2] i get greek characters corectly but is not the way i want
  because in production mysql and cocoon will be in a linux box ?
 
  in my simple example i just execute a .xsp and a xml serialization
 
  i have try the simplest query:
 
  esql:connection
  esql:pooltalanto_work/esql:pool
  esql:execute-query
  esql:queryselect * from
 contact/esql:query
  esql:results
  customers
  esql:row-results
  customer
 
 esql:get-columns/
  /customer
  /esql:row-results
  /customers
  /esql:results
  /esql:execute-query
  /esql:connection
 
 
 
  any idea ?
 
 
  thnx
  --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]





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



Re: i18n resource catalogs are being cached

2003-10-17 Thread Collin VanDyck
This worked perfectly. thanks.

- Original Message - 
From: Konstantin Piroumian [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, October 17, 2003 1:59 AM
Subject: Re: i18n resource catalogs are being cached


 Hi,

 Message from i18n catalogs are always cached and cache-at-startup option
 simply defined when to cache the message, either load all the messages at
 startup or just cache as they are requested. This is the intended
behavior.

 I suppose that you are looking for something that will check the last
 modification date of a resource bundle and then reload it, right?
 Unfortunately, this is a long time 'ToDo' item in i18n transformer and
don't
 know if anybody is going to fix this in the nearest future.

 So the only way to make it work is to implement this feature yourself.
 You'll need to modify XMLResourceBundle and XMLResourceBundleFactory to
 check the last modification date and reload the message if required.

 Regards,
   Konstantin Piroumian


 - Original Message - 
 From: Collin VanDyck
 To: [EMAIL PROTECTED]
 Sent: Thursday, October 16, 2003 19:24
 Subject: i18n resource catalogs are being cached


 Hey :)

 I'm seeing the caching of my i18n catalogs occur with Cocoon 2.0.  I
declare
 my xformer as:

 map:transformer name=i18n
 src=org.apache.cocoon.transformation.I18nTransformer
 catalogue-namemessages/catalogue-name
 catalogue-location../common/translations/catalogue-location
 untranslated-text[not yet translated]/untranslated-text
 cache-at-startupfalse/cache-at-startup
 /map:transformer

 And then I invoke it like this:

 map:match pattern=generateXSP/**
 map:generate type=serverpages src={1}/
 map:transform type=i18n
 map:parameter name=locale value=en/
 /map:transform
 map:serialize type=xml/
 /map:match

 I thought that specifying false for the cache-at-startup would fix this
 behavior (i need it not to cache for development purposes), but apparently
 it does cache, but only as resources that are not already cached are
 requested.

 Any help -- greatly appreciated.  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: CLI - Problems with URI ending with / (with a code fix inlined)

2003-10-17 Thread Andrew Savory
On Fri, 17 Oct 2003, Upayavira wrote:

 I've committed your fix.

nudge2.2 tree too/nudge

;-)

Andrew.

-- 
Andrew SavoryEmail: [EMAIL PROTECTED]
Managing Director  Tel:  +44 (0)870 741 6658
Luminas Internet Applications  Fax:  +44 (0)700 598 1135
Orixo alliance: http://www.orixo.com/  Web:www.luminas.co.uk

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



Re: xsp-session:getxml XSP

2003-10-17 Thread Patrick Hess
Simeon Walker wrote:

xsp-session-fw:getxml context=authentication path=/authentication/data/something/

The namespace is:

xmlns:xsp-session-fw=http://apache.org/xsp/session-fw/1.0;
Thanks a lot, tha works fine for me!

Patrick



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


Re: i18n resource catalogs are being cached

2003-10-17 Thread Joerg Heinicke
Collin VanDyck wrote:
This worked perfectly. thanks.
Does this mean, you have patched your Cocoon? Are you willing to contribute 
this patch, so that we can commit it and everybody gets this functionality?

Regards,

Joerg

- Original Message - 
From: Konstantin Piroumian [EMAIL PROTECTED]

Hi,

Message from i18n catalogs are always cached and cache-at-startup option
simply defined when to cache the message, either load all the messages at
startup or just cache as they are requested. This is the intended
behavior.

I suppose that you are looking for something that will check the last
modification date of a resource bundle and then reload it, right?
Unfortunately, this is a long time 'ToDo' item in i18n transformer and
don't

know if anybody is going to fix this in the nearest future.

So the only way to make it work is to implement this feature yourself.
You'll need to modify XMLResourceBundle and XMLResourceBundleFactory to
check the last modification date and reload the message if required.
Regards,
 Konstantin Piroumian
- Original Message - 
From: Collin VanDyck

Hey :)

I'm seeing the caching of my i18n catalogs occur with Cocoon 2.0.  I
declare

my xformer as:

map:transformer name=i18n
src=org.apache.cocoon.transformation.I18nTransformer
   catalogue-namemessages/catalogue-name
   catalogue-location../common/translations/catalogue-location
   untranslated-text[not yet translated]/untranslated-text
   cache-at-startupfalse/cache-at-startup
/map:transformer
And then I invoke it like this:

map:match pattern=generateXSP/**
   map:generate type=serverpages src={1}/
   map:transform type=i18n
   map:parameter name=locale value=en/
   /map:transform
   map:serialize type=xml/
/map:match
I thought that specifying false for the cache-at-startup would fix this
behavior (i need it not to cache for development purposes), but apparently
it does cache, but only as resources that are not already cached are
requested.
Any help -- greatly appreciated.  Thanks :)

Collin
--
System Development
VIRBUS AG
Fon  +49(0)341-979-7419
Fax  +49(0)341-979-7409
[EMAIL PROTECTED]
www.virbus.de
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: i18n resource catalogs are being cached

2003-10-17 Thread Collin VanDyck
Well, the only problem with what I have now, is that I had to get this out
quick and dirty to get it work so that some of our other content providers
can see their changes update in real-time.

To that effect, my solution works only when 'all' of the resource files are
updated (via a 'touch' by ant in the built files). I did not have time to
really look into the proper solution, so I feel like it is a hack.  Would
you be willing to take a look at the source and modify correctly?  I think
it is almost there.

Also, I'm unfamiliar with this process, so you might have to walk me through
it.

thanks,
Collin


- Original Message - 
From: Joerg Heinicke [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, October 17, 2003 11:12 AM
Subject: Re: i18n resource catalogs are being cached


 Collin VanDyck wrote:
  This worked perfectly. thanks.

 Does this mean, you have patched your Cocoon? Are you willing to
contribute
 this patch, so that we can commit it and everybody gets this
functionality?

 Regards,

 Joerg

  - Original Message - 
  From: Konstantin Piroumian [EMAIL PROTECTED]
 
 Hi,
 
 Message from i18n catalogs are always cached and cache-at-startup
option
 simply defined when to cache the message, either load all the messages
at
 startup or just cache as they are requested. This is the intended
 
  behavior.
 
 I suppose that you are looking for something that will check the last
 modification date of a resource bundle and then reload it, right?
 Unfortunately, this is a long time 'ToDo' item in i18n transformer and
 
  don't
 
 know if anybody is going to fix this in the nearest future.
 
 So the only way to make it work is to implement this feature yourself.
 You'll need to modify XMLResourceBundle and XMLResourceBundleFactory to
 check the last modification date and reload the message if required.
 
 Regards,
   Konstantin Piroumian
 
 
 - Original Message - 
 From: Collin VanDyck
 
 Hey :)
 
 I'm seeing the caching of my i18n catalogs occur with Cocoon 2.0.  I
 
  declare
 
 my xformer as:
 
 map:transformer name=i18n
 src=org.apache.cocoon.transformation.I18nTransformer
 catalogue-namemessages/catalogue-name
 catalogue-location../common/translations/catalogue-location
 untranslated-text[not yet translated]/untranslated-text
 cache-at-startupfalse/cache-at-startup
 /map:transformer
 
 And then I invoke it like this:
 
 map:match pattern=generateXSP/**
 map:generate type=serverpages src={1}/
 map:transform type=i18n
 map:parameter name=locale value=en/
 /map:transform
 map:serialize type=xml/
 /map:match
 
 I thought that specifying false for the cache-at-startup would fix this
 behavior (i need it not to cache for development purposes), but
apparently
 it does cache, but only as resources that are not already cached are
 requested.
 
 Any help -- greatly appreciated.  Thanks :)
 
 Collin

 -- 
 System Development
 VIRBUS AG
 Fon  +49(0)341-979-7419
 Fax  +49(0)341-979-7409
 [EMAIL PROTECTED]
 www.virbus.de


 -
 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: XSLT question

2003-10-17 Thread Jon Evans
leo leonid wrote:
I don't really get what want to to, but probably its the attribute 
translation you are looking for.

snip 
src=http://cocoon.apache.org/2.1/userdocs/transformers/i18n-
transformer.html
Thanks Leo,

That doc covered what I was trying to do.

Cheers,

Jon

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


Re: Cocoon And Memory

2003-10-17 Thread Timothy Larson
--- Timothy Larson [EMAIL PROTECTED] wrote:
 You may also need to set some configuration parameters to
 prevent caching the final document.

I found the email about this setting:
  http://marc.theaimsgroup.com/?l=xml-cocoon-usersm=106251603314822w=2

quote
I've checked the serializers and their default buffer size is 8192, I
guess that shouldn't be a problem. You could always try changing it to 0
by adding:

outputBufferSize0/outputBufferSize

inside the map:pipe element of the pipeline implementation you're using
(likely the caching one).
/quote

Hope this helps,
--Tim Larson


__
Do you Yahoo!?
The New Yahoo! Shopping - with improved product search
http://shopping.yahoo.com

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



Re: Cocoon And Memory

2003-10-17 Thread Bruno Dumon
On Fri, 2003-10-17 at 17:23, Timothy Larson wrote:
 --- Timothy Larson [EMAIL PROTECTED] wrote:
  You may also need to set some configuration parameters to
  prevent caching the final document.
 
 I found the email about this setting:
   http://marc.theaimsgroup.com/?l=xml-cocoon-usersm=106251603314822w=2
 
 quote
 I've checked the serializers and their default buffer size is 8192, I
 guess that shouldn't be a problem. You could always try changing it to 0
 by adding:
 
 outputBufferSize0/outputBufferSize
 
 inside the map:pipe element of the pipeline implementation you're using
 (likely the caching one).
 /quote

the above information proved wrong afterwards, the correct information
is in this message:
http://marc.theaimsgroup.com/?l=xml-cocoon-usersm=106262019428346w=2

However, this only applies to Cocoon 2.1.

BTW, if you don't need caching you could also try switching to the
non-caching pipeline implementation to save some memory.

-- 
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: problem with relative URI in document() in XSLT in Cocoon

2003-10-17 Thread Lars Huttar
I wrote:
 J.Pietschmann wrote:
  You shouldn't use document() in Cocoon style sheets anyway, for a
  variety of reasons, one of them bein problems with caching.
  Use map:aggregate, XInclude or CInclude instead.
 
 There shouldn't be a problem with caching in this case, because
 the referenced xml document is static. Any other compelling reason
 not to use document()?
 
 The referenced document in this case is a lookup-table
 that had been in my stylesheet; I decided to move it out into
 a separate XML file so I could share it between two stylesheets.
 That structural change doesn't affect the input or output of the
 stylesheet, so theoretically it shouldn't be necessary for 
 the pipeline
 to know where this static data is stored
 (which it would have to if I used map:aggregate, XInclude, or 
 CInclude).

OK, that's not strictly true, the pipeline wouldn't have to know
_where_ the data was stored in the case of a CInclude, but it would
have to know that the data was cincluded instead of contained in
the stylesheet directly.
That seems to me like an unfortunate diminishment of SoC.

It also would require (as far as I can tell) two extra steps in
the pipeline. Currently it's
- generate type=directory
- transform src=framework.xsl
With CInclude it would have to be
- generate type=directory
- transform src=add-cinclude-elements.xsl
- transform type=cinclude
- transform src=framework.xsl

Since the sitemap/pipelines are the backbone of control in Cocoon, it seems
to me you'd want to keep pipelines as simple as possible, while
hiding complexity away in self-contained modules like framework.xsl.

I guess aggregate would be OK if it doesn't mean creating additional
pipelines...

 As someone else mentioned recently, there are times when document()
 does make things a lot simpler. It would be a shame for Cocoon, which
 uses XSL so heavily, to be hobbled by a general don't-use-document()
 rule.
 
 Lars


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



RE: MySQL encoding problems with connector/J not throug ODBC

2003-10-17 Thread gounis

for example 

in UTF case te url will be like this ? :


jdbc:mysql://localhost/databaseName?useUnicode=trueamp;characterEncoding=UTF-8



On Fri, 17 Oct 2003, Mark H wrote:

 Came across a similar problem a while back. The solution was to add
 parameters to the database url, setting the character encoding to the one
 that java uses.
 
 in WEB-INF/cocoon.xconf:
 
 datasources
 jdbc name=databaseName logger=core.datasources.databaseName
   pool-controller min=5 max=10/
 
 dburljdbc:mysql://localhost/databaseName?useUnicode=trueamp;characterEnco
 ding=Cp1252/dburl
   userusername/user
   passwordpassword/password
 /jdbc
  /datasources
 
 Mark
 
  -Original Message-
  From: [EMAIL PROTECTED]
  [mailto:[EMAIL PROTECTED]
  ]On Behalf Of leo leonid
  Sent: 17 October 2003 15:20
  To: [EMAIL PROTECTED]
  Subject: Re: MySQL encoding problems with connector/J not throug ODBC
 
 
 
  What encoding do you use in your DB? I solved all my encoding problems
  when I changed the encoding of my DB to UNICODE. (But I don't know if
  this possible in MySQL now. I migrated to PostgreSQL for this reason, a
  long time ago)
 
  /leo
 
  On Oct 17, 2003, at 4:02 PM, [EMAIL PROTECTED] wrote:
 
  
   hi people
  
   i have (as many other people here)  encoding problems with greek
   language
  
   i have a mysql dadabase runing on winXP with greek content
  
   i try a very simple query using cocoon 2.1 using two different
   connection
   methods
  
   1. using MySQLConnector/j (3.0)
   2. using ODBC connection
  
  
   in case [1] i dont get greek characters
   in case [2] i get greek characters corectly but is not the way i want
   because in production mysql and cocoon will be in a linux box ?
  
   in my simple example i just execute a .xsp and a xml serialization
  
   i have try the simplest query:
  
 esql:connection
 esql:pooltalanto_work/esql:pool
 esql:execute-query
 esql:queryselect * from
  contact/esql:query
 esql:results
 customers
 esql:row-results
 customer
  
  esql:get-columns/
 /customer
 /esql:row-results
 /customers
 /esql:results
 /esql:execute-query
 /esql:connection
  
  
  
   any idea ?
  
  
   thnx
   --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]
 
 
 
 
 
 -
 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: cocoon dont's remember locale selection

2003-10-17 Thread Simeon Walker
On Fri, 2003-10-17 at 12:12, [EMAIL PROTECTED] wrote:
 kontsantin,
 
 finaly i have find a solution to my problem but not at all.
 
 until now i use to have in action declaration 
 
 create-sessiontrue/create-session
 store-in-sessiontrue/store-in-session
 store-in-requesttrue/store-in-request
 store-in-cookiefalse/store-in-cookie
 
 and everything work fine direclt from tomcat/cocoon
 
 but with apache at front (mod_proxy or/and mod_rewrite) i have the problem 
 i have describe in previous my post 
 
This problem rings a bell with me somewhere in the past. At the moment I
use mod_jk and JkMount to connect Apache to Cocoon. This way the locale
stored in a session certainly works.

Regards,
Simeon



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



Re: should I use-store in XSLTPRocessorImpl component options?

2003-10-17 Thread Bruno Dumon
On Tue, 2003-10-14 at 19:46, Lars Huttar wrote:
 The snippet at
 http://cocoon.apache.org/2.1/snippet/snippet-xslt-options.html
 talks about Specifying Different XSLT Processor Options,
 but I can't find an explanation of what the parameter
 use-store should be used for.
 
 The Cocoon API
 (http://cocoon.apache.org/2.0/apidocs/org/apache/cocoon/components/xslt/XSLTProcessorImpl.html)
 says
 The use-store configuration forces the transformer to put the Templates generated 
 from the XSLT
 stylesheet into the Store. This property is true by default.
 
 What is the Store -- is it basically a cache so that
 transforming the same input XML with the same stylesheet
 can be done quickly the second time?
 In what circumstances should I change this option?

Normally you should set this option to true. Setting it to true causes
the compiled XSLT to be cached. This will save a large amount of
processing time (typically a multiple of the time it takes to actually
apply the XSL to the XML, depending on lots of factors of course).

Caching of the same input XML should be handled by the normal Cocoon
caching, if your pipeline is cacheable.

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



[SOLUTION] RE: MySQL encoding problems with connector/J not throug ODBC

2003-10-17 Thread gounis
thnx to all of you

finaly i have try to insert greek content in MySQL using connect/j

i write down all the step i have to do

cocoon.xconf
dburljdbc:mysql://localhost/databaseName?useUnicode=trueamp;characterEncoding=ISO-8859-7/dburl

sitemap.xmap
in actions:
map:action name=set-encoding 
src=org.apache.cocoon.acting.SetCharacterEncodingAction/

in pipeline:
map:act type=set-encoding
map:parameter name=form-encoding value=UTF-8/
/map:act

the action in site map help me to post greek text from html forms to .xsp 
where the data are appended to mysql


--stavros


On Fri, 17 Oct 2003 [EMAIL PROTECTED] wrote:

 
 for example 
 
 in UTF case te url will be like this ? :
 
 
 jdbc:mysql://localhost/databaseName?useUnicode=trueamp;characterEncoding=UTF-8
 
 
 
 On Fri, 17 Oct 2003, Mark H wrote:
 
  Came across a similar problem a while back. The solution was to add
  parameters to the database url, setting the character encoding to the one
  that java uses.
  
  in WEB-INF/cocoon.xconf:
  
  datasources
  jdbc name=databaseName logger=core.datasources.databaseName
pool-controller min=5 max=10/
  
  dburljdbc:mysql://localhost/databaseName?useUnicode=trueamp;characterEnco
  ding=Cp1252/dburl
userusername/user
passwordpassword/password
  /jdbc
   /datasources
  
  Mark
  
   -Original Message-
   From: [EMAIL PROTECTED]
   [mailto:[EMAIL PROTECTED]
   ]On Behalf Of leo leonid
   Sent: 17 October 2003 15:20
   To: [EMAIL PROTECTED]
   Subject: Re: MySQL encoding problems with connector/J not throug ODBC
  
  
  
   What encoding do you use in your DB? I solved all my encoding problems
   when I changed the encoding of my DB to UNICODE. (But I don't know if
   this possible in MySQL now. I migrated to PostgreSQL for this reason, a
   long time ago)
  
   /leo
  
   On Oct 17, 2003, at 4:02 PM, [EMAIL PROTECTED] wrote:
  
   
hi people
   
i have (as many other people here)  encoding problems with greek
language
   
i have a mysql dadabase runing on winXP with greek content
   
i try a very simple query using cocoon 2.1 using two different
connection
methods
   
1. using MySQLConnector/j (3.0)
2. using ODBC connection
   
   
in case [1] i dont get greek characters
in case [2] i get greek characters corectly but is not the way i want
because in production mysql and cocoon will be in a linux box ?
   
in my simple example i just execute a .xsp and a xml serialization
   
i have try the simplest query:
   
esql:connection
esql:pooltalanto_work/esql:pool
esql:execute-query
esql:queryselect * from
   contact/esql:query
esql:results
customers
esql:row-results
customer
   
   esql:get-columns/
/customer
/esql:row-results
/customers
/esql:results
/esql:execute-query
/esql:connection
   
   
   
any idea ?
   
   
thnx
--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]
  
  
  
  
  
  -
  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: Cocon 2.1: Still Problems with large downloads

2003-10-17 Thread Bruno Dumon
On Fri, 2003-10-17 at 00:24, Alexander Schatten wrote:
 Already in Cocoon 2.0x there were severe problems with large downloads. 
 Using a statement like:
 
  
 map:match pattern=downloads/**.gz
 map:read mime-type=application/x-gzip 
 src=downloads/{1}.gz/
 /map:match
  
 
 basically worked with files below approx. 16MB. Files with sizes above, 
 were terminated at 16MB.
 
 not good.
 
 I hoped, that this is corrected in 2.1 unfortunately it seems to have a 
 similar behaviour: I tried a file with about 24MB and the resulting 
 downlad had 0 bytes...
 
 Does anyone have an idea how to solve this problem?

I heard such claims before so I wanted to see it for myself. I simply
added a map:read to a default Cocoon 2.1 sitemap to read a ~70 MB file.

Open a browser and surf to the correct URL... my computer slows down
completely, I don't get anything in my browser, so I just abort jetty
before it gets out of hand.

Then I tried putting the map:read in a pipeline like this:

  map:pipeline type=noncaching
map:parameter name=outputBufferSize value=8192/

map:match pattern=test.xyz
  map:read src=/home/bruno/tmp/sylvain.avi/
/map:match
  /map:pipeline

Two important things here:
 * I used the non-caching pipeline
 * I disabled complete output-buffering by specifying an
outputBufferSize parameter with a reasonable value

which saves me about 140 MB of otherwise useless wasted RAM, and now it
works like a charm.

Let me know if this also helps for you.

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



FYI - Standalone demo and file uploads

2003-10-17 Thread Steve Schwarz
I just ran across this and thought it might help someone else...

If you are using the standalone demo Jetty servlet where it creates its temp 
files (and consequently it's upload directory) on a different file system 
from the cocoon deployment AND your File Upload Action naively uses 
File.renameTo() to copy the file to its final resting place File.renameTo() 
can fail. According to the Java spec this behavior is platform specific; 
this stands to reason since internally the rename probably just updates some 
filesystem pointers within the filesystem table/FAT, which it can't do if 
the file is destined for a different filesystem.

I saw this behavior using the standalone demo on my dev Linux machine since 
Jetty writes to /tmp/Jetty_ etc and my cocoon install is in /home on a 
different filesystem.

Anyway, to make a long story short, if this is an issue for anyone else you 
can change the action to try the rename and then do a copy if the rename 
fails.

Best regards,
Steve
_
Never get a busy signal because you are always connected  with high-speed 
Internet access. Click here to comparison-shop providers.  
https://broadband.msn.com

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


Re: Cocon 2.1: Still Problems with large downloads

2003-10-17 Thread Bruno Dumon
On Fri, 2003-10-17 at 18:08, Bruno Dumon wrote:
 On Fri, 2003-10-17 at 00:24, Alexander Schatten wrote:
  Already in Cocoon 2.0x there were severe problems with large downloads. 
  Using a statement like:
  
   
  map:match pattern=downloads/**.gz
  map:read mime-type=application/x-gzip 
  src=downloads/{1}.gz/
  /map:match
   
  
  basically worked with files below approx. 16MB. Files with sizes above, 
  were terminated at 16MB.
  
  not good.
  
  I hoped, that this is corrected in 2.1 unfortunately it seems to have a 
  similar behaviour: I tried a file with about 24MB and the resulting 
  downlad had 0 bytes...
  
  Does anyone have an idea how to solve this problem?
 
 I heard such claims before so I wanted to see it for myself. I simply
 added a map:read to a default Cocoon 2.1 sitemap to read a ~70 MB file.
 
 Open a browser and surf to the correct URL... my computer slows down
 completely, I don't get anything in my browser, so I just abort jetty
 before it gets out of hand.
 
 Then I tried putting the map:read in a pipeline like this:
 
   map:pipeline type=noncaching
 map:parameter name=outputBufferSize value=8192/
 
 map:match pattern=test.xyz
   map:read src=/home/bruno/tmp/sylvain.avi/
 /map:match
   /map:pipeline
 
 Two important things here:
  * I used the non-caching pipeline
  * I disabled complete output-buffering by specifying an
 outputBufferSize parameter with a reasonable value
 
 which saves me about 140 MB of otherwise useless wasted RAM, and now it
 works like a charm.

Oops, forgot one aspect here: the caches and buffers aren't created of
the correct size from the first time (because it is unknown on
beforehand). Rather it starts small, lets say at 10k, and when that
buffer is full, a new one of 20k is created and the first 10k is copied
into it, then when the 20k is full one of 40k is created, and so on...
after a while it will reach e.g. 40MB and create one of 80MB, copying
the first 40MB into it, and thus needing 120MB of memory temporarely to
holds those two buffers...

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



Setting a global sitemap parameter

2003-10-17 Thread Oleg Dulin
Dear Distinguished Colleagues:

Does anybody know how to set a global sitemap parameter that I can 
access across all pipelines ?

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


Re: Serializing to a request attribute Database Actions questions....

2003-10-17 Thread Christian Haul
Andrzej Jan Taramina wrote:

What confuses me a bit still is how the modes actually work. It seems that 
you can specify multiple modes and then select them, which will in turn cause 
the input/output data to be read/written to different places.
Yes. Only input, though. Output is configured from sitemap.

In the example above, I'm not sure what the parameter tag is doing.  Is it 
writing a request attribute with the name 
org.apache.cocoon.components.modules.output.OutputModule:user.uid[0 and a 
value of that key column?
No, it's reading from it. Output defaults to using the request attribute 
output module which adds the org.apacheOutputModule: prefix. This 
can be configured in cocoon.xconf BTW.

An important thing to know is that the mode name corresponds to the input
module name in the cocoon.xconf file. So with the latest 2.1 code you'd want
to substitute mode name=request-attr above. The mode type can be set to
all to make it work in all cases. What the above does is allow the request
to contain the attribute user.uid (the modules always return a list - so if
there is always one field you need index 0) to database field uid in table
user_groups.


Which mode are you suggesting doing the substitute on, the request or the 
attribute one?  And what do the type designators do?
Uh? Don't understand the question.

	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: Setting a global sitemap parameter

2003-10-17 Thread Tony Collen
Oleg Dulin wrote:
Dear Distinguished Colleagues:

Does anybody know how to set a global sitemap parameter that I can 
access across all pipelines ?


Yes! this is very easy! :)

in your sitemap, you will see something that looks like this:

  map:component-configurations
global-variables
   !--+
   | Define global parameters here:
   |   skinmy_skin/skin
   |   ...
   | You can access them by {global:*name*}, e.g. {global:skin}.
   | These values are inherited into sub-sitemaps and can
   | be extended there.
   +--
/global-variables
  /map:component-configurations
That should be self-explanatory... if you need any more help just ask.

Kind regards,
Oleg


Tony

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


Re: Cocon 2.1: Still Problems with large downloads

2003-10-17 Thread Alexander Schatten
Bruno Dumon wrote:

Oops, forgot one aspect here: the caches and buffers aren't created of
the correct size from the first time (because it is unknown on
beforehand). Rather it starts small, lets say at 10k, and when that
buffer is full, a new one of 20k is created and the first 10k is copied
into it, then when the 20k is full one of 40k is created, and so on...
after a while it will reach e.g. 40MB and create one of 80MB, copying
the first 40MB into it, and thus needing 120MB of memory temporarely to
holds those two buffers...
 

to be honest, I did not really understand the second email, but thank 
you anyway, I will try out your recommendation soon!

Alex

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


newBee Cocoon in Websphere Studio connecting to AS400

2003-10-17 Thread Tim Smith
I am new to cocoon so any help is appreciated.I have downloaded the Cocoon in
websphere studio and able to run small samples and Examples.If anybody can help me inAS400 database connection through websphere for cocoon.
Thanks!
Tim SmithTony Collen [EMAIL PROTECTED] wrote:
Oleg Dulin wrote: Dear Distinguished Colleagues:  Does anybody know how to set a global sitemap parameter that I can  access across all pipelines ?Yes! this is very easy! :)in your sitemap, you will see something that looks like this:That should be self-explanatory... if you need any more help just ask.  Kind regards,
 OlegTony-To unsubscribe, e-mail: [EMAIL PROTECTED]For additional commands, e-mail: [EMAIL PROTECTED]
Do you Yahoo!?
The New Yahoo! Shopping - with improved product search

build.bat test and cocoon.bat CLI -x cli.xconf Cannot find CatalogManager.properties

2003-10-17 Thread dave-
I  downloaded coconn-2.1.2 and did a build.bat successfully.

However when I did a build test I got an error.  See listing 1.

Next I tried cocoon cli -x cli.xconf and got a Cannot find 
CatalogManager.properties error.   See listing 2 .

-begin of listing 1 
---
...
Testcase: testCatalogPropertiesAvailable took 0.015 sec
   Caused an ERROR
null
java.lang.ClassCastException
   at 
org.apache.cocoon.components.resolver.test.ResolverImplTestCase.setUp(ResolverImplTestCase.java:282)
   at 
org.apache.avalon.excalibur.testcase.ExcaliburTestCase.run(ExcaliburTestCase.java:403)
Testcase: testCatalogPropertiesAvailableTestcase: 
testAvailableResolveEntity took 0 sec
   Caused an ERROR
null
java.lang.ClassCastException
   at 
org.apache.cocoon.components.resolver.test.ResolverImplTestCase.setUp(ResolverImplTestCase.java:282)
   at 
org.apache.avalon.excalibur.testcase.ExcaliburTestCase.run(ExcaliburTestCase.java:403)
Testcase: testAvailableResolveEntityTestcase: 
testNonAvailableResolveEntity took 0 sec
   Caused an ERROR
null
java.lang.ClassCastException
   at 
org.apache.cocoon.components.resolver.test.ResolverImplTestCase.setUp(ResolverImplTestCase.java:282)
   at 
org.apache.avalon.excalibur.testcase.ExcaliburTestCase.run(ExcaliburTestCase.java:403)
Testcase: testNonAvailableResolveEntity

BUILD FAILED
-end of listing 
1--

-begin of listing 2 
---
...
Cannot find CatalogManager.properties
Exception in thread main java.lang.reflect.InvocationTargetException
   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
   at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
   at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
   at java.lang.reflect.Method.invoke(Method.java:324)
   at Loader.invokeMain(Unknown Source)
   at Loader.run(Unknown Source)
   at Loader.main(Unknown Source)
Caused by: java.lang.NoClassDefFoundError: 
javax/servlet/http/HttpSessionBindingListener
   at java.lang.ClassLoader.defineClass0(Native Method)
   at java.lang.ClassLoader.defineClass(ClassLoader.java:537)
...
-end of listing 
2--



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


RE: problem with relative URI in document() in XSLT in Cocoon

2003-10-17 Thread Lars Huttar
J.Pietschmann wrote:

 Lars Huttar wrote:
  So how could the Cocoon source resolver's processing of the
  stylesheet's base URL have caused the problem?
 
 Well, I'd wage guessing the Cocoon source resolver resolves against
 the requested URL.

Can anyone point me to documentation about how Cocoon resolves URIs?
I don't understand what it would mean to resolve a relative URI
with a given base URI (that of the stylesheet, which I would think
would be absolute URI) against a request URI.

  There shouldn't be a problem with caching in this case, because
  the referenced xml document is static.
 
 I'm not sure what you mean, however,changing documents referenced
 via document() wont invalidate the cached pipeline result, which
 is a real problem in most cases.

What I'm saying is that the referenced XML document is static, i.e.
will not change.
Or seldom enough that if it does, we can restart the servlet.
So this shouldn't be a problem.

Lars


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



Re: Setting a global sitemap parameter

2003-10-17 Thread Oleg Dulin
Tony:

Thanks, this should do the trick!

Oleg

Tony Collen wrote:

Oleg Dulin wrote:

Dear Distinguished Colleagues:

Does anybody know how to set a global sitemap parameter that I can 
access across all pipelines ?


Yes! this is very easy! :)

in your sitemap, you will see something that looks like this:

  map:component-configurations
global-variables
   !--+
   | Define global parameters here:
   |   skinmy_skin/skin
   |   ...
   | You can access them by {global:*name*}, e.g. {global:skin}.
   | These values are inherited into sub-sitemaps and can
   | be extended there.
   +--
/global-variables
  /map:component-configurations
That should be self-explanatory... if you need any more help just ask.

Kind regards,
Oleg


Tony

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


Getting request parameters as an XML document

2003-10-17 Thread Oleg Dulin
Dear Colleagues:

Is there a way to get HTTP POST parameters as elements in an XML document ?

For instance:

requets
post
 parameter name=foo value=bar /
/post
/request
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


openoffice files in generator

2003-10-17 Thread Zamek
Hello All,

I am new in cocoon.
I try to use openoffice 1.1.0 files in generator based on 
http://wiki.cocoondev.org/Wiki.jsp?page=OpenOfficeGeneration .
It seems to be working good, but I got an empty html page.
The source of generated html is:

html xmlns:urlencoder=http://www.jclark.com/xt/java/java.net.URLEncoder; 
xmlns:system=http://www.jclark.com/xt/java/java.lang.System; 
xmlns:xt=http://www.jclark.com/xt; xmlns:help=http://openoffice.org/2000/
help xmlns:config=http://openoffice.org/2001/config; xmlns:meta=http://
openoffice.org/2000/meta xmlns:dc=http://purl.org/dc/elements/1.1/; 
xmlns:script=http://openoffice.org/2000/script; xmlns:form=http://
openoffice.org/2000/form xmlns:math=http://www.w3.org/1998/Math/MathML; 
xmlns:dr3d=http://openoffice.org/2000/dr3d; xmlns:chart=http://
openoffice.org/2000/chart xmlns:svg=http://www.w3.org/2000/svg; 
xmlns:number=http://openoffice.org/2000/datastyle; xmlns:xlink=http://
www.w3.org/1999/xlink xmlns:fo=http://www.w3.org/1999/XSL/Format; 
xmlns:draw=http://openoffice.org/2000/drawing; xmlns:table=http://
openoffice.org/2000/table xmlns:text=http://openoffice.org/2000/text; 
xmlns:style=http://openoffice.org/2000/style; xmlns:office=http://
openoffice.org/2000/office
head
meta http-equiv=Content-Type content=text/html; charset=UTF-8
!--The CSS style header method for setting styles--
style type=text/css
!--
BODY { background-repeat:no-repeat }
*.OOo_defaults {
margin-top:0cm; margin-bottom:0cm; }
 
//--
/style
/head
body/body
/html


There is no any error in logs.
I am  using cocoon 2.1 from cvs, and OpenOffice 1.1.0 (english)


-- 
thx,

Zoltan Zidarics programmer
PTE University Pecs, Hungary
icq: 43288694


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



Re: Getting request parameters as an XML document

2003-10-17 Thread Christian Haul
Tony Collen wrote:
Oleg Dulin wrote:

Dear Colleagues:

Is there a way to get HTTP POST parameters as elements in an XML 
document ?

For instance:

requets
post
 parameter name=foo value=bar /
/post
/request


Oleg,

Yep, check out the RequestGenerator:

http://cocoon.apache.org/2.1/apidocs/org/apache/cocoon/generation/RequestGenerator.html 
Another -- less flexible way -- could be to use the XMLInputMetaModule 
which would return a DOM containing all (or a subset) request 
parameters. IIRC its JXPath enabled, so access to single parameters is 
still possible.

	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: build.bat test and cocoon.bat CLI -x cli.xconf Cannot find CatalogManager.properties

2003-10-17 Thread Lars Huttar
Dave wrote:

 I  downloaded coconn-2.1.2 and did a build.bat successfully.
 
 However when I did a build test I got an error.  See listing 1.
 
 Next I tried cocoon cli -x cli.xconf and got a Cannot find 
 CatalogManager.properties error.   See listing 2 .

Dave, I get that error all the time when I run cocoon cli -x cli.xconf,
but I think it's not an error you have to worry about.  (Somebody correct me
if I'm wrong!)  CLI seems to do its stuff anyway.  (I too am using v. 2.1.2.)

On the other hand, your NoClassDefFoundError sounds more fatal.
It sounds like servlet_2_2.jar is not in your path.
I had an error something like this and fixed it by copying
   lib/optional/servlet_2_2.jar
to
   build/webapp/WEB-INF/lib/
in the source distribution.


As an aside, this is something that makes Cocoon hard for me to debug...
there are some errors you can ignore, which means that when something
isn't working, it's harder to find out which of the several error messages
you're getting might be relevant to it.

Anyway, HTH,
Lars

...

 -begin of listing 2 
 ---
 ...
 Cannot find CatalogManager.properties
 Exception in thread main java.lang.reflect.InvocationTargetException
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at 
 sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccess
 orImpl.java:39)
 at 
 sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMeth
 odAccessorImpl.java:25)
 at java.lang.reflect.Method.invoke(Method.java:324)
 at Loader.invokeMain(Unknown Source)
 at Loader.run(Unknown Source)
 at Loader.main(Unknown Source)
 Caused by: java.lang.NoClassDefFoundError: 
 javax/servlet/http/HttpSessionBindingListener
 at java.lang.ClassLoader.defineClass0(Native Method)
 at java.lang.ClassLoader.defineClass(ClassLoader.java:537)
 ...
 -end of listing 
 2--
 

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



Re: build.bat test and cocoon.bat CLI -x cli.xconf Cannot find CatalogManager.properties

2003-10-17 Thread dave-




Lars Huttar wrote:

  Dave wrote:

  
  
I  downloaded coconn-2.1.2 and did a "build.bat" successfully.

However when I did a "build test" I got an error.  See listing 1.

Next I tried "cocoon cli -x cli.xconf" and got a Cannot find 
"CatalogManager.properties" error.   See listing 2 .

  
  
Dave, I get that error all the time when I run "cocoon cli -x cli.xconf",
but I think it's not an error you have to worry about.  (Somebody correct me
if I'm wrong!)  CLI seems to do its stuff anyway.  (I too am using v. 2.1.2.)

On the other hand, your NoClassDefFoundError sounds more fatal.
It sounds like servlet_2_2.jar is not in your path.
I had an error something like this and fixed it by copying
   lib/optional/servlet_2_2.jar
to
   build/webapp/WEB-INF/lib/
in the source distribution.

I copied the servlet_2_2.jar as you suggested and got different results:
- 1 - It did not fix the "build test" error.
- 2 - It did not fix the "cocoon cli -x cli.xconf" error
- 3 - However, "cocoon cli -x cli.xconf" now does it stuff.

Thanks, it now works well enough for me to test.

  As an aside, this is something that makes Cocoon hard for me to debug...
there are some errors you can ignore, which means that when something
isn't working, it's harder to find out which of the several error messages
you're getting might be relevant to it.

Anyway, HTH,
Lars

...

  
  
-begin of listing 2 
---
...
Cannot find CatalogManager.properties
Exception in thread "main" java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccess
orImpl.java:39)
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMeth
odAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at Loader.invokeMain(Unknown Source)
at Loader.run(Unknown Source)
at Loader.main(Unknown Source)
Caused by: java.lang.NoClassDefFoundError: 
javax/servlet/http/HttpSessionBindingListener
at java.lang.ClassLoader.defineClass0(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:537)
...
-end of listing 
2--


  
  
-
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: build.bat test and cocoon.bat CLI -x cli.xconf Cannot find CatalogManager.properties

2003-10-17 Thread Lars Huttar



Hi 
Dave,

  -Original Message-From: dave- 
  [mailto:[EMAIL PROTECTED]Sent: Friday, October 17, 2003 5:00 
  PMTo: [EMAIL PROTECTED]Subject: Re: "build.bat 
  test" and "cocoon.bat CLI -x cli.xconf" Cannot find 
  CatalogManager.propertiesLars Huttar wrote:
  Dave wrote:

  
I  downloaded coconn-2.1.2 and did a "build.bat" successfully.

However when I did a "build test" I got an error.  See listing 1.

Next I tried "cocoon cli -x cli.xconf" and got a Cannot find 
"CatalogManager.properties" error.   See listing 2 .

Dave, I get that error all the time when I run "cocoon cli -x cli.xconf",
but I think it's not an error you have to worry about.  (Somebody correct me
if I'm wrong!)  CLI seems to do its stuff anyway.  (I too am using v. 2.1.2.)

On the other hand, your NoClassDefFoundError sounds more fatal.
It sounds like servlet_2_2.jar is not in your path.
I had an error something like this and fixed it by copying
   lib/optional/servlet_2_2.jar
to
   build/webapp/WEB-INF/lib/
in the source distribution.
  I copied the servlet_2_2.jar as you suggested and got different 
  results:- 1 - It did not fix the "build test" error.
  
No, it wasn't 
meant to. Guess I didn't make that clear.

  - 2 - It did not fix the 
  "cocoon cli -x cli.xconf" error
  
Presumably it 
didn't fix the CatalogManager.properties error, but did fix 
the
InvocationTargetException/NoClassDefFoundError, which was the one 
that was
preventing 
CLI from doing anything.

  - 3 - However, "cocoon 
  cli -x cli.xconf" now does it stuff.Thanks, it now works well enough 
  for me to test.
  As an aside, this is something that makes Cocoon hard for me to debug...
there are some errors you can ignore, which means that when something
isn't working, it's harder to find out which of the several error messages
you're getting might be relevant to it.

Anyway, HTH,
Lars

...

  
-begin of listing 2 
---
...
Cannot find CatalogManager.properties
Exception in thread "main" java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccess
orImpl.java:39)
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMeth
odAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at Loader.invokeMain(Unknown Source)
at Loader.run(Unknown Source)
at Loader.main(Unknown Source)
Caused by: java.lang.NoClassDefFoundError: 
javax/servlet/http/HttpSessionBindingListener
at java.lang.ClassLoader.defineClass0(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:537)
...
-end of listing 
2--


-
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: Crusading for the XSLT document() function

2003-10-17 Thread Robert Koberg
It is amazing that no one has commented on this post. Perhaps it is because
the beta-omega developers do not want to show anything that contradicts the
alpha developer (fear of agora Siberia perhaps...).

You show a way to use cocoon and the document function in a harmonious (and
a very useful) way.

Are people simply closing their eyes to new ways (although standard and
accepted by some extremely intelligent people in XML/XSL) or have they
invested too deeply in _the cocoon way_ or do they simply refuse to think
about (and therefore feel no need to comment)?



One more benefit of using the document function as opposed to /proprietary/
cocoon ways is that you can perform simple transforms outside of cocoon or
even pick up your XSL and leave for another solution. -- NO LOCK IN --

-Rob

 -Original Message-
 From: Horsfield, Peter A. [mailto:[EMAIL PROTECTED]
 Sent: Thursday, October 16, 2003 3:30 PM
 To: '[EMAIL PROTECTED]'
 
 
   document('cocoon:/myinternalpipeline');
 
 SoC... Caching... Virtual URI space... Pipeline reuse...
 
 All it would take is for Cocoon to keep an eye out for calls to the
 SourceResolver, and perhaps for request parameters to be
 passed smartly. Better yet, force all document('...') requests be
 Cocoon internal protocol requests.
 
 Counter points:
 
 Source Pure XML -
   You get one pure XML source indirectly
   AND you get to use all the existing XML
   application specific tools for your other source.
 
 Aggregation -
   Aggregation is not the force for SoC it is presented as.
   It is good only for simple single level cases. As soon
   as you aggregate aggregations, you've lost the case.
 
 Speed -
   In an attempt to speed up processing, I removed the
   document function, and cincluded the data
   into the source. It made no difference. (Solaris 8 -
   there were other speed issues at the time).
 
 DOM / SAX -
   Aggregation pumps entire blocks of SAX events. This is
   fine, XSLT may be worse. But XSLT (or STX) implementations
   do have the freedom to optimize this stuff. The semantics of
   aggregation do not allow this freedom.
 
 Now if the developers of Cocoon think that using the document function is
 not a good use of Cocoon, then so be it. I think that in conjunction with
 the Cocoon protocol, it is a powerful feature that supports SoC.
 
 When it comes down to it aggregation and the document function do fulfil
 the same need. The only reason I would pick the XSLT document function
 over aggregation, is... it just feels right.
 
 After writing this all down, I think I've decided that both aggregation
 and
 document() suck in Cocoon. There has got to be a better way.
 
 Cocoon 3, perhaps.
 
 Regards,
 
 Peter
 
 
 
 
 
 
 -
 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]



DO NOT REPLY [PATCH QUEUE] Summary October 18 2003

2003-10-17 Thread nicolaken
---
 This mail is generated automatically using
 Jakarta Ant. Contents are automatically
 downloaded from Apache's Bugzilla.
---
 Please do not reply to this mail.
---

***
COCOON PATCH QUEUE UPDATE
 
patches in queue:  12 
***


---
16537:[PATCH] fixed redirect under JRun 3.1
---
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=16537

REVIEWER:[EMAIL PROTECTED]
RESOLUTION:  
STATUS:  NEW
---
17771:[PATCH] new logging category never set when using log logics
---
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=17771

REVIEWER:[EMAIL PROTECTED]
RESOLUTION:  
STATUS:  NEW
---
19138:[Contrib]/[Patch] Made SQLTransformer paginatable.
---
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=19138

REVIEWER:[EMAIL PROTECTED]
RESOLUTION:  
STATUS:  NEW
---
19638:[PATCH] Same cell definitions blows document (problem with
---
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=19638

REVIEWER:[EMAIL PROTECTED]
RESOLUTION:  
STATUS:  NEW
---
19641:[PATCH] HSSFSerializer Support for FreezePane
---
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=19641

REVIEWER:[EMAIL PROTECTED]
RESOLUTION:  
STATUS:  NEW
---
20185:[PATCH] TidySerializer
---
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=20185

REVIEWER:[EMAIL PROTECTED]
RESOLUTION:  
STATUS:  NEW
---
20508:[PATCH] Namespace cleanup in HTMLSerializer
---
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=20508

REVIEWER:[EMAIL PROTECTED]
RESOLUTION:  
STATUS:  NEW
---
20631:[PATCH] Support for transactions in SQLTransformer
---
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=20631

REVIEWER:[EMAIL PROTECTED]
RESOLUTION:  
STATUS:  NEW
---
23538:[PATCH] JXTemplateGenerator calls setDocumentLocator() exces
---
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=23538

REVIEWER:[EMAIL PROTECTED]
RESOLUTION:  
STATUS:  NEW
---
23796:[PATCH] docs pages containing source are sometimes too wid
---
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=23796

REVIEWER:[EMAIL PROTECTED]
RESOLUTION:  
STATUS:  NEW
---
23855:[PATCH] LDAPTransformer bug fix
---
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=23855

REVIEWER:[EMAIL PROTECTED]
RESOLUTION:  
STATUS:  NEW
---
23901:[PATCH] [woody], adding wd:on-phase and moving load() and
---
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=23901

REVIEWER:[EMAIL PROTECTED]
RESOLUTION:  
STATUS:  NEW

*that's it!

patch HOWTO

Send patches to http://nagoya.apache.org/bugzilla/
specifying [PATCH] in the summary.
Bugzilla sends a mail automatically to this list.
Reviewers will mark it FIXED there when applied.
Patches not sent to Bugzilla will not be reviewed.
---
This file is scheduled to be generated every Tuesday and
Friday 1:00 CET for the cocoon-dev mailing list, on
Sundays 1:00 CET for the cocoon-users mailing list.
For any problem, question or suggestion, please notify 
[EMAIL PROTECTED]
---
There is a HEAD branch and sometimes a previous-version
branch that are maintained. Where will the patch go?
1. If it is a bug fix it should go to both branches
2. If something is totally new 

Re: build.bat test and cocoon.bat CLI -x cli.xconf Cannot find CatalogManager.properties

2003-10-17 Thread Upayavira
No guarantees, but I'll have a look into the CatalogManager properties 
error.

Regards, Upayavira

Lars Huttar wrote:

Hi Dave,

-Original Message-
*From:* dave- [mailto:[EMAIL PROTECTED]
*Sent:* Friday, October 17, 2003 5:00 PM
*To:* [EMAIL PROTECTED]
*Subject:* Re: build.bat test and cocoon.bat CLI -x cli.xconf
Cannot find CatalogManager.properties
Lars Huttar wrote:

Dave wrote:

 

I  downloaded coconn-2.1.2 and did a build.bat successfully.

However when I did a build test I got an error.  See listing 1.

Next I tried cocoon cli -x cli.xconf and got a Cannot find 
CatalogManager.properties error.   See listing 2 .
   

Dave, I get that error all the time when I run cocoon cli -x cli.xconf,
but I think it's not an error you have to worry about.  (Somebody correct me
if I'm wrong!)  CLI seems to do its stuff anyway.  (I too am using v. 2.1.2.)
On the other hand, your NoClassDefFoundError sounds more fatal.
It sounds like servlet_2_2.jar is not in your path.
I had an error something like this and fixed it by copying
  lib/optional/servlet_2_2.jar
to
  build/webapp/WEB-INF/lib/
in the source distribution.
I copied the servlet_2_2.jar as you suggested and got different
results:
- 1 - It did not fix the build test error. 
 

No, it wasn't meant to. Guess I didn't make that clear.

 
- 2 - It did not fix the cocoon cli -x cli.xconf error 
 

Presumably it didn't fix the CatalogManager.properties error, but did 
fix the
InvocationTargetException/NoClassDefFoundError, which was the one that was
preventing CLI from doing anything.

 
- 3 - However, cocoon cli -x cli.xconf now does it stuff.

Thanks, it now works well enough for me to test.

As an aside, this is something that makes Cocoon hard for me to debug...
there are some errors you can ignore, which means that when something
isn't working, it's harder to find out which of the several error messages
you're getting might be relevant to it.
Anyway, HTH,
Lars
...

 

-begin of listing 2 
---
...
Cannot find CatalogManager.properties
Exception in thread main java.lang.reflect.InvocationTargetException
   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
   at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccess
orImpl.java:39)
   at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMeth
odAccessorImpl.java:25)
   at java.lang.reflect.Method.invoke(Method.java:324)
   at Loader.invokeMain(Unknown Source)
   at Loader.run(Unknown Source)
   at Loader.main(Unknown Source)
Caused by: java.lang.NoClassDefFoundError: 
javax/servlet/http/HttpSessionBindingListener
   at java.lang.ClassLoader.defineClass0(Native Method)
   at java.lang.ClassLoader.defineClass(ClassLoader.java:537)
...
-end of listing 
2--

   

-
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: Modular DB Actions, MS SQLServer and AutoIncrement columns? SOLVED

2003-10-17 Thread Andrzej Jan Taramina
 I'm trying to figure out how to use MS SQLServer 2K's Identity columns as a
 primary key, which automatically generate a new value for the field when using
 Modular DB Actions to do an insert.
 
 I kinda thought it should look like this for an identity column called id in
 the database descriptor:
 
 key name=id type=int autoincrement=true
  mode name=auto type=autoincr/
 /key
 
 But it didn't work.the DatabasAddAction tried to insert the value for the
 actual key, and SQLServer punted that since you can't manually set identity
 columns.

Using the Manual AutoIncrement module was the source of the trouble when I 
had the key field set as an SQLServer Identity field.

So I wrote a quick SQLServer Identity AutoIncrement module for Cocoon that 
resolved this issue for me.  It's called 
org.apache.cocoon.components.modules.database.SQLServerIdentityAutoIncrementMo
dule
and was modelled on the hsqldb version that comes with Cocoon 2.1.2.

Maybe one of the developers would be interested in adding this for Cocoon 
2.1.3?

Yours for the asking if you want it.  ;-)


Andrzej Jan Taramina
Chaeron Corporation: Enterprise System Solutions
http://www.chaeron.com


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