Re: ehcache blows up catalina.out

2010-07-04 Thread Jeroen Reijn
Hi,

As you have not configured the log level for log4j yourself, the
configuration probably comes from somewhere else.
You might want to pass along a log4j directive. I believe it's
-Dlog4j.debug=true . It will show you which configuration is used.

Regards,

Jeroen Reijn


On Friday, July 2, 2010, Lochschmied, Alexander
alexander.lochschm...@vishay.com wrote:













 Hi everbody,



 I described this already but got no response yet.



 In my first email I got confused about ehcache using slf4j,
 but after decompiling ehachace from our Cocoon 2.1.11 (Tomcat is 6.0.20), I
 noticed commons logging was used back then.



 The problem is (still):

 Our tomcat/logs/catalina.out logs too many DEBUG messages generated
 in ehcache, like



 85765 [http-8080-5] DEBUG net.sf.ehcache.Cache  -
 cocoon-ehcache-1 cache - Miss

 85765 [http-8080-5] DEBUG net.sf.ehcache.Cache  -
 cocoon-ehcache-1 cache - Miss

 85946 [http-8080-5] DEBUG net.sf.ehcache.store.MemoryStore  -
 cocoon-ehcache-1Cache: spool to disk done for: 
 PK_G-file-file:///…/nothing.xml_T-xslt-file:///…/press-query.xsl;id=xyz



 This causes huge catalina.out, around 5 GB per day, so we need
 to restart tomcat and purge the log file.



 We already tried all kinds of configuration settings, like
 adding the following to logkit.xconf

     category log-level=INFO name=core.store

     log-target id-ref=main/

     /category

     category log-level=INFO name=core.store.transient

     log-target id-ref=main/

     /category

     category log-level=INFO name=core.store.janitor

     log-target id-ref=main/

     /category



 As we also have a log4j.jar in cocoon/WEB-INF/libs, I also
 added a logging.properties to cocoon/WEB-INF/classes/.

 Nothing helped and catalina.out is still bloated with those
 ehcache debug messages.



 What could cause these DEBUG messages to go to stdout (or
 stderr)?

 How can we configure the logs to get rid of these messages?



 Thanks in advance,

 Alexander



 Alexander
 Lochschmied

 Web
 Programmer - Internet and Commerce

 IT
 Global Web Services

 Information
 Technology

 Phone:
 +49 92 8771 2682

 Fax
 +49 92 8771 2545

 Website:
 www.vishay.com




 Vishay
 Electronic GmbH

 Geheimrat-Rosenthal-Str.
 100

 D-95100
 Selb

 Amtsgericht/County
 Court Hof HRB 2894,

 Geschäftsführer/Managing
 Directors: Sieglinde Janker-Buecherl, Arnold Rohr











BRANCH_2_1_X-dojo1_1 - dojoId is not defined

2010-07-04 Thread Carlos Chávez
Hi guys.

I was testing the branch
http://svn.apache.org/repos/asf/cocoon/branches/BRANCH_2_1_X-dojo1_1. I
enter in the sample:

http://localhost:/samples/blocks/forms/do-calculatedfields.flow

I tried to add a row to the repeater and it shows the error:

dojoId is not defined.

I attached to the email the fix for this error.

--
Cheers.
Carlos Chávez.
### Eclipse Workspace Patch 1.0
#P BRANCH_2_1_X-dojo1_1
Index: src/blocks/forms/resources/org/apache/cocoon/forms/resources/js/common.js
===
--- src/blocks/forms/resources/org/apache/cocoon/forms/resources/js/common.js   
(revision 960158)
+++ src/blocks/forms/resources/org/apache/cocoon/forms/resources/js/common.js   
(working copy)
@@ -71,7 +71,7 @@
 var formId = form.id;
 if (dojo  formId) {
 // Delegate to the SimpleForm or AjaxForm widget
-dijit.byId(dojoId).submit(name, params);
+dijit.byId(formId).submit(name, params);
 } else {
 // Regular submit. There is no *Form widget available
 
@@ -218,7 +218,7 @@
  */
 
 cocoon.forms.defaults = {
-
+
 statusMark: *,
 constraints: { // default constraints for numerical datatypes
 decimal:   {pattern:###0.###, type: decimal, locale:en}, 
// PlainDecimalConvertor NB. Dojo has no concept of a plain number, hence force 
it to show 'en' to get '.' decimal
@@ -226,7 +226,7 @@
 float: {pattern:###0.###, type: decimal, locale:en}, 
// PlainFloatConvertor
 integer:   {pattern: '#', places: 0, min: -2147483648, max: 
2147483647}, // PlainIntegerConvertor
 long:  {pattern: '#', places: 0, min: -9223372036854775808, 
max: 9223372036854775807},// PlainLongConvertor
-l10n-currency: {fractional:true},  // FormattingDecimalConverter - 
currency variant 
+l10n-currency: {fractional:true},  // FormattingDecimalConverter - 
currency variant
 l10n-integer:  {places: 0, min: -2147483648, max: 2147483647}, // 
FormattingIntegerConverter
 l10n-long: {places: 0, min:-9223372036854775808, max: 
9223372036854775807}, // FormattingLongConverter
 l10n-number:   {type: decimal}, // FormattingDecimalConverter, 
FormattingFloatConverter, FormattingDoubleConverter