esql-patch

2001-08-07 Thread Enke Michael

Hi,
I'd like to use esql:get-string column=abc encoding=UTF-8/
but for the encoding we have to catch
java.io.UnsupportedEncodingException
These exception is not catched yet.
Because I have no access to cvs I post the patch as
diff -u esql.xsl.orig esql.xsl

Regards,
Michael



--- esql.xsl.orig   Tue Aug  7 16:25:16 2001
+++ esql.xslTue Aug  7 16:23:13 2001
@@ -637,6 +637,9 @@
 /xsl:choose
   } catch (Exception _esql_exception_xsl:value-of select=generate-id(.)/_2) {}
 }
+catch(java.io.UnsupportedEncodingException e) {
+  throw new RuntimeException(e.toString());
+}
 if (_esql_queries.empty()) {
   _esql_query = null;
 } else {



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


Re: AW: [C2] Release

2001-08-16 Thread Enke Michael

Yes, it is fine now.

Michael


Carsten Ziegeler wrote:
 
 Michael,
 
 I removed the parenthesis. Please check if everyting is working fine now.
 
 Carsten
 
  -Ursprungliche Nachricht-
  Von: Enke Michael [mailto:[EMAIL PROTECTED]]
  Gesendet: Donnerstag, 16. August 2001 11:52
  An: [EMAIL PROTECTED]
  Betreff: Re: [C2] Release
 
 
  Morrison, John wrote:
  
   Hi all,
  
   Just wondering - what is remaining to let the 2.0 branch go final?
  
   J.
 
  Hi,
  on Wednesday I checked the latest version of esql.xsl
  which Davanum Srinivas checked in on Tuesday.
  I found that there is one right parenthesis too much.
  I posted him to his private address but no response up to now.
  For a final release (also relevant for 2.1) this must be corrected.
  Here the mail to dims:
 
  Davanum Srinivas wrote:
   ...
   I have checked in a slightly modified patch yesterday into the
  CVS that should take care of your
   problem. You can get the latest cvs or get the esql.xsl from
  the url below:
  
  
  http://cvs.apache.org/viewcvs.cgi/xml-cocoon2/src/org/apache/cocoo
 n/components/language/markup/xsp/java/
 
  Please try it out and let us know.
 
 
 Hi,
 I checked and found that the last right parenthesis is too much.
 Please remove this, then it works:
 
 actually checked in:
 
 != null ? getStringFromByteArray(xsl:value-of
 select=$resultset/.getBytes
(xsl:value-of select=$column-spec/), xsl:value-of
 select=$encoding/))
 
 must be:
 
 != null ? getStringFromByteArray(xsl:value-of
 select=$resultset/.getBytes
(xsl:value-of select=$column-spec/), xsl:value-of
 select=$encoding/)
 
 
 Michael
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, email: [EMAIL PROTECTED]
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, email: [EMAIL PROTECTED]

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




session invalidator and back button

2001-08-16 Thread Enke Michael

Hi,
I'm using the example from cocoon for Protected Area
and wonder why after logout I can push the back button and
I'm back inside the protected area. The page from which I
logout should have the expire hint.
Here the diff -u for webapp/protected/stylesheets/simple-page2html.xsl

--- simple-page2html.xslThu Aug 16 15:52:12 2001
+++ simple-page2html.xsl.newThu Aug 16 15:51:41 2001
@@ -5,6 +5,8 @@
   xsl:template match=page
 html
   head
+META content=0 http-equiv=expires/
+META content=nocache http-equiv=pragma/
 title
   xsl:value-of select=title/
 /title
Could any commiter apply this please?

By the way, why that: I want to see in the html:
META http-equiv=expires content=0
but for this I have to switch both attributes,
first content, than http-equiv:
META content=0 http-equiv=expires/

Michael

PS: My konqueror (kde2.1) doesn't care about expires and nocache ;-(

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




Re: [C2.1-dev] I18n samples are broken

2001-08-28 Thread Enke Michael

I'll do it tomorrow.

Michael


Piroumian, Konstantin wrote:
 
 Hi *!
 
 FYI, in the latest CVS snapshot i18n samples are broken. I get an
 IOException in _setup() method where XMLResourceBundle is configured. I
 suspect that transformer is incorrectly configured. I will take a look at
 it, but don't promise to post patches in a short time.
 Will anybody else take a look at it and tell me if the problem is not in the
 latest Source interface changes?
 
 Regards,
 Konstantin Piroumian
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, email: [EMAIL PROTECTED]

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




Re: [C2.1-dev] I18n samples are broken

2001-08-28 Thread Enke Michael

I wanted to check this, but I have no cvs access.
And in the dev-snapshot area there is only cocoon2(.0 I guess).
Is there a reason why not to publish cocoon2.1 in dev snapshots?

Michael

Piroumian, Konstantin wrote:
 
 Hi *!
 
 FYI, in the latest CVS snapshot i18n samples are broken. I get an
 IOException in _setup() method where XMLResourceBundle is configured. I
 suspect that transformer is incorrectly configured. I will take a look at
 it, but don't promise to post patches in a short time.
 Will anybody else take a look at it and tell me if the problem is not in the
 latest Source interface changes?
 
 Regards,
 Konstantin Piroumian
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, email: [EMAIL PROTECTED]

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




esql-patch: tag-name

2001-09-04 Thread Enke Michael

Hi.
I had the problem that I have to receive rows from a table
where the number of columns is variable (because the query is
variabe). For this reason it is useful to have the element names
the same for each column.
I introduced the tag-name attribute in esql:get-columns.

E.g. esql:get-columns tag-name=column/ will result in
column
 col1
/column
column
 col2
/column
...

( Remark: the tag-case applies after this too.
  esql:get-columns tag-name=column tag-case=upper/
  results in COLUMNcol1/COLUMN... )

Could a commiter commit this please?
One question: If I get the dev-snapshot, which version do I get?
2.0 or 2.1?

Regards,
Michael

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




esql-patch: tag-name WITH attachment!

2001-09-04 Thread Enke Michael

Enke Michael wrote:
 
 Hi.
 I had the problem that I have to receive rows from a table
 where the number of columns is variable (because the query is
 variabe). For this reason it is useful to have the element names
 the same for each column.
 I introduced the tag-name attribute in esql:get-columns.
 
 E.g. esql:get-columns tag-name=column/ will result in
 column
  col1
 /column
 column
  col2
 /column
 ...
 
 ( Remark: the tag-case applies after this too.
   esql:get-columns tag-name=column tag-case=upper/
   results in COLUMNcol1/COLUMN... )
 
 Could a commiter commit this please?
 One question: If I get the dev-snapshot, which version do I get?
 2.0 or 2.1?
 
 Regards,
 Michael
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, email: [EMAIL PROTECTED]



--- esql.xsl.orig   Mon Sep  3 21:38:36 2001
+++ esql.xslTue Sep  4 09:18:41 2001
@@ -705,23 +705,33 @@
   /xsp:content
 /xsl:template
 
-xspdoc:descresults in a set of elements whose names are the names of the columns. 
the elements each have one text child, whose value is the value of the column 
interpreted as a string. No special formatting is allowed here. If you want to mess 
around with the names of the elements or the value of the text field, use the 
type-specific get methods and write out the result fragment yourself./xspdoc:desc
+xspdoc:descresults in a set of elements whose names are the names of the columns or 
+tag-name if given . the elements each have one text child, whose value is the value 
+of the column interpreted as a string. No special formatting is allowed here. If you 
+want to mess around with the names of the elements or the value of the text field, 
+use the type-specific get methods and write out the result fragment 
+yourself./xspdoc:desc
 xsl:template match=esql:row-results//esql:get-columns
   xsl:variable name=tagcasexsl:value-of select=@tag-case//xsl:variable
+  xsl:variable name=tagnamexsl:value-of select=@tag-name//xsl:variable
   xsl:choose
 xsl:when test=$environment = 'cocoon1'
   xsp:logic
 for (int _esql_i=1; _esql_i lt;= 
_esql_query.resultset_metadata.getColumnCount(); _esql_i++) {
+  String tag-name =
+xsl:choose
+  xsl:when test=$tagname
+xsl:value-of select='@tag-name'/
+  /xsl:when
+  xsl:otherwise
+_esql_query.resultset_metadata.getColumnName(_esql_i)
+  /xsl:otherwise
+/xsl:choose;
   Node _esql_node = document.createElement(
 xsl:choose
   xsl:when test=$tagcase='lower'
-_esql_query.resultset_metadata.getColumnName(_esql_i).toLowerCase()
+tag-name.toLowerCase()
   /xsl:when
   xsl:when test=$tagcase='upper'
-_esql_query.resultset_metadata.getColumnName(_esql_i).toUpperCase()
+tag-name.toUpperCase()
   /xsl:when
   xsl:otherwise
-_esql_query.resultset_metadata.getColumnName(_esql_i)
+tag-name
   /xsl:otherwise
 /xsl:choose
   );
@@ -738,7 +748,14 @@
 xsl:when test=$environment = 'cocoon2'
   xsp:logic
 for (int _esql_i = 1; _esql_i lt;= 
_esql_query.resultset_metadata.getColumnCount(); _esql_i++) {
-  String _esql_tagname = 
_esql_query.resultset_metadata.getColumnName(_esql_i);
+  xsl:choose
+   xsl:when test=@tag-name
+String _esql_tagname = xsl:value-of select='@tag-name'/;
+   /xsl:when
+   xsl:otherwise
+String _esql_tagname = 
+_esql_query.resultset_metadata.getColumnName(_esql_i);
+   /xsl:otherwise
+  /xsl:choose
   xsp:element
 xsp:param name=name
   xsl:choose



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


Re: esql-patch: tag-name

2001-09-04 Thread Enke Michael

Thanks.
I never saw the position() function
in XML in a nutshell.
Are there specific resources available
to the XSL transformer which cocoon uses?

Michael

Klaus Bertram wrote:
 
 Hi Michael,
 
 you can also use in your database xsp
 row
 esql:get-columns/
 /row
 this get all columns like
 rowID1234/ID... /row
 and in your xsl
 
 xsl:template match=row
  xsl:if test=position()=2
   tr bgcolor=#ee
xsl:for-each select=*tdxsl:value-of select=local-name(.)//td
/xsl:for-each
   /tr
  /xsl:if
  trxsl:for-each select=*tdxsl:value-of
 select=.//td/xsl:for-each/tr
 /xsl:template
 
 It works but, i didn't know why the first pos of row is empty
 i try this with xml:sql and it works from the first pos nicely
 
 I hope that help's a litle bit
 
 Klaus
 
 nbis - Rottgerweg 10 - 51371 Leverkusen
 phone: +49-214-206494-0
 fax:   +49-214-206494-44
 email: [EMAIL PROTECTED]
 
  -Original Message-
  From: Enke Michael [mailto:[EMAIL PROTECTED]]
  Sent: Tuesday, September 04, 2001 9:30 AM
  To: [EMAIL PROTECTED]
  Subject: esql-patch: tag-name
 
 
  Hi.
  I had the problem that I have to receive rows from a table
  where the number of columns is variable (because the query is
  variabe). For this reason it is useful to have the element names
  the same for each column.
  I introduced the tag-name attribute in esql:get-columns.
 
  E.g. esql:get-columns tag-name=column/ will result in
  column
   col1
  /column
  column
   col2
  /column
  ...
 
  ( Remark: the tag-case applies after this too.
esql:get-columns tag-name=column tag-case=upper/
results in COLUMNcol1/COLUMN... )
 
  Could a commiter commit this please?
  One question: If I get the dev-snapshot, which version do I get?
  2.0 or 2.1?
 
  Regards,
  Michael
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, email: [EMAIL PROTECTED]
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, email: [EMAIL PROTECTED]

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




I18nTransformer patch

2001-09-07 Thread Enke Michael

Hi folks,
here is a patch for I18nTransformer:
1) new tag int-currency introduced:
   In merchandise calculations often
   the calculations are done not with double
   ($1,23+$4,56) but with integers:
   (cent 123+cent 456)
   Soo give the value 579 will result
   in 5.79 for US locale but 579 for spanish locale
   because there is no sub currency in Spain.
2) the i18n:number tag did not preserve
   trailing and leading zeros and did only show
   three decimal places.
   Soo i18n:number0.12345/i18n:number
   was transformed to 0.123
   and i18n:number0.1/i18n:number
   was transformed to 0.1
   This is now fixed.
Could a commiter commit please?

Regards,
Michael



--- I18nTransformer.java.orig   Thu Sep  6 15:46:30 2001
+++ I18nTransformer.javaFri Sep  7 12:57:30 2001
@@ -258,7 +258,8 @@
 
 /**
  * codesub-type/code attribute is used with codei18:number/code to
- * indicate a sub-type: codecurrency/code or codepercent/code.
+ * indicate a sub-type: codecurrency/code, codeint-currency/code
+ * or codepercent/code.
  */
 public static final String I18N_SUB_TYPE_ATTRIBUTE = sub-type;
 
@@ -1058,6 +1059,8 @@
 
 // src format
 DecimalFormat from_fmt = (DecimalFormat)NumberFormat.getInstance(srcLoc);
+   int int_currency = 0;
+
// src-pattern overwrites locale format
 if (srcPattern != null) {
 from_fmt.applyPattern(srcPattern);
@@ -1065,10 +1068,28 @@
 
// to format
 DecimalFormat to_fmt = null;
+char dec = from_fmt.getDecimalFormatSymbols().getDecimalSeparator();
+int decAt = 0;
+boolean appendDec = false;
 if (subType == null) {
 to_fmt = (DecimalFormat)NumberFormat.getInstance(loc);
+to_fmt.setMaximumFractionDigits(309);
+for(int i=value.length()-1;
+i=0  value.charAt(i)!=dec;i--,decAt++);
+if(decAt  value.length()) to_fmt.setMinimumFractionDigits(decAt);
+decAt = 0;
+for(int i = 0; i  value.length()  value.charAt(i) != dec; i++) {
+  if(Character.isDigit(value.charAt(i))) decAt++;
+}
+to_fmt.setMinimumIntegerDigits(decAt);
+if(value.charAt(value.length()-1) == dec) appendDec = true;
 } else if (subType.equals(currency)) {
 to_fmt = (DecimalFormat)NumberFormat.getCurrencyInstance(loc);
+} else if (subType.equals(int-currency)) {
+to_fmt = (DecimalFormat)NumberFormat.getCurrencyInstance(loc);
+   int_currency = 1;
+   for(int i=0;ito_fmt.getMaximumFractionDigits();i++)
+   int_currency *= 10;
 } else if (subType.equals(percent)) {
 to_fmt = (DecimalFormat)NumberFormat.getPercentInstance(loc);
 }
@@ -1083,6 +1104,12 @@
 } else {
 try {
 numberValue = from_fmt.parse(value);
+if(int_currency  0)
+   numberValue = new Double(numberValue.doubleValue()/
+int_currency);
+else {
+
+}
 } catch (ParseException pe) {
 throw new SAXException(this.getClass().getName()
+ i18n:number - parsing error., pe);
@@ -1091,6 +1118,7 @@
 
 // we have all necessary data here: do formatting.
 String result = to_fmt.format(numberValue);
+if(appendDec) result = result + dec;
 debug(i18n:number result:  + result);
 return result;
 }


--- i18n-transformer.xml.orig   Fri Sep  7 14:50:02 2001
+++ i18n-transformer.xmlFri Sep  7 14:49:35 2001
@@ -189,6 +189,7 @@
/p
ul
licode![CDATA[i18n:number 
sub-type=currency value=1703.74 /]]/code will result in localized presentation 
of the codevalue/code - $1,703.74 for US locale./li
+   licode![CDATA[i18n:number 
+sub-type=int-currency value=170374 /]]/code will result in localized 
+presentation of the codevalue/code - $1,703.74 for US locale, 170374 for a 
+currency without subunit./li
licode![CDATA[i18n:number 
sub-type=percent value=1.2 /]]/code will result in localized percent 
codevalue/code - %120 for most of the locales./li
/ul
p



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


anybody heared about jakarta-struts?

2001-10-02 Thread Enke Michael

Hi!
in the last days I have heared about the jakarta struts project:
http://jakarta.apache.org/struts
There are the very same ideas behind (?) than by cocoon.
Does anybody know if we have 2 parallel developments?
Or where the differences lie?
They are talking about Controller Servlet, JSP, Actions,
custom tag libraries, XML-parsing, I18n ...

Michael

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




Re: C2/Linux: Problems using current IBM JDK

2001-10-04 Thread Enke Michael

Matthew Langham wrote:
 
 We are currently experimenting with different Java JDKs under SuSE Linux 7.2
 and have a problem with the current IBM JDK.
 
 After compilation the sitemap.class cannot be loaded and we get an
 appopriate error message Cant find class for  Nothing further is
 traced.
 
 We have tried the various switches in web.xml and deleted the Work directory
 first etc.
 
 Any ideas? Anyone else currently running C2 under Suse Linux with the IBM
 JDK - which version are you using? Any gotchas when switching over from a
 running Sun JDK?

I'm running C2 on SuSE 7.2 with IBM-SDK (v1.3.0 is on the SuSE-CD's).
As I remember, the problem was tomcat. I downloaded tomcat3.2.3
and than it was working. (I never tried it with the Sun-SDK.)

Michael

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




Re: AW: C2/Linux: Problems using current IBM JDK

2001-10-05 Thread Enke Michael

Matthew Langham wrote:
 
 Hi Michael,
 
 thanks for your message. We are now testing all combinations :-) and will
 post our results.
 
 Just one question: Which JDK did you use to compile Cocoon?

With the IBM JDK from SuSE7.2:

me@laptop:~  java -version
java version 1.3.0
Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.0)
Classic VM (build 1.3.0, J2RE 1.3.0 IBM build cx130-20001025 (JIT
enabled: jitc))

Michael

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




found serious bug: Transformer or Parser?

2001-10-24 Thread Enke Michael

Hi people!
I found a dirty bug and I don't know where to dig to throw it away.
I have translations (I18nTransformer) for lt;= (quotation marks
only to clarify here) to lower or equal and gt;= to greater or
equal.
All right.

Now I have included another xsp with util:include-uri also with these
tags.
For this lt;= the Transformer is called twice. It looks first
for a translation for lt; -not found- and than for a translation
for = -not found- and the same for gt;=. Other letter-only tags
are
translated right. For the included xsp I call no I18nTransformer,
only the serverpagesgenerator.

If I look the xml before translation it looks ok!
Any ideas what went wrong?
I hope we can fix this.

Michael

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




Re: Questrion about the pipelining

2001-11-01 Thread Enke Michael

Jörn Heid wrote:
 
 As far as I tested my my idea of C2 seems to be wrong.
 
 Instead of an contious processing of XML-XSLT-HTML I found about that the
 serializer starts working if all of the xslt processing has finished.
 Is this right?

I found this too. But as I begun working with C2 it was the other way
around.
Something has changed. Hopefully this is only a small mistake and easy
to
recover.
Or could it be that this has to do with our stylesheets?

Michael

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




Re: i18n number formatting (was: [C2.0] Error in sitemapconfiguration : org.apache.cocoon.transformation.I18nTransformer)

2001-11-09 Thread Enke Michael

Hi Bernhard, hi Konstantin,
it may help to use the src-locale.
But I couldn't verify because the
i18n:translatei18n:text...{0} .
didn't work for me.
But with my patch I didn't touch the i18n:param edge.
I only looked at i18n:number
May be there is an open point that has to be corrected.
But I'm 2 weeks off the list from now.
Could you check this again and give me response?

Regards,
Michael

Bernhard Huber wrote:
 
 Hi, Konstantin
 
 You may have to add the attribute
 src-locale=en
 to help the number formatter parsing the number.
  Thus the change lines to:
 i18n:param type=number src-locale=en value=1703.74 /
 i18n:param type=number src-locale=en sub-
 type=currency27.24/i18n:param
 i18n:param type=number src-locale=en sub-
 type=percent1.2/i18n:param
 
 Then you will get the correct output.
 
 I have somehow the feeling that some sort of spec would
 be nice for such transformation-components
 bye Huber, Bernhard
 
 - Originalnachricht -
 Von: Piroumian, Konstantin [EMAIL PROTECTED]
 Datum: Montag, November 5, 2001 10:53 am
 Betreff: i18n number formatting (was:  [C2.0] Error in sitemap
 configuration : org.apache.cocoon.transformation.I18nTransformer)
 
  Sorry for the buzz. I recompiled everything from scratch and it
  worked.
  But I've noticed a strange behavior in i18n samples: for some
  reason number
  formatting works not as expected. It formats the same number in
  differentways and the value differ. i18n:param type=number
  value=1703.74 /
  results in:
 
  English1,703.74
  Russian001 703
  German170.374
 
  This must be
  1,703.74 for English
  1 703,74 for Russian
  1 703.74 for German (?)
 
  I suspect, that this happened after applying the patch from Enke
  Michael(from Sep 7) that added int-currency and fixed(?)
  i18n:number behavior.
 
 
  - Original Message -
  From: Neeme Praks [EMAIL PROTECTED]
  To: [EMAIL PROTECTED]
  Sent: Sunday, November 04, 2001 10:45 PM
  Subject: RE: [C2.0] Error in sitemap configuration :
  org.apache.cocoon.transformation.I18nTransformer
 
 
  
   AFAIK, Cocoon has not yet migrated to the new i18n support in
  Avalon (it's
  a
   bit early for that also, the code is a bit in a state of flux at
  current moment.)
   But Berin seems to have made some changes it I18nTransformer,
  maybe that
  is
   the cause...
   Did it give any error messages?
  
-Original Message-
From: Piroumian, Konstantin [mailto:[EMAIL PROTECTED]]
Sent: Sunday, November 04, 2001 5:58 PM
To: [EMAIL PROTECTED]
Subject: [C2.0] Error in sitemap configuration :
org.apache.cocoon.transformation.I18nTransformer
   
   
Hi!
   
I've just updated my CVS repository with cocoon_20_branch. It
compiles, but
after deploying to Tomcat 4.0 it complains that could not find the
i18nTransformer class. The source file is copied to the build
directory, but
there is no  I18nTransformer.class in the resulting
  cocoon.war. Maybe
something's went wrong after recent changes to Avalon/Cocoon i18n
  support?
   
Regards,
Konstantin Piroumian
   
---
  --
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]
   
  
  
   -
  
   To unsubscribe, e-mail: [EMAIL PROTECTED]
   For additional commands, email: [EMAIL PROTECTED]
  
 
  ---
  --
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, email: [EMAIL PROTECTED]
 
 
 
   
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, email: [EMAIL PROTECTED]

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




Error correction for esql.xsl

2002-01-07 Thread Enke Michael

Hi committer,
this doesn't work because the last but one is repeated nonterminating:

xsl:template name=nextRow
  //checking out early?
if (_esql_query.getMaxRows() != -1 amp;amp; _esql_query.getCurrentRow() - 
_esql_query.getSkipRows() == _esql_query.getMaxRows() - 1 ) {
} else {//if not, advance normally
  _esql_query.setKeepGoing( _esql_query.nextRow() );
}
/xsl:template

please replace with:

xsl:template name=nextRow
  //checking out early?
if (_esql_query.getMaxRows() != -1 amp;amp; _esql_query.getCurrentRow() - 
_esql_query.getSkipRows() == _esql_query.getMaxRows() ) {
  _esql_query.setKeepGoing(false);
} else {//if not, advance normally
  _esql_query.setKeepGoing( _esql_query.nextRow() );
}
/xsl:template

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




Re: Re: Error correction for esql.xsl

2002-01-08 Thread Enke Michael

Hi Torsten,
you have forgotten to insert one line:
_esql_query.setKeepGoing(false);

If this line is missing the last DB entry will be repeated infinitely.

Michael



Torsten Curdt wrote:
 
 On Mon, 7 Jan 2002, Enke Michael wrote:
 
  Hi committer,
  this doesn't work because the last but one is repeated nonterminating:
 
  xsl:template name=nextRow
//checking out early?
  if (_esql_query.getMaxRows() != -1 amp;amp; _esql_query.getCurrentRow() - 
_esql_query.getSkipRows() == _esql_query.getMaxRows() - 1 ) {
  } else {//if not, advance normally
_esql_query.setKeepGoing( _esql_query.nextRow() );
  }
  /xsl:template
 
  please replace with:
 
  xsl:template name=nextRow
//checking out early?
  if (_esql_query.getMaxRows() != -1 amp;amp; _esql_query.getCurrentRow() - 
_esql_query.getSkipRows() == _esql_query.getMaxRows() ) {
_esql_query.setKeepGoing(false);
  } else {//if not, advance normally
_esql_query.setKeepGoing( _esql_query.nextRow() );
  }
  /xsl:template
 
 added this to my ToDo list for today.
 
 Thanks!
 --
 Torsten
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, email: [EMAIL PROTECTED]

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




incremental-processing with D14

2002-01-09 Thread Enke Michael

Hi,
I guess we can now (with xalan-D14) set this true per default
in cocoon.xconf. I saw that it's working fine.

Michael

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




Improved the feeled performance!

2002-01-17 Thread Enke Michael

Hi people,
as we have a default Buffer of 8192 byte in the AbstractTextSerializer
sometimes it takes very long until any result is visible in the browser.
Therefore I introduced an OutputFlusher which flushes the BufferedOutputStream
per default every 500 ms. Now the pageheader is shown immediately, independent of
how long it takes to fill 8192 byte.
I hope this helps.
I prepared AbstractTextSerializer to get the time in milliseconds
from cocoon.xconf, the name is flush-time, default is 500, values below 100 are set 
to 100,
value of 0 means no flushing.
But I have no idea how to setup, what to put in cocoon.xconf.
Do I have to put AbstractTextSerializer into cocoon.roles???

Attached the diff and a new class for cocoon/serialization

Regards,
Michael



package org.apache.cocoon.serialization;

import java.io.BufferedOutputStream;
import java.io.IOException;

public class OutputFlusher extends java.lang.Thread {

  private BufferedOutputStream bos;
  private int flushTime;

  public OutputFlusher(BufferedOutputStream bos, int flushTime) {
this.bos = bos;
this.flushTime = flushTime;
start();
  }

  public void run() {
while(bos != null) {
  try {
bos.flush();
sleep(flushTime);
  }
  catch(InterruptedException ie) {}
  catch(IOException ioe) { break; }
}
  }
}


--- AbstractTextSerializer.java.origThu Jan 17 11:15:33 2002
+++ AbstractTextSerializer.java Thu Jan 17 15:40:27 2002
@@ -12,6 +12,7 @@
 import org.apache.avalon.framework.configuration.Configurable;
 import org.apache.avalon.framework.configuration.Configuration;
 import org.apache.avalon.framework.configuration.ConfigurationException;
+import org.apache.avalon.framework.parameters.Parameters;
 import org.apache.cocoon.Constants;
 import org.apache.cocoon.caching.CacheValidity;
 import org.apache.cocoon.caching.Cacheable;
@@ -80,6 +81,22 @@
 private NamespaceAsAttributes namespacePipe;
 
 /**
+ * The parameter from cocoon.xconf for flushing the BufferedOutputStream
+ */
+private final String FLUSH_TIME_ID = flush-time;
+
+/**
+ * Per default flushing every 500 ms
+ */
+private final int FLUSH_TIME_DEFAULT = 500;
+private int flushTime = FLUSH_TIME_DEFAULT;
+
+/**
+ * flushTime less than 100 eats up too much performance
+ */
+private final int FLUSH_TIME_MINIMUM = 100;
+
+/**
  * Interpose namespace pipe if needed.
  */
 public void setConsumer(XMLConsumer consumer) {
@@ -139,6 +156,7 @@
  */
 BufferedOutputStream streamBuffer = new BufferedOutputStream(out, 
outputBufferSize);
 super.setOutputStream(streamBuffer);
+if(flushTime = FLUSH_TIME_MINIMUM) new OutputFlusher(streamBuffer, 
+flushTime);
 }
 
 /**
@@ -205,6 +223,10 @@
 } catch(Exception e) {
 getLogger().warn(Cannot know if transformer needs namespaces attributes 
- assuming NO., e);
 }
+
+Parameters params = Parameters.fromConfiguration(conf);
+flushTime = params.getParameterAsInteger(FLUSH_TIME_ID, FLUSH_TIME_DEFAULT);
+if(flushTime  0  flushTime  FLUSH_TIME_MINIMUM) flushTime = 
+FLUSH_TIME_MINIMUM;
 }
 
 /**



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


compilation hang??

2002-01-22 Thread Enke Michael

Hi!
I use a dev snapshot from end of december and I found
every time I get an exception from the page (NullPointerException or
SQLException) I'm not able to reload the page after editing them.
To solve this I have to load another page, also this page hangs.
A reload on this other page gives me the other page and then I'm
able to load the original page.
Does anybody encounter the same problem?

Michael

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




Re: i18n transformer update

2002-01-24 Thread Enke Michael

Hi Konstantin,
that is fine that you have a little time ;-)

1) I have a whish: Could we introduce a new cocoon.xconf parameter for i18n
  called empty-translation, e.g. empty-translation=.?
  At this time it is not possible to have an empty translation.
  I need this for generic formular creation and I only commented out
  line 357 in XMLResourceBundle.java: itemValue = itemValue.trim();
  and put a space in the dictionary.
  But I think a more common solution would be fine also for others.
2) I prepared 2 new attributes: currency-no-unit and int-currency-no-unit
  This prevents the $ or DM (now Euro) from printing.
  I append the diff -u
3) Since the last update (?) of XMLResourceBundleFactory.java I get this note
  at compile time:
Note: .../i18n/XMLResourceBundleFactory.java uses or overrides a deprecated API.  
Recompile with -deprecation for details.
  If you could have a look at this ...

Thanks,
Michael


Piroumian, Konstantin wrote:
 
 Hi, C2ers!
 
 As I have a little free time, I'm going to make some code clean up in i18n
 transformer and LocaleAction. I've already added JavaDoc comments to all
 public members and polished a little class comments.
 
 Next I am going to create an I18nUtils class that will contain all general
 purpose i18n routines, such as locale string parsing, date/number formatting
 and parsing, etc. Currently, it will be placed in org.apache.cocoon.i18n
 package.
 
 Also, I'm going to add a new i18n:get-locale element that will use
 LocaleAction.getLocale() to return the current selected Locale (it can be
 different from request.getLocale()).  (It'd be good also to move getLocale()
 to the new I18nUtils, but now getLocale() has a lot of dependencies from
 Cocoon, but I want to keep I18nUtils as much general as possible).
 
 Are there any other wishes/suggestions/comments regarding i18n?
 
 Best regards,
 
 Konstantin Piroumian
 Leading Software Developer
 
 Protek Flagship LLC
 Phone: + 7 095 795 0520 (add. 1288)
 Fax: + 7 095 795 0525
 E-mail: [EMAIL PROTECTED]
 http://www.protek.com
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, email: [EMAIL PROTECTED]



--- I18nTransformer.java.orig   Thu Jan 24 12:53:01 2002
+++ I18nTransformer.javaThu Jan 24 12:53:04 2002
@@ -1110,6 +1110,19 @@
 int_currency = 1;
 for ( int i = 0; i  to_fmt.getMaximumFractionDigits(); i++ )
 int_currency *= 10;
+} else if ( subType.equals( currency-no-unit ) ) {
+DecimalFormat tmp = (DecimalFormat) NumberFormat.getCurrencyInstance( loc 
+);
+to_fmt = (DecimalFormat) NumberFormat.getInstance( loc );
+to_fmt.setMinimumFractionDigits(tmp.getMinimumFractionDigits());
+to_fmt.setMaximumFractionDigits(tmp.getMaximumFractionDigits());
+} else if ( subType.equals( int-currency-no-unit ) ) {
+DecimalFormat tmp = (DecimalFormat) NumberFormat.getCurrencyInstance( loc 
+);
+int_currency = 1;
+for ( int i = 0; i  tmp.getMaximumFractionDigits(); i++ )
+int_currency *= 10;
+to_fmt = (DecimalFormat) NumberFormat.getInstance( loc );
+to_fmt.setMinimumFractionDigits(tmp.getMinimumFractionDigits());
+to_fmt.setMaximumFractionDigits(tmp.getMaximumFractionDigits());
 } else if ( subType.equals( percent ) ) {
 to_fmt = (DecimalFormat) NumberFormat.getPercentInstance( loc );
 }



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


Re: i18n transformer update

2002-01-24 Thread Enke Michael

Piroumian, Konstantin wrote:
  ...
  1) I have a whish: Could we introduce a new cocoon.xconf parameter for i18n
called empty-translation, e.g. empty-translation=.?
 
 Do you mean sitemap.xmap?

Doesn't matter. I'm not so deep in the internals to know what to
configure in cocoon.xconf or sitemap.xmap.

At this time it is not possible to have an empty translation.
I need this for generic formular creation and I only commented out
line 357 in XMLResourceBundle.java: itemValue = itemValue.trim();
and put a space in the dictionary.
But I think a more common solution would be fine also for others.
 
 Ok, I'll take a look at it. As I can see, you can now use
 'untranslated-text' param to provide custom text for not found messages.
 Maybe this can be the common solution for your case?

No, we must differentiate the cases that either a translation was really forgotten
or a i18n:textsomethink/i18n:text should result in silence.
For me the somethink comes out of a database. I have a formular.xsp
which creates textfields and descriptions for the textfields.
The textfields are correlated with tablecolumn names, e.g. Employee Number.
Another column in formular table is called relation, this can be
=, = or =. So both columns together are responsible to create
textfields From Employee Number or To Employee Number.
In the case of equality (Employee name) I want to have an empty translation for =.


  2) I prepared 2 new attributes: currency-no-unit and int-currency-no-unit
This prevents the $ or DM (now Euro) from printing.
I append the diff -u
 
 Are you sure? As I could get from the diff you just set the number of
 fraction digits and nothing else. Anyway, this can be useful.

No. Look closely, there is a NumberFormat.getInstance(),
not a NumberFormat.getCurrencyInstance().
And than the fractions of that NumberFormat-Instance are set as from
currencyInstance.


 Btw, do we need separate 'type' and 'sub-type' attributes? It's absolutely
 enough to have 'type' = [number, date, date-time, time, currency, percent].

I agree!

 We can introduce new attributes: 'max-fraction' and 'min-fraction'.

No, that is not the way.
Java knows how many fractions are necessary for money values of the used locale.
This is not always 2. So Italy or Spain had (before the Euro) no fraction digits.

 ...

Regards,
Michael

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




Re: i18n transformer update

2002-01-24 Thread Enke Michael

Peter Royal wrote:
 
 On Thursday 24 January 2002 06:48 am, Sylvain Wallez wrote:
  I also had a look at the key lookup stuff (including XMLResourceBundle),
  and it seems to me it is really performance-killing. Since I also need
  pluggable sources for translations, I will take this subject if you
  don't mind.
 
 Yes, the i18nTransformer is easily the slowest component in our pipeline
 here. Things were much better after I made it Cacheable, though.
 

Also the amount of debug output is not necessary and slows it down alot.

Michael

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




xml.apache.org/cocoon - missing pics

2002-01-24 Thread Enke Michael

Hi,
if this is read by a cocooner which have file access to
http://xml.apache.org/cocoon/
There are some pictures missing in the left navigation field:
- XML Links
- Who we are
- 3rd Party
- Patch Queue
- FAQ File
- Live Sites
- Cocoon Hosting
- Bug Database
- Code Repository
- Dev Snapshot
- Mail Lists
- Mail Archives
Could you fix this please.

Michael

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




Re: Improved the feeled performance!

2002-02-05 Thread Enke Michael

Vadim Gritsenko wrote:
 
 Hi Enke,
 
  From: Enke Michael [mailto:[EMAIL PROTECTED]]
 
  Hi people,
  as we have a default Buffer of 8192 byte in the AbstractTextSerializer
  sometimes it takes very long until any result is visible in the
 browser.
 
 It is configurable in the sitemap.xmap (or cocoon.xconf in latest CVS).
 Use
  buffer-size512/buffer-size
 parameter to specify buffer size you want.

ok

 
  Therefore I introduced an OutputFlusher which flushes the
  BufferedOutputStream
  per default every 500 ms. Now the pageheader is shown immediately,
 independent
  of how long it takes to fill 8192 byte.
 
 There is one issue with solution you are proposing: It uses one thread
 per serializer in the system. It is not very efficient; better solution
 is to use just one thread to manage all buffers. Such manager is already
 implemented in the Avalon, class ActiveMonitor, and can be applied to
 the monitoring multiple output streams. See avalon.excalibur.monitor
 package. And this monitor already declared in the cocoon.xconf - so it
 is ready to use.

As I read the documentation for excalibur.monitor.StreamResource, there is written:
It can notify the change as soon as the Writer or OutputStream has been closed.

But that is the point: I want to push the bytes to the browser (or the next component
in the pipeline) even if the OutputStream is still open.
Another Question would be: How to configure. Like This:
   monitor
 thread priority=5 frequency=1/
 init-resources
   resource key=W.H.A.T. .H.E.R.E.?... 
class=org.apache.avalon.excalibur.monitor.StreamResource/
 /init-resources
   /monitor

 ...

Regards,
Michael

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




Re: Improved the feeled performance!

2002-02-05 Thread Enke Michael

Berin Loritsch wrote:
 
 Enke Michael wrote:
 
  Vadim Gritsenko wrote:
 
 Hi Enke,
 
 
 From: Enke Michael [mailto:[EMAIL PROTECTED]]
 
 Hi people,
 as we have a default Buffer of 8192 byte in the AbstractTextSerializer
 sometimes it takes very long until any result is visible in the
 
 browser.
 
 It is configurable in the sitemap.xmap (or cocoon.xconf in latest CVS).
 Use
  buffer-size512/buffer-size
 parameter to specify buffer size you want.
 
 
  ok
 
 
 Therefore I introduced an OutputFlusher which flushes the
 BufferedOutputStream
 per default every 500 ms. Now the pageheader is shown immediately,
 
 independent
 
 of how long it takes to fill 8192 byte.
 
 There is one issue with solution you are proposing: It uses one thread
 per serializer in the system. It is not very efficient; better solution
 is to use just one thread to manage all buffers. Such manager is already
 implemented in the Avalon, class ActiveMonitor, and can be applied to
 the monitoring multiple output streams. See avalon.excalibur.monitor
 package. And this monitor already declared in the cocoon.xconf - so it
 is ready to use.
 
 
  As I read the documentation for excalibur.monitor.StreamResource, there is written:
  It can notify the change as soon as the Writer or OutputStream has been closed.
 
 Here is how monitoring works:
 
 There is 1 thread (read one, 1, uno, aik, I, un) for *ALL* resources that the 
ActiveMonitor
 checks.  There does not need to be any more than that.  The PassiveMonitor does not 
even
 issue that many threads.  The difference is that the ActiveMonitor can detect if the 
resource
 has been changed by an outside system (imagine that!).
 
 The idea behind a Resource is that the read function does not change until the write 
is finished.
 Once the resource has been changed, it notifies anything that is listening to its 
notifications.
 That means that the XSLT Component can use it to mark if the source XSL stylesheets 
have been
 modified, allowing it to generate a new Templates object for the source.  That way 
we can come
 up with an efficient means of getting the latest Template without constantly looking 
for it.
 
  But that is the point: I want to push the bytes to the browser (or the next 
component
  in the pipeline) even if the OutputStream is still open.
 
 That is not what the OutputStream is for.  That particular OutputStream on the 
StreamResource is
 so you can change the contents of the resource.  Period.  It is not for serializing 
to the browser.
 That is what the Serializer does, and the Resource was never meant to take that 
responsibility away.



So the guy(s) who proposed to use the ActiveMonitor didn't understand what I wanted to 
say.
I don't care about Resources, I want to have the top of the html page early in the 
browser
even if the buffer is not filled up and some DB-querys need a long time to give their 
results.
And this is important not only for serialization to html but for all other steps in 
the pipeline too.

Does that mean that the OutputFlusher has no alternative?




 
  Another Question would be: How to configure. Like This:
 monitor
   thread priority=5 frequency=1/
   init-resources
 resource key=W.H.A.T. .H.E.R.E.?... 
class=org.apache.avalon.excalibur.monitor.StreamResource/
   /init-resources
 /monitor
 
 Initial resources have limited use.  The main reason is that they have no listeners 
attached to them.
 The key is the same value you would place to look up the resource with the Monitor.  
Whatever that is.
 The real use is when you add new resources at runtime or register listeners for a 
resource at runtime.
 Those listeners are notified at the right time.
 
 --
 
 They that give up essential liberty to obtain a little temporary safety
   deserve neither liberty nor safety.
  - Benjamin Franklin
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, email: [EMAIL PROTECTED]

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




Unicode in Strings?

2002-02-06 Thread Enke Michael

Hi,
maybe this is not the right forum, but probably interesting here too.
I used for the Euro-sign (new european currency) this construct:
String cur = #x20AC;;
This was working for JDK from IBM 1.3.0
Now I installed Suns 1.3.2 and this gives me an error.
Here I have to use:
String cur = \u20AC;
This also works for IBM's JDK.

Is this both (in principle) ok or should the first notation be avoided?

Regards,
Michael

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




Re: [C2.0.1] Precompiled XSP's and Sitemap's for WAR deployment.

2002-02-10 Thread Enke Michael

Davanum Srinivas wrote:
 
 Setting the work-directory is not really needed. Just the build.precompile flag on 
the command
 line and the flags in cocoon.xconf as we talked about earlier is enough.
 
 Thanks,
 dims
 ...

with this build flag:
Are the source files in the generated war or are they deleted before packing?

Michael

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




problems using j2sdk1.4.0 rc

2002-02-12 Thread Enke Michael

Hi people,
I installed version 1.4.0 release candidate from Sun (under Linux)
but cocoon seems to have problems with this.
I recompiled cocoon-2.1-dev.jar
By calling the first page I got the following error:

ProcessingException: Language Exception ...
Note: sun.tools.javac.Main has been deprecated...

and other (may be following) errors:
EsqlConnectionCocoon2() is an abstract class. It can not be instantiated. ...

In components/language/programming/javac/Javac.java
we ask if it is modern (com.sun...) or not (sun...)
But we have only this line (about line 117):
sun.tools.javac.Main compiler = new sun.tools.javac.Main(err, javac);
Here we don't care about modern or not.

I wrote the compile method as follows:
  public boolean compile() throws IOException {
ByteArrayOutputStream err = new ByteArrayOutputStream();
boolean result = false;
if(modern) {
  com.sun.tools.javac.Main compiler = new com.sun.tools.javac.Main();
  int iresult = compiler.compile(toStringArray(fillArguments(new ArrayList(;
  if(iresult == 0) result = true;
  else result = false;
}
else {
  sun.tools.javac.Main compiler = new sun.tools.javac.Main(err, javac);
  result = compiler.compile(toStringArray(fillArguments(new ArrayList(;
  this.errors = new ByteArrayInputStream(err.toByteArray());
}
return result;
  }

But now I get a java.lang.IncompatibleClassChangeError

The error log says that Excalibur also has problems:

FATAL_E (2002-02-12) 11:29.05:470   [core]
(Unknown-URI) Unknown-thread/LogKitLogger:
Excalibur could not create any connections.
Examine your settings to make sure they are correct.
Make sure you can connect with the same settings on your machine.

Any suggestions?

Michael

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




Sun's SDK1.4 license terms

2002-02-19 Thread Enke Michael

Hi,
as I see some people using SDK version 1.4:
Did you guys read the license terms?
Especially VERSION 1.4.X SUPPLEMENTAL LICENSE TERMS?

5.  Notice of Automatic Software Updates from Sun.
6.  Notice of Automatic Downloads.

I refuse to use SDK 1.4 with such conditions.
Has anybody more informations on that?

Regards,
Michael

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




Re: embedding fonts with cocoon

2002-02-28 Thread Enke Michael

There was a thread about one month ago which covered this (I think).
If I remember correct this was a bug in fop. You can go around by
putting the font specification in another init file,
but for details look into the archive.

Michael

Adnan Zelkanovic wrote:
 
 Hello together,
 
 I have a little problem with embedding fonts in cocoon. If I try to build
 the metric-file for my ttf with the cocoon-jars it doesn't work. The process
 can't find some dom classes. But if I try it with the fop-jars contained in
 the standalone-fop-pakage it works well. What does it mean? Does it mean,
 that embedded fonts do work with standalone-fop but doesn't work with
 cocoon-fop?
 
 Mit freundlichen Grüßen
 
 Adnan Zelkanovic
 allgäuNet.Onlinedienste GmbH
 
 Nebelhornstraße 8
 86807 Buchloe
 Tel. (08241) 96869-33
 Fax  (08241) 96869-26
 http://www.allgaeu.net
 e-mail: [EMAIL PROTECTED]
 
 ein Unternehmen der abc.Mediengruppe
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, email: [EMAIL PROTECTED]

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




getRemoteAddr from XSPRequestHelper missing

2002-03-05 Thread Enke Michael

Hi (especially Vadim),
since version 1.3 of XSPRequestHelper.java
the request.getRemoteAddr (and maybe others too)
are removed from this file. Where do they went to?

Regards,
Michael

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




Re: [showstopper] xalan hangs in incremental processing

2002-03-19 Thread Enke Michael

My be this has the same reason:
If a page results in a runtime exception
(like Sql-, ArrayIndexOutOfBounds-, NullPointer- ... exception):
If I call the buggy page x times than x requests to other (non buggy)
pages fail (no answer, timeout).
Setting incremental-processing to false solves the problem.

Michael

Sylvain Wallez wrote:
 
 Hi team,
 
 I found a showstopper in the current CVS : calling
 http://localhost:8080/cocoon/sub/generror hangs. Disabling Xalan
 incremental-processing solves the problem.
 
 A quick thread analysis with JSwat shows that
 org.apache.xalan.transformer.TransformerImpl.transformNode() is
 suspended at the beginning of a synchronized block.
 
 Can someone subscribed to xalan-dev forward this ?
 
 Sylvain
 
 --
 Sylvain Wallez
   Anyware Technologies  Apache Cocoon
   http://www.anyware-tech.com   mailto:[EMAIL PROTECTED]
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, email: [EMAIL PROTECTED]

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




Re: Planning to release 2.0.2

2002-03-25 Thread Enke Michael

Carsten Ziegeler wrote:
 ...
 The only question remaining is if we really want to binary distributions,
 one for jdk 1.2-1.3 and one for jdk 1.4? We need this because of the changes
 in jdbc.
 ...

As I understood Excalibur has to be compiled with 1.4 for 1.4.
Would it be enought to have two binary Excalibur versions?

Michael

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




cocoon2.0.2 release version and build.sh

2002-03-28 Thread Enke Michael

Hi,
for a committer:
please perform a chmod 755 on build.sh

Thanks,
Michael

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




cocoon2.0.2 and EsqlConnection.java with jdk1.4

2002-03-28 Thread Enke Michael

Hi,
this mail is for committer:
I tried to compile release version 2.0.2 with jdk1.4
But I got 24 errors complaining about not defined methods
so that EsqlConnectionCocoon2 must be declared abstract.

Why are these method definitions commented out?

I found this:
On Wed, 20 Feb 2002, Stefano Mazzocchi wrote:
 The ant task should be turning that code into comments if JDBC3 is not
 found.

Now it is commented out - by default -. This seems to be accidentally.

Regards,
Michael

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




someone from excalibur here?

2002-03-28 Thread Enke Michael

Hi,
I need to recompile excalibur with jdk1.4.
My question:
Why is Excalibur4.0 6.0MB but Excalibur4.1 only 800kB big?
build.sh is missing in 4.1, may be others too?

Regards,
Michael

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




Re: Cocoon 2.0.2 JDK1.4 Tomcat 4.0.4b1 JDBC Connection PoolingDoesn't Work (for me) - any ideas

2002-03-28 Thread Enke Michael

With the shipped excalibur we have no chance to get pooling running (under jdk1.4).
I download excalibur4.1 and compiled it:
(build.sh missing, may be other files too? Berin is checking this)
But with this, Cocoon is not started!
So I got the daily build from excalibur (avalon-framework is also required),
cocoon starts again, but pooling have the same problem.

Happy easter!

Michael

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




Re: Cocoon 2.0.2 JDK1.4 Tomcat 4.0.4b1 JDBC Connection PoolingDoesn't Work (for me) - any ideas

2002-03-28 Thread Enke Michael

Christopher Watson wrote:
 ...
 I've just extracted EsqlConnection.java again this minute from the
 2.0.2.tar.gz I downloaded then - it is attached to this message.
 
 I'm loath to download it again, at 56kbps (UK's not really grasped broadband
 yet!).
 Would it have changed since I downloaded it?
 The timestamp on my one is 11:30 (GMT) 26mar2002
 ...

The timestamp on my one is 26mar2002 08:27, 10331 byte

Michael

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




SOLVED: Pool: NoValidConnectionException on jdk1.4 - Berin, please read this

2002-03-28 Thread Enke Michael

Hi,
Tonight I found the solution:
We have a ClassCastException. To solve this for jdk1.4:
Get the daily build from excalibur,
change both JdbcConnection to Jdbc3Connection in line 106 in
scratchpad/org/apache/avalon/excalibur/datasource/ResourceLimitingJdbcConnectionPool.java
Thats it. But - THIS IS ONLY FOR JDK1.4, this doesn't wor for jdk  1.4
To make it relly nice to work for all, Berin will sourround it with
if(instance of JdbcConnection) ... else if(instance of Jdbc3Connection) or something 
like this,
won't you Berin?

Happy easter again,
Michael

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




Re: SOLVED: Pool: NoValidConnectionException on jdk1.4 - Berin, please read this

2002-04-02 Thread Enke Michael

Christopher Watson wrote:
 ...
 and I can see the port connections getting dropped
 
 Hit refresh and it works again.
 Hit refresh and it fails again as above.
 
 Eventually, I get nothing back at all
 
 :-{
 
 Is this just me?
 If not, is it something that could be fixed soon, or would you advise me to
 go back to jdk1.3 for the while ??
 ...

As of Thursday after midnight I was happy to see that it works one time.
I didn't try it a second time. Found the same behavior as you today.
Will investigate further and hope to get the solution today.
But I have read a posting (bugzilla) concerning about errors in the usage of
use-limit-clause. I don't know if this is related to jdk1.4 or
to the DB-driver or the esql.xsl. I will report in the evening.

Regards,
Michael

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




Re: SOLVED: Pool: NoValidConnectionException on jdk1.4 - Berin, please read this

2002-04-02 Thread Enke Michael

Hello again,
one snippet more:
in the same file (ResourceLimitingJdbcConnectionPool.java also in line 156
you must insert the 3 - Jdbc3Connection conn = (Jdbc3Connection)poolable;
Now you will get your page every time you reload.

Berin: What did you mean with I will change it in both classes?
   

Regards,
Michael

Christopher Watson wrote:
 
  -Original Message-
  From: Enke Michael [mailto:[EMAIL PROTECTED]]
  Sent: 29 March 2002 08:21
  To: [EMAIL PROTECTED]
  Subject: SOLVED: Pool: NoValidConnectionException on jdk1.4 - Berin,
  please read this
 
 
  Hi,
  Tonight I found the solution:
  We have a ClassCastException. To solve this for jdk1.4:
  Get the daily build from excalibur,
  change both JdbcConnection to Jdbc3Connection in line 106 in
  scratchpad/org/apache/avalon/excalibur/datasource/ResourceLimi
  tingJdbcConnectionPool.java
  Thats it. But - THIS IS ONLY FOR JDK1.4, this doesn't wor for
  jdk  1.4
 
 I tried this. I had a bit of fun getting the daily build to build - I'm
 assuming you do this from build in the all directory?
 I had to drop log4j out of logger, move cli and instrument to under all, use
 the latest development jars for logkit and framework etc, blah blah
 Eventually got it to compile, put all the jars into cocoon, rebuilt that ...
 
 Start tomcat, which complains about not being able to start cocoon logger
 
 Now it works EVERY ALTERNATE TIME ?? I run the xsp/esql example
 
 First time it works.
 Hit refresh and it fails with
 
 Original exception : java.lang.RuntimeException: Could not get the
 datasource
 org.apache.avalon.excalibur.datasource.NoAvailableConnectionException:
 org.apache.avalon.excalibur.datasource.Jdbc3Connection
 at
 org.apache.cocoon.www.docs.samples.xsp.agsql_xsp.generate(X:\jakarta-tomcat-
 4.0.4b1\work\localhost\cocoon\cocoon-files\org/apache/cocoon/www/docs/sample
 s/xsp\agsql_xsp.java:341)
 at
 org.apache.cocoon.generation.ServerPagesGenerator.generate(ServerPagesGenera
 tor.java:260)
 at
 org.apache.cocoon.components.pipeline.CachingEventPipeline.process(CachingEv
 entPipeline.java:251)
 at
 org.apache.cocoon.components.pipeline.CachingStreamPipeline.process(CachingS
 treamPipeline.java:399)
 at
 org.apache.cocoon.www.sitemap_xmap.matchN4007D4(X:\jakarta-tomcat-4.0.4b1\wo
 rk\localhost\cocoon\cocoon-files\org/apache/cocoon/www\sitemap_xmap.java:985
 7)
 at
 org.apache.cocoon.www.sitemap_xmap.process(X:\jakarta-tomcat-4.0.4b1\work\lo
 calhost\cocoon\cocoon-files\org/apache/cocoon/www\sitemap_xmap.java:3675)
 at
 org.apache.cocoon.www.sitemap_xmap.process(X:\jakarta-tomcat-4.0.4b1\work\lo
 calhost\cocoon\cocoon-files\org/apache/cocoon/www\sitemap_xmap.java:3085)
 at org.apache.cocoon.sitemap.Handler.process(Handler.java:222)
 at org.apache.cocoon.sitemap.Manager.invoke(Manager.java:179)
 at org.apache.cocoon.sitemap.SitemapManager.process(SitemapManager.java:154)
 at org.apache.cocoon.Cocoon.process(Cocoon.java:575)
 at org.apache.cocoon.servlet.CocoonServlet.service(CocoonServlet.java:998)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
 
 and I can see the port connections getting dropped
 
 Hit refresh and it works again.
 Hit refresh and it fails again as above.
 
 Eventually, I get nothing back at all
 
 :-{
 
 Is this just me?
 If not, is it something that could be fixed soon, or would you advise me to
 go back to jdk1.3 for the while ??
 
  To make it relly nice to work for all, Berin will sourround it with
  if(instance of JdbcConnection) ... else if(instance of
  Jdbc3Connection) or something like this,
  won't you Berin?
 
  Happy easter again,
  Michael
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, email: [EMAIL PROTECTED]
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, email: [EMAIL PROTECTED]

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




update cocoon-2.0.2.tar.gz / .zip?

2002-04-02 Thread Enke Michael

Hi,
shouldn't we make new cocoon-2.0.2 download files with corrections
if they solve showblockers?
In particular I mean
- AbstractValidatorAction?
- new excalibur to handle jdk1.4 jdbc?

Michael

Nicola Ken Barozzi wrote:
 
 From: Enke Michael [EMAIL PROTECTED]
 
  Hello guys,
  if I use the SessionValidatorAction or FormValidatorAction
  I get a NullPointerException in getDefault,
  line 576 in AbstractValidatorAction.java
  because the Configuration cons is null.
  This can be reproduced by the samples in cocoon-2.0.2,
  /cocoon/protected/login - insert name and press button.
  Anybody who has an idea?
 
 AFAIK this bug has been fixed recently in CVS.
 
 --
 Nicola Ken Barozzi   [EMAIL PROTECTED]
 - verba volant, scripta manent -
(discussions get forgotten, just code remains)
 -
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, email: [EMAIL PROTECTED]

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




Re: update cocoon-2.0.2.tar.gz / .zip?

2002-04-03 Thread Enke Michael

Carsten Ziegeler wrote:
 
 Vadim Gritsenko wrote:
 
   From: Enke Michael [mailto:[EMAIL PROTECTED]]
  
   Hi,
   shouldn't we make new cocoon-2.0.2 download files with corrections
   if they solve showblockers?
   In particular I mean
   - AbstractValidatorAction?
   - new excalibur to handle jdk1.4 jdbc?
 
  I would love to see 2.0.3 as soon as JDK1.4/SQL issue is resolved in the
  CVS. Another thing to be included is JSP samples fix.
 
  Carsten, what do you think?
 
 Yes, a 2.0.3 seems a good idea.
 
 So, when is the JDK1.4/SQL issue fixed? I don't see real problems right now
 ...

JDK1.4/SQL issue will be fixed with new excalibur release (independent of jdk version).
Alternatively I can send you the fixed excalibur, but this is working only for JDK1.4.
This is no real good alternative but who knows how long it takes to release new 
excalibur?

Michael

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




esql.xsl and postgres datatypes

2002-04-03 Thread Enke Michael

Hi,
in postgres you have datatypes which are not in the sql standard
and you can define your own datatypes.
Two datatypes from postgres that I use often are bit() and bit varying().
If I call esql:get-columns/ than the page crahses because the column type
for bit and bit varying is java.sql.Types.OTHER
Look at this snippet from esql:xsl:
...
switch(_esql_query.getResultSet().getMetaData().getColumnType(_esql_i)){
   case java.sql.Types.ARRAY:
   case java.sql.Types.STRUCT:
...
  break;
 
   case java.sql.Types.OTHER: // This is what Informix uses for Sets, Bags, Lists
  this._esql_printObject(_esql_query.getResultSet().getObject(_esql_i), xspAttr);
  break;
 
   default:
  // standard type
  xsp:content
  xsp:expr
xsl:call-template name=get-string-encoded
...

We get the Exception because in the postgres driver there is no getObject for bit or 
bit varying,
but get-string-encoded for such columns is ok (you can of course define your own 
extension classes).
I would propose to switch between different database systems in case 
java.sql.Types.OTHER

Can anybody using Informix tell me what is the result of 
connection.getMetaData().getURL();?
Should we make String jdbcSource; public in EsqlConnection?

Regards,
Michael

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




i18n: empty translation in XMLResourceBundle?

2002-04-03 Thread Enke Michael

Hello,
I saw in I18nTransformer.java a comment:
liIntroduce empty translation (XMLResourceBundle)
How does it work? Or is it only planned?

Thanks,
Michael

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




Re: i18n: empty translation in XMLResourceBundle?

2002-04-03 Thread Enke Michael

Konstantin Piroumian wrote:
 
  -Original Message-
  From: Enke Michael [mailto:[EMAIL PROTECTED]]
  Sent: Wednesday, April 03, 2002 5:02 PM
  To: [EMAIL PROTECTED]
  Subject: i18n: empty translation in XMLResourceBundle?
 
 
  Hello,
  I saw in I18nTransformer.java a comment:
  liIntroduce empty translation (XMLResourceBundle)
  How does it work? Or is it only planned?
 
 Look a little upper: it's in the 'Future work' section. Have no time right
 now to implement it and I've never understood the real use of it. Why don't
 you use 'default' translation possibility?
 
 Regards,
 Konstantin Piroumian

Hi Konstantin,
the reason for empty translation:
I get the relation, if lower, greater or equal from a database.
Also the DB-column I get from a table in the DB. So I translate:
For relation =From Department
For relation =To Department
And for relation = I want to translate Department (without From, To or anything 
else).

The solution would be very very simple:
Remove the trim() in XMLResourceBundle. This is my proposal.
Than I can write: message key== /message and this will no longer
result in an untranslated-text.
Anyhow, message key==/message will result in an untranslated-text

Regards,
Michael

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




I18nTransformer.java patch

2002-04-03 Thread Enke Michael

Hi Konstantin,
I finalized the change of sub-type to type for i18n:number
and introduced the code again for yet missing types
(int-currency, currency-no-unit, int-currency-nu-unit)
As new attribute I added fraction-digits=...
for i18n:number so we can now print out
gasoline prices etc.

Regards,
Michael



--- I18nTransformer.java.orig   Wed Apr  3 13:39:27 2002
+++ I18nTransformer.javaWed Apr  3 15:05:34 2002
@@ -270,12 +270,9 @@
  * The param can have i18n:text as its value to provide multilungual value.
  * Parameters can have additional attributes to be used for formatting:
  * ul
- *  licodetype/code - can be codedate, date-time, time or
- *  number/code. Used to format params before substitution.
- *  /li
- *  licodesub-type/code - can be codecurrency, percent/code
- *  and used with codenumber/code type to format a given number
- *  value as a currency or percent.
+ *  licodetype/code - can be codedate, date-time, time,
+ *  number, currency, currency-no-unit or percent/code.
+ *  Used to format params before substitution.
  *  /li
  *  licodevalue/code - the value of the param. If no value is
  *  specified then the text inside of the param element will be used.
@@ -385,7 +382,7 @@
 
 /**
  * i18n:number is used to provide a localized number string. Allowed
- * attributes are: codepattern, src-pattern, locale, src-locale, sub-type
+ * attributes are: codepattern, src-pattern, locale, src-locale, type
  * /code
  * Usage examples:
  * pre
@@ -393,7 +390,7 @@
  *  1000.0
  *  lt;/i18n:numbergt;
  *
- * lt;i18n:number sub-type=currency /gt;
+ * lt;i18n:number type=currency /gt;
  * /pre
  *
  * If no value is specifies then 0 will be used.
@@ -405,21 +402,21 @@
  */
 public static final String I18N_NUMBER_ELEMENT  = number;
 
-/** @todo Implement currency element */
+/** currency element */
 public static final String I18N_CURRENCY_ELEMENT= currency;
 
-/** @todo Implement percent element */
+/** percent element */
 public static final String I18N_PERCENT_ELEMENT = percent;
 
-/** @todo Implemement integer currency element */
+/** integer currency element */
 public static final String I18N_INT_CURRENCY_ELEMENT
 = int-currency;
 
-/** @todo Implement currency without unit element */
+/** currency without unit element */
 public static final String I18N_CURRENCY_NO_UNIT_ELEMENT =
 currency-no-unit;
 
-/** @todo Implement integer currency without unit element */
+/** integer currency without unit element */
 public static final String I18N_INT_CURRENCY_NO_UNIT_ELEMENT =
 int-currency-no-unit;
 
@@ -516,14 +513,7 @@
  */
 public static final String I18N_TYPE_ATTRIBUTE  = type;
 
-/**
- * This attribute is used with codei18:number/code to
- * indicate a sub-type: codecurrency/code, codeint-currency/code
- * or codepercent/code.
- */
-public static final String I18N_SUB_TYPE_ATTRIBUTE  = sub-type;
-
-// Ñonfiguration parameters
+// Configuration parameters
 
 /**
  * This configuration parameter specifies the message catalog name.
@@ -563,6 +553,13 @@
 // FIXME (KP): Why should it be a file? It can be any resource!
 private static final String FILE= file:;
 
+/**
+ * codefraction-digits/code attribute is used with
+ * codei18:number/code to
+ * indicate the number of digits behind the fraction
+ */
+public static final String I18N_FRACTION_DIGITS_ATTRIBUTE = fraction-digits;
+
 // States of the transformer
 private static final int STATE_OUTSIDE  = 0;
 private static final int STATE_INSIDE_TEXT  = 1;
@@ -1031,9 +1028,9 @@
 formattingParams.put(I18N_TYPE_ATTRIBUTE, attr_value);
 }
 
-attr_value = attr.getValue(I18N_SUB_TYPE_ATTRIBUTE);
-if (attr_value != null) {
-formattingParams.put(I18N_SUB_TYPE_ATTRIBUTE, attr_value);
+attr_value = attr.getValue( I18N_FRACTION_DIGITS_ATTRIBUTE );
+if ( attr_value != null ) {
+formattingParams.put( I18N_FRACTION_DIGITS_ATTRIBUTE, attr_value );
 }
 
 }
@@ -1405,9 +1402,15 @@
 String pattern = (String)params.get(I18N_PATTERN_ATTRIBUTE);
 // the number value
 String value = (String)params.get(I18N_VALUE_ATTRIBUTE);
-// sub-type
-String subType = (String)params.get(I18N_SUB_TYPE_ATTRIBUTE);
-
+// type
+String type = (String)params.get(I18N_TYPE_ATTRIBUTE);
+// fraction-digits
+int fractionDigits = -1;
+try {
+ fractionDigits = Integer.parseInt((String) params.get
+   ( I18N_FRACTION_DIGITS_ATTRIBUTE ));
+}
+catch(NumberFormatException 

Re: i18n: empty translation in XMLResourceBundle?

2002-04-03 Thread Enke Michael

Konstantin Piroumian wrote:
 
  From: Enke Michael [mailto:[EMAIL PROTECTED]]
  Konstantin Piroumian wrote:
  
-Original Message-
From: Enke Michael [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, April 03, 2002 5:02 PM
To: [EMAIL PROTECTED]
Subject: i18n: empty translation in XMLResourceBundle?
   
   
Hello,
I saw in I18nTransformer.java a comment:
liIntroduce empty translation (XMLResourceBundle)
How does it work? Or is it only planned?
  
   Look a little upper: it's in the 'Future work' section.
  Have no time right
   now to implement it and I've never understood the real use
  of it. Why don't
   you use 'default' translation possibility?
  
   Regards,
   Konstantin Piroumian
 
  Hi Konstantin,
  the reason for empty translation:
  I get the relation, if lower, greater or equal from a database.
  Also the DB-column I get from a table in the DB. So I translate:
  For relation =From Department
  For relation =To Department
  And for relation = I want to translate Department (without
  From, To or anything else).
 
  The solution would be very very simple:
  Remove the trim() in XMLResourceBundle. This is my proposal.
  Than I can write: message key== /message and this will no longer
  result in an untranslated-text.
  Anyhow, message key==/message will result in an
  untranslated-text
 
 Did you try: i18n:text key==Default text/i18n:text? I don't remember
 how exactly does it act, but if it does not find translation for = then it
 will either show 'Default text' or try to find translation for it.

I don't want to have 'Default text' nor any other text.

 Btw, did you try nbsp; in dictionary?

Yes, this works, but the alignment doesn't look good, e.g. this:
From Department
To Department
 Department
 For additional commands, email: [EMAIL PROTECTED]

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




I18n: What docs are autogenerated?

2002-04-25 Thread Enke, Michael

Hi,
I have to document some changes for I18nTransformer.
I found 3 locations where this must be taken into account:

src/documentation/xdocs/userdocs/transformers/i18n-transformer.xml
docs/userdocs/transformers/i18n-transformer.html
docs/apidocs/org/apache/cocoon/transformation/I18nTransformer.html

Are the last two generated from the first one?

Regards,
Michael

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




Re: I18n: What docs are autogenerated?

2002-04-25 Thread Enke, Michael

Gerhard Froehlich wrote:
 
 Hi,
 
 ME src/documentation/xdocs/userdocs/transformers/i18n-transformer.xml
 
 This should be enough. The rest is auto generated

Ok, thanks.

 BTW: We habe some Problems with the latest patched, did you
 noticed the posting in bugzilla?

I'm near the mark ;-)

Michael

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




xsp content in a method possible?

2002-04-26 Thread Enke, Michael

Hi,
I have following problem:
Usually we have xsp like this:

xsp:page
page
...
esql:execute-query
...
/esql:execute-query
...
/page
/xsp:page

Because I have to repeat often the execute-query (with different arg) my idea was to 
write:

xsp:page
xsp:logic
void myMethod(MyObject myArg) {
esql:execute-query
...
/esql:execute-query
}
/xsp:logic
page
...
xsp:logic
myMethod(myArg);
/xsp:logic
...
/page
/xsp:page

Because I get compilation errors I gave a second argument to myMethod:
myMethod(MyObject myArg, AttributesImpl xspAttr) and call myMethod(myArg, xspAttr);

Now compilation is ok, but the tags inside the method are wrong expanded.
I expected to see:
if (_esql_query != null) {
  _esql_queries.push(_esql_query);
}
_esql_query = new EsqlQuery( _esql_connection, String.valueOf(xsl:copy-of 
select=$query/) );
...
but instead in the generated code I find:
this.contentHandler.startElement(
  http://apache.org/cocoon/SQL/v2;,
  execute-query,
  esql:execute-query,
  xspAttr
);
xspAttr.clear();
...

Is there a way to proceed as I expected?

Regards,
Michael

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




Re: [???] Where is the 'svg2png' serializer?

2002-04-30 Thread Enke, Michael

This seems related:
In the sitemap is a definition for fo2pcl but if I want to use it,
cocoon complains about not defined serializer.


Konstantin Piroumian wrote:
 
 Hi!
 
 Anybody knows where is the 'svg2png' serializer declaration?
 
 It's used somewhere arround the line 700 in the root sitemap, but there is
 no declaraion. I wouldn't notice that, because sitemap didn't say a word
 about it and worked fine until it was reloaded after a modification (changed
 nothing related to svg or png or serializers).
 
 Any idea?
 
 --
 Konstantin
 _
 Konstantin Piroumian
 Lead Developer
 ICQ#: 2297575
 * Work Tel#:  +7 095 795 0520 * 1288
 _
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, email: [EMAIL PROTECTED]

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




Re: ESQL Error in Cocoon 2.0.3-branch

2002-05-02 Thread Enke, Michael

This will work as a first help. But
for column aliases with spaces or capital/non-capital letters
it is not possible to change  to '
Another possibility is to escape every  to \
But for a clean solution please create a new bug report via bugzilla.

Michael

Morrison, John wrote:
 
 Best thing to do is check the java that's generated.  At a guess
 it puts  around the query string.  Try changing your s to '.
 
 J.
 
  -Original Message-
  From: Dude [mailto:[EMAIL PROTECTED]]
  Sent: Wednesday, 1 May 2002 8:33 pm
  To: [EMAIL PROTECTED]
  Subject: ESQL Error in Cocoon 2.0.3-branch
 
 
  Hello!
 
  I moved from cocoon 2.0b1 to 2.0.3 and my esql-xsp scripts
  dont work any more. querys like this
 
  esql:query
 SELECT
  DBADMIN.KATEGORIE.KID,DBADMIN.KATEGORIE.NAME FROM
  DBADMIN.KATEGORIE
  /esql:query
 
  worked fine with 2.0b1
 
  but 2.0.3 says
 
  ---
 
  Language Exception
 
  More precisely:
 
  org.apache.cocoon.ProcessingException: Language Exception:
  org.apache.cocoon.components.language.LanguageException:
  Error compiling swKategorie_xsp:
  Line 380, column 33: ')' expected
  Line 0, column 0:
  1 error
 
  ---
 
  i guess the fault is the  in the SELECT statement, because
  java dont like
 
  String sql=SELECT DBADMIN ... ;
 
  i can only say, that this stuff works fine with 2.0b1 (until 2.0.1?)
 
  Greets, Steve
 
 
 
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, email: [EMAIL PROTECTED]
 
 
 ===
 Information in this email and any attachments are confidential, and may
 not be copied or used by anyone other than the addressee, nor disclosed
 to any third party without our permission.  There is no intention to
 create any legally binding contract or other commitment through the use
 of this email.
 
 Experian Limited (registration number 653331).
 Registered office: Talbot House, Talbot Street, Nottingham NG1 5HF
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, email: [EMAIL PROTECTED]

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




Re: ESQL Error in Cocoon 2.0.3-branch

2002-05-02 Thread Enke, Michael

The syntax [a table] I don't know and it doesn't work with postgres.
As I know, spaces are not permitted in table-, column- etc names.
The only one exception are column aliases: select column.table as My column from 
table.

Morrison, John wrote:
 
 Just out of curiosity, if a column alias (or any other field for that
 matter) has a space in it, shouldn't it be referenced:
 
 [a table].[some field]
 
 ?
 
 J.
 
  -Original Message-
  From: Enke, Michael [mailto:[EMAIL PROTECTED]]
  Sent: Thursday, 2 May 2002 9:53 am
  To: [EMAIL PROTECTED]
  Subject: Re: ESQL Error in Cocoon 2.0.3-branch
 
 
  This will work as a first help. But
  for column aliases with spaces or capital/non-capital letters
  it is not possible to change  to '
  Another possibility is to escape every  to \
  But for a clean solution please create a new bug report via bugzilla.
 
  Michael
 
  Morrison, John wrote:
  
   Best thing to do is check the java that's generated.  At a guess
   it puts  around the query string.  Try changing your s to '.
  
   J.
  
-Original Message-
From: Dude [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, 1 May 2002 8:33 pm
To: [EMAIL PROTECTED]
Subject: ESQL Error in Cocoon 2.0.3-branch
   
   
Hello!
   
I moved from cocoon 2.0b1 to 2.0.3 and my esql-xsp scripts
dont work any more. querys like this
   
esql:query
   SELECT
DBADMIN.KATEGORIE.KID,DBADMIN.KATEGORIE.NAME FROM
DBADMIN.KATEGORIE
/esql:query
   
worked fine with 2.0b1
   
but 2.0.3 says
   
---
   
Language Exception
   
More precisely:
   
org.apache.cocoon.ProcessingException: Language Exception:
org.apache.cocoon.components.language.LanguageException:
Error compiling swKategorie_xsp:
Line 380, column 33: ')' expected
Line 0, column 0:
1 error
   
---
   
i guess the fault is the  in the SELECT statement, because
java dont like
   
String sql=SELECT DBADMIN ... ;
   
i can only say, that this stuff works fine with 2.0b1
  (until 2.0.1?)
   
Greets, Steve
   
   
   
   
   
  -
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]
   
  
  
  ==
  =
   Information in this email and any attachments are
  confidential, and may
   not be copied or used by anyone other than the addressee,
  nor disclosed
   to any third party without our permission.  There is no intention to
   create any legally binding contract or other commitment
  through the use
   of this email.
  
   Experian Limited (registration number 653331).
   Registered office: Talbot House, Talbot Street, Nottingham NG1 5HF
  
  
  -
   To unsubscribe, e-mail: [EMAIL PROTECTED]
   For additional commands, email: [EMAIL PROTECTED]
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, email: [EMAIL PROTECTED]
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, email: [EMAIL PROTECTED]

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




Need help: attruibutes at runtime

2002-05-06 Thread Enke, Michael

Hi,
is it possible to make an attributes value variable?
esql:group group-on=...
^^

I tried with
esql:group
xsp:attribute name=group-onxsp:logic.../xsp:logic/xsp:attribute
but this seems not to work.

Thanks in advance,
Michael

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




Where is esql.xsl in scratchpad?

2002-05-06 Thread Enke, Michael

Hi,
I cann't find esql.xsl below scratchpad.
What is the path to it?

Michael

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




Some broken links in http://localhost:8080/cocoon/samples/welcome

2002-06-13 Thread Enke, Michael

Hi Cocooners,
after my vacation I'm back and downloaded the latest dev-snapshot ;-)
I guess this are only typos and can be fixed quickly by the person
who changed the locations:

-All links in More Samples (except Portal and Authentication) are broken.
-Scratchpad sample doesn't work
-Slides link (Documentation) is broken
-Documentation (Form Handling) is broken
-Control Flow: If I follow the links, the page looks buggy: The menu is overwritten
 by a white empty box
-Request Page (System Tools and Pages) gives back a xml document (and not html)
-Status Page (System Tools and Pages) has no values, only the headings

Regards,
Michael

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




Re: [Important]: JDK issues

2002-06-26 Thread Enke, Michael

Andrew C. Oliver wrote:
 
 
 
 
  Will compilation with JDK1.4 against JDK1.3's rt.jar but with JDBC 3.0
  in front of it help?
 
 
 
  Yes, this is much more complicated than it should be. The best solution
  would be to make only source distributions and skip the binary ones :(
  Or to make two binary distributions, one for JDK 1.3 and one for JDK
  1.4...
 
 
  I would say, let's make two binary dists and get over with this.
  It seems that there are many more issues than we are aware of.
 
 +1 - 1.4 is the JDK of pain.

1.4 is not a pain, 1.3 was a pain, at least when you have to
handle it for different Linux distributions. v1.3 from sun was not running on SuSE,
that one from IBM was not running on RedHat. v1.4 runs on both, thats why I switched
to JDK1.4 with cocoon2.0.2
I would vote for supporting JDK1.4 only.

Michael

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




Re: Samples from HEAD broken?

2002-06-27 Thread Enke, Michael

Stephan Michels wrote:
 
 Hi,
 I noticed that the samples doesn't work anymore? I think the reason
 are the changes for the bug://10277 (mime-type).
 

Long time ago I noticed the same and Diana Shannon wrote that
there is a patch but nobody has time to apply it :-(

Seems that we need more committers.

Michael

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




Re: Samples from HEAD broken?

2002-06-28 Thread Enke, Michael

Stephan Michels wrote:
 
 On Thu, 27 Jun 2002, Enke, Michael wrote:
 
  Stephan Michels wrote:
  
   Hi,
   I noticed that the samples doesn't work anymore? I think the reason
   are the changes for the bug://10277 (mime-type).
  
 
  Long time ago I noticed the same and Diana Shannon wrote that
  there is a patch but nobody has time to apply it :-(
 
  Seems that we need more committers.
 
 Which patch do you mean? The patch from bug 10277?

I don't know the patch number, I noticed only the response from Diana.
This is the response from Diana:

 On Thursday, June 13, 2002, at 10:03  AM, Enke, Michael wrote:
 
 -All links in More Samples (except Portal and Authentication) are 
 broken.
 -Scratchpad sample doesn't work
 -Slides link (Documentation) is broken
 -Documentation (Form Handling) is broken
 -Control Flow: If I follow the links, the page looks buggy: The menu is 
  overwritten by a white empty box
 -Request Page (System Tools and Pages) gives back a xml document (and not html)
 -Status Page (System Tools and Pages) has no values, only the headings

 A *number* of these problems are fixed by recent patches submitted via 
 Bugzilla by Andrew Savory. I'm sorry I haven't had time yet to apply 
 them as I'm buried with non-Sample documentation work in progress. 
 Anyone else available to apply Andrew's timely contributions? Ivelin, 
 there are fixes for FormHandling sample which you may want to review.

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




Re: Samples from HEAD broken?

2002-06-28 Thread Enke, Michael

Diana Shannon wrote:
 
 On Thursday, June 27, 2002, at 01:00  PM, Enke, Michael wrote:
 
  Stephan Michels wrote:
 
  Hi,
  I noticed that the samples doesn't work anymore? I think the reason
  are the changes for the bug://10277 (mime-type).
 
 
  Long time ago I noticed the same and Diana Shannon wrote that
  there is a patch but nobody has time to apply it :-(
 
 I don't think I made this statement.

Sorry, I forgot the quotes, I should have written:
Long time ago I noticed the same.
Diana Shannon wrote that there is a patch (end of citation).
But nobody has time to apply it :-(

Michael

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




Re: Delaying the release?

2002-07-02 Thread Enke, Michael

Of course!
My intend was to wait until the links to the samples are working.
If this is the case I make a clean download and
will have a look for the SQL examples with JDK1.4

Michael

Carsten Ziegeler wrote:
 
 Hello?
 
 Anyone still interested in a 2.0.3 release?
 
 Carsten
 
 Does anyone know the second track on the Genesis-Abacab album?
 
  -Original Message-
  From: Carsten Ziegeler [mailto:[EMAIL PROTECTED]]
  Sent: Thursday, June 27, 2002 8:38 AM
  To: Cocoon-Dev
  Subject: Delaying the release?
 
 
  Hi Team,
 
  it seems that we have to delay the release of 2.0.3 due to the
  great work of Sun with the JDK 1.4.
 
  Now, it seems we have currently two problems:
  - The SQL examples do not work with JDK 1.4, even if Cocoon
and Excalibur are build with 1.4.
  - We need two distributions, one for 1.2 and one for 1.4
(including different versions of excalibur).
 
  As some of you are already looking at the second issue, is
  there anyone who can have a look at the first one?
 
  Carsten
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, email: [EMAIL PROTECTED]
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, email: [EMAIL PROTECTED]

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




compiling/running dev-snapshot [was: Re: Delaying the release?]

2002-07-03 Thread Enke, Michael

What is the difference between HEAD and 2.0.3 branch?
I'm also such a poor guy who is limited to port 80,
so I use the dev-snapshot. What is the dev-snapshot? 2.0.3 or HEAD?

I downloaded xml-cocoon2_20020702162200.tar.gz
What is the javac version excalibur is compiled?

From compiling I get a lot of warnings about javadoc:
Constructing Javadoc information...
Standard Doclet version 1.4.0
...
warning - Tag @see cannot be used in inline documentation.
warning - @created is an unknown tag.
...
Generating /home/me/xml-cocoon2/build/cocoon/javadocs/help-doc.html...
36 warnings

If I start tomcat (4.0.3 on Linux SuSE 7.2) I get a Resource not found:
sitemap.log:
DEBUG   (2002-07-03) 09:21.55:506   [sitemap] (/cocoon/) 
HttpProcessor[8080][1]/TreeProcessor: TreeProcessor built in 4.515 secs from 
jndi:/localhost/cocoon/sitemap.xmap
INFO(2002-07-03) 09:21.55:540   [sitemap] (/cocoon/) 
HttpProcessor[8080][1]/PipelineNode: No pipeline matched request:
WARN(2002-07-03) 09:21.55:542   [sitemap] (/cocoon/) 
HttpProcessor[8080][1]/PipelineNode: Resource not found in pipeline at 
jndi:/localhost/cocoon/sitemap.xmap:454:17
org.apache.cocoon.ResourceNotFoundException: No pipeline matched request:
at 
org.apache.cocoon.components.treeprocessor.sitemap.PipelineNode.invoke(PipelineNode.java:162)

What is 454:17 in sitemap.xmap?
line 454 is inside a comment, line 17 cann't it be too.


Michael


Carsten Ziegeler wrote:
 
  -Original Message-
  From: Enke, Michael [mailto:[EMAIL PROTECTED]]
  Sent: Tuesday, July 02, 2002 2:56 PM
  To: [EMAIL PROTECTED]
  Subject: Re: Delaying the release?
 
 
  Of course!
 Great
  My intend was to wait until the links to the samples are working.
  If this is the case I make a clean download and
  will have a look for the SQL examples with JDK1.4
 
 What do you exactly mean?
 The link to the samples is working, especially to the SQL example.
 At least the links are working for the 2.0.3 branch.
 
 I'm really glad that someone is interested!
 
 Carsten
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, email: [EMAIL PROTECTED]

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




Re: compiling/running dev-snapshot [was: Re: Delaying the release?]

2002-07-03 Thread Enke, Michael

Hi Carsten,

Carsten Ziegeler wrote:
 
 Michael Enke wrote:
 
  What is the difference between HEAD and 2.0.3 branch?
 The HEAD branch is the development branch for 2.1. Everything there
 is considered alpha as we are testing out some new concepts and
 features.
 
  I'm also such a poor guy who is limited to port 80,
  so I use the dev-snapshot. What is the dev-snapshot? 2.0.3 or HEAD?
 I assume it's HEAD, you can verify this by looking into the build.xml
 file which contains the version number.

ok, it is 2.1
In that case it is probably not a good idea to test for upcoming 2.0.3
with dev-snapshot. Whats about an auto generated dev-snapshot for the
stable 2.0.latest+1 branch?

  I downloaded xml-cocoon2_20020702162200.tar.gz
  What is the javac version excalibur is compiled?
 
 The last time I did it, it was JDK 1.4 with 1.2 compatibility mode.

Anybody know how to check this?

  From compiling I get a lot of warnings about javadoc:
  Constructing Javadoc information...
  Standard Doclet version 1.4.0
  ...
  warning - Tag @see cannot be used in inline documentation.
  warning - @created is an unknown tag.
  ...
  Generating /home/me/xml-cocoon2/build/cocoon/javadocs/help-doc.html...
  36 warnings
 
 Ignore them...some of us have invented new tags

Ok, I can ignore them. But is it in 2.0.3 branch too?
If yes and we want to make a new release this should be corrected.

  If I start tomcat (4.0.3 on Linux SuSE 7.2) I get a Resource not found:
 This should be due to the movement of the samples. Try to
 invoke http://localhost/cocoon/samples/welcome;.

Unfortunately this gives also an exception:
type fatal

message Type 'xmldbcollection' is not defined for 'generate' at 
file:/var/lib/pgsql/jakarta-tomcat-4.0.3-LE-jdk14/webapps/cocoon/samples/sitemap.xmap:329:56

description org.apache.avalon.framework.configuration.ConfigurationException: Type 
'xmldbcollection' is not defined for 'generate' at
file:/var/lib/pgsql/jakarta-tomcat-4.0.3-LE-jdk14/webapps/cocoon/samples/sitemap.xmap:329:56

I'm willingly to check the esql samples but I'm afraid of not being able to do this
because I have no access to 2.0.3 version.

Michael

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




FOUND! Re: compiling/running dev-snapshot [was: Re: Delaying the release?]

2002-07-04 Thread Enke, Michael

Carsten Ziegeler wrote:
 
 Michael Enke wrote:
 
 
  ok, it is 2.1
  In that case it is probably not a good idea to test for upcoming 2.0.3
  with dev-snapshot. Whats about an auto generated dev-snapshot for the
  stable 2.0.latest+1 branch?
 
 I don't know anything about the dev-snapshots. But you're right this
 is a good idea.
 Does anyone know who to ask for this (Pier or Sam?) ?
 As far as the database problem and JDK 1.4 is concerned, both versions
 should be identical (I hope), so you could test it with the dev-snapshot
 as well.
 
 
  Ok, I can ignore them. But is it in 2.0.3 branch too?
  If yes and we want to make a new release this should be corrected.
 Yes, absolutely!
 
 
If I start tomcat (4.0.3 on Linux SuSE 7.2) I get a Resource
  not found:
   This should be due to the movement of the samples. Try to
   invoke http://localhost/cocoon/samples/welcome;.
 
  Unfortunately this gives also an exception:
  type fatal
 
 Yes, I'm aware of this. There are some bugs in the current build.xml
 but as CVS is currently not working, I can't fix them.
 I have attached a working version of the build script, so if you use
 this and make a new build from a clean version, you should at least
 see the examples. I can't guarantee that the esql examples are working
 100% correctly, but the SQL transformer example
 (http://localhost/cocoon/samples/sql/sql-page) shows the problem.

esql.xsp also doesn't work. Reason:
The JdbcConnectionFactory is instantiated
!BEFORE!
hsqldb is started.
Please change this.

Michael

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




Re: FOUND! Re: compiling/running dev-snapshot [was: Re: Delaying the release?]

2002-07-04 Thread Enke, Michael

Carsten Ziegeler wrote:
 
 Michael Enke wrote:
 
 
  esql.xsp also doesn't work. Reason:
  The JdbcConnectionFactory is instantiated
  !BEFORE!
  hsqldb is started.
  Please change this.
 
 Hi Michael,
 
 how did you find this out and do you have a suggestion how to
 achieve this? Because simply putting the hsqldb in the
 cocoon.xconf doesn't work.

I thought that this is a configuration issue. Is it not?
I downloaded excalibur and put in some System.out.println().
In JdbcConnectionFactory there is the call
m_firstConnection = DriverManager.getConnection( m_dburl, m_username, m_password );
and this failed. That's why clazz is null - m_class is null -
throw new NoValidConnectionException( No valid JdbcConnection class available );

I put in some System.out.println() in the constructor and realized the
hsqldb output from start is always after my println even if I put in 30 or 60 seconds 
delay.

 And why is this only with JDK 1.4?
I have no JDK 1.3 or lower so I cann't investigate.
Maybe with a clean checkout this happens also to JDK1.3 or earlier.

Michael

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




Re: Having all the sitemaps in one directory

2002-07-04 Thread Enke, Michael

Piroumian Konstantin wrote:
 
 Hi colleagues!
 
 An idea just came to me: what if all the sitemap files where located under
 the WEB-INF directory and be mounted from the one that is called 'sitemap'
 (or configured on xconf)? So, there can be:
 sitemap.xmap - the root sitemap
 samples.xmap - samples sub-sitemap
 docs.xmap - documentation sub-sitemap
 
 This can serve for two purposes: better security (it's said that WEB-INF is
 the most secure place in webapp context) and better managebility.
 
 E.g. for Forrest I definitely see a need for sub-sitemaps, otherwise we will
 end up with a huge and messy sitemap, but as Forrest should pull
 documentation from multiple projects (from CVS) which does not contain any
 sitemaps, so we are stuck to a single sitemap.
 
 What do you think? Is it possible now? This should be as simple as using
 another name (not 'sitemap') for the subsitemap and specify the needed 'src'
 in map:mount. Am I right?

+1

Michael

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




Re: 2.0.3 Release?

2002-07-05 Thread Enke, Michael

Stuart Roebuck wrote:
 I'll have another go at what has failed me in the past - building Avalon
 from source.  If that works I can post some patches to include two sets
 of Avalon binaries in the source with a switch on the build to use the
 appropriate version.

I did it yesterday. If you need help ...

Michael

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




INSTALL file: small cleanup (for Diana)

2002-07-11 Thread Enke, Michael

Hi Diana,
in section 3b) Manual install:

[unix]  ./build.sh  -Dinclude.webapp.libs=yes -Dinstall.war=$TOMCAT_HOME/webapps webapp
[win32] .\build.bat -Dinclude.webapp.libs=yes -Dinstall.war=%TOMCAT_HOME%\webapps 
webapp

can be written without -Dinstall.war:

[unix]  ./build.sh  -Dinclude.webapp.libs=yes webapp
[win32] .\build.bat -Dinclude.webapp.libs=yes webapp

Michael

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




Re: encoding of serialized output

2002-07-11 Thread Enke, Michael

[EMAIL PROTECTED] wrote:
 
 Hi all,
 I have a problem here regarding the encoding of serialized output.
 this is about C2.
 
 I wrote sitemap like this.
map:serializer logger=sitemap.serializer.text mime-type=text/text
 name=text src=org.apache.cocoon.serialization.TextSerializer
   /map:serializer
  I tried to output text file by cocoon. and it comes out with UTF-8
 encoding.
 but I want cocoon to output text with Japanese encoding like JIS,Shift-JIS,
 
 I 'd try this tag between  map:serializer  /map:serializer
 encodingJIS/encodingbut it dosen't work.
 How can I tel cocoon to output textfile with Japanese encoding?
 
 I'd appreciate any tips and/or hints.
 
 Thank you.
 itsu .

Hi,
I tried it with ISO-8859-1 and UTF-8
In both cases it was working like expected.
Did you had a look into the logfiles?
Did you really have the encoding inside the map:serializer?
like this:
map:serializer logger=sitemap.serializer.text mime-type=text/text
 name=text src=org.apache.cocoon.serialization.TextSerializer
 encodingJIS/encoding
/map:serializer

Does your JVM know JIS encoding?
You can check this with this little program:

import java.nio.charset.*;
import java.util.*;
 
public class charsets {
  public static void main(String[] argv) {
SortedMap sm = Charset.availableCharsets();
System.out.println(sm);
  }
}

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




Re: INSTALL file: small cleanup (for Diana)

2002-07-14 Thread Enke, Michael

Piroumian Konstantin wrote:
 
  From: Enke, Michael [mailto:[EMAIL PROTECTED]]
 
  Hi Diana,
  in section 3b) Manual install:
 
  [unix]  ./build.sh  -Dinclude.webapp.libs=yes
  -Dinstall.war=$TOMCAT_HOME/webapps webapp
  [win32] .\build.bat -Dinclude.webapp.libs=yes
  -Dinstall.war=%TOMCAT_HOME%\webapps webapp
 
  can be written without -Dinstall.war:
 
  [unix]  ./build.sh  -Dinclude.webapp.libs=yes webapp
  [win32] .\build.bat -Dinclude.webapp.libs=yes webapp
 
 AFAIR, the install.war param is used to setup Catalog properties to point
 the correct location. Hadn't check that though.

Oh, that may be. But I never has set TOMCAT_HOME and it was compiling/working
without that I have seen a problem.

 What will be better is to change TOMCAT_HOME to a more modern CATALINA_HOME.
 What do you think?

So Cocoon is not limited to run with Catalina,
would be better CONTAINER_HOME?

Michael

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




Re: INSTALL file: small cleanup (for Diana)

2002-07-14 Thread Enke, Michael

Diana Shannon wrote:
 
 On Thursday, July 11, 2002, at 11:35  AM, Enke, Michael wrote:
 
  Hi Diana,
  in section 3b) Manual install:
 
  [unix]  ./build.sh  -Dinclude.webapp.libs=yes
  -Dinstall.war=$TOMCAT_HOME/webapps webapp
  [win32] .\build.bat -Dinclude.webapp.libs=yes
  -Dinstall.war=%TOMCAT_HOME%\webapps webapp
 
  can be written without -Dinstall.war:
 
  [unix]  ./build.sh  -Dinclude.webapp.libs=yes webapp
  [win32] .\build.bat -Dinclude.webapp.libs=yes webapp
 
 I can't find any reference to this in installing-related content.
 Are you sure you have the latest release (or even HEAD) from CVS?

Yes, the file name is INSTALL.src in the top level directory.
It is documentation, thats why I asked you.

Michael

PS: Konstantin: I looked in the build.xml and as I could see this is
only related to installation and deletion of war and unzipped cocoon.

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




pizza compiler error

2002-07-17 Thread Enke, Michael

Hi,
I started using Reflection and I had the problem
that code which compiles with Sun's javac
gives me errors when compiling with pizza compiler.


Here is the example:

  Class argType[] = new Class[4];
  argType[0] = String.class;
  argType[1] = String[].class;
  argType[2] = double.class;

// next line makes trouble because of the array of primitive types
  argType[3] = double[].class;

The compilation errors are:

org.apache.cocoon.ProcessingException: Language Exception: 
org.apache.cocoon.components.language.LanguageException: Error compiling CXXX_xsp:
Line 2178, column 19:  illegal start of expression
Line 2178, column 33:   expected
Line 2180, column 14:  ']' expected
Line 2180, column 31:   expected
Line 2181, column 14:  ']' expected
Line 2181, column 33:   expected
Line 2182, column 13:   expected
Line 2183, column 7:  illegal start of type
Line 2188, column 8:  illegal start of type
Line 2191, column 4:  illegal start of type
Line 2197, column 17:   expected
...

Does anybody from this list know about this?

Michael

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




Re: zip/gzip serializer?

2002-08-20 Thread Enke, Michael

Jens Lorenz wrote:
 Hi,
 
  I want to download my generated data in gzipped or zipped
  but I didn't found a gzip or zip serializer in cocoon.
 
  Is it possible in another way to setup this or
  do I have to start writing such a serializer?
 
 Have a look at this link. This will compress Servlet output with a Servlet
 Filter.
 
 http://outerthought.net/wiki/Wiki.jsp?page=CocoonServletCompressionFilterS
 nippet
 
 Another option is to use mod_gzip of Apache httpd for this. (probably
 faster as well)

Hi Jens,
thank you for your answer.
But I do not want to get ALL output from cocoon compressed.
I want:
For a request data.csv get it as text,
for a request data.csv.gz get it as gzipped data,
for a request data.csv.zip get it as zipped data.

Or especially for the HSSF format: I want to offer not only xls
but also Gnumeric format. And Gnumeric format is gzip compressed.

Maybe AbstractSerializer could be extended, to accept something like
compressiongzip/compression or compressionzip/compression

Regards,
Michael

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




Please help! Caching or Threadproblem or what else?

2002-08-27 Thread Enke, Michael

Hi all,
after playing with xsp I started to get mass data out of xsp.
But I run into a serious problem: After some thousend elements
my systems disk spins up, I could not get any reaction from my system
for most of the time, only reset helped. Sometimes I could see
the xload window: There were 15 or more lines ...

My setup:
700 MHz Pentium, SuSE-Linux 7.2, Sun SDK1.4.0_01
Tomcat 4.0.3
cocoon-dev2.1 from last week

I broke the problem down until the attached xsp.
Now the system doesn't hang anymore, but:
Every time in the for-loop if counter has the value 13994
there is an imaginary delay of about 1700 milliseconds.
If I let my CPU run with only 550 MHz, it happens
to the same counter value: 13994, the delay is about 2000 ms.
If I put in a Thread.sleep(1), the delay is about 2000 ms
at counter 13994
If I put in an inner loop from 0 until 100,
the delay comes at a counter value of 139.

Here is my sitemap fragment, pipeline default: noncaching
I tried it with JispFilesystemStore and FilesystemStore, no difference.

map:match pattern=**.xml
  map:generate type=serverpages src={1}.xsp/
  map:serialize type=xml/
/map:match

The delay depends strongly on the content of the page before the loop.
I get Maximum delay-efficiency with 1 space resp. linebreak between elements.
No space between elements is faster (lower delay), more than one space
doesn't delay it more.

Sometimes I get also delays greater than 5 ms for other values of counter
(in about 5 percent).

Can anybody with deeper cocoon-knowledge help me?

Regards,
Michael



?xml version=1.0?

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

page
p/ p/ p/ p/ p/ p/ p/ p/ p/ p/ p/ p/ p/ p/ p/ p/
p/ p/ p/ p/ p/ p/ p/ p/ p/ p/ p/ p/ p/ p/ p/ p/
p/ p/ p/ p/ p/ p/ p/ p/ p/ p/ p/ p/ p/ p/ p/ p/
p/ p/ p/ p/ p/ p/ p/ p/ p/ p/ p/ p/ p/ p/ p/ p/
p/ p/ p/ p/ p/ p/ p/ p/ p/ p/ p/ p/ p/ p/ p/ p/
p/ p/ p/ p/ p/ p/ p/ p/ p/ p/ p/ p/ p/ p/ p/ p/
p/ p/ p/ p/ p/ p/ p/ p/ p/ p/ p/ p/ p/ p/ p/ p/
p/ p/ p/ p/ p/ p/ p/ p/ p/ p/ p/ p/ p/ p/ p/ p/
p/ p/ p/ p/ p/ p/ p/ p/ p/ p/ p/ p/ p/ p/ p/ p/
p/ p/ p/ p/ p/ p/ p/ p/ p/ p/ p/ p/ p/ p/ p/ p/
p/ p/ p/ p/ p/ p/ p/ p/ p/ p/ p/ p/ p/ p/ p/ p/
p/ p/ p/ p/ p/ p/ p/ p/ p/ p/ p/ p/ p/ p/ p/ p/
p/ p/ p/ p/ p/ p/ p/ p/ p/ p/ p/ p/ p/ p/ p/ p/
p/ p/ p/ p/ p/ p/ p/ p/ p/ p/ p/ p/ p/ p/ p/ p/
p/ p/ p/ p/ p/ p/ p/ p/ p/ p/ p/ p/ p/ p/ p/ p/
p/ p/ p/ p/ p/ p/ p/ p/ p/ p/ p/ p/ p/ p/ p/ p/
p/ p/ p/ p/ p/ p/ p/ p/ p/ p/ p/ p/ p/ p/ p/ p/
p/ p/ p/ p/ p/ p/ p/ p/ p/ p/ p/ p/ p/ p/ p/ p/
p/ p/ p/ p/ p/ p/ p/ p/ p/ p/ p/ p/ p/ p/ p/ p/
p/ p/ p/ p/ p/ p/ p/ p/ p/ p/ p/ p/ p/ p/ p/ p/
p/ p/ p/ p/ p/ p/ p/ p/ p/ p/ p/ p/ p/ p/ p/ p/
p/ p/ p/ p/ p/ p/ p/ p/ p/ p/ p/ p/ p/ p/ p/ p/
p/ p/ p/ p/ p/ p/ p/ p/ p/ p/ p/ p/ p/ p/ p/ p/
p/ p/ p/ p/ p/ p/ p/ p/ p/ p/ p/ p/ p/ p/ p/ p/
p/ p/ p/ p/ p/ p/ p/ p/ p/ p/ p/ p/ p/ p/ p/ p/
p/ p/ p/ p/ p/ p/ p/ p/ p/ p/ p/ p/ p/ p/ p/ p/
p/ p/ p/ p/ p/ p/ p/ p/ p/ p/ p/ p/ p/ p/ p/ p/
p/ p/ p/ p/ p/ p/ p/ p/ p/ p/ p/ p/ p/ p/ p/ p/
p/ p/ p/ p/ p/ p/ p/ p/ p/ p/ p/ p/ p/ p/ p/ p/
p/ p/ p/ p/ p/ p/ p/ p/ p/ p/ p/ p/ p/ p/ p/ p/
p/ p/ p/ p/ p/ p/ p/ p/ p/ p/ p/ p/ p/ p/ p/ p/
p/ p/ p/ p/ p/ p/ p/ p/ p/ p/ p/ p/ p/ p/ p/ p/
p/ p/ p/ p/ p/ p/ p/ p/ p/ p/ p/ p/ p/ p/ p/ p/
p/ p/ p/ p/ p/ p/ p/ p/ p/ p/ p/ p/ p/ p/ p/ p/
p/ p/ p/ p/ p/ p/ p/ p/ p/ p/ p/ p/ p/ p/ p/ p/
p/ p/ p/ p/ p/ p/ p/ p/ p/ p/ p/ p/ p/ p/ p/ p/
p/ p/ p/ p/ p/ p/ p/ p/ p/ p/ p/ p/ p/ p/ p/ p/
p/ p/ p/ p/ p/ p/ p/ p/ p/ p/ p/ p/ p/ p/ p/ p/
p/ p/ p/ p/ p/ p/ p/ p/ p/ p/ p/ p/ p/ p/ p/ p/
p/ p/ p/ p/ p/ p/ p/ p/ p/ p/ p/ p/ p/ p/ p/ p/
p/ p/ p/ p/ p/ p/ p/ p/ p/ p/ p/ p/ p/ p/ p/ p/
p/ p/ p/ p/ p/ p/ p/ p/ p/ p/ p/ p/ p/ p/ p/ p/
p/ p/ p/ p/ p/ p/ p/ p/ p/ p/ p/ p/ p/ p/ p/ p/
p/ p/ p/ p/ p/ p/ p/ p/ p/ p/ p/ p/ p/ p/ p/ p/
p/ p/ p/ p/ p/ p/ p/ p/ p/ p/ p/ p/ p/ p/ p/ p/
p/ p/ p/ p/ p/ p/ p/ p/ p/ p/ p/ p/ p/ p/ p/ p/
p/ p/ p/ p/ p/ p/ p/ p/ p/ p/ p/ p/ p/ p/ p/ p/
p/ p/ p/ p/ p/ p/ p/ p/ p/ p/ p/ p/ p/ p/ p/ p/
p/ p/ p/ p/ p/ p/ p/ p/ p/ p/ p/ p/ p/ p/ p/ p/
p/ p/ p/ p/ p/ p/ p/ p/ p/ p/ p/ p/ p/ p/ p/ p/
p/ p/ p/ p/ p/ p/ p/ p/ p/ p/ p/ p/ p/ p/ p/ p/
p/ p/ p/ p/ p/ p/ p/ p/ p/ p/ p/ p/ p/ p/ p/ p/
p/ p/ p/ p/ p/ p/ p/ p/ p/ p/ p/ p/ p/ p/ p/ p/
p/ p/ p/ p/ p/ p/ p/ p/ p/ p/ p/ p/ p/ p/ p/ p/
p/ p/ p/ p/ p/ p/ p/ p/ p/ p/ p/ p/ p/ p/ p/ p/
p/ p/ p/ p/ p/ p/ p/ p/ p/ p/ p/ p/ p/ p/ p/ p/
p/ p/ p/ p/ p/ p/ p/ p/ p/ p/ p/ p/ p/ p/ p/ p/
p/ p/ p/ p/ p/ p/ p/ p/ p/ p/ p/ p/ p/ p/ p/ p/
p/ p/ p/ p/ p/ p/ p/ p/ p/ p/ p/ p/ p/ p/ p/ p/
p/ p/ p/ p/ p/ p/ p/ p/ p/ p/ p/ p/ p/ p/ p/ p/
p/ p/ p/ p/ p/ p/ p/ p/ p/ p/ p/ p/ p/ p/ p/ p/
p/ p/ p/ p/ p/ p/ p/ p/ p/ p/ p/ p/ p/ p/ p/ p/
p/ p/ p/ p/ p/ p/ p/ p/ p/ p/ p/ p/ p/ p/ p/ p/
p/ p/ p/ p/ p/ p/ p/ p/ p/ p/ p/ p/ p/ p/ p/ p/
p/ p/ p/ p/ p/ p/ p/ p/ p/ p/ p/ p/ p/ p/ p/ p/
p/ p/ p/ p/ p/ p/ p/ p/ p/ p/ p/ p/ p/ p/ p/ p/
p/ p/ p/ p/ p/ p/ p/ p/ p/ p/ p/ p/ p/ p/ p/ p/
p/ p/ p/ p/ p/ p/ p/ p/ p/ p/ p/ p/ p/ p/ p/ p/
p/ p/ p/ p/ p/ p/ p/ p/ p/ p/ p/ p/ p/ p/ p/ p/
p/ p/ p/ p/ p/ p/ p/ p/ p/ p/ p/ p/ p/ p/ p/ p/
p/ 

2: Please help! Caching or Threadproblem or what else?

2002-08-27 Thread Enke, Michael

I forgot one important detail:
This happens only if tomcat was restarted or if the xsp-file changed on disk.
The second and all follwing requests come out super fluid,
even if I use noncaching pipeline.

Regards,
Michael

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




cocoon on tomcat 4.1.9

2002-08-28 Thread Enke, Michael

Hi,
I found that in CocoonServlet the init method is not called
from tomcat 4.1.9
Does anybody have heared about this and knows how to solve?

Thanks,
Michael

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




Re: cocoon on tomcat 4.1.9

2002-08-28 Thread Enke, Michael

Sorry,
that is not true, init() is called. But the output goes not to catalina.out
but to localhost_log

Enke, Michael wrote:
 
 Hi,
 I found that in CocoonServlet the init method is not called
 from tomcat 4.1.9
 Does anybody have heared about this and knows how to solve?

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




Re: cocoon on tomcat 4.1.9

2002-08-28 Thread Enke, Michael

This is to save you some time if you switch to newer tomcat (4.1.9, maybe all 4.1.x?)
Can someone subscribed to cocoon-users post this there?

It is no longer allowed to point with symbolic links outside the
directory (down) where the servlet is located:

look at
catalina/core/ApplicationContext.java or
catalina/servlets/DefaultServlet.java:

/**
 * Return a context-relative path, beginning with a /, that represents
 * the canonical version of the specified path after .. and . elements
 * are resolved out.  If the specified path attempts to go outside the
 * boundaries of the current context (i.e. too many .. path elements
 * are present), return codenull/code instead.
 *
 * @param path Path to be normalized
 */
private String normalize(String path) {
 ...


Regards,
Michael


Enke, Michael wrote:
 
 Sorry,
 that is not true, init() is called. But the output goes not to catalina.out
 but to localhost_log
 
 Enke, Michael wrote:
 
  Hi,
  I found that in CocoonServlet the init method is not called
  from tomcat 4.1.9
  Does anybody have heared about this and knows how to solve?

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




Re: 2: Please help! Caching or Threadproblem or what else?

2002-08-29 Thread Enke, Michael

Vadim Gritsenko wrote:
 
 Enke, Michael wrote:
 
 I forgot one important detail:
 This happens only if tomcat was restarted or if the xsp-file changed on disk.
 The second and all follwing requests come out super fluid,
 even if I use noncaching pipeline.
 
 
 What makes you think this is not normal garbage collection cycle?

That would mean cocoon cann't serve complex xsp's with more than
10,000 elements generated!!! This would be bad.
I also set parameter name=threadpriority value=5/ to 1 or to 10,
nothing different.

Michael

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




Re: 2: Please help! Caching or Threadproblem or what else?

2002-08-29 Thread Enke, Michael

Vadim Gritsenko wrote:
 That would mean cocoon cann't serve complex xsp's with more than
 
 
 Why can't? You said that there is delay, that's it. So, it can, but with
 delay, and only after XSP is modified (AFAIU). What's wrong with it,
 especially if it is garbage collector cleaning up compilation trees and
 variables?

The delay I have only on this sample page I appended to my mail.
My real xsp makes the system sometimes absolutely hanging, sometimes
tomcat stops work but without any hint in the logs.
It does also not help to call this xsp ones with small data amount
and the second time with large data amount (giving the amount as request value).

I know the process ID (Linux) of the thread which stops the system.
Is there any way to know if this thread is the garbage collection thread?

Michael

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




Re: 2: Please help! Caching or Threadproblem or what else?

2002-08-29 Thread Enke, Michael

Vadim Gritsenko wrote:

 It does also not help to call this xsp ones with small data amount
 and the second time with large data amount (giving the amount as request value).
 
 I know the process ID (Linux) of the thread which stops the system.
 Is there any way to know if this thread is the garbage collection thread?
 
 
 Delay in small XSP can be explained as gc, but system hang-up... I
 doubt. StoreJanitor monitors memory state and logs everything to the log
 file - do you see any suspicious activity there? if not, it is not gc issue.
 

Nothing suspicious in the logfile:
DEBUG   (2002-08-29) 16:23.49:350   [core.store.janitor] (Unknown-URI) 
Unknown-thread/StoreJanitorImpl: JVM total Memory: 49377280
DEBUG   (2002-08-29) 16:23.49:351   [core.store.janitor] (Unknown-URI) 
Unknown-thread/StoreJanitorImpl: JVM free Memory: 12260168
DEBUG   (2002-08-29) 16:23.49:351   [core.store.janitor] (Unknown-URI) 
Unknown-thread/StoreJanitorImpl: Memory is low = false


Michael

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




Re: 2: Please help! Caching or Threadproblem or what else?

2002-08-29 Thread Enke, Michael

Klaus Bertram wrote:
 
 Michael wrote:
 Vadim Gritsenko wrote:
 
  It does also not help to call this xsp ones with small data amount
  and the second time with large data amount (giving the amount as request value).
  
  I know the process ID (Linux) of the thread which stops the system.
  Is there any way to know if this thread is the garbage collection thread?
  
 
  Delay in small XSP can be explained as gc, but system hang-up... I
  doubt. StoreJanitor monitors memory state and logs everything to the log
  file - do you see any suspicious activity there? if not, it is not gc issue.
 
 
 Nothing suspicious in the logfile:
 DEBUG   (2002-08-29) 16:23.49:350   [core.store.janitor] (Unknown-URI) 
Unknown-thread/StoreJanitorImpl: JVM total Memory: 49377280
 DEBUG   (2002-08-29) 16:23.49:351   [core.store.janitor] (Unknown-URI) 
Unknown-thread/StoreJanitorImpl: JVM free Memory: 12260168
 DEBUG   (2002-08-29) 16:23.49:351   [core.store.janitor] (Unknown-URI) 
Unknown-thread/StoreJanitorImpl: Memory is low = false
 
 
 Michael
 
 Is your jdk is sun 1.3 ?
 they had with this problems by large memory and thread's Stand of jan 02

No, I have Sun 1.4.0_01
As I encountered this problem I got the latest available jdk.

Michael

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




Re: i18n:attr trouble

2002-08-30 Thread Enke, Michael

Koen Pellegrims wrote:
 
 thanks for pointing me to the FAQ. I missed that one.
 Commenting out the removeAttributes() call fixed it (for now).
 
 As I've stated, I already tried to upgrade to Xerces 2.1.0, but that didn't
 solve it for me.
 Do I have to do anything else besides placing xercesImpl.jar and
 xmlParserAPIs.jar in $JAVA_HOME/jre/lib/endorsed and
 $COCOON_HOME/WEB-INF/lib ?
 

Not your question, but:
I have the same setup: sdk1.4.0 on linux.
I don't have it in $JAVA_HOME/jre/lib/endorsed,
only in $COCOON_HOME/WEB-INF/lib
Also with sdk1.3.3 it was not required to have it in jre/lib/endorsed.

Michael

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




Re: 2: Please help! Caching or Threadproblem or what else?

2002-08-30 Thread Enke, Michael

Vadim Gritsenko wrote:
 
 Enke, Michael wrote:
 
 I tried it now under Windows ME:
 The swap file C:\WINDOWS\WIN386.SWP
 was growing until C:\ was full (swap file size about 500 MB) :-(
 
 
 But this means that this is not related to Java - Java's total memory is
 limited to ... whatever you specify.
 
 Or this can be bug in JDK (less possible). What do you think?

I don't know. My second guess was that it is the virtual machine problem.
That's why I got the latest version 1.4.0_01
My setup:
Machine 1: Linux: postgresql Database
Machine 2: Windows ME: Tomcat 4.1.9 with Cocoon-2.1-dev
Machine 3: Windows NT: Browser. download xml produced from Machine 2

So I have no influence from the DB (only the JDBC driver) and no influence from
downloading the file. At this time I did not yet succeed in running Cocoon
standalone on Windows because I cann't see the missing jars because the
ClassNotFoundException in DOS-box scrolls out and I cann't redirect output to a file 
...

But on a linux machine I have the same behaviour if I run java org.apache.cocoon.Main.

I will try at the weekend to remove all database dependent code so that I can post
my xsp on monday.

Nice weekend,
Michael

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




Re: 2: Please help! Caching or Threadproblem or what else?

2002-09-02 Thread Enke, Michael

Enke, Michael wrote:
 
 Vadim Gritsenko wrote:
 
  Enke, Michael wrote:
 
  I tried it now under Windows ME:
  The swap file C:\WINDOWS\WIN386.SWP
  was growing until C:\ was full (swap file size about 500 MB) :-(
  
 
  But this means that this is not related to Java - Java's total memory is
  limited to ... whatever you specify.
 
  Or this can be bug in JDK (less possible). What do you think?


here I post the problematic file. I let it run from command line after setting 
CLASSPATH:
java -Djdbc.drivers=$my_DB_driver_class org.apache.cocoon.Main -c . -u ERROR 
test801.xml
(no further transformation).

Interesting are only the last few lines where I produce the mass data
(for loop with createRow method). I print the rownumber to System.out.

1) I changed the namespace for esql logicsheet so that esql is not applied:
   At line 1271 there is a one second delay,
   after this it is going on. That's probably the gc? I don't know.
   The memory consumption is ok (20 ... 25 percent).

2) With correct namespace, when esql is applied, it blocks at rowNumber 1271,
   sometimes for one minute, sometimes forever.
   I use only one sql statement: String SQL_QUERY=select 0,0 (I have postgres)
   so you can easily change for other DB system, e.g. select 0 from dual (for Oracle)
   I watch the memory usage with the command top (on linux), delay between updates
   1 second, sort by memory usage. The percent MEM is: 20% ... 30% ... 40% ...
50% ... 82% ... 42% ... 60% ... 70% ... 80% ... 80% ... 80% ... always 80%
   I have 320MB physical memory and 264MB swap space.
   StoreJanitor settings are the default values from cocoon.xconf

If I cut some code before the for loop (which has no relevance to the loop),
the blocking disappears, than there is only delay of 1 second ... 1 minute,
depends how mutch code is removed.

Maybe this a problem of StoreJanitor?

I appreciate for any help.

Michael



?xml version=1.0 encoding=UTF-8?

xsp:page
  xmlns:xsp=http://apache.org/xsp;
  xmlns:esql=http://apache.org/cocoon/SQL/v2-myown;
  xmlns:xsp-request=http://apache.org/xsp/request/2.0;
  xmlns:i18n=http://apache.org/cocoon/i18n/2.0; encoding=UTF-8
  xmlns:util=http://apache.org/xsp/util/2.0;

xsp:structure
!-- ME: REMOVE IF DB RUNNING --
 xsp:includejava.io.*/xsp:include
!-- ME: REMOVE IF DB RUNNING --
 xsp:includejava.lang.reflect.*/xsp:include
 xsp:includejava.util.*/xsp:include
 xsp:includejava.text.*/xsp:include
 xsp:includejava.net.URLEncoder/xsp:include
 xsp:includeorg.apache.cocoon.acting.LocaleAction/xsp:include
/xsp:structure

xsp:logic
 String SQL_QUERY=select 0,0;
   // which encoding the html-request uses (same as in
   // sitemap defined - if not: default is UTF-8)
 static final String formEncoding = UTF-8,

   // will become unnecessary in a future postgres version
   // dbEncoding and calypsoEncoding must be the
   // postgres names for the encodings

   // encoding of database
   dbEncoding=UNICODE,

   // encoding of Calypso data
   calypsoEncoding=LATIN1;
 static final int unknown = 0, html = 1, fo = 2, csv = 3, xml = 4,
  Header = 0, Rows = 1, Footer = 2, Misc = 3, MaxA = Misc,
  /* the next one are bits! so only use 2^x */
  RETURN_NEXT_ROW_DIFFERENT = 1,
  RETURN_NEXT_ROW_NOT_DIFFERENT = 2,
  RETURN_NEXT_ROW_FROM_METHOD = 4,
  RETURN_HIDE_ROW = 8;
 String label[], column[], width[], span[],
widthG[][] = new String[Footer + 1][],
spanG[][] = new String[Footer + 1][],
th_align[], align[],
color[], linkDescText[][],
linkDescTextG[][][] = new String[Footer + 1][][],
replaceGFound[][] = new String[Footer + 1][],
replaceGNew[][] = new String[Footer + 1][],
replaceFound[], replaceNew[];
 String  alignG[][] = new String[Footer + 1][],
 colorG[][] = new String[Footer + 1][]; 
 boolean percentBool[], percent3Bool[], numberBool[], num3Bool[], bits[],
 timeBool[], dateTimeBool[], timeDiffBool[], priceBool[],
 textI18nBool[],
 percentGBool[][] = new boolean[Footer + 1][],
 percent3GBool[][] = new boolean[Footer + 1][],
 numberGBool[][] = new boolean[Footer + 1][],
 num3GBool[][] = new boolean[Footer + 1][],
 timeGBool[][] = new boolean[Footer + 1][],
 dateTimeGBool[][] = new boolean[Footer + 1][],
 timeDiffGBool[][] = new boolean[Footer + 1][],
 priceGBool[][] = new boolean[Footer + 1][],
 textI18nGBool[][] = new boolean[Footer + 1][],
 boldGBool[][] = new boolean[Footer + 1][],
 replaceGBool[][] = new boolean[Footer + 1][],
 wrapBoolG[][] = new boolean[Footer + 1][],
 linkGBool[][] = new boolean[Footer + 1][],
 boldBool[], replaceBool[], sumAllBool[], wrapBool[],
 linkBool[], groupOnBool[];
 int cc, linkDescNum[][], thisPageFormat, groupOnIndex[],
 linkDescNumG[][][] = new

Re: 2: Please help! Caching or Threadproblem or what else?

2002-09-03 Thread Enke, Michael

Enke, Michael wrote:
 
 Enke, Michael wrote:
 
  Vadim Gritsenko wrote:
  
   Enke, Michael wrote:
  
   I tried it now under Windows ME:
   The swap file C:\WINDOWS\WIN386.SWP
   was growing until C:\ was full (swap file size about 500 MB) :-(
   
  
   But this means that this is not related to Java - Java's total memory is
   limited to ... whatever you specify.
  
   Or this can be bug in JDK (less possible). What do you think?


I found this is a bug in pizza compiler. Now I have Javac configured in cocoon.xconf,
all is working well.

Michael

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




default xsl transformer?

2002-09-03 Thread Enke, Michael

Hi,
I'm wondering what is the xsl-transformer used by current sitemap.xmap?
I found there:

!-- NOTE: This used to be the default XSLT processor. The default now is XSLTC --
map:transformer logger=sitemap.transformer.xslt name=xalan pool-grow=2 
pool-max=32 pool-min=8 src=org.apache.cocoon.transformation.TraxTransformer
  use-request-parametersfalse/use-request-parameters
  use-browser-capabilities-dbfalse/use-browser-capabilities-db
  use-delifalse/use-deli
/map:transformer
 
!--
NOTE: XSLTC is now the default processor. If you use Xalan extensions,
use the xalan transformer.
 --
map:transformer logger=sitemap.transformer.xsltc name=xslt pool-grow=2 
pool-max=32 pool-min=8 src=org.apache.cocoon.transformation.TraxTransformer
  use-request-parametersfalse/use-request-parameters
  use-browser-capabilities-dbfalse/use-browser-capabilities-db
  use-delifalse/use-deli
  !-- 
transformer-factoryorg.apache.xalan.xsltc.trax.TransformerFactoryImpl/transformer-factory
 --
/map:transformer

Both use the same src=org.apache.cocoon.transformation.TraxTransformer,
they are different only in logger and name.

Q.1) I guess it will be right to removve the comment for transformer-factory/?
Q.2) From where TraxTransformer knows which one to use if no transformer-factory/ is 
given?

Regards,
Michael

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




Re: default xsl transformer?

2002-09-03 Thread Enke, Michael

Vadim Gritsenko wrote:
 
 Enke, Michael wrote:
 
 Vadim Gritsenko wrote:
 
 
 Q.2) From where TraxTransformer knows which one to use if no 
transformer-factory/ is given?
 
 
 
  From configuration only.
 
 
 
 From cocoon.roles?
 
 I have the problem that if I use xsl:strip-space/ in xsl transformation
 I get a NullpointerException after some hundred elements.
 
 
 This is not helpful. Where it happens?


Original exception : java.lang.NullPointerException
 at java.lang.System.arraycopy(Native Method)
 at org.apache.xml.utils.FastStringBuffer.append(FastStringBuffer.java:642)
 at org.apache.xml.dtm.ref.sax2dtm.SAX2DTM.characters(SAX2DTM.java:1825)
 at 
org.apache.xml.dtm.ref.IncrementalSAXSource_Filter.characters(IncrementalSAXSource_Filter.java:257)
 at 
org.apache.xalan.transformer.TransformerHandlerImpl.characters(TransformerHandlerImpl.java:572)
 at org.apache.cocoon.xml.AbstractXMLPipe.characters(AbstractXMLPipe.java:159)
 at org.apache.cocoon.xml.AbstractXMLPipe.characters(AbstractXMLPipe.java:159)
 at 
org.apache.cocoon.transformation.I18nTransformer.characters(I18nTransformer.java:905)
 ...

But in I18nTransformer the method call to characters(char[], int, int) is definitively 
correct.
So I thought: get the newest xalan-2.4.D1.jar but the Exception is exactly the same, 
even in the
same Sourceline: 572. Than I thought: that cann't be and tried to remove xalan.jar and 
xsltc.jar
but the result is the same!?

This happens only if I have strip-space elements=.../ in the stylesheet.


Michael

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




Re: iText jars

2002-09-05 Thread Enke, Michael

Piroumian Konstantin wrote:
 Don't both FOP and iText implement the same specification? Why would there
 be difference in functionality?

FOP uses the formatting objects specification, itext has its own input format.
I will start playing with itext in 2 or 3 weeks. Than I can generate a small example.

Michael

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




?overwrite libs in $JAVA_HOME/jre/lib/endorsed

2002-09-05 Thread Enke, Michael

Hi cocooners,
in the Cocoon installation website there is description for
installation on sdk1.4:
- copy xerces.jar, xalan.jar and xml-api.jar to $JAVA_HOME/jre/lib/endorsed/
- to use newer versions than included with sdk.

But I cann't manage to get it running with the newer version,
I always end up with the included version.

So I was looking at http://java.sun.com/j2se/1.4/docs/guide/standards/
section Endorsed Standard APIs

Since org.apache.* is *NOT* listed there it means that we have strong trouble,
we cann't replace with newer versions.

Michael

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




Re: iText jars

2002-09-05 Thread Enke, Michael

Denis wrote:
 
 Hi all,
 
 Does anybody has a description of the XML format used by iText?
 I tried to find it from the home site of iText without success.

I also didn't found a description but I will start from tutorial.tar.gz
and  examples.tar.gz, there are some xml files included.

Michael

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




Re: ?overwrite libs in $JAVA_HOME/jre/lib/endorsed

2002-09-05 Thread Enke, Michael

Carsten Ziegeler wrote:
 
 Do you use Tomcat 4.x? If so, not the JAVA_HOME/jre/lib/endorsed
 but the tomcat/lib/endorsed is used and you have to replace the
 jars there.

Whao, Thank you, it works now also for me!
Yes, I use Tomcat 4.1.9
There it is tomcat/common/endorsed


 With other servlet engines the procedure described by you works
 fine for me.

But probably only with a non-Sun classloader
(which is looking in JAVA_HOME/jre/lib/endorsed)
or the Sun documentation is invalid?

Thanks,
Michael



 Carsten
 
  -Original Message-
  From: Enke, Michael [mailto:[EMAIL PROTECTED]]
  Sent: Thursday, September 05, 2002 11:09 AM
  To: [EMAIL PROTECTED]
  Subject: ?overwrite libs in $JAVA_HOME/jre/lib/endorsed
 
 
  Hi cocooners,
  in the Cocoon installation website there is description for
  installation on sdk1.4:
  - copy xerces.jar, xalan.jar and xml-api.jar to
  $JAVA_HOME/jre/lib/endorsed/
  - to use newer versions than included with sdk.
 
  But I cann't manage to get it running with the newer version,
  I always end up with the included version.
 
  So I was looking at http://java.sun.com/j2se/1.4/docs/guide/standards/
  section Endorsed Standard APIs
 
  Since org.apache.* is *NOT* listed there it means that we have
  strong trouble,
  we cann't replace with newer versions.
 
  Michael

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




caching pipeline problems

2002-09-06 Thread Enke, Michael

Hi,
doing actually some mass tests, I found a problem with caching pipeline
(using 2.1 dev).
If I use caching pipeline, after a huge amount of retreived data (about 40MB)
there are double entries and missing entries.

If I change to noncaching pipeline, all is working well.
I have no idea where to search for this.
Should I put it into bugzilla or is somebody actually working on this?

Michael

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




Re: default xsl transformer?

2002-09-06 Thread Enke, Michael

Vadim Gritsenko wrote:
 Try Saxon. I always try Saxon before blaming Xalan.
 
 Where and how to configure? Do I need an additional jar?
 
 
 Remove xalan-2.3.1.jar from the WEB-INF/lib, drop saxon-6.5.2.jar
 instead, restart.

Hi Vadim,
thank you for your help.
I only have one problem left: I get this exception:

The org.apache.cocoon.components.treeprocessor.sitemap.PipelineNode notifies that 
org.apache.cocoon.ProcessingException says:

 org.xml.sax.SAXException: Invalid processing instruction name (saxon:warning)

 More precisely:

 org.apache.cocoon.ProcessingException: Failed to execute pipeline.: 
javax.xml.transform.TransformerException: org.xml.sax.SAXException:
 Invalid processing instruction name (saxon:warning)
 at com.icl.saxon.TransformerHandlerImpl.endDocument(TransformerHandlerImpl.java:104)
  at 
org.apache.cocoon.xml.AbstractXMLPipe.endDocument(AbstractXMLPipe.java:91)
  at 
org.apache.cocoon.transformation.TraxTransformer.endDocument(TraxTransformer.java:622)
  at 
org.apache.cocoon.xml.AbstractXMLPipe.endDocument(AbstractXMLPipe.java:91)
  ...

Do you know how to handle this?

Thanky you,
Michael

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




Re: XSP bug: can get generate() to skip elements using java 'if's

2002-09-10 Thread Enke, Michael

Per Kreipke wrote:
 
 The following XSP snippet will cause an ArrayIndexOutOfBoundsException in
 Cocoon 2.0.3 because the start of the outer element is never emitted to the
 SAX stream.
 
 XSP Snippet:


I would always write it as:

 xsp:page 
 
  page
   xsp:logic
 if (!request.isUserInRole(root))
 {
   xsp:attribute name=security-errorNot authorized/xsp:attribute
 }
 else
 {
   xsp:content
 
 !-- Build the page if authorized --
 content /
 
   /xsp:content
 }
   /xsp:logic
  /page
 
 /xsp:page
 
note: /xsp:logic replaced by xsp:content
and xsp:logic replaced by /xsp:content

Michael

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




Re: Big problems with JispFilesystemStore

2002-09-12 Thread Enke, Michael

Carsten Ziegeler wrote:
 
 Hi,
 
 the JispFilesystemStore has some serious problems/bugs - it does
 not implement the free() or the keys() method! - So if you use
 this store for caching (and it's the default) your cache
 might grow and grow - because the store janitor cannot free it!!!
 So, I recommend not to use the JispFilesystemStore in it's current
 state.
 
 I looked at the Jisp API but didn't see a way to get all keys out
 of the store. Is this right? Does anyone know a way, so we can
 fix these problems?


The first think what I did was to use the
FilesystemStore. But this throws an exception. See:
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=12034
Over the last weeks I submitted several Bugreports with
solution (not related to JispFilesystemStore)
but no committer seems to be interested in fixing errors :-(

Michael

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




Re: Serializer and Xalan Bug

2002-09-19 Thread Enke, Michael

Frank Taffelt wrote:
 
 Hi,
 
 it seems that the Xalan-Bug
 http://nagoya.apache.org/bugzilla/show_bug.cgi?id=5779 doesn't affect
 current cocoon codebase.
 
 The current AbstractTextSerializer has a workarround for this which uses a
 simple identity transform Stylesheet. This Solution seems to work fine for
 the XML Serializer but doesn't work for TextSerializer which includes a XML
 declaration for it's output. The current workarround seems to have strange
 effect on all Serializer's that inherit from AbstractTextSerializer: setting
 of serialization properties like omit-xml-declaration and all other
 properties for TextSerializer is ignored.
 
 I switched AbstractTextSerializer back to the version before this bug and it
 seems that the default identity transformer handles namespaces in the right
 way.Serializer properties like (omit-xml-declaration, encoding ...) now were
 never ignored and working well for Text- and XMLSerializer's.
 
 Best Regards,
 Frank Taffelt


There is already a bug report for this:
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=11935

Michael

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




Re: Use of Xalan 2.4

2002-10-11 Thread Enke, Michael

I don't know the reason so I tried xalan2.4.1:
XSLTExtension:escape (required for xsp.xsl) was not working.

Michael

Antonio Gallardo Rivera wrote:
 
 Just a question. Why Cocoon still use Xalan 2.3.1 and not 2.4.0?
 
 Antonio Gallardo
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, email: [EMAIL PROTECTED]

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




  1   2   >