Re: Query Database & Produce Excel Document

2008-05-14 Thread Derek Hohls
As per below - except I would not be using ESQL but the SQL transformer
to read data from the database and create the XML... 

>>> On 2008/05/14 at 08:44, in message <[EMAIL PROTECTED]>, Ken Starks <[EMAIL 
>>> PROTECTED]> wrote:
If you are new to Cocoon, I would put the email requirement, and
produce a (virtual) spreadsheet in the user's browser.

You scheme of work can then follow the most usual Cocoon sitemap design:
i) A generator (Non-XML to XML)
ii) One or more Transformation steps (XML_1 to XML_2 to XML_3 to ..., as 
required)
iii) A serialiser (XML to Non-XML)

i. I generally use an ESQL logicsheet for reading my database, which is 
a generator
and has to go at the start of your pipeline. But I find it simpler than 
an 'Action' which
can go anywhere in the pipeline. It turns your payload of data into an 
XML format
which you can design yourself; as well as coding various errors and 
empty payloads
in XML. (cf Appendix E of Mozcar and Aston )

ii. You then need to write XSLT to turn this XML into something 
acceptable to the
HSSF serialiser. I'm not sure how up to date it is, or how up to date 
the HSSF
serialiser, but you can get some documentation from:

www.jfree.org/jworkbook/download/gnumeric-xml.pdf 

Data values are pretty much OK to deal with, but formulas are hell 
(IMHO). No
wonder its called HSSF (Horrible Spread Sheet Format).

iii. The HSSF serialiser can be used out of the box. Look at the Cocoon
Samples 'Hello World' (Excel pipeline) to see how to set the correct
Mime-type.

In fact, the best approach for most people, is to start with a working 
copy of
the Hello World Example, and gradually elaborate it. After a bit of 
experience
you will know what kind of XMl at the start of the Transformation stage will
make life easy. If it is hard to produce it using ESQL, you can consider 
doing
some preliminary work it in the database, using a database view.

(i.e. Copy the main bits of /samples/hello-world/ to
/MyHello-World.
You need:
content/hello.xml
sitemap.xmap with most map:match elements deleted apart from hello.xml, 
hello.html, hello.txt
style/xsl/page2html.xsl
style/xsl/page2xsl.xml

Unfortunately, the pipeline for hello.xsl has been carefully hidden and 
is no
longer part of samples/hello-world/sitemap.xmap.

It is now in samples/blocks/poi/sitemap.xmap, but you might as well just 
copy this
into Myhello-world/sitemap.xmap:


   



   
  
Point your browser to:
  http://your/usual/cocoon/url/and/port/Myhello-world/hello.xls 

Or if you want differently named source files, use a wildcard:

   



   

... and use widldcards in all the other pipelines too. 

Edit hello.xml, or write something similar, and see what difference it 
makes to the
various styles of output.

You can look at the XML at any stage either by defining a special 
pipeline, or
by defining a Cocoon view. The special pipeline is easier, frankly, if 
you are a
beginner.



Matthew Monkan wrote:
> Hey everyone. I'm somewhat new to XML and Cocoon, so please pardon my
> ignorance with the subject. :confused:
>
> I am using Cocoon 2.1.11 on Windows XP. I've been using the Moczar & Aston
> book and have been able to create the static page examples in Chapter 7
> within the downloaded Cocoon folder.
>
> Ultimately, I need to be able to query info from a database and output an
> Excel spreadsheet. Then, I need Cocoon to send out an e-mail with the Excel
> spreadsheet attached.
>
> I basically need help understanding what tools in Cocoon I need to use. Can
> someone verify these or make suggestions? Here are some of the things I
> listed down so far:
>
> For DB to Excel document:
>
> SQLTransformer (queries the database, passing the result back in the SAX
> event stream)
> HSSF Serializer (turns SAX events into Excel spreadsheet document)
>
> To send out the e-mail:
> Cocoon mail block (SendMail Transformer?)
>
> I don't really understand what generator to use. I'm trying to create an
> example of this offline using MySQL. So for example, I have a small table
> created in MySQL; I want to say, stick some data from it in some shape or
> form into Excel, and send out a quick e-mail to a hardcoded e-mail address
> with the Excel document attached.
>
> I also need to be able to run this from the offline CLI.
>
> Can someone help me understand the most optimal flow of information I would
> use. I want to create a sequence diagram to help me visualize this, so if
> someone could help me understand what info is being passed where, that would
> be extremely helpful. All the terminology in Cocoon is killing me, and I
> need help focusing on what is most important to know for these requirements.
>   


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


-- 
This message is subject to the CSIR's copyright terms and conditions, e-mail 
legal notice, and implemented Open Document Format (ODF) standar

Re: WebContinuation is null when using a custom Generator

2008-05-14 Thread shai200

My custom generator's output is xml, which then goes into further
transformations. I want to have flow between my pages. For now, what I do is
I have a JXTemplateGenerator that spits out a very simple XML:

#{$cocoon/continuation/id}

I then take this continuation ID and place it in the form action value of my
HTML, so that I can use a flowscript. What I wanted to do is skip this step
and just use the flowscript with my custom generator. But I guess there's no
point because then I'll be foregoing the power of JXTemplates.

Shai

Joerg Heinicke wrote:
> 
> On 14.05.2008 21:08, shai200 wrote:
>> I'm trying to use a flowscript with a custom generator (not a
>> JXTemplate), so
>> I'm trying to get access to the continuation Id. But when I invoke
>> 
>> WebContinuation kont = FlowHelper.getWebContinuation(objectModel);
>> 
>> in the setup() method, kont is null... how do I retrieve it? Do I need to
>> work with a org.apache.cocoon.components.flow.ContinuationsManagerImpl ? 
> 
>  From what I understand you just try to retrieve it in the Java code of 
> your custom generator? For the continuation you don't need the 
> JXTemplateGenerator, but "something" that puts it into the object model. 
> Since I don't know what your application I can't really recommend how to 
> do it but you might want to take a look at the callers of 
> FlowHelper.setWebContinuation(..). Maybe that helps you.
> 
> Joerg
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/WebContinuation-is-null-when-using-a-custom-Generator-tp17244132p17245761.html
Sent from the Cocoon - Users mailing list archive at Nabble.com.


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



Re: WebContinuation is null when using a custom Generator

2008-05-14 Thread Joerg Heinicke

On 14.05.2008 21:08, shai200 wrote:

I'm trying to use a flowscript with a custom generator (not a JXTemplate), so
I'm trying to get access to the continuation Id. But when I invoke

WebContinuation kont = FlowHelper.getWebContinuation(objectModel);

in the setup() method, kont is null... how do I retrieve it? Do I need to
work with a org.apache.cocoon.components.flow.ContinuationsManagerImpl ? 


From what I understand you just try to retrieve it in the Java code of 
your custom generator? For the continuation you don't need the 
JXTemplateGenerator, but "something" that puts it into the object model. 
Since I don't know what your application I can't really recommend how to 
do it but you might want to take a look at the callers of 
FlowHelper.setWebContinuation(..). Maybe that helps you.


Joerg

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



Re: CForms Aggregator Widget--preserving line breaks in text areas

2008-05-14 Thread Joerg Heinicke

On 14.05.2008 13:00, Paul Joseph wrote:


However, when I use a Text Area type widget in an aggregator, I find
that the Aggregator does not seem to be able to retrieve and display
any information in any of the widgets that make up the aggregator, IF
I enter even a single line break in the Text Area widget that is part
of the Aggregator widget.

It is able to save it with line breaks to the database--it is only on
retrieval that it the Aggregator seems to have difficulty due to the
line breaks.


With aggregator you mean the aggregate field widget [1]? Can you show 
some code?


Joerg

[1] http://cocoon.apache.org/2.2/blocks/forms/1.0/486_1_1.html

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



WebContinuation is null when using a custom Generator

2008-05-14 Thread shai200

I'm trying to use a flowscript with a custom generator (not a JXTemplate), so
I'm trying to get access to the continuation Id. But when I invoke

WebContinuation kont = FlowHelper.getWebContinuation(objectModel);

in the setup() method, kont is null... how do I retrieve it? Do I need to
work with a org.apache.cocoon.components.flow.ContinuationsManagerImpl ? 


-- 
View this message in context: 
http://www.nabble.com/WebContinuation-is-null-when-using-a-custom-Generator-tp17244132p17244132.html
Sent from the Cocoon - Users mailing list archive at Nabble.com.


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



Re: 2.2 OutOfMemoryError

2008-05-14 Thread Andre Thenot

On May 14, 2008, at 6:42, Luca Morandini wrote:
No matter how much you increase your PermGenSpace, sooner or later  
you will hit the wall (every redeploy decreases the amount of  
PermGenSpace available).


Ok thanks, this answers my question. I'll simply restart the server at  
each deployment which, as you pointed out, is not terribly frequent in  
production.



Andre.


--
[EMAIL PROTECTED]





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



Re: Query Database & Produce Excel Document

2008-05-14 Thread Ken Starks

If you are new to Cocoon, I would put the email requirement, and
produce a (virtual) spreadsheet in the user's browser.

You scheme of work can then follow the most usual Cocoon sitemap design:
i) A generator (Non-XML to XML)
ii) One or more Transformation steps (XML_1 to XML_2 to XML_3 to ..., as 
required)

iii) A serialiser (XML to Non-XML)

i. I generally use an ESQL logicsheet for reading my database, which is 
a generator
and has to go at the start of your pipeline. But I find it simpler than 
an 'Action' which
can go anywhere in the pipeline. It turns your payload of data into an 
XML format
which you can design yourself; as well as coding various errors and 
empty payloads

in XML. (cf Appendix E of Mozcar and Aston )

ii. You then need to write XSLT to turn this XML into something 
acceptable to the
HSSF serialiser. I'm not sure how up to date it is, or how up to date 
the HSSF

serialiser, but you can get some documentation from:

www.jfree.org/jworkbook/download/gnumeric-xml.pdf

Data values are pretty much OK to deal with, but formulas are hell 
(IMHO). No

wonder its called HSSF (Horrible Spread Sheet Format).

iii. The HSSF serialiser can be used out of the box. Look at the Cocoon
Samples 'Hello World' (Excel pipeline) to see how to set the correct
Mime-type.

In fact, the best approach for most people, is to start with a working 
copy of
the Hello World Example, and gradually elaborate it. After a bit of 
experience

you will know what kind of XMl at the start of the Transformation stage will
make life easy. If it is hard to produce it using ESQL, you can consider 
doing

some preliminary work it in the database, using a database view.

(i.e. Copy the main bits of /samples/hello-world/ to
/MyHello-World.
You need:
content/hello.xml
sitemap.xmap with most map:match elements deleted apart from hello.xml, 
hello.html, hello.txt

style/xsl/page2html.xsl
style/xsl/page2xsl.xml

Unfortunately, the pipeline for hello.xsl has been carefully hidden and 
is no

longer part of samples/hello-world/sitemap.xmap.

It is now in samples/blocks/poi/sitemap.xmap, but you might as well just 
copy this

into Myhello-world/sitemap.xmap:


  
   
   
   
  
 
Point your browser to:

 http://your/usual/cocoon/url/and/port/Myhello-world/hello.xls

Or if you want differently named source files, use a wildcard:

  
   
   
   
  

... and use widldcards in all the other pipelines too. 

Edit hello.xml, or write something similar, and see what difference it 
makes to the

various styles of output.

You can look at the XML at any stage either by defining a special 
pipeline, or
by defining a Cocoon view. The special pipeline is easier, frankly, if 
you are a

beginner.



Matthew Monkan wrote:

Hey everyone. I'm somewhat new to XML and Cocoon, so please pardon my
ignorance with the subject. :confused:

I am using Cocoon 2.1.11 on Windows XP. I've been using the Moczar & Aston
book and have been able to create the static page examples in Chapter 7
within the downloaded Cocoon folder.

Ultimately, I need to be able to query info from a database and output an
Excel spreadsheet. Then, I need Cocoon to send out an e-mail with the Excel
spreadsheet attached.

I basically need help understanding what tools in Cocoon I need to use. Can
someone verify these or make suggestions? Here are some of the things I
listed down so far:

For DB to Excel document:

SQLTransformer (queries the database, passing the result back in the SAX
event stream)
HSSF Serializer (turns SAX events into Excel spreadsheet document)

To send out the e-mail:
Cocoon mail block (SendMail Transformer?)

I don't really understand what generator to use. I'm trying to create an
example of this offline using MySQL. So for example, I have a small table
created in MySQL; I want to say, stick some data from it in some shape or
form into Excel, and send out a quick e-mail to a hardcoded e-mail address
with the Excel document attached.

I also need to be able to run this from the offline CLI.

Can someone help me understand the most optimal flow of information I would
use. I want to create a sequence diagram to help me visualize this, so if
someone could help me understand what info is being passed where, that would
be extremely helpful. All the terminology in Cocoon is killing me, and I
need help focusing on what is most important to know for these requirements.
  



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



CForms Aggregator Widget--preserving line breaks in text areas

2008-05-14 Thread Paul Joseph
Hi There,

I use the Text Area widget extensively in my forms and am able to enter text 
with line breaks, save it to the database, retrieve it etc. with no problems.

However, when I use a Text Area type widget in an aggregator, I find that the 
Aggregator does not seem to be able to retrieve and display any information in 
any of the widgets that make up the aggregator, IF I enter even a single line 
break in the Text Area widget that is part of the Aggregator widget.

It is able to save it with line breaks to the database--it is only on retrieval 
that it the Aggregator seems to have difficulty due to the line breaks.

Any ideas?

thx
Paul Joseph
This communication, including attachments, is for the exclusive use of the 
addressee and may contain proprietary, confidential, or privileged information. 
 If you are not the intended recipient, any use, copying, disclosure, 
dissemination, or distribution is strictly prohibited.  If you are not the 
intended recipient, please notify the sender by return mail and delete this 
communication and destroy all copies.

Re: Query Database & Produce Excel Document

2008-05-14 Thread warrell harries
I have done exactly this (even under Cocoon CLI) but don't have the code to
hand. It's quite straightforward except that the sendmail transformer
invoked the pipeline to build the s/s which took so long that the sendmail
connection was dropped. To solve this I ran one CLI to build the s/s and
then scheduled the sendmail one an hour later.

I will dig out the code later.

Regards


Re: Initializing multi-value checkbox selections (Bug?)

2008-05-14 Thread Derek Hohls
Can anyone please have a look at this - not sure 
what the real problem is (syntax?  code?)

Thanks
Derek

>>> On 2008/05/08 at 03:51, in message <[EMAIL PROTECTED]>, "Derek Hohls" 
>>> <[EMAIL PROTECTED]> wrote:
Using Cocoon 2.1.8

I am struggling to get a multi-value form widget to show
items as "checked".   The form definition looks like this:


  Transport
  
  
Bike
Car
  


but the resulting form does not show any items as checked.

I do not have the same problem with radio boxes; eg.

  1.1 Age:
  
  
under 
25
over 25
  


shows up just fine.

Is this is a syntax issue?  (The above also applies if I use checked="checked").

Thanks,
Derek



-- 
This message is subject to the CSIR's copyright terms and conditions, e-mail 
legal notice, and implemented Open Document Format (ODF) standard. 
The full disclaimer details can be found at 
http://www.csir.co.za/disclaimer.html.

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


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



-- 
This message is subject to the CSIR's copyright terms and conditions, e-mail 
legal notice, and implemented Open Document Format (ODF) standard. 
The full disclaimer details can be found at 
http://www.csir.co.za/disclaimer.html.

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


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



Query Database & Produce Excel Document

2008-05-14 Thread Matthew Monkan

Hey everyone. I'm somewhat new to XML and Cocoon, so please pardon my
ignorance with the subject. :confused:

I am using Cocoon 2.1.11 on Windows XP. I've been using the Moczar & Aston
book and have been able to create the static page examples in Chapter 7
within the downloaded Cocoon folder.

Ultimately, I need to be able to query info from a database and output an
Excel spreadsheet. Then, I need Cocoon to send out an e-mail with the Excel
spreadsheet attached.

I basically need help understanding what tools in Cocoon I need to use. Can
someone verify these or make suggestions? Here are some of the things I
listed down so far:

For DB to Excel document:

SQLTransformer (queries the database, passing the result back in the SAX
event stream)
HSSF Serializer (turns SAX events into Excel spreadsheet document)

To send out the e-mail:
Cocoon mail block (SendMail Transformer?)

I don't really understand what generator to use. I'm trying to create an
example of this offline using MySQL. So for example, I have a small table
created in MySQL; I want to say, stick some data from it in some shape or
form into Excel, and send out a quick e-mail to a hardcoded e-mail address
with the Excel document attached.

I also need to be able to run this from the offline CLI.

Can someone help me understand the most optimal flow of information I would
use. I want to create a sequence diagram to help me visualize this, so if
someone could help me understand what info is being passed where, that would
be extremely helpful. All the terminology in Cocoon is killing me, and I
need help focusing on what is most important to know for these requirements.
-- 
View this message in context: 
http://www.nabble.com/Query-Database---Produce-Excel-Document-tp17232331p17232331.html
Sent from the Cocoon - Users mailing list archive at Nabble.com.


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



XML binding in the default namespace

2008-05-14 Thread Robin Wyles

Hi All,

I'm having trouble binding to a XML document with a declared default  
namespace on C2.2. I've read back over the many posts on the subject  
on this list, and have enabled NSPrefixes for the SAXParser as  
suggested, but am still having problems. Here is the document to  
which I am binding:


http://www.w3.org/2005/Atom";>
test


... and the binding file:

http://apache.org/cocoon/forms/1.0#binding";
xmlns:fd="http://apache.org/cocoon/forms/1.0#definition";
xmlns="http://www.w3.org/2005/Atom";
path="/" >



This doesn't seem to work, no value is loaded for the   
element. I've also tried the following binding file, which still  
doesn't work:


http://apache.org/cocoon/forms/1.0#binding";
xmlns:fd="http://apache.org/cocoon/forms/1.0#definition";
xmlns:atom="http://www.w3.org/2005/Atom";
path="/" >



I can get it to work using  the following document and binding file:

http://www.w3.org/2005/Atom";>
test


http://apache.org/cocoon/forms/1.0#binding";
xmlns:fd="http://apache.org/cocoon/forms/1.0#definition";
path="/" >



However, I am not really able to declare the namespace prefixes in  
the source document like that - they really need to be specified in  
the defined default namespace. Am I missing something here, or are  
there really still issues with this?


If anyone could help I'd really appreciate it!

Thanks,

Robin








smime.p7s
Description: S/MIME cryptographic signature


Re: 2.2 OutOfMemoryError

2008-05-14 Thread Luca Morandini

Andre Thenot wrote:


I've been noticing the following error when deploying my cocoon WAR more 
than about 6-7 times without restarting the app server. This stack trace 
occurs on OS X and on Linux with JDK 1.5.0 in both cases. I am running 
JBoss 4.2.2GA; the memory settings are -Xms128m -Xmx512m.


Should I be restarting the app server every time I deploy the app or is 
this a leak for which I need to gather more information for an eventual 
bug report?


This is a well-known problem, caused by the non-removal of Proxy classes 
from the permanent generation portion of the Sun JVM memory.


Proxy classes are mainly generated by frameworks using AOP: Hibernate, 
Spring, etc., and, of course, from the applications using such AOP 
frameworks, like Cocoon 2.2.


No matter how much you increase your PermGenSpace, sooner or later you 
will hit the wall (every redeploy decreases the amount of PermGenSpace 
available).


Solutions ?

1) You may try to use the BEA JRockit JVM, which doesn't suffer from 
this particular problem (I switched to it for my Eclipse instance and 
lived happy thereafter).


2) You may stick to Sun JVM and just live with it in development (not 
many redeploy in Cocoon 2.2, after all), and in production too (there's 
a very limited need to redeploy in production, right ?).


Regards,


   Luca Morandini
www.lucamorandini.it



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



Re: 2.2 OutOfMemoryError

2008-05-14 Thread Felix Knecht

Hi Andre

Hello,

I've been noticing the following error when deploying my cocoon WAR 
more than about 6-7 times without restarting the app server. This 
stack trace occurs on OS X and on Linux with JDK 1.5.0 in both 
cases. I am running JBoss 4.2.2GA; the memory settings are -Xms128m 
-Xmx512m.


Should I be restarting the app server every time I deploy the app or 
is this a leak for which I need to gather more information for an 
eventual bug report?


You can try to increase PermGen space using i.e. -XX:MaxPermSize=256m as 
additional memory setting as this is running out of space.

(http://java.sun.com/j2se/embedded/faq.html)

HTH
Felix



Thanks for any input on this.

Andre.


05:00:32,152 INFO  [STDOUT] 05:00:31,367 ERROR [ContextLoader] Context 
initialization failed
org.springframework.beans.factory.BeanCreationException: Error 
creating bean with name 
'javax.servlet.http.HttpServletRequest/callstack': *Initialization of 
bean failed; nested exception is java.lang.OutOfMemoryError: PermGen 
space*
Caused by: 
java.lang.OutOfMemoryError: PermGen space

at java.lang.reflect.Proxy.defineClass0(Native Method)
at java.lang.reflect.Proxy.getProxyClass(Proxy.java:504)
at java.lang.reflect.Proxy.newProxyInstance(Proxy.java:581)
at 
org.springframework.aop.framework.JdkDynamicAopProxy.getProxy(JdkDynamicAopProxy.java:117)
at 
org.springframework.aop.framework.ProxyFactory.getProxy(ProxyFactory.java:110)
at 
org.springframework.aop.scope.ScopedProxyFactoryBean.setBeanFactory(ScopedProxyFactoryBean.java:109)
at 
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1162)
at 
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:425)
at 
org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:251)
at 
org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:156)
at 
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:248)
at 
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:160)
at 
org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:284)
at 
org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:352)
at 
org.springframework.web.context.ContextLoader.createWebApplicationContext 
(ContextLoader.java:244)
at 
org.springframework.web.context.ContextLoader.initWebApplicationContext 
(ContextLoader.java:187)
at 
org.springframework.web.context.ContextLoaderListener.contextInitialized 
(ContextLoaderListener.java:49)
at 
org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3856)
at 
org.apache.catalina.core.StandardContext.start(StandardContext.java:4361)
at 
org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:790)

at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:770)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:553)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

at java.lang.reflect.Method.invoke(Method.java:585)
at 
org.apache.tomcat.util.modeler.BaseModelMBean.invoke(BaseModelMBean.java:296)
at 
org.jboss.mx.server.RawDynamicInvoker.invoke(RawDynamicInvoker.java:164)

at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
at 
org.apache.catalina.core.StandardContext.init(StandardContext.java:5312)

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)




--
[EMAIL PROTECTED] 







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



2.2 OutOfMemoryError

2008-05-14 Thread Andre Thenot

Hello,

I've been noticing the following error when deploying my cocoon WAR  
more than about 6-7 times without restarting the app server. This  
stack trace occurs on OS X and on Linux with JDK 1.5.0 in both cases.  
I am running JBoss 4.2.2GA; the memory settings are -Xms128m -Xmx512m.


Should I be restarting the app server every time I deploy the app or  
is this a leak for which I need to gather more information for an  
eventual bug report?


Thanks for any input on this.

Andre.


05:00:32,152 INFO  [STDOUT] 05:00:31,367 ERROR [ContextLoader] Context  
initialization failed
org.springframework.beans.factory.BeanCreationException: Error  
creating bean with name 'javax.servlet.http.HttpServletRequest/ 
callstack': Initialization of bean failed; nested exception is  
java.lang.OutOfMemoryError: PermGen space

Caused by:
java.lang.OutOfMemoryError: PermGen space
at java.lang.reflect.Proxy.defineClass0(Native Method)
at java.lang.reflect.Proxy.getProxyClass(Proxy.java:504)
at java.lang.reflect.Proxy.newProxyInstance(Proxy.java:581)
	at  
org 
.springframework 
.aop.framework.JdkDynamicAopProxy.getProxy(JdkDynamicAopProxy.java:117)
	at  
org 
.springframework.aop.framework.ProxyFactory.getProxy(ProxyFactory.java: 
110)
	at  
org 
.springframework 
.aop 
.scope 
.ScopedProxyFactoryBean.setBeanFactory(ScopedProxyFactoryBean.java:109)
	at  
org 
.springframework 
.beans 
.factory 
.support 
.AbstractAutowireCapableBeanFactory 
.initializeBean(AbstractAutowireCapableBeanFactory.java:1162)
	at  
org 
.springframework 
.beans 
.factory 
.support 
.AbstractAutowireCapableBeanFactory 
.createBean(AbstractAutowireCapableBeanFactory.java:425)
	at org.springframework.beans.factory.support.AbstractBeanFactory 
$1.getObject(AbstractBeanFactory.java:251)
	at  
org 
.springframework 
.beans 
.factory 
.support 
.DefaultSingletonBeanRegistry 
.getSingleton(DefaultSingletonBeanRegistry.java:156)
	at  
org 
.springframework 
.beans 
.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java: 
248)
	at  
org 
.springframework 
.beans 
.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java: 
160)
	at  
org 
.springframework 
.beans 
.factory 
.support 
.DefaultListableBeanFactory 
.preInstantiateSingletons(DefaultListableBeanFactory.java:284)
	at  
org 
.springframework 
.context 
.support 
.AbstractApplicationContext.refresh(AbstractApplicationContext.java:352)
	at org.springframework.web.context.ContextLoader.createWebApplicationContext 
(ContextLoader.java:244)
	at org.springframework.web.context.ContextLoader.initWebApplicationContext 
(ContextLoader.java:187)
	at org.springframework.web.context.ContextLoaderListener.contextInitialized 
(ContextLoaderListener.java:49)
	at  
org 
.apache 
.catalina.core.StandardContext.listenerStart(StandardContext.java:3856)
	at  
org.apache.catalina.core.StandardContext.start(StandardContext.java: 
4361)
	at  
org 
.apache 
.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:790)
	at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java: 
770)
	at org.apache.catalina.core.StandardHost.addChild(StandardHost.java: 
553)

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at  
sun 
.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java: 
39)
	at  
sun 
.reflect 
.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java: 
25)

at java.lang.reflect.Method.invoke(Method.java:585)
	at  
org 
.apache.tomcat.util.modeler.BaseModelMBean.invoke(BaseModelMBean.java: 
296)
	at  
org.jboss.mx.server.RawDynamicInvoker.invoke(RawDynamicInvoker.java:164)

at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
	at org.apache.catalina.core.StandardContext.init(StandardContext.java: 
5312)

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at  
sun 
.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java: 
39)




--
[EMAIL PROTECTED]






RE: How to replace Xalan with Saxon in Cocoon?

2008-05-14 Thread Philip Fennell
Another thing to be aware of is disable-output-escaping with Saxon8/9
and Cocoon. Although disable-output-escaping is depricated in XSLT 2 in
favour of character maps, if you do use it, it won't work. In the
result, the characters that you are attempting to not-escape get wrapped
in processing instructions (intended for the serialiser) and remain
escaped. Changing the XSLT processor to Saxon does not set Saxon as the
serialiser. If anyone knows how to do that, it would be useful info for
the Saxon page on the Cocoon Wiki.

Just for reference, I encountered this problem with Saxon 8 and Cocoon
2.1.8 or there abouts. 


Regards

Philip Fennell
>XSLT Developer (Content Management Culture)
>
>BBC Future Media & Technology
>Media Village, 201 Wood Lane London W12 7TP 
>BC4 C4, Broadcast Centre
>
>T: 0208 0085318
>

-Original Message-
From: Johannes Textor [mailto:[EMAIL PROTECTED] 
Sent: 13 May 2008 18:19
To: users@cocoon.apache.org
Subject: Re: How to replace Xalan with Saxon in Cocoon?

Hi Slav,

see here: http://wiki.apache.org/cocoon/Saxon

I am running Saxon 9b on 2.1.11 without trouble. I did not have to
remove "META-INF" from the jar as stated in the article.

Regards,
Johannes

Vyacheslav Sedov schrieb:
> Hello!
>
> I need replace Xalan with Saxon in Cocoon (since i use XSLT 2.0), but 
> can`t find step by step manual.
>
> With best wishes,
> Slav
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>   


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


http://www.bbc.co.uk/
This e-mail (and any attachments) is confidential and may contain personal 
views which are not the views of the BBC unless specifically stated.
If you have received it in error, please delete it from your system.
Do not use, copy or disclose the information in any way nor act in reliance on 
it and notify the sender immediately.
Please note that the BBC monitors e-mails sent or received.
Further communication will signify your consent to this.


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