Re: Cocoon activity - deugging

2003-11-17 Thread Derek Hohls
This is true, but I think you will find the same
problem with any *framework* application
(not sure I can think of any others right now);
as opposed to stand-alone development environments;
the secret is to compile/test often and do it in
small incremental portions... we can learn a lot
from agile methodologies.

FWIW, the CocoonWiki has a helpful section on
using views:

http://wiki.cocoondev.org/Wiki.jsp?page=DebuggingWithViews


 [EMAIL PROTECTED] 2003/11/14 07:00:50 PM 

snip

My main concern with cocoon is the time it takes to debug
anything.. 
The system is so complex (different files, different places the 
pipeline can fail, diferent protocols, generators, etc. ) that finding

where the problem is takes too much time doing trial and error.

Maybe a good IDE integration with debugging supported would be a

great leap forward  for the cocoon framework.




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


-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
MailScanner thanks transtec Computers for their support.


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



Re: Using map:handle-errors

2003-11-17 Thread Stephan Coboos

- Original Message - 
From: David Rogers [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, November 17, 2003 12:04 AM
Subject: RE: Using map:handle-errors



 Hmm..thanks. still having trouble..

 I am using a sub site map.
 I see the main site map has the selector declaration already

  map:selector logger=sitemap.selector.exception name=exception
 src=org.apache.cocoon.selection.ExceptionSelector
  exception class=org.apache.cocoon.ResourceNotFoundException
 name=not-found/
  exception
 class=org.apache.cocoon.components.flow.InvalidContinuationException
 name=invalid-continuation/
  !-- The statement below tells the selector to unroll as much
 exceptions as possible --
  exception class=java.lang.Throwable unroll=true/
/map:selector


 But when i try to refrence it using:

  map:handle-errors
   map:select type=exception
  map:when test=not-found
 map:generate src={1}/{2}/welcome.xml/
  !--map:generate src={1}/xhtml/filenotfound.xhtml/--
  map:serialize type=xml/
   /map:when
/map:select
  /map:handle-errors

 I still get the main erorr page with this...

 java.lang.RuntimeException: java.lang.RuntimeException:
 java.lang.RuntimeException: org.apache.cocoon.ProcessingException: Failed
to
 execute pipeline.: java.lang.RuntimeException: java.lang.RuntimeException:
 java.lang.RuntimeException: java.lang.RuntimeException:
 org.apache.cocoon.ResourceNotFoundException: Resource not found.:
 org.apache.excalibur.source.SourceNotFoundException:

file:/C:/eclipse/workspace/MetaWorks/sites/doingatkins.com/repository/cautio
 nn.xml doesn't exist.


 almost there...
 Thanks,
 Dave




From where do you get the sitemap variables {1} and {2}?


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



Re: Using map:handle-errors

2003-11-17 Thread Stephan Coboos

- Original Message - 
From: David Rogers [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, November 17, 2003 8:25 AM
Subject: RE: Using map:handle-errors



 Hi..
 From where do you get the sitemap variables {1} and {2}?

 The containing stite map has the match pattern   map:match
 pattern=*/*/*.xml
 the site map variables are accessable in the handle-errors block are they
 not?
 Also the error i get has the file name of the original missing file not
the
 name of the file in the handle-errors block. This indicates to me that the
 handle-errors block is not executing at all rather than failing?

 I just tried puting a full path site/repository/welcome.xml instead of
the
 {1}/{2}/welcome.xml and that didnt work either... so?


Do you use a sub-sitemap? It seems to me that the definition of
map:error-handlers/ in the root sitmap overwrites the one in the
sub-sitemap. I had removed the one in the root sitemap and now it works
correct... Makes this sense??

Regards
Stephan


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



Cocoon Portal: how to retrieve the user with XSP

2003-11-17 Thread Sylvain.Thevoz
Hello,

I'm using the Cocoon portal and I need to retrieve with XSP the username I enter at 
the authentication when I open an application from within the portal.

How could I retrieve this username?
Is this information always available?

Thanks
Regards
Sylvain

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



RE: Cocoon Portal: how to retrieve the user with XSP

2003-11-17 Thread Matthew Langham
Sylvain,

once the user is authenticated the information is stored in the session
context for that user and is always available.

See:
http://cocoon.apache.org/2.1/developing/webapps/authentication.html#Getting+
information+from+the+context

for information on reading the context using getxml.

Matthew


 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
 Sent: Monday, November 17, 2003 10:18 AM
 To: [EMAIL PROTECTED]
 Subject: Cocoon Portal: how to retrieve the user with XSP


 Hello,

 I'm using the Cocoon portal and I need to retrieve with XSP the
 username I enter at the authentication when I open an application
 from within the portal.

 How could I retrieve this username?
 Is this information always available?

 Thanks
 Regards
 Sylvain

 -
 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 and Struts in one Context

2003-11-17 Thread Sylvain Wallez
Frans Thamura wrote:

Cocoon and Struts Integration issue found

hi all,

are you success install Cocoon and Struts in one Tomcat Context, so i can make a mix code for struts and cocoon
 

This works without problem, as long as you take care to separate URL 
mappings between Struts and Cocoon in web.xml.

Sylvain

--
Sylvain Wallez  Anyware Technologies
http://www.apache.org/~sylvain   http://www.anyware-tech.com
{ XML, Java, Cocoon, OpenSource }*{ Training, Consulting, Projects }
Orixo, the opensource XML business alliance  -  http://www.orixo.com


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


[JXForm/XMLForm] how to set encoding

2003-11-17 Thread Sylvain.Thevoz
Hello,

I would like to use accents (for french) and I'm looking for a solution to set the 
encoding in ISO-8859-1.

Is someone has an experience?

Thanks
Sylvain

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



Re: Reading and passing parameters in the sitemap

2003-11-17 Thread Stefan Klein
Jan,

 have the following problem: I would like to pass the parameter
 gr_name to the redirect-uri which is used in the pipeline. 
Use input modules. The RequestParameterModule lets you do exactly that.
Just put {request-param:gr_name} into the redirect-uri.

(Also see http://wiki.cocoondev.org/Wiki.jsp?page=InputModules)


 Furthermore - I would like to pass the path of the saved
 file there, are there any possibilities to do this?
Would the pass not simply be
e:/cocoon-2.1.2/build/webapp/LetterMan/grafiken/{1}/ as you as
parameter to the action? Or maybe
e:/cocoon-2.1.2/build/webapp/LetterMan/grafiken/{1}/{request-param:gr_n
ame} if you want the path+filename. If not, get back to me.

Stefan

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



Re: ESQL Connection Pool hangs

2003-11-17 Thread Frank Taffelt
the excalibur-datasource-1.1.1.jar contains a bug that can be the source for
your problems. The database pooling is going out of sync and after some time
the pool is empty and therefore hangs until restart.

Solution:
Update your excalibur datasource jar to a version after 18.07.2003.

hth
Frank

- Original Message -
From: Mirco Goergen [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Sunday, November 16, 2003 1:53 PM
Subject: ESQL Connection Pool hangs


 Hello

 If have set two connection pool within cocoon.xconf

 One for Mysql the other for Oracle. Both working fine and I could handle
my sql via xsp and action perfectly.

 Unfortunatly after some hours of running the Mysql Connection hangs and I
got no error whats going on with this connection. It seems to me that Cocoon
is still trying to connect, but got no respone from mysql db. Pages from
Cocoon without using Mysql are still working. Also Connection to Oracle is
still alive.

 If I try to connect to the same mysql db in a different way, it still
works. Restarting Tomcat solve the problem until it hangs again.

 I´using Cocoon 2.1 Mysql 4.0.16 Latest Mysql JDBC driver and
j2sdk1.4.1_01. All this parts are on one machine (it´s a big one :-) so
firewall could not cause my trouble.

 I also tried to connect to Mysql using the autoReconnect still the same
result.

 Any help to this problem are welcome.

 thanks a lot

 Mirko Görgen

 Mit freundlichem Gruß

 Mirko Görgen
 Webadministrator

 Firma: Compu-Shack
 Tel: 0 26 31 - 98 31 48
 Fax: 0 26 31 - 98 31 99
 www.compu-shack.com

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



AW: woody: xmlns declaration is gone after form2xml

2003-11-17 Thread Ulrich, Dominik
Hi
thanks for your help
I've thought about your comment and changed the structure a little.
I'm now writting into a container and afterwards parsing it to get the xsl file
I want. The problem with ns is not present in this solution.
thanks
ciao
dominik

-Ursprüngliche Nachricht-
Von: Bruno Dumon [mailto:[EMAIL PROTECTED]
Gesendet: Freitag, 14. November 2003 19:04
An: [EMAIL PROTECTED]
Betreff: Re: woody: xmlns declaration is gone after form2xml


On Fri, 2003-11-14 at 15:38, Ulrich, Dominik wrote:
 Hi everybody
 I've got a woody form in which I can select multiple options.
 these options are stored in an xml file in an attribute.
 so far so good...
 this xml doc should be used later as an stylsheet, so there are soms xsl tags inside.
 problem: the namespace is declared in the original data file but afterwards is gone 
 in
 the result file:
 
 original:
 data
  wrapper
   content
xsl:stylesheet version=1.0 xmlns:xsl=http://www.w3.org/1999/XSL/Transform;
   info...
   
 
 output:
 data
  wrapper
   content
xsl:stylesheet version=1.0
   info...
   ...
 
 why is the attribute version stil there and the other gone???

The first thing to check is how you serialize the DOM-tree, is it done
as in the Woody sample? If so, that part should be OK (I think).

The problem probably comes from JXPath. I'm not sure if JXPath supports
XML namespaces at all. It's already suspicious that you even succeeded
in modifying the document, since I wouldn't know where it would get the
prefix to namespace mappings from. In any case, that's something to
investigate.

BTW, I see that you wrapped the xsl:stylesheet element inside
data/wrapper/context, exactly as in the Woody example. This is not
required for anything, you can have the xsl:stylesheet element as root.

Also, I find your whole setup a bit strange. Modifying an XSL to get
some parameters into it really sounds like a big time hack. Why not
modify another XML document, and provide that XML document as input to
the XSL (possibly merged with the other data you need to transform)? Or
if the parameters are some simple values, provide them to the stylesheet
using map:parameter from the sitemap.

Feel free to ask for more information if you need to (but I probably
won't be able to answer mail for the next week).

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


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



Re: [JXForm/XMLForm] how to set encoding

2003-11-17 Thread Marcin Okraszewski
I would like to use accents (for french) and I'm looking for a solution to set the encoding in ISO-8859-1.
I don't know, if I undestand you correctly, but if you have form 
encoding problems, this may help (I received when asking for woody, but 
I think it doesn't matter):

It's a problem with the default configuration of Cocoon, but it's easy
to fix:
* edit the web.xml file, and uncomment the form-encoding init parameter
and set it to UTF-8 (do NOT touch the container-encoding parameter)
* edit the root sitemap.xmap, and set the encoding of the html
serializer to UTF-8:
map:serializer logger=sitemap.serializer.html
mime-type=text/html name=html pool-grow=4 pool-max=32
pool-min=4 src=org.apache.cocoon.serialization.HTMLSerializer
  encodingUTF-8/encoding
/map:serializer
Regards,
Marcin
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Woody problem: woody isn't saving added row entries to bean.

2003-11-17 Thread Marcin Okraszewski
Hi,
Can anyone can tell me, why Woody doesn't add beans corresponding to 
rows in repeater? It isn't even calling the constructor of row bean. It 
works fine with rows that were included earlier (it updates them).

I have an default contructor in row beans and wb:on-insert-row in 
bind. All packages and class names were copied just for sure.

There is frow script, binding, classes below.

Regards,
Marcin Okraszewski

Flow:
bean = new Packages.eti.beans.Entry(cocoon.request.get(entry));
form.load(bean);
form.showForm(admin/entry-form.xml.html);
form.save(bean);
bean.save();
cocoon.redirectTo(/index.html);

Bind-bean:
wb:context xmlns:wb=http://apache.org/cocoon/woody/binding/1.0; path=/ 
  wb:value id=importance path=importance/
  wb:repeater id=translations
parent-path=.
row-path=translations
unique-row-id=language
unique-path=@savedLang
wb:on-bind
  wb:value id=language path=lang/
  wb:value id=title path=title/
  wb:value id=digest path=digest/
  wb:value id=body path=body/
/wb:on-bind
wb:on-insert-row
  wb:insert-bean
classname=eti.beans.EntryTranslation
addmethod=addTranslation/
/wb:on-insert-row
  /wb:repeater
/wb:context
---
Entry-model:
wd:form
  xmlns:wd=http://apache.org/cocoon/woody/definition/1.0;
  xmlns:i18n=http://apache.org/cocoon/i18n/2.1;
  wd:field id=tabstate
wd:datatype base=long/
  /wd:field
  wd:field id=importance
wd:labelimportance/wd:label
wd:datatype base=long/
  /wd:field
  wd:repeater id=translations

wd:field id=language
  wd:labellanguage/wd:label
  wd:datatype base=string/
/wd:field
wd:field id=title
  wd:labeltitle/wd:label
  wd:datatype base=string/
/wd:field
wd:field id=digest
  wd:labelabstract/wd:label
  wd:datatype base=string/
/wd:field
wd:field id=body
  wd:labelbody/wd:label
  wd:datatype base=string/
/wd:field
  /wd:repeater

  wd:repeater-action id=add-translation action-command=add-row 
repeater=translations
wd:labeladd translation/wd:label
  /wd:repeater-action

  wd:submit id=next action-command=next
  wd:labelnext gt;gt;/wd:label
  /wd:submit
/wd:form
--
class Entry (just methods)
public class Entry extends com.okrasz.db.sql.DbTableHSQLDB implements 
java.io.Serializable {
public Entry();
public Entry(int entryId) throws SQLException;
public long getEntryId();
public long getImportance();
public void setImportance(long importance);
public Collection getTranslations();
public void setTranslations(Collection trans);
public void addTranslation(EntryTranslation t);
public EntryTranslation getTranslation(String lang);
public void removeTranslation(String lang);
}

-
class EntryTranslation (just methods)
public class EntryTranslation extends com.okrasz.db.sql.DbTableHSQLDB {
public EntryTranslation();
public EntryTranslation(Entry parent, ResultSet rs) throws 
SQLException;
public java.lang.String getLang();
public void setLang(java.lang.String lang);
public java.lang.String getSavedLang();
public java.lang.String getTitle();
public void setTitle(java.lang.String title);
public java.lang.String getDigest();
public void setDigest(java.lang.String digest);
public java.lang.String getBody();
public void setBody(java.lang.String body);
}

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


Re: Cocoon Portal: how to retrieve the user with XSP

2003-11-17 Thread Ashish Kumar
hi there,
   
   I think u r looking for xsp-request:get-remote-user element, it
should work for u...
  there r many other elements available that u can use to retrieve
info. like, for session, xsp-request:get-requested-session-id etc
have a look at the http://localhost:8080/cocoon/documents/userdocs/xsp/request.html
page on the comp. u have the cocoon running

cheers.


Sleight of hand and twist of fate,
On a bed of nails she makes me wait...

ASHISH KUMAR,
B. TECH. 3rd YR.
IIT ROORKEE,
INDIA. 
-

On Mon, 17 Nov 2003 [EMAIL PROTECTED] wrote:

 Hello,
 
 I'm using the Cocoon portal and I need to retrieve with XSP the username I enter at 
 the authentication when I open an application from within the portal.
 
 How could I retrieve this username?
 Is this information always available?
 
 Thanks
 Regards
 Sylvain
 
 -
 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]



xml file generation

2003-11-17 Thread shivakumar








Hi All,



I am using
SourceWritingTransformer for generating output to xml, 

If I use like
this it is working file.





?xml
version=1.0?



page
xmlns:source=http://apache.org/cocoon/source/1.0


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



 titleSourceWritingTransformer Test Page
1/title

 content



 source:write
src="">

 root

 
xsl:apply-templates
select=/document/[EMAIL PROTECTED]'BodyPage']/table[1]/[EMAIL PROTECTED]'ResultSetHeaderRow']/
xsl:apply-templates
select=/document/[EMAIL PROTECTED]'BodyPage']/table[2]/[EMAIL PROTECTED]'ResultSetRow']/
xsl:apply-templates select=/document/[EMAIL PROTECTED]'BodyPage']/table[1]/[EMAIL PROTECTED]'ResultSetHeaderRow']/

 /root

 /source:write

 /content

/page





If I use xsl:stylesheet,
SourceWritingTransformer is not generation the output file.





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


xmlns:lxslt=http://xml.apache.org/xslt

 xmlns:xsp=http://apache.org/xsp



xsl:template
match=xsp:page



 source:write
src="">



 
xsl:apply-templates
select=/document/[EMAIL PROTECTED]'BodyPage']/table[1]/[EMAIL PROTECTED]'ResultSetHeaderRow']/


 
xsl:apply-templates
select=/document/[EMAIL PROTECTED]'BodyPage']/table[2]/[EMAIL PROTECTED]'ResultSetRow']/

 
xsl:apply-templates
select=/document/[EMAIL PROTECTED]'BodyPage']/table[2]/[EMAIL PROTECTED]'ResultSetRow_Empty']/

 /source:write





/xsl:template

/xsl:stylesheet





whats error
in this code, please help me if any one known.



Thanks,

Shivakumar










RE: [JXForm/XMLForm] how to set encoding

2003-11-17 Thread Sylvain.Thevoz
Hello,

Yes it was my problem and it WORKS!

Thanks
Sylvain

 -Message d'origine-
 De: Marcin Okraszewski [mailto:[EMAIL PROTECTED]
 Date: lundi, 17. novembre 2003 11:05
 À: [EMAIL PROTECTED]
 Objet: Re: [JXForm/XMLForm] how to set encoding
 
 
  I would like to use accents (for french) and I'm looking 
 for a solution to set the encoding in ISO-8859-1.
 
 I don't know, if I undestand you correctly, but if you have form 
 encoding problems, this may help (I received when asking for 
 woody, but 
 I think it doesn't matter):
 
 
 It's a problem with the default configuration of Cocoon, but it's easy
 to fix:
 
 * edit the web.xml file, and uncomment the form-encoding init 
 parameter
 and set it to UTF-8 (do NOT touch the container-encoding parameter)
 
 * edit the root sitemap.xmap, and set the encoding of the html
 serializer to UTF-8:
 
  map:serializer logger=sitemap.serializer.html
 mime-type=text/html name=html pool-grow=4 pool-max=32
 pool-min=4 src=org.apache.cocoon.serialization.HTMLSerializer
encodingUTF-8/encoding
  /map:serializer
 
 Regards,
 Marcin
 
 -
 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: SVG to SWF

2003-11-17 Thread Boris Althaus



Hallo Derek,

i didn't forgot to send you the plain-text 
wikipage,how i promissed on Friday.
I created a build which includes the serializer 
into an existing cocoon-2.0.4-installation.
But i need a little more time for debugging and 
creating the document.

So long

Boris

  - Original Message - 
  From: 
  Derek Hohls 
  
  To: [EMAIL PROTECTED] 
  Sent: Thursday, November 13, 2003 1:03 
  PM
  Subject: Re: SVG to SWF
  OK - please remember to think of a good short title (for 
  the wiki page) [EMAIL PROTECTED] 
  2003/11/13 12:33:30 PM Hallo Derek, thanks, thats great. I 
  will send you my document when i finished withit. I think you get it 
  tomorrow.Boris - Original Message -  From: 
  Derek Hohls  To: [EMAIL PROTECTED]  
  Sent: Thursday, November 13, 2003 11:27 AM Subject: Re: SVG to 
  SWF Boris If you send me "plain text" I am 
  happy to create a draft page; you could then edit it quite 
  easily. Derek  [EMAIL PROTECTED] 
  13/11/2003 12:00:59  I took the session-id for the 
  name of the generated swf-file. Maybe Ishould take a random 
  instead. Maybe I can change it today. Sorry, but how 
  to create a wiki-page? Boris - 
  Original Message -  From: Derek Hohls 
   To: [EMAIL PROTECTED] 
   Sent: Thursday, November 13, 2003 10:48 
  AM Subject: Re: SVG to SWF 
  Boris I tried the demo - the SVG is certainly 
  dynamic (if you change the code in the box) but the 
  Flash does not reflect the chnages made (in IE6, 
  anyway) I would appreiciate advice as to how to 
  install under Cocoon 2.0.4... maybe make a wiki 
  page? Thanks 
  Derek  [EMAIL PROTECTED] 
  13/11/2003 11:33:52  
  Hallo, the demo on the website is 
  dynamic! You can change the sourcecode in the left 
  window and aftersubmitting, you will see the changes in the right 
  window. Best experience you will have with 
  InternetExplorer on pc, becausethe plugin for svg does not work on other 
  platforms. It is developed with cocoon 2.04. The 
  installation is not to easy,but i could give some 
  advice. If it is integrated into Cocoons CVS would 
  be great thing.  
  Boris - Original Message - 
   From: Joerg Heinicke 
   To: [EMAIL PROTECTED] 
   Sent: Wednesday, November 12, 2003 6:40 
  PM Subject: Re: SVG to 
  SWF On 12.11.2003 17:06, Stephan 
  Michels wrote: I would like to 
  use cocoon to convert simple svg images intoswf format. 
  I looked into the source 
  of/samples/hello-world/style/page2swf.xsl and it 
  is rather complex and cryptic. I 
  have conducted investigation onthe web and 
  I could not find any documentation 
  with regards to using cocoonand the 
  SWFSerializer.  
 
   There also exist an SVG to SWF 
  serializer:  
http://www.productionserver.org/serializer/demo/ 
 
   I can't tell you if it works, but it might 
  help. If it works, it's a really nice 
  thing, but the demo on thewebsite is  
  not dynamic. IMO it's worth to be integrated into Cocoon's CVS. 
   Furthermore I would even replace the 
  current solution, because ofa  readable 
  XML input (SVG) in contrary to the current page2swf.xsl.But 
   ! ! it's GPLed until now, even if there is 
  no need AFAICS. Theused  JGenerator has 
  "Apache style license". But I think it's possibleto 
   speak with 
  them. 
  WDYT? 
  Joerg 
  - 
  To unsubscribe, e-mail: [EMAIL PROTECTED] 
   For additional commands, e-mail: [EMAIL PROTECTED] 
   --  This message has been 
  scanned for viruses and  dangerous content by 
  MailScanner, and is  believed to be clean. 
   MailScanner thanks transtec Computers for their 
  support.  --  This message has been scanned for 
  viruses and  dangerous content by MailScanner, and is  
  believed to be clean.  MailScanner thanks transtec Computers for 
  their support. -- This message has been scanned for viruses 
  anddangerous content by MailScanner, and isbelieved to be 
  clean.MailScanner thanks transtec Computers for their 
  support.-To 
  unsubscribe, e-mail: [EMAIL PROTECTED]For 
  additional commands, e-mail: [EMAIL PROTECTED]


Re: Re: ESQL Connection Pool hangs

2003-11-17 Thread Frank Taffelt
To enforce this error decrease your pooling parameters in cocoon.xconf. The
time is also unpredictable, but generally it should appear in a shorter
time. If this is the right track for your problem then i can send you my
newer excalibur datasource package.

frank

- Original Message -
From: Mirco Goergen [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, November 17, 2003 11:47 AM
Subject: Antw: Re: ESQL Connection Pool hangs


 Hi

 Thanks for your replay.

 I upgrade to Version 2.1.3 but the Version number from
excalibur-datasource is still 1.1.1

 Unfortunatly the problem does occur only from time to time, is it possible
to force this error to be sure that I m on the right side or would it even
be better to exchange the jar from latest developer version?

 regards

 Mirko

  [EMAIL PROTECTED] 11/17 10:43  
 the excalibur-datasource-1.1.1.jar contains a bug that can be the source
for
 your problems. The database pooling is going out of sync and after some
time
 the pool is empty and therefore hangs until restart.

 Solution:
 Update your excalibur datasource jar to a version after 18.07.2003.

 hth
 Frank

 - Original Message -
 From: Mirco Goergen [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Sunday, November 16, 2003 1:53 PM
 Subject: ESQL Connection Pool hangs


  Hello
 
  If have set two connection pool within cocoon.xconf
 
  One for Mysql the other for Oracle. Both working fine and I could handle
 my sql via xsp and action perfectly.
 
  Unfortunatly after some hours of running the Mysql Connection hangs and
I
 got no error whats going on with this connection. It seems to me that
Cocoon
 is still trying to connect, but got no respone from mysql db. Pages from
 Cocoon without using Mysql are still working. Also Connection to Oracle is
 still alive.
 
  If I try to connect to the same mysql db in a different way, it still
 works. Restarting Tomcat solve the problem until it hangs again.
 
  I using Cocoon 2.1 Mysql 4.0.16 Latest Mysql JDBC driver and
 j2sdk1.4.1_01. All this parts are on one machine (it s a big one :-) so
 firewall could not cause my trouble.
 
  I also tried to connect to Mysql using the autoReconnect still the same
 result.
 
  Any help to this problem are welcome.
 
  thanks a lot
 
  Mirko Görgen
 
  Mit freundlichem Gruß
 
  Mirko Görgen
  Webadministrator
 
  Firma: Compu-Shack
  Tel: 0 26 31 - 98 31 48
  Fax: 0 26 31 - 98 31 99
  www.compu-shack.com
 
  -
  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]



Connection pool

2003-11-17 Thread Oleg Lyebyedyev
Hello All,

What is Cocoon connection pool behavior? 

When for inst. 300 connections were created in pool during peak of the
server loading and then only 100 are used when peak was passed

Will (and when) pool return 200 connections or no?

Thank you for feedback

Best regards
Oleg


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



reader, unknown filetype and NullPointer

2003-11-17 Thread rufio
Hi
When I try to get file of unknown type (with extension not listed in web.xml)
I get NullPointerException. I could add some mimes to web.xml but not for all
files this makes sense. How to make cocoon to return some default mime or not to
return any without the exception?

Regards, Rufio
-- 
010 nmap -O www.microsoft.com
001 [..]
111 Running: Linux 2.5.X

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



Re: Cocoon activity

2003-11-17 Thread Steven Noels
[EMAIL PROTECTED] wrote:

what about a new wiki only with examples? 
want anyone to host this examples wiki?

we(osmosis.gr) can do this (if you want) 
I am sure you want, but this won't help, I'm afraid. It's the _content_ 
thing which counts.

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


RE: Cocoon activity - deugging

2003-11-17 Thread Ralph Goers
One of the best debugging tools I have found is AbstractCompositeTestCase.
I have been able to unit test my Cocoon components in IntelliJ very easily
with this. After that, the error messages at run time have been enough to
let me know what I have misconfigured.  

Unfortunately, AbstractCompositeTestCase and its parent, ExcaliburTestCase,
are not well documented. You have to read the source code to figure them
out.  However, so far I have been able to unit test generators, input
modules, source resolvers, and standalone components with it.

Ralph

 -Original Message-
 From: Derek Hohls [mailto:[EMAIL PROTECTED]
 Sent: Sunday, November 16, 2003 10:59 PM
 To: [EMAIL PROTECTED]
 Subject: Re: Cocoon activity - deugging
 
 
 This is true, but I think you will find the same
 problem with any *framework* application
 (not sure I can think of any others right now);
 as opposed to stand-alone development environments;
 the secret is to compile/test often and do it in
 small incremental portions... we can learn a lot
 from agile methodologies.
 
 FWIW, the CocoonWiki has a helpful section on
 using views:
 
 http://wiki.cocoondev.org/Wiki.jsp?page=DebuggingWithViews
 
 
  [EMAIL PROTECTED] 2003/11/14 07:00:50 PM 
 
 snip
 
   My main concern with cocoon is the time it takes to debug
 anything.. 
 The system is so complex (different files, different places the 
 pipeline can fail, diferent protocols, generators, etc. ) that finding
 
 where the problem is takes too much time doing trial and error.
 
   Maybe a good IDE integration with debugging supported would be a
 
 great leap forward  for the cocoon framework.
 
   
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED] 
 For additional commands, e-mail: [EMAIL PROTECTED] 
 
 
 -- 
 This message has been scanned for viruses and
 dangerous content by MailScanner, and is
 believed to be clean.
 MailScanner thanks transtec Computers for their support.
 
 
 -
 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]



Hello ! Can I direct print PDF or Excel to printers ?

2003-11-17 Thread jonathan wong
Dear All , 

 Hello ! I am a beginner of Cocoon . I want to know
are there any method to print the PDF or Excel to
printer directly without download to browsers ? Or may
be I detail it : 

 1. The Cocoon generates the PDF or Excel file 
 2. However , the files don't output to the browser
but output to the printer 

 Can I do this ? Thank you ! 

=
Jonathan 
(Wong Yat Sing) 
Jonathan Studio
M.P (852) - 91235947 
NetMeeting : [EMAIL PROTECTED]
ICQ# 57646152 


__
Do you Yahoo!?
Protect your identity with Yahoo! Mail AddressGuard
http://antispam.yahoo.com/whatsnewfree

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



Re: Hello ! Can I direct print PDF or Excel to printers ?

2003-11-17 Thread alex
[EMAIL PROTECTED] wrote:
  1. The Cocoon generates the PDF or Excel file 
  2. However , the files don't output to the browser
 but output to the printer 

PDF generation is done by the Apache component FOP... and in
FOP's FAQ you will find
http://xml.apache.org/fop/faq.html
question 7.2
with the main answer to your question

There is no standard way of doing it but you might be able to launch acrobat reader 
and get it to send stuff to the printer in *some* circumstances.

Alex


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



jstyle

2003-11-17 Thread Ralph Goers
In Cocoon 2.1.3 jstyle.jar appears in lib/optional and is showing up in the
webapp that gets built. Where does this come from? I need to know its
version so I can place it in my maven repository.  Also, xml-apis shows up
without a version. I believe it comes from Xalan that way. Does anyone know
how I can find out what version it is?

Ralph Goers



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



JMS integration into Cocoon?

2003-11-17 Thread Andrzej Jan Taramina
Anyone done any work using JMS (Java Message Service) from inside Cocoon?

Any sample actions/transformers/etc. that might be shareable to save me a bit 
of time writing my own?

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: JMS integration into Cocoon?

2003-11-17 Thread alex
[EMAIL PROTECTED] wrote:
 Anyone done any work using JMS (Java Message Service) from inside Cocoon?
 Any sample actions/transformers/etc. that might be shareable to save me a bit 
 of time writing my own?

The only person I know who looked at this seriously ended up giving up on linking JMS 
to Cocoon and is in the process of writing his own based upon a separate workflow 
system. He still uses Cocoon for presentation layer - but that doesn't really link up 
to the JMS.

YMMV

Alex



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



Re: JMS integration into Cocoon?

2003-11-17 Thread Joerg Heinicke
On 17.11.2003 18:23, Andrzej Jan Taramina wrote:

Anyone done any work using JMS (Java Message Service) from inside Cocoon?

Any sample actions/transformers/etc. that might be shareable to save me a bit 
of time writing my own?
There is a new JMS block in Cocoon 2.1.3.

Joerg

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


Re: XMLizing your business obejcts

2003-11-17 Thread kalbe
Quoting Justin Fagnani-Bell [EMAIL PROTECTED]:

 As I'm rethinking the object-persistence persistence for my web app, 
 I'm also looking for a better way to output XML from my java objects. 
 Can't really find much on the wiki.
snip
The way I use is marshalling my business objects with
Castor(http://www.castor.org/). Its simple to use and fast.
You can use the Castor marshaller in a MarhsallerGerator or
in an action. If you generate the business objects using the Castor 
source generator, the objects contains the marshalling function itself.
You can map the Attributes of the objects to different XML protocolls
using an XML binding file. This is the simplest and fastest way I Know.

Norbert



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



web.xml init-params

2003-11-17 Thread Jeremy Quinn
Hi All

I am trying to access init-params from web.xml, in a FlowScript, and 
all I get are nulls.

I try this:

var smtpHost = cocoon.context.getInitParameter (smtp-host);

with this in my web.xml:

init-param
  param-namesmtp-host/param-name
  param-valuesmtp.host.org/param-value
/init-param
I can't get any of the init-params from web.xml 

Any suggestions?

thanks

regards Jeremy

smime.p7s
Description: S/MIME cryptographic signature


Re: web.xml init-params

2003-11-17 Thread Upayavira
Jeremy Quinn wrote:

Hi All

I am trying to access init-params from web.xml, in a FlowScript, and 
all I get are nulls.

I try this:

var smtpHost = cocoon.context.getInitParameter (smtp-host);

with this in my web.xml:

init-param
  param-namesmtp-host/param-name
  param-valuesmtp.host.org/param-value
/init-param
I can't get any of the init-params from web.xml 

Any suggestions?
'Fraid it's not that simple. If you look at the code in the 
CocoonServlet, I think you'll see that each init param is handled 
independently, with the init parameters being put into the app context 
within the init method. Unless you're prepared to subclass the 
CocoonServlet, I think you're going to have to find another way of 
getting hold of your initialisation parameters.

Sorry.

Upayavira



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


Re: web.xml init-params

2003-11-17 Thread Upayavira
Upayavira wrote:

Jeremy Quinn wrote:

Hi All

I am trying to access init-params from web.xml, in a FlowScript, and 
all I get are nulls.

I try this:

var smtpHost = cocoon.context.getInitParameter (smtp-host);

with this in my web.xml:

init-param
  param-namesmtp-host/param-name
  param-valuesmtp.host.org/param-value
/init-param
I can't get any of the init-params from web.xml 

Any suggestions?


'Fraid it's not that simple. If you look at the code in the 
CocoonServlet, I think you'll see that each init param is handled 
independently, with the init parameters being put into the app context 
within the init method. Unless you're prepared to subclass the 
CocoonServlet, I think you're going to have to find another way of 
getting hold of your initialisation parameters.

Sorry.
You could use a global variable in the sitemap global-variables/ 
element, and then pass the value, using the global: input component, 
into the flow as a parameter. Just a thought.

Regards, Upayavira



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


Re: XMLizing your business obejcts

2003-11-17 Thread Werner Guttmann
Nobert, 

you might want to have a look at the CastorTransformer in the scatchpad block of 
Cocoon 2.1.2 ff. Iow, there's no 
need to write any code anymore ... it has been done already.

Regards
Werner

On Mon, 17 Nov 2003 21:24:19 +0100, [EMAIL PROTECTED] wrote:

Quoting Justin Fagnani-Bell [EMAIL PROTECTED]:

 As I'm rethinking the object-persistence persistence for my web app, 
 I'm also looking for a better way to output XML from my java objects. 
 Can't really find much on the wiki.
snip
The way I use is marshalling my business objects with
Castor(http://www.castor.org/). Its simple to use and fast.
You can use the Castor marshaller in a MarhsallerGerator or
in an action. If you generate the business objects using the Castor 
source generator, the objects contains the marshalling function itself.
You can map the Attributes of the objects to different XML protocolls
using an XML binding file. This is the simplest and fastest way I Know.

Norbert



-
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: Woody repeater with flow

2003-11-17 Thread Joe Latty
I confess I have not read your entire email, however I have had this problem
and this is what I did to fix it.

1) turn on the javacript debugger and check the Break On Exceptions box in
the Debug Menu. This will give you any JXPath errors.

2) I have had to use different binding files for binding my document to the
form and then from the form to bean e.g.
the form binding wb:value id=select path=results/ticket/id/
will be wb:value id=select path=id/ for the bean.

3) also, I am not sure if this is needed, but I have the following inside my
repeater element in the binding xml file
wb:on-insert-row
  wb:insert-bean
classname=org.apache.cocoon.woody.beans.MyBean
addmethod=addAnotherBean/
/wb:on-insert-row

Joe

- Original Message - 
From: JD Daniels [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, November 18, 2003 2:53 AM
Subject: RE: Woody repeater with flow


 Maybe a lil more info will get me some input :)

 this is my flow:

 function postInvoice(form) {
 var uri = cocoon://xml.xsp;
 var resolver =

cocoon.getComponent(Packages.org.apache.excalibur.source.SourceResolver.ROLE
 );
 var source = resolver.resolveURI(uri);
 var parser =
 cocoon.getComponent(Packages.org.apache.excalibur.xml.dom.DOMParser.ROLE);
 var document =

parser.parseDocument(Packages.org.apache.cocoon.components.source.SourceUtil
 .getInputSource(source));

 form.load(document);

 form.showForm(display-pipeline);
 var model = form.getModel();
 cocoon.sendPage(success-pipeline);
 }

 I don't get an error, but the repeater rows do not show up either.

 Template:
 wt:form-template action=#{$continuation/id}.continue method=POST
   !-- manual layout of fieldw, without use of a wi:group --
   wt:widget-label id=ticket/br/
   wt:repeater-size id=ticket/
   table border=1
 tr
   thwt:repeater-widget-label id=ticket
widget-id=hours//th
   thwt:repeater-widget-label id=ticket
widget-id=user//th
   thwt:repeater-widget-label id=ticket
 widget-id=client//th
   thwt:repeater-widget-label id=ticket
 widget-id=project//th
   th/th
 /tr

 !-- The contents of the repeater-widget element is a template
that
 will
 be applied to each row in the repeater. --
 wt:repeater-widget id=ticket
   tr
 tdwt:widget id=hours//td
 tdwt:widget id=user//td
 tdwt:widget id=client//td
 tdwt:widget id=project//td
 tdwt:widget id=select//td
   /tr
 /wt:repeater-widget

 tr
   td colspan=5 align=right
 wt:widget id=deleteticket/
   /td
 /tr
   /table
 /wt:form-template

 Binding:

 wb:context xmlns:wb=http://apache.org/cocoon/woody/binding/1.0;
 xmlns:wd=http://apache.org/cocoon/woody/definition/1.0; path=/
 wb:value id=ticket path=results/ticket/
 wb:value id=id path=results/ticket/id/
 wb:value id=select path=results/ticket/id/
 wb:value id=user path=results/ticket/user/
 wb:value id=project path=results/ticket/project/
 wb:value id=client path=results/ticket/client/
 wb:value id=hours path=results/ticket/hours/
 /wb:context


 JD

 -Original Message-
 From: JD Daniels [mailto:[EMAIL PROTECTED]
 Sent: Friday, November 14, 2003 4:48 PM
 To: Cocoon Users
 Subject: Woody repeater with flow


 Say I have an xml document

 results
 itemOne
 name/
 email
 etc/
 /itemOne
 itemOne
 name/
 email
 etc/
 /itemOne
 itemOne
 name/
 email
 etc/
 /itemOne
 /results

 How would I load this into a form, with repeater I have defined for
itemOne.

 Ie, I want to load a result set from a database, and display them all to
the
 user as a bunch of repaters with wd:output widgets, with a select widget
to
 remove them one by one before carrying on with an xsp to do something to
the
 ones left. I am sure binding will do this, but I am using flow, and kinda
 lost as to how it actually will work. I have the template, definition, and
 binding files done, kinda lost at the flow part.

 JD


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



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



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



Cocoon and interaction with the Shell

2003-11-17 Thread Yves Vindevogel



Is there anything 
within Cocoon that interacts with the (*nix)-shell ?
Or a way to do this 
?

Yves Vindevogel
Implements

Kempische Steenweg 206 - 3500 Hasselt - 
Belgium
Tel+Fax: +32-11-43.55.76 Mobile: 
+32-478-80.82.91
[EMAIL PROTECTED] - 
www.implements.be


First they ignore you. Then they laugh at you. 
Then they fight you. Then you win. Mahatma Ghandi. 



How to use javabean in JXforms

2003-11-17 Thread Sarah Zou
Hi,
 How can I pass a javabean as the model in .js (for flow control) in JXform? I know that one can define a model in the _javascript_ file. But I would like to use a javabean as the model. 
 Also is there any way to use database instead of xml file for jxforms? How can I make jxforms talk to java? Thank you for all your help.

Sarah
Do you Yahoo!?
Protect your identity with Yahoo! Mail AddressGuard

Xindice-support in the latest snapshot of cocoon

2003-11-17 Thread Heiner Braun privat
Till now I used Xindice in my cocoon applications.
But with the latest cvs-snapshot cocoon doesn't undestand  the 
pseudo-protocol any more.
I saw  some mails in the mailing list but no answers that the problem 
was solved.

 



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


Re: ESQL Connection Pool hangs

2003-11-17 Thread Joerg Heinicke
(Question to dev, CC users)

Shall we update excalibur-database to 1.1.2-dev-mavenized?

Joerg

On 17.11.2003 11:47, Mirco Goergen wrote:
Hi

Thanks for your replay. 

I upgrade to Version 2.1.3 but the Version number from excalibur-datasource is still 1.1.1 

Unfortunatly the problem does occur only from time to time, is it possible to force this error to be sure that I m on the right side or would it even be better to exchange the jar from latest developer version?

regards

Mirko


[EMAIL PROTECTED] 11/17 10:43  
the excalibur-datasource-1.1.1.jar contains a bug that can be the source for
your problems. The database pooling is going out of sync and after some time
the pool is empty and therefore hangs until restart.
Solution:
Update your excalibur datasource jar to a version after 18.07.2003.
hth
Frank
- Original Message -
From: Mirco Goergen [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Sunday, November 16, 2003 1:53 PM
Subject: ESQL Connection Pool hangs


Hello

If have set two connection pool within cocoon.xconf

One for Mysql the other for Oracle. Both working fine and I could handle
my sql via xsp and action perfectly.

Unfortunatly after some hours of running the Mysql Connection hangs and I
got no error whats going on with this connection. It seems to me that Cocoon
is still trying to connect, but got no respone from mysql db. Pages from
Cocoon without using Mysql are still working. Also Connection to Oracle is
still alive.
If I try to connect to the same mysql db in a different way, it still
works. Restarting Tomcat solve the problem until it hangs again.

I using Cocoon 2.1 Mysql 4.0.16 Latest Mysql JDBC driver and
j2sdk1.4.1_01. All this parts are on one machine (it s a big one :-) so
firewall could not cause my trouble.
I also tried to connect to Mysql using the autoReconnect still the same
result.

Any help to this problem are welcome.

thanks a lot

Mirko Görgen

Mit freundlichem Gruß

Mirko Görgen
Webadministrator
Firma: Compu-Shack
Tel: 0 26 31 - 98 31 48
Fax: 0 26 31 - 98 31 99
www.compu-shack.com


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