Re: Cocoon Profiler development

2007-10-23 Thread Reinhard Poetz

András Hatvani wrote:

Hi Joerg,

thanks for your quick reply and sorry for my delay.
On the page http://cocoon.apache.org/2.2/blocks/1204_1_1.html you wrote:
"This list of blocks hasn't been released yet. Your help is more than 
appreciated to make them ready for a release as Cocoon 2.2 block."
I have my focus on the performance and I think the Profiler is a tool 
which can help web developers to optimize their code.
But as stated on the before mentioned web page the development of this 
block should be supported and that's the reason, why I would like to 
participate.
I've started with checking out and analyzing the existing code, but I 
don't know, who else works on this block, is there already a design, are 
there timelines etc.,

so mostly organisatoric questions for the begin.


András,

your contributions to the profiler are more than welcome. IIRC there were some 
bugfixes some time ago to make it work with trunk. As a first step you should 
find out if the code is useable as it is  today by checking the samples.


I would also be interested if you have further ideas about additional 
functionality.

--
Reinhard PötzManaging Director, {Indoqa} GmbH
  http://www.indoqa.com/en/people/reinhard.poetz/

Member of the Apache Software Foundation
Apache Cocoon Committer, PMC member, PMC Chair[EMAIL PROTECTED]
_


[jira] Updated: (COCOON-2129) MailMessageSender does not allow setting of mail body by URL

2007-10-23 Thread Vadim Gritsenko (JIRA)

 [ 
https://issues.apache.org/jira/browse/COCOON-2129?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Vadim Gritsenko updated COCOON-2129:


Affects version (Component): Parent values: Blocks: Mail(10170). Level 1 
values: 1.0.0-M1(10194). 
Fix version (Component): Parent values: Blocks: Mail(10242). Level 1 
values: 1.0.0-RC1(10267). 
  Fix Version/s: 2.2-dev (Current SVN)

Applied to Cocoon trunk

> MailMessageSender does not allow setting of mail body by URL
> 
>
> Key: COCOON-2129
> URL: https://issues.apache.org/jira/browse/COCOON-2129
> Project: Cocoon
>  Issue Type: Bug
>  Components: Blocks: Mail
>Affects Versions: 2.1.11-dev (Current SVN), 2.2-dev (Current SVN)
>Reporter: Robin Wyles
>Priority: Minor
> Fix For: 2.2-dev (Current SVN)
>
> Attachments: MailMessageSender.patch
>
>
> A simple null check on the wrong property prevents MailMessageSender working 
> when setting the email body content from a URL.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.



Re: Re: Cocoon Profiler development

2007-10-23 Thread András Hatvani
Hi Joerg,

thanks for your quick reply and sorry for my delay.
On the page http://cocoon.apache.org/2.2/blocks/1204_1_1.html you wrote:
"This list of blocks hasn't been released yet. Your help is more than
appreciated to make them ready for a release as Cocoon 2.2 block."
I have my focus on the performance and I think the Profiler is a tool which
can help web developers to optimize their code.
But as stated on the before mentioned web page the development of this block
should be supported and that's the reason, why I would like to participate.
I've started with checking out and analyzing the existing code, but I don't
know, who else works on this block, is there already a design, are there
timelines etc.,
so mostly organisatoric questions for the begin.

Andras

On 10/17/07 5:27 PMs, András Hatvani wrote:
>
> > I would like to work on the Cocoon Profiler, but since I never worked
> > on an open source project I have no idea where to start.
> > Can you please advise me where to start?
>
> What exactly do you have in mind? Have you already been working with it
> and do you want to extent its functionality?
>
> The first thing is usually to have a look at the open source. Therefore
> get your copy from the SVN repository. Depending on the size of your
> potential contribution it's a good idea to discuss about your proposal
> on this list. Finally you can raise an enhancement request in our issue
> tracking system Jira and attach your code/patch there. After this it's
> up to us to apply the change - which unfortunately takes too often too
> much time. Bugging us frequently might help ;) Most of the stuff is
> explained in more detail at http://cocoon.apache.org/2.1/1177.html (not
> every information in it might be up to date).
>
> Hope this helps and gets you started.
>
> Joerg
>
>


ForrestBot build for cocoon-docs FAILED

2007-10-23 Thread Forrestbot
Automated build for cocoon-docs FAILED
Log attached.

--
Forrestbot run ended at 24 October 12:25 AM
Using Forrest 0.9-dev
Forrestbot administrator: ForrestBot
--

 [echo] 
  ... Forrest render START 2007-10-24 12:02:16
  ... Rendering docs in 
/export/home/config/forrestbot-trunk/conf/work/cocoon-docs


check-java-version:
 [echo] This is apache-forrest-0.9-dev
 [echo] Using Java 1.4 from /usr/j2se/jre

init-props:
[mkdir] Created dir: 
/export/home/config/forrestbot-trunk/conf/work/cocoon-docs/tmp

echo-settings:

check-skin:

init-proxy:

fetch-skins-descriptors:

fetch-skin:

unpack-skins:

init-skins:

fetch-plugins-descriptors:
 [copy] Copying 1 file to 
/export/home/config/forrestbot-trunk/conf/work/cocoon-docs/tmp
 [copy] Copying 1 file to 
/export/home/config/forrestbot-trunk/conf/work/cocoon-docs/tmp
 [echo] Fetching plugins descriptor: 
http://forrest.apache.org/plugins/plugins.xml
  [get] Getting: http://forrest.apache.org/plugins/plugins.xml
  [get] To: 
/export/home/config/forrestbot-trunk/conf/work/cocoon-docs/tmp/plugins-1.xml
  [get] local file date : Tue Apr 10 05:50:24 GMT+00:00 2007
  [get] .
  [get] last modified = Wed Apr 11 02:07:04 GMT+00:00 2007
 [echo] Fetching plugins descriptor: 
http://forrest.apache.org/plugins/whiteboard-plugins.xml
  [get] Getting: http://forrest.apache.org/plugins/whiteboard-plugins.xml
  [get] To: 
/export/home/config/forrestbot-trunk/conf/work/cocoon-docs/tmp/plugins-2.xml
  [get] local file date : Sat Sep 01 21:45:45 GMT+00:00 2007
  [get] Not modified - so not downloaded
 [echo] Plugin list loaded from 
http://forrest.apache.org/plugins/plugins.xml.
 [echo] Plugin list loaded from 
http://forrest.apache.org/plugins/whiteboard-plugins.xml.

init-plugins:
[mkdir] Created dir: 
/export/home/config/forrestbot-trunk/conf/work/cocoon-docs/webapp/conf
 [copy] Copying 1 file to 
/export/home/config/forrestbot-trunk/conf/work/cocoon-docs/tmp
 [copy] Copying 1 file to 
/export/home/config/forrestbot-trunk/conf/work/cocoon-docs/tmp
 [copy] Copying 1 file to 
/export/home/config/forrestbot-trunk/conf/work/cocoon-docs/tmp
 [copy] Copying 1 file to 
/export/home/config/forrestbot-trunk/conf/work/cocoon-docs/tmp
 [copy] Copying 1 file to 
/export/home/config/forrestbot-trunk/conf/work/cocoon-docs/tmp
 [echo] 
  --
  Installing plugin: org.apache.forrest.plugin.output.pdf
  --
   

check-plugin:
 [echo] org.apache.forrest.plugin.output.pdf is available in the build dir. 
Trying to update it...

init-props:

echo-settings:

init-proxy:

fetch-plugins-descriptors:

fetch-plugin:
 [echo] Trying to find the description of 
org.apache.forrest.plugin.output.pdf in the different descriptor files
 [echo] Using the descriptor file 
/export/home/config/forrestbot-trunk/conf/work/cocoon-docs/tmp/plugins-1.xml...
 [xslt] Processing 
/export/home/config/forrestbot-trunk/conf/work/cocoon-docs/tmp/plugins-1.xml to 
/export/home/config/forrestbot-trunk/conf/work/cocoon-docs/tmp/pluginlist2fetchbuild.xml
 [xslt] Loading stylesheet 
/export/opt/forrest-trunk/main/var/pluginlist2fetch.xsl

fetch-local-unversioned-plugin:

get-local:
 [echo] Trying to locally get org.apache.forrest.plugin.output.pdf
 [echo] Looking in local /export/opt/forrest-trunk/plugins
 [echo] Found !

init-build-compiler:

echo-init:

init:

compile:

jar:

local-deploy:
 [echo] Locally deploying org.apache.forrest.plugin.output.pdf

build:
 [echo] Plugin org.apache.forrest.plugin.output.pdf deployed ! Ready to 
configure

fetch-remote-unversioned-plugin-version-forrest:

fetch-remote-unversioned-plugin-unversion-forrest:

has-been-downloaded:

downloaded-message:

uptodate-message:

not-found-message:
 [echo] Fetch-plugin Ok, installing !

unpack-plugin:

install-plugin:

configure-plugin:

configure-output-plugin:
 [echo] Mounting output plugin: org.apache.forrest.plugin.output.pdf
 [xslt] Processing 
/export/home/config/forrestbot-trunk/conf/work/cocoon-docs/tmp/output.xmap to 
/export/home/config/forrestbot-trunk/conf/work/cocoon-docs/tmp/output.xmap.new
 [xslt] Loading stylesheet 
/export/opt/forrest-trunk/main/var/pluginMountSnippet.xsl
 [move] Moving 1 file to 
/export/home/config/forrestbot-trunk/conf/work/cocoon-docs/tmp

configure-plugin-locationmap:
 [echo] Mounting plugin locationmap for org.apache.forrest.plugin.output.pdf
 [xslt] Processing 
/export/home/config/forrestbot-trunk/conf/work/cocoon-docs/tmp/locationmap.xml 
to 
/export/home/config/forrestbot-trunk/conf/work/cocoon-docs/tmp/locationmap.xml.new
 [xslt] Loading stylesheet 
/export/opt/forrest-trunk/main/var/pluginLmMountSnippet.xsl
 [move] Moving 1 file to 
/export/home/config/forrestbot-t

Re: svn commit: r586238 [2/2] - in /cocoon/trunk/core: cocoon-core/src/main/java/org/apache/cocoon/servlet/ cocoon-core/src/main/java/org/apache/cocoon/servlet/multipart/ cocoon-core/src/main/java/org

2007-10-23 Thread Vadim Gritsenko

Grzegorz Kossakowski wrote:

I thought that I was running a trunk version (done svn up before posting) but I 
forgot that I
branched some modules before RC2 release and my working copy was sticking to 
these branches.

Now everything runs fine. Sorry for a noise!


No problem... I almost forgot about branches, will have to fix those too...

Vadim


Re: svn commit: r586238 [2/2] - in /cocoon/trunk/core: cocoon-core/src/main/java/org/apache/cocoon/servlet/ cocoon-core/src/main/java/org/apache/cocoon/servlet/multipart/ cocoon-core/src/main/java/org

2007-10-23 Thread Grzegorz Kossakowski
Vadim Gritsenko pisze:
> Grzegorz Kossakowski wrote:
>> [EMAIL PROTECTED] pisze:
>>> +++
>>> cocoon/trunk/core/cocoon-pipeline/cocoon-pipeline-components/src/main/java/org/apache/cocoon/transformation/TraxTransformer.java
>>> Thu Oct 18 19:45:18 2007
> 
>>>  if (this.transformerHandler instanceof LogEnabled) {
>>> -   
>>> ((LogEnabled)this.transformerHandler).enableLogging(getLogger());
>>> +((LogEnabled) this.transformerHandler).enableLogging(new
>>> CLLoggerWrapper(getLogger()));
>>>  }
>>
>> This commit is causing compilation errors on my side. Nothing
>> surprising here, there is no valid
>> constructor in CLLoggerWrapper suitable for this change.
> 
> There is: getLogger() returns commons logging Log object now. You should
> update (at least cocoon-pipeline module, AbstractXMLProducer class) and
> do a clean build. I know, it is a pain, and takes a lot of time, but
> there is no way around it :)

:)
I thought that I was running a trunk version (done svn up before posting) but I 
forgot that I
branched some modules before RC2 release and my working copy was sticking to 
these branches.

Now everything runs fine. Sorry for a noise!

Oh, and many thanks for your big work with loggers!

-- 
Grzegorz Kossakowski
Committer and PMC Member of Apache Cocoon
http://reflectingonthevicissitudes.wordpress.com/


Re: Compiled XSLT

2007-10-23 Thread Tobia Conforto
Ard Schrijvers wrote:
> > > I'm wondering if there is a way to pre-compile XSLT into Java
> > > classes, using the command-line xsltc compiler, put those classes
> > > somewhere in Cocoon's classpath and use them as transformers.
> >
> > Actually, since Cocoon can already run the cached compiled
> > stylesheets it shouldn't be that hard to get it to use them in the
> > first place.
>
> Yes. You can take a look at the excalibur xmlutil in
> org.apache.excalibur.xml.xslt.XSLTProcessorImpl and write your own
> that for example first looks at compiled version at some place.

Thank you for your suggestion.

I was able to understand how XSLTProcessor, TraxProcessor, and
TraxTransformer relate to one another and I could write my own
xslt-processor-role that loads pre-compiled stylesheets from the
classpath.

Here it is, if anybody is interested or wants to take it from here.
Suggestions are welcome.


Tobia


=== cocoon.xconf ===






=== sitemap.xmap ===


clxsltc


...



=== Java patch =

--- cocoon-2.1.10/src/java/org/apache/cocoon/components/xslt/TraxProcessor.java 
2006-12-19 12:03:37.0 +0100
+++ ClassLoadingTraxProcessor.java  2007-10-23 18:03:34.0 +0200
@@ -14,7 +14,7 @@
  * See the License for the specific language governing permissions and
  * limitations under the License.
  */
-package org.apache.cocoon.components.xslt;
+import org.apache.cocoon.components.xslt.*;

 import java.io.File;
 import java.io.IOException;
@@ -72,6 +72,14 @@

-public class TraxProcessor extends AbstractLogEnabled implements 
XSLTProcessor, Serviceable, Initializable, Disposable, Parameterizable,
+public class ClassLoadingTraxProcessor extends AbstractLogEnabled implements 
XSLTProcessor, Serviceable, Initializable, Disposable, Parameterizable,
 Recyclable, URIResolver {
+
+   private class SourceWrapper implements javax.xml.transform.Source {
+   private String id;
+   public SourceWrapper(String id) { this.id = id; }
+   public String getSystemId() { return id; }
+   public void setSystemId(String id) {}
+   }
+
 /** The store service instance */
 protected Store m_store;

@@ -208,6 +216,36 @@

 TraxErrorListener errorListener = new TraxErrorListener(getLogger(), 
stylesheet.getURI());
 try{
+
+   if (m_factory instanceof 
org.apache.xalan.xsltc.trax.TransformerFactoryImpl
+   && id.endsWith(".class")) {
+
+   // custom code to load pre-compiled translet 
from the classpath
+
+   if(getLogger().isDebugEnabled())
+   getLogger().debug("Loading Templates 
from classpath " + id);
+
+   m_factory.setAttribute("use-classpath", 
Boolean.TRUE);
+
+   final Templates template = 
m_factory.newTemplates(new SourceWrapper(id));
+
+   putTemplates(template, stylesheet, id);
+
+   final TransformerHandler handler = 
m_factory.newTransformerHandler(template);
+   
handler.getTransformer().setErrorListener(errorListener);
+   handler.getTransformer().setURIResolver(this);
+
+   m_factory.setAttribute("use-classpath", 
Boolean.FALSE);
+
+   final SourceValidity alwaysValid = new 
SourceValidity() {
+   public int isValid() { return 1; }
+   public int isValid(SourceValidity 
newValidity) { return 1; }
+   };
+
+   return new 
MyTransformerHandlerAndValidity(handler, alwaysValid);
+   // end custom code
+   }
+
 if (getLogger().isDebugEnabled()) {
 getLogger().debug("Creating new Templates for " + id);
 }



[jira] Created: (COCOON-2141) Xinha leads to dojo failure for Xinha and HtmlArea

2007-10-23 Thread Felix Knecht (JIRA)
Xinha leads to dojo failure for Xinha and HtmlArea
--

 Key: COCOON-2141
 URL: https://issues.apache.org/jira/browse/COCOON-2141
 Project: Cocoon
  Issue Type: Bug
  Components: Blocks: Forms
Affects Versions: 2.2-dev (Current SVN)
Reporter: Felix Knecht


Loading XinhaCore.js causes dojo to fail when the form is being submitted.

Fehler: too much recursion
Quelldatei: 
http://localhost:/cocoon-ajax-impl/resource/external/dojo/dojo.js
Zeile: 96

I'm going to comment the loading and sample of the Xinha stuff until a solution 
is found.

Felix

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.



ForrestBot build for cocoon-docs FAILED

2007-10-23 Thread Forrestbot
Automated build for cocoon-docs FAILED
Log attached.

--
Forrestbot run ended at 23 October 12:27 PM
Using Forrest 0.9-dev
Forrestbot administrator: ForrestBot
--

 [echo] 
  ... Forrest render START 2007-10-23 12:02:12
  ... Rendering docs in 
/export/home/config/forrestbot-trunk/conf/work/cocoon-docs


check-java-version:
 [echo] This is apache-forrest-0.9-dev
 [echo] Using Java 1.4 from /usr/j2se/jre

init-props:
[mkdir] Created dir: 
/export/home/config/forrestbot-trunk/conf/work/cocoon-docs/tmp

echo-settings:

check-skin:

init-proxy:

fetch-skins-descriptors:

fetch-skin:

unpack-skins:

init-skins:

fetch-plugins-descriptors:
 [copy] Copying 1 file to 
/export/home/config/forrestbot-trunk/conf/work/cocoon-docs/tmp
 [copy] Copying 1 file to 
/export/home/config/forrestbot-trunk/conf/work/cocoon-docs/tmp
 [echo] Fetching plugins descriptor: 
http://forrest.apache.org/plugins/plugins.xml
  [get] Getting: http://forrest.apache.org/plugins/plugins.xml
  [get] To: 
/export/home/config/forrestbot-trunk/conf/work/cocoon-docs/tmp/plugins-1.xml
  [get] local file date : Tue Apr 10 05:50:24 GMT+00:00 2007
  [get] .
  [get] last modified = Wed Apr 11 02:07:04 GMT+00:00 2007
 [echo] Fetching plugins descriptor: 
http://forrest.apache.org/plugins/whiteboard-plugins.xml
  [get] Getting: http://forrest.apache.org/plugins/whiteboard-plugins.xml
  [get] To: 
/export/home/config/forrestbot-trunk/conf/work/cocoon-docs/tmp/plugins-2.xml
  [get] local file date : Sat Sep 01 21:45:45 GMT+00:00 2007
  [get] Not modified - so not downloaded
 [echo] Plugin list loaded from 
http://forrest.apache.org/plugins/plugins.xml.
 [echo] Plugin list loaded from 
http://forrest.apache.org/plugins/whiteboard-plugins.xml.

init-plugins:
[mkdir] Created dir: 
/export/home/config/forrestbot-trunk/conf/work/cocoon-docs/webapp/conf
 [copy] Copying 1 file to 
/export/home/config/forrestbot-trunk/conf/work/cocoon-docs/tmp
 [copy] Copying 1 file to 
/export/home/config/forrestbot-trunk/conf/work/cocoon-docs/tmp
 [copy] Copying 1 file to 
/export/home/config/forrestbot-trunk/conf/work/cocoon-docs/tmp
 [copy] Copying 1 file to 
/export/home/config/forrestbot-trunk/conf/work/cocoon-docs/tmp
 [copy] Copying 1 file to 
/export/home/config/forrestbot-trunk/conf/work/cocoon-docs/tmp
 [echo] 
  --
  Installing plugin: org.apache.forrest.plugin.output.pdf
  --
   

check-plugin:
 [echo] org.apache.forrest.plugin.output.pdf is available in the build dir. 
Trying to update it...

init-props:

echo-settings:

init-proxy:

fetch-plugins-descriptors:

fetch-plugin:
 [echo] Trying to find the description of 
org.apache.forrest.plugin.output.pdf in the different descriptor files
 [echo] Using the descriptor file 
/export/home/config/forrestbot-trunk/conf/work/cocoon-docs/tmp/plugins-1.xml...
 [xslt] Processing 
/export/home/config/forrestbot-trunk/conf/work/cocoon-docs/tmp/plugins-1.xml to 
/export/home/config/forrestbot-trunk/conf/work/cocoon-docs/tmp/pluginlist2fetchbuild.xml
 [xslt] Loading stylesheet 
/export/opt/forrest-trunk/main/var/pluginlist2fetch.xsl

fetch-local-unversioned-plugin:

get-local:
 [echo] Trying to locally get org.apache.forrest.plugin.output.pdf
 [echo] Looking in local /export/opt/forrest-trunk/plugins
 [echo] Found !

init-build-compiler:

echo-init:

init:

compile:

jar:

local-deploy:
 [echo] Locally deploying org.apache.forrest.plugin.output.pdf

build:
 [echo] Plugin org.apache.forrest.plugin.output.pdf deployed ! Ready to 
configure

fetch-remote-unversioned-plugin-version-forrest:

fetch-remote-unversioned-plugin-unversion-forrest:

has-been-downloaded:

downloaded-message:

uptodate-message:

not-found-message:
 [echo] Fetch-plugin Ok, installing !

unpack-plugin:

install-plugin:

configure-plugin:

configure-output-plugin:
 [echo] Mounting output plugin: org.apache.forrest.plugin.output.pdf
 [xslt] Processing 
/export/home/config/forrestbot-trunk/conf/work/cocoon-docs/tmp/output.xmap to 
/export/home/config/forrestbot-trunk/conf/work/cocoon-docs/tmp/output.xmap.new
 [xslt] Loading stylesheet 
/export/opt/forrest-trunk/main/var/pluginMountSnippet.xsl
 [move] Moving 1 file to 
/export/home/config/forrestbot-trunk/conf/work/cocoon-docs/tmp

configure-plugin-locationmap:
 [echo] Mounting plugin locationmap for org.apache.forrest.plugin.output.pdf
 [xslt] Processing 
/export/home/config/forrestbot-trunk/conf/work/cocoon-docs/tmp/locationmap.xml 
to 
/export/home/config/forrestbot-trunk/conf/work/cocoon-docs/tmp/locationmap.xml.new
 [xslt] Loading stylesheet 
/export/opt/forrest-trunk/main/var/pluginLmMountSnippet.xsl
 [move] Moving 1 file to 
/export/home/config/forrestbot-t