Re: configuring Jetty to log into a file

2009-12-07 Thread Johannes Lichtenberger
On Mon, 2009-12-07 at 06:52 +0100, Jos Snellings wrote:
> Look for any log4j.xml or log4j.properties in the classpath.
> There is a log4j.xml in the cocoon samples
> in ./rcl-config/WEB-INF/log4j.xml. A log file is created in   name="File" value="./target/work/log/cocoon.log"/>
> Jos

Hello Jos,

I've seen the file before but it's somehow strange, the errors are still
shown on STDOUT but not in the logfile:

at
org.treetank.cocoon.generating.GoogleEarthGenerator.skip(GoogleEarthGenerator.java:174)
at
org.treetank.cocoon.generating.GoogleEarthGenerator.skip(GoogleEarthGenerator.java:174)
at
org.treetank.cocoon.generating.GoogleEarthGenerator.skip(GoogleEarthGenerator.java:174)
at
org.treetank.cocoon.generating.GoogleEarthGenerator.skip(GoogleEarthGenerator.java:174)

...

so many of those that I don't get the source of the exception (the line
mentioned - 174 - is a recursive call of skip(...). It can't be a loop
which doesn't terminate (at least I honestly think so, because the
cursor moves forward in the xml file).

greetings,
Johannes



-
To unsubscribe, e-mail: users-unsubscr...@cocoon.apache.org
For additional commands, e-mail: users-h...@cocoon.apache.org



Re: escaping special characters in an XSP String

2009-12-07 Thread Paul Adriaenssens
Indeed Jos,

That's what we are trying to do.
E.g. avoiding that  becomes 

Actually we have data from a varchar database field containing a String with 
HTML tagged data, e.g. tags for bold (This text is bold), for 
italic (This text is italicized), etc ... and we want this formatting 
finally to be represented by the browser.

Thank you,

Paul

>- Oorspronkelijk bericht -
>Van
: Jos Snellings [mailto:jos.snelli...@pandora.be]
>Verzonden
: maandag
, december
 7, 2009 02:27 PM
>Aan
: users@cocoon.apache.org
>Onderwerp
: Re: escaping special characters in an XSP String
>
>Hi Paul,
>
>Can you please explain the purpose of not escaping?
>Do you want for instance to prevent ampersand from being converted to
>"&" ?
>
>Best,
>Jos
>
>
>
>On Mon, 2009-12-07 at 13:21 +, Paul Adriaenssens wrote:
>> Hi,
>>
>> I want to avoid escaping special characters in an xsp String retrieved
>> through .
>>
>> In the archives
>>
>> http://www.mail-archive.com/cocoon-us...@xml.apache.org/msg20263.html
>> 
>>
>> http://www.mail-archive.com/cocoon-us...@xml.apache.org/msg16145.html
>> 
>>
>> I found this as a solution:
>>
>> 
>> 
>> data
>> 
>> 
>>
>> However it does not work, I see nothing in the output!
>>
>> Any ideas?
>>
>> We are using cocoon 2.1.11 ...
>>
>> Regards,
>>
>> Paul Adriaenssens
>>
>>
>>
>>
>>
>>
>> -
>> To unsubscribe, e-mail: users-unsubscr...@cocoon.apache.org
>> For additional commands, e-mail: users-h...@cocoon.apache.org
>>
>>
>
>
>
>-
>To unsubscribe, e-mail: users-unsubscr...@cocoon.apache.org
>For additional commands, e-mail: users-h...@cocoon.apache.org
>
>
>



-
To unsubscribe, e-mail: users-unsubscr...@cocoon.apache.org
For additional commands, e-mail: users-h...@cocoon.apache.org



Re: escaping special characters in an XSP String

2009-12-07 Thread Jos Snellings
Hi Paul,

Can you please explain the purpose of not escaping?
Do you want for instance to prevent ampersand from being converted to
"&" ?

Best,
Jos



On Mon, 2009-12-07 at 13:21 +, Paul Adriaenssens wrote:
> Hi,
> 
> I want to avoid escaping special characters in an xsp String retrieved
> through .
> 
> In the archives
> 
> http://www.mail-archive.com/cocoon-us...@xml.apache.org/msg20263.html
> 
> 
> http://www.mail-archive.com/cocoon-us...@xml.apache.org/msg16145.html
> 
> 
> I found this as a solution:
> 
> 
> 
> data
> 
> 
> 
> However it does not work, I see nothing in the output!
> 
> Any ideas?
> 
> We are using cocoon 2.1.11 ...
> 
> Regards,
> 
> Paul Adriaenssens
> 
> 
> 
> 
> 
> 
> -
> To unsubscribe, e-mail: users-unsubscr...@cocoon.apache.org
> For additional commands, e-mail: users-h...@cocoon.apache.org
> 
> 



-
To unsubscribe, e-mail: users-unsubscr...@cocoon.apache.org
For additional commands, e-mail: users-h...@cocoon.apache.org



escaping special characters in an XSP String

2009-12-07 Thread Paul Adriaenssens
Hi,

I want to avoid escaping special characters in an xsp String retrieved
through .

In the archives

http://www.mail-archive.com/cocoon-us...@xml.apache.org/msg20263.html


http://www.mail-archive.com/cocoon-us...@xml.apache.org/msg16145.html


I found this as a solution:



data



However it does not work, I see nothing in the output!

Any ideas?

We are using cocoon 2.1.11 ...

Regards,

Paul Adriaenssens






-
To unsubscribe, e-mail: users-unsubscr...@cocoon.apache.org
For additional commands, e-mail: users-h...@cocoon.apache.org



escaping special characters in an xsp String

2009-12-07 Thread Paul Adriaenssens

Hi,

I want to avoid escaping special characters in an xsp String  retrieved 
through 


In the archives
p://www.mail-archive.com/cocoon-us...@xml.apache.org/msg20263.html 
 

http://www.mail-archive.com/cocoon-us...@xml.apache.org/msg16145.html 
 


I found this as a solution



data



However it does not work, I see nothing in the output ...

Any ideas?

I am using cocoon 2.1.11

Regards,

Paul Adriaenssens


-
To unsubscribe, e-mail: users-unsubscr...@cocoon.apache.org
For additional commands, e-mail: users-h...@cocoon.apache.org



Re: cocoon3 sitemap call

2009-12-07 Thread Thomas Markus
i missed the aop part

it would be great to move all servlet independent parts outside of
cocoon-servlet (CallStack ...), maybe to cocoon-pipeline

currently i cant use cocoon-servlet as dependency (and dont want).

org.springframework.beans.factory.BeanCreationException: Error creating
bean with name
'org.apache.cocoon.blockdeployment.BlockContextURLStreamHandlerFactory'
defined in class path resource
[META-INF/cocoon/spring/cocoon-blockdeployment-protocol.xml]:
Initialization of bean failed; nested exception is
java.lang.ClassCastException:
org.springframework.context.support.ClassPathXmlApplicationContext
cannot be cast to org.springframework.web.context.WebApplicationContext

i try to run a sitemap inside a junit test without any servlet specific
parts. this works fine without coocon-servlet. after copying CallFrame,
CallStack, MimeTypeCollector and spring config (ugly i know) mimetype is ok.

regards
Thomas


Reinhard Pötz schrieb:
> Thomas Markus wrote:
>   
>> hi,
>>
>> i tried to manually load and invoke a sitemap and it works fine now. but
>> how can i access resulting content type? i cant find something.
>> 
>
> Have a look at the RequestProcessor in the cocoon-servlet module. It's
> an example of how to invoke a sitemap in a servlet environment.
>
> That's also my advice for your "cocoon3 inside portlets" question - and
> maybe you can even use the RequestProcessor directly but I'm not sure if
> you have access to everything that it needs (see the RequestProcessor's
> constructor).
>
>   


-
To unsubscribe, e-mail: users-unsubscr...@cocoon.apache.org
For additional commands, e-mail: users-h...@cocoon.apache.org