You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cocoon.apache.org by Robby Pelssers <ro...@ciber.com> on 2010/04/07 17:04:49 UTC
switch Cocoon 2.2 spring dependencies from 2.5.1 to 2.5.6
Hi all,
Just wondering if anyone tried to switch to a newer version of spring while using Cocoon2.2. It currently has a dependency on several spring-xxx.jar version 2.5.1.
I need to integrate spring-ws within my cocoon application and this is giving me headaches (probably) due to dependency conflicts.
So can anyone explain how to make the switch (on Cocoon side) from using spring 2.5.1 to spring 2.5.6?
And how big is the risk that Cocoon will not work anymore?
Any help is very much appreciated.
Kind regards,
Robby Pelssers
Re: switch Cocoon 2.2 spring dependencies from 2.5.1 to 2.5.6
Posted by Mark Diggory <md...@gmail.com>.
Charles,
Charles Yates <ceyates <at> stanford.edu> writes:
> Yes, we use spring-3.0.4 and cocoon-2.2 but in a non-standard way. We
> use our own bean definitions for cocoon components rather than the ones
> built into the cocoon jars, and have subclassed a number of cocoon
> classes. The methodology used in getting it to work was to just change
> the dependency then fix what was broken until nothing was. Sorry I
> can't be more specific than that. The result is here:
> http://lane.stanford.edu/index.html
>
Any chance you could identify the cocoon components you subclassed
so we can evaluate/test them in our migration to Spring 3.0.5 as well?
Best,
Mark
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org
Re: switch Cocoon 2.2 spring dependencies from 2.5.1 to 2.5.6
Posted by Andre Juffer <aj...@sun3.oulu.fi>.
On 10/30/2010 08:34 PM, Charles Yates wrote:
> Yes, we use spring-3.0.4 and cocoon-2.2 but in a non-standard way. We
> use our own bean definitions for cocoon components rather than the ones
> built into the cocoon jars, and have subclassed a number of cocoon
> classes. The methodology used in getting it to work was to just change
> the dependency then fix what was broken until nothing was. Sorry I can't
> be more specific than that. The result is here:
> http://lane.stanford.edu/index.html
OK, thanks. Your site looks good. It shows that cocoon 2.2 with Spring 3
in principle should work.
>
>
> On 10/30/10 2:44 AM, Andre Juffer wrote:
>> Has anybody tried to use Spring 3 with cocoon?
>>
>> On 10/29/2010 02:05 PM, Jasha Joachimsthal wrote:
>>> Spring 2.5.6 has vulnerability issues, see [1]. It's adviced to upgrade
>>> to 2.5.6.SEC02.
>>>
>>>
>>> [1] http://www.springsource.com/security/cve-2010-1622
>>>
>>> Jasha Joachimsthal
>>>
>>> j.joachimsthal@onehippo.com <ma...@onehippo.com> -
>>> jasha@apache.org <ma...@apache.org>
>>>
>>> Hippo
>>> Europe • Amsterdam Oosteinde 11 • 1017 WT Amsterdam • +31 (0)20
>>> 522 4466
>>> USA • San Francisco 185 H Street Suite B • Petaluma CA 94952-5100 •
>>> +1 (707) 773 4646
>>> Canada • Montréal 5369 Boulevard St-Laurent #430 • Montréal QC
>>> H2T 1S5 • +1 (514) 316 8966
>>> www.onehippo.com <http://www.onehippo.com/> • www.onehippo.org
>>> <http://www.onehippo.org/> • info@onehippo.com
>>> <ma...@onehippo.com>
>>>
>>>
>>> On 29 October 2010 07:41, Barbara Slupik
>>> <barbara_slupik@wro.vectranet.pl
>>> <ma...@wro.vectranet.pl>> wrote:
>>>
>>> Hello
>>>
>>> The error was caused by the wrong version for ehcache. It works fine
>>> with ehcache-1.2.4.
>>>
>>> I defined spring-2.5.6 dependencies in my application:
>>>
>>> <dependency>
>>> <groupId>org.springframework</groupId>
>>> <artifactId>spring-web</artifactId>
>>> <version>2.5.6</version>
>>> </dependency>
>>> <dependency>
>>> <groupId>org.springframework</groupId>
>>> <artifactId>spring-orm</artifactId>
>>> <version>2.5.6</version>
>>> </dependency>
>>> <dependency>
>>> <groupId>org.springframework</groupId>
>>> <artifactId>spring-jdbc</artifactId>
>>> <version>2.5.6</version>
>>> </dependency>
>>>
>>> instead of changing cocoon poms. It works fine.
>>>
>>> Barbara
>>>
>>>
>>> On 19 Oct, 2010, at 11:09 am, Barbara Slupik wrote:
>>>
>>> Hello
>>>
>>> I am trying to do it but no success so far. I changed spring
>>> dependencies in cocoon-6.pom <dependencyManagement> section but
>>> get error when starting my block in jetty. What else do I need
>>> to change?
>>>
>>> Error:
>>> 2010-10-19 09:39:10.268:/:INFO: Initializing Spring root
>>> WebApplicationContext
>>> 2010-10-19 09:39:11.448::WARN: failed
>>> org.mortbay.jetty.plugin.Jetty6PluginWebAppContext@c4edc7{/,/Developer/Expertys/cocoon-2.2/admin/target/rcl/webapp}
>>>
>>> java.lang.AbstractMethodError:
>>> org.apache.cocoon.tools.rcl.springreloader.SynchronizedConfigureableWebApplicationContext.setConfigLocation(Ljava/lang/String;)V
>>>
>>> at
>>> org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:253)
>>>
>>>
>>> Barbara
>>>
>>> On 8 Apr, 2010, at 11:31 am, Thomas Markus wrote:
>>>
>>> Hi,
>>>
>>> set your version in dependecyManagement section
>>>
>>> cocoon2.2 with spring 2.5.6 works fine here (since 2 weeks)
>>>
>>> regards
>>> Thomas
>>>
>>> Am 07.04.2010 17:04, schrieb Robby Pelssers:
>>>
>>> Hi all,
>>>
>>> Just wondering if anyone tried to switch to a newer
>>> version of spring while using Cocoon2.2. It currently
>>> has a dependency on several spring-xxx.jar version 2.5.1.
>>>
>>> I need to integrate spring-ws within my cocoon
>>> application and this is giving me headaches (probably)
>>> due to dependency conflicts.
>>>
>>> So can anyone explain how to make the switch (on Cocoon
>>> side) from using spring 2.5.1 to spring 2.5.6?
>>>
>>> And how big is the risk that Cocoon will not work anymore?
>>>
>>>
>>> Any help is very much appreciated.
>>>
>>> Kind regards,
>>> Robby Pelssers
>>>
>>>
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
>>> <ma...@cocoon.apache.org>
>>> For additional commands, e-mail:
>>> users-help@cocoon.apache.org
>>> <ma...@cocoon.apache.org>
>>>
>>>
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
>>> <ma...@cocoon.apache.org>
>>> For additional commands, e-mail: users-help@cocoon.apache.org
>>> <ma...@cocoon.apache.org>
>>>
>>>
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
>>> <ma...@cocoon.apache.org>
>>> For additional commands, e-mail: users-help@cocoon.apache.org
>>> <ma...@cocoon.apache.org>
>>>
>>>
>>
>>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
> For additional commands, e-mail: users-help@cocoon.apache.org
>
--
Andre H. Juffer | Phone: +358-8-553 1161
Biocenter Oulu and | Fax: +358-8-553-1141
Department of Biochemistry | Email: andre.juffer@oulu.fi
University of Oulu, Finland | WWW: www.biochem.oulu.fi/Biocomputing/
StruBioCat | WWW: www.strubiocat.oulu.fi
NordProt | WWW: www.nordprot.org
Triacle Biocomputing | WWW: www.triacle-bc.com
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org
Re: switch Cocoon 2.2 spring dependencies from 2.5.1 to 2.5.6
Posted by Charles Yates <ce...@stanford.edu>.
Yes, we use spring-3.0.4 and cocoon-2.2 but in a non-standard way. We
use our own bean definitions for cocoon components rather than the ones
built into the cocoon jars, and have subclassed a number of cocoon
classes. The methodology used in getting it to work was to just change
the dependency then fix what was broken until nothing was. Sorry I
can't be more specific than that. The result is here:
http://lane.stanford.edu/index.html
On 10/30/10 2:44 AM, Andre Juffer wrote:
> Has anybody tried to use Spring 3 with cocoon?
>
> On 10/29/2010 02:05 PM, Jasha Joachimsthal wrote:
>> Spring 2.5.6 has vulnerability issues, see [1]. It's adviced to upgrade
>> to 2.5.6.SEC02.
>>
>>
>> [1] http://www.springsource.com/security/cve-2010-1622
>>
>> Jasha Joachimsthal
>>
>> j.joachimsthal@onehippo.com <ma...@onehippo.com> -
>> jasha@apache.org <ma...@apache.org>
>>
>> Hippo
>> Europe • Amsterdam Oosteinde 11 • 1017 WT Amsterdam • +31 (0)20
>> 522 4466
>> USA • San Francisco 185 H Street Suite B • Petaluma CA 94952-5100 •
>> +1 (707) 773 4646
>> Canada • Montréal 5369 Boulevard St-Laurent #430 • Montréal QC
>> H2T 1S5 • +1 (514) 316 8966
>> www.onehippo.com <http://www.onehippo.com/> • www.onehippo.org
>> <http://www.onehippo.org/> • info@onehippo.com
>> <ma...@onehippo.com>
>>
>>
>> On 29 October 2010 07:41, Barbara Slupik
>> <barbara_slupik@wro.vectranet.pl
>> <ma...@wro.vectranet.pl>> wrote:
>>
>> Hello
>>
>> The error was caused by the wrong version for ehcache. It works fine
>> with ehcache-1.2.4.
>>
>> I defined spring-2.5.6 dependencies in my application:
>>
>> <dependency>
>> <groupId>org.springframework</groupId>
>> <artifactId>spring-web</artifactId>
>> <version>2.5.6</version>
>> </dependency>
>> <dependency>
>> <groupId>org.springframework</groupId>
>> <artifactId>spring-orm</artifactId>
>> <version>2.5.6</version>
>> </dependency>
>> <dependency>
>> <groupId>org.springframework</groupId>
>> <artifactId>spring-jdbc</artifactId>
>> <version>2.5.6</version>
>> </dependency>
>>
>> instead of changing cocoon poms. It works fine.
>>
>> Barbara
>>
>>
>> On 19 Oct, 2010, at 11:09 am, Barbara Slupik wrote:
>>
>> Hello
>>
>> I am trying to do it but no success so far. I changed spring
>> dependencies in cocoon-6.pom <dependencyManagement> section but
>> get error when starting my block in jetty. What else do I need
>> to change?
>>
>> Error:
>> 2010-10-19 09:39:10.268:/:INFO: Initializing Spring root
>> WebApplicationContext
>> 2010-10-19 09:39:11.448::WARN: failed
>>
>> org.mortbay.jetty.plugin.Jetty6PluginWebAppContext@c4edc7{/,/Developer/Expertys/cocoon-2.2/admin/target/rcl/webapp}
>> java.lang.AbstractMethodError:
>>
>> org.apache.cocoon.tools.rcl.springreloader.SynchronizedConfigureableWebApplicationContext.setConfigLocation(Ljava/lang/String;)V
>> at
>>
>> org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:253)
>>
>> Barbara
>>
>> On 8 Apr, 2010, at 11:31 am, Thomas Markus wrote:
>>
>> Hi,
>>
>> set your version in dependecyManagement section
>>
>> cocoon2.2 with spring 2.5.6 works fine here (since 2 weeks)
>>
>> regards
>> Thomas
>>
>> Am 07.04.2010 17:04, schrieb Robby Pelssers:
>>
>> Hi all,
>>
>> Just wondering if anyone tried to switch to a newer
>> version of spring while using Cocoon2.2. It currently
>> has a dependency on several spring-xxx.jar version
>> 2.5.1.
>>
>> I need to integrate spring-ws within my cocoon
>> application and this is giving me headaches (probably)
>> due to dependency conflicts.
>>
>> So can anyone explain how to make the switch (on Cocoon
>> side) from using spring 2.5.1 to spring 2.5.6?
>>
>> And how big is the risk that Cocoon will not work
>> anymore?
>>
>>
>> Any help is very much appreciated.
>>
>> Kind regards,
>> Robby Pelssers
>>
>>
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
>> <ma...@cocoon.apache.org>
>> For additional commands, e-mail:
>> users-help@cocoon.apache.org
>> <ma...@cocoon.apache.org>
>>
>>
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
>> <ma...@cocoon.apache.org>
>> For additional commands, e-mail: users-help@cocoon.apache.org
>> <ma...@cocoon.apache.org>
>>
>>
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
>> <ma...@cocoon.apache.org>
>> For additional commands, e-mail: users-help@cocoon.apache.org
>> <ma...@cocoon.apache.org>
>>
>>
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org
Re: switch Cocoon 2.2 spring dependencies from 2.5.1 to 2.5.6
Posted by Andre Juffer <aj...@sun3.oulu.fi>.
Has anybody tried to use Spring 3 with cocoon?
On 10/29/2010 02:05 PM, Jasha Joachimsthal wrote:
> Spring 2.5.6 has vulnerability issues, see [1]. It's adviced to upgrade
> to 2.5.6.SEC02.
>
>
> [1] http://www.springsource.com/security/cve-2010-1622
>
> Jasha Joachimsthal
>
> j.joachimsthal@onehippo.com <ma...@onehippo.com> -
> jasha@apache.org <ma...@apache.org>
>
> Hippo
> Europe • Amsterdam Oosteinde 11 • 1017 WT Amsterdam • +31 (0)20
> 522 4466
> USA • San Francisco 185 H Street Suite B • Petaluma CA 94952-5100 •
> +1 (707) 773 4646
> Canada • Montréal 5369 Boulevard St-Laurent #430 • Montréal QC
> H2T 1S5 • +1 (514) 316 8966
> www.onehippo.com <http://www.onehippo.com/> • www.onehippo.org
> <http://www.onehippo.org/> • info@onehippo.com <ma...@onehippo.com>
>
>
> On 29 October 2010 07:41, Barbara Slupik
> <barbara_slupik@wro.vectranet.pl
> <ma...@wro.vectranet.pl>> wrote:
>
> Hello
>
> The error was caused by the wrong version for ehcache. It works fine
> with ehcache-1.2.4.
>
> I defined spring-2.5.6 dependencies in my application:
>
> <dependency>
> <groupId>org.springframework</groupId>
> <artifactId>spring-web</artifactId>
> <version>2.5.6</version>
> </dependency>
> <dependency>
> <groupId>org.springframework</groupId>
> <artifactId>spring-orm</artifactId>
> <version>2.5.6</version>
> </dependency>
> <dependency>
> <groupId>org.springframework</groupId>
> <artifactId>spring-jdbc</artifactId>
> <version>2.5.6</version>
> </dependency>
>
> instead of changing cocoon poms. It works fine.
>
> Barbara
>
>
> On 19 Oct, 2010, at 11:09 am, Barbara Slupik wrote:
>
> Hello
>
> I am trying to do it but no success so far. I changed spring
> dependencies in cocoon-6.pom <dependencyManagement> section but
> get error when starting my block in jetty. What else do I need
> to change?
>
> Error:
> 2010-10-19 09:39:10.268:/:INFO: Initializing Spring root
> WebApplicationContext
> 2010-10-19 09:39:11.448::WARN: failed
> org.mortbay.jetty.plugin.Jetty6PluginWebAppContext@c4edc7{/,/Developer/Expertys/cocoon-2.2/admin/target/rcl/webapp}
> java.lang.AbstractMethodError:
> org.apache.cocoon.tools.rcl.springreloader.SynchronizedConfigureableWebApplicationContext.setConfigLocation(Ljava/lang/String;)V
> at
> org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:253)
>
> Barbara
>
> On 8 Apr, 2010, at 11:31 am, Thomas Markus wrote:
>
> Hi,
>
> set your version in dependecyManagement section
>
> cocoon2.2 with spring 2.5.6 works fine here (since 2 weeks)
>
> regards
> Thomas
>
> Am 07.04.2010 17:04, schrieb Robby Pelssers:
>
> Hi all,
>
> Just wondering if anyone tried to switch to a newer
> version of spring while using Cocoon2.2. It currently
> has a dependency on several spring-xxx.jar version 2.5.1.
>
> I need to integrate spring-ws within my cocoon
> application and this is giving me headaches (probably)
> due to dependency conflicts.
>
> So can anyone explain how to make the switch (on Cocoon
> side) from using spring 2.5.1 to spring 2.5.6?
>
> And how big is the risk that Cocoon will not work anymore?
>
>
> Any help is very much appreciated.
>
> Kind regards,
> Robby Pelssers
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
> <ma...@cocoon.apache.org>
> For additional commands, e-mail:
> users-help@cocoon.apache.org
> <ma...@cocoon.apache.org>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
> <ma...@cocoon.apache.org>
> For additional commands, e-mail: users-help@cocoon.apache.org
> <ma...@cocoon.apache.org>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
> <ma...@cocoon.apache.org>
> For additional commands, e-mail: users-help@cocoon.apache.org
> <ma...@cocoon.apache.org>
>
>
--
Andre H. Juffer | Phone: +358-8-553 1161
Biocenter Oulu and | Fax: +358-8-553-1141
Department of Biochemistry | Email: andre.juffer@oulu.fi
University of Oulu, Finland | WWW: www.biochem.oulu.fi/Biocomputing/
StruBioCat | WWW: www.strubiocat.oulu.fi
NordProt | WWW: www.nordprot.org
Triacle Biocomputing | WWW: www.triacle-bc.com
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org
Re: switch Cocoon 2.2 spring dependencies from 2.5.1 to 2.5.6
Posted by Jasha Joachimsthal <j....@onehippo.com>.
Spring 2.5.6 has vulnerability issues, see [1]. It's adviced to upgrade to
2.5.6.SEC02.
[1] http://www.springsource.com/security/cve-2010-1622
Jasha Joachimsthal
j.joachimsthal@onehippo.com - jasha@apache.org
Hippo
Europe • Amsterdam Oosteinde 11 • 1017 WT Amsterdam • +31 (0)20 522
4466
USA • San Francisco 185 H Street Suite B • Petaluma CA 94952-5100 • +1
(707) 773 4646
Canada • Montréal 5369 Boulevard St-Laurent #430 • Montréal QC H2T
1S5 • +1 (514) 316 8966
www.onehippo.com • www.onehippo.org • info@onehippo.com
On 29 October 2010 07:41, Barbara Slupik <ba...@wro.vectranet.pl>wrote:
> Hello
>
> The error was caused by the wrong version for ehcache. It works fine with
> ehcache-1.2.4.
>
> I defined spring-2.5.6 dependencies in my application:
>
> <dependency>
> <groupId>org.springframework</groupId>
> <artifactId>spring-web</artifactId>
> <version>2.5.6</version>
> </dependency>
> <dependency>
> <groupId>org.springframework</groupId>
> <artifactId>spring-orm</artifactId>
> <version>2.5.6</version>
> </dependency>
> <dependency>
> <groupId>org.springframework</groupId>
> <artifactId>spring-jdbc</artifactId>
> <version>2.5.6</version>
> </dependency>
>
> instead of changing cocoon poms. It works fine.
>
> Barbara
>
>
> On 19 Oct, 2010, at 11:09 am, Barbara Slupik wrote:
>
> Hello
>>
>> I am trying to do it but no success so far. I changed spring dependencies
>> in cocoon-6.pom <dependencyManagement> section but get error when starting
>> my block in jetty. What else do I need to change?
>>
>> Error:
>> 2010-10-19 09:39:10.268:/:INFO: Initializing Spring root
>> WebApplicationContext
>> 2010-10-19 09:39:11.448::WARN: failed
>> org.mortbay.jetty.plugin.Jetty6PluginWebAppContext@c4edc7
>> {/,/Developer/Expertys/cocoon-2.2/admin/target/rcl/webapp}
>> java.lang.AbstractMethodError:
>> org.apache.cocoon.tools.rcl.springreloader.SynchronizedConfigureableWebApplicationContext.setConfigLocation(Ljava/lang/String;)V
>> at
>> org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:253)
>>
>> Barbara
>>
>> On 8 Apr, 2010, at 11:31 am, Thomas Markus wrote:
>>
>> Hi,
>>>
>>> set your version in dependecyManagement section
>>>
>>> cocoon2.2 with spring 2.5.6 works fine here (since 2 weeks)
>>>
>>> regards
>>> Thomas
>>>
>>> Am 07.04.2010 17:04, schrieb Robby Pelssers:
>>>
>>>> Hi all,
>>>>
>>>> Just wondering if anyone tried to switch to a newer version of spring
>>>> while using Cocoon2.2. It currently has a dependency on several
>>>> spring-xxx.jar version 2.5.1.
>>>>
>>>> I need to integrate spring-ws within my cocoon application and this is
>>>> giving me headaches (probably) due to dependency conflicts.
>>>>
>>>> So can anyone explain how to make the switch (on Cocoon side) from using
>>>> spring 2.5.1 to spring 2.5.6?
>>>>
>>>> And how big is the risk that Cocoon will not work anymore?
>>>>
>>>>
>>>> Any help is very much appreciated.
>>>>
>>>> Kind regards,
>>>> Robby Pelssers
>>>>
>>>>
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
>>> For additional commands, e-mail: users-help@cocoon.apache.org
>>>
>>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
>> For additional commands, e-mail: users-help@cocoon.apache.org
>>
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
> For additional commands, e-mail: users-help@cocoon.apache.org
>
>
HSSF serializer stand-alone
Posted by Barbara Slupik <ba...@wro.vectranet.pl>.
Hello
I am using HSSF serializer as stand-alone in java. It works with
cocoon-2.0.4.jar:
void serializeHSSF(Document doc, OutputStream out) throws Exception
{
PipedOutputStream outStream=new PipedOutputStream();
PipedInputStream inStream=new PipedInputStream(outStream);
HSSFSerializer hssf=new HSSFSerializer();
hssf.setLogger((new
org.apache.commons.logging.impl.LogKitLogger("HSSF")).getLogger()); //
only with cocoon-2.0
hssf.initialize();
hssf.setOutputStream(out);
XMLReader
reader=SAXParserFactory.newInstance().newSAXParser().getXMLReader();
reader.setContentHandler(hssf);
serializeXML(doc,outStream,false);
reader.parse(new InputSource(inStream));
out.flush();
out.close();
LOG.debug("HSSF serialization completed");
}
but it fails on reader.parse(new InputSource(inStream)); with
cocoon-2.1.11.jar and cocoon-poi-2.1.11.jar:
[java] java.lang.NullPointerException
[java] at
org
.apache
.cocoon
.components
.elementprocessor
.impl.poi.hssf.elements.EPStyleRegion.initialize(EPStyleRegion.java:93)
[java] at
org
.apache
.cocoon
.serialization
.ElementProcessorSerializer
.startElement(ElementProcessorSerializer.java:347)
[java] at
org.apache.xerces.parsers.AbstractSAXParser.startElement(Unknown Source)
[java] at
org
.apache
.xerces.impl.XMLDocumentFragmentScannerImpl.scanStartElement(Unknown
Source)
[java] at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl
$FragmentContentDispatcher.dispatch(Unknown Source)
[java] at
org
.apache
.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
[java] at
org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
[java] at
org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
[java] at org.apache.xerces.parsers.XMLParser.parse(Unknown
Source)
[java] at
org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
[java] at org.apache.xerces.jaxp.SAXParserImpl
$JAXPSAXParser.parse(Unknown Source)
Does anybody use cocoon-2.1 HSSF serializer as stand-alone? How do
you run it?
Barbara
Re: switch Cocoon 2.2 spring dependencies from 2.5.1 to 2.5.6
Posted by Barbara Slupik <ba...@wro.vectranet.pl>.
Hello
The error was caused by the wrong version for ehcache. It works fine
with ehcache-1.2.4.
I defined spring-2.5.6 dependencies in my application:
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-web</artifactId>
<version>2.5.6</version>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-orm</artifactId>
<version>2.5.6</version>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-jdbc</artifactId>
<version>2.5.6</version>
</dependency>
instead of changing cocoon poms. It works fine.
Barbara
On 19 Oct, 2010, at 11:09 am, Barbara Slupik wrote:
> Hello
>
> I am trying to do it but no success so far. I changed spring
> dependencies in cocoon-6.pom <dependencyManagement> section but get
> error when starting my block in jetty. What else do I need to change?
>
> Error:
> 2010-10-19 09:39:10.268:/:INFO: Initializing Spring root
> WebApplicationContext
> 2010-10-19 09:39:11.448::WARN: failed
> org.mortbay.jetty.plugin.Jetty6PluginWebAppContext@c4edc7{/,/
> Developer/Expertys/cocoon-2.2/admin/target/rcl/webapp}
> java.lang.AbstractMethodError:
> org
> .apache
> .cocoon
> .tools
> .rcl
> .springreloader
> .SynchronizedConfigureableWebApplicationContext
> .setConfigLocation(Ljava/lang/String;)V
> at org.springframework.web.context.ContextLoader.createWebApplicationContext
> (ContextLoader.java:253)
>
> Barbara
>
> On 8 Apr, 2010, at 11:31 am, Thomas Markus wrote:
>
>> Hi,
>>
>> set your version in dependecyManagement section
>>
>> cocoon2.2 with spring 2.5.6 works fine here (since 2 weeks)
>>
>> regards
>> Thomas
>>
>> Am 07.04.2010 17:04, schrieb Robby Pelssers:
>>> Hi all,
>>>
>>> Just wondering if anyone tried to switch to a newer version of
>>> spring while using Cocoon2.2. It currently has a dependency on
>>> several spring-xxx.jar version 2.5.1.
>>>
>>> I need to integrate spring-ws within my cocoon application and
>>> this is giving me headaches (probably) due to dependency conflicts.
>>>
>>> So can anyone explain how to make the switch (on Cocoon side) from
>>> using spring 2.5.1 to spring 2.5.6?
>>>
>>> And how big is the risk that Cocoon will not work anymore?
>>>
>>>
>>> Any help is very much appreciated.
>>>
>>> Kind regards,
>>> Robby Pelssers
>>>
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
>> For additional commands, e-mail: users-help@cocoon.apache.org
>>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
> For additional commands, e-mail: users-help@cocoon.apache.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org
Re: switch Cocoon 2.2 spring dependencies from 2.5.1 to 2.5.6
Posted by Barbara Slupik <ba...@wro.vectranet.pl>.
Hello
I am trying to do it but no success so far. I changed spring
dependencies in cocoon-6.pom <dependencyManagement> section but get
error when starting my block in jetty. What else do I need to change?
Error:
2010-10-19 09:39:10.268:/:INFO: Initializing Spring root
WebApplicationContext
2010-10-19 09:39:11.448::WARN: failed
org.mortbay.jetty.plugin.Jetty6PluginWebAppContext@c4edc7{/,/Developer/
Expertys/cocoon-2.2/admin/target/rcl/webapp}
java.lang.AbstractMethodError:
org
.apache
.cocoon
.tools
.rcl
.springreloader
.SynchronizedConfigureableWebApplicationContext
.setConfigLocation(Ljava/lang/String;)V
at org.springframework.web.context.ContextLoader.createWebApplicationContext
(ContextLoader.java:253)
Barbara
On 8 Apr, 2010, at 11:31 am, Thomas Markus wrote:
> Hi,
>
> set your version in dependecyManagement section
>
> cocoon2.2 with spring 2.5.6 works fine here (since 2 weeks)
>
> regards
> Thomas
>
> Am 07.04.2010 17:04, schrieb Robby Pelssers:
>> Hi all,
>>
>> Just wondering if anyone tried to switch to a newer version of
>> spring while using Cocoon2.2. It currently has a dependency on
>> several spring-xxx.jar version 2.5.1.
>>
>> I need to integrate spring-ws within my cocoon application and this
>> is giving me headaches (probably) due to dependency conflicts.
>>
>> So can anyone explain how to make the switch (on Cocoon side) from
>> using spring 2.5.1 to spring 2.5.6?
>>
>> And how big is the risk that Cocoon will not work anymore?
>>
>>
>> Any help is very much appreciated.
>>
>> Kind regards,
>> Robby Pelssers
>>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
> For additional commands, e-mail: users-help@cocoon.apache.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org
Re: switch Cocoon 2.2 spring dependencies from 2.5.1 to 2.5.6
Posted by Thomas Markus <t....@proventis.net>.
Hi,
set your version in dependecyManagement section
cocoon2.2 with spring 2.5.6 works fine here (since 2 weeks)
regards
Thomas
Am 07.04.2010 17:04, schrieb Robby Pelssers:
> Hi all,
>
> Just wondering if anyone tried to switch to a newer version of spring while using Cocoon2.2. It currently has a dependency on several spring-xxx.jar version 2.5.1.
>
> I need to integrate spring-ws within my cocoon application and this is giving me headaches (probably) due to dependency conflicts.
>
> So can anyone explain how to make the switch (on Cocoon side) from using spring 2.5.1 to spring 2.5.6?
>
> And how big is the risk that Cocoon will not work anymore?
>
>
> Any help is very much appreciated.
>
> Kind regards,
> Robby Pelssers
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org
RE: switch Cocoon 2.2 spring dependencies from 2.5.1 to 2.5.6
Posted by Robby Pelssers <ro...@ciber.com>.
I already resolved my problem by using an old version of Axis... had some minor issues though but I tackled all of them. But it's still nice to know of course.
Cheers,
Robby
-----Original Message-----
From: Jeroen Reijn [mailto:j.reijn@onehippo.com]
Sent: Monday, April 19, 2010 2:53 PM
To: users@cocoon.apache.org
Subject: Re: switch Cocoon 2.2 spring dependencies from 2.5.1 to 2.5.6
Hi Robby,
I guess it's just changing a maven dependency version right? Maybe we
could raise this on the dev list and see if any of the initial 2.2
developers would have any issues with bumping this version.
Jeroen
On 04/07/2010 05:04 PM, Robby Pelssers wrote:
> I need to integrate spring-ws within my cocoon application and this is giving me headaches (probably) due to dependency conflicts.
>
> So can anyone explain how to make the switch (on Cocoon side) from using spring 2.5.1 to spring 2.5.6?
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org
Re: switch Cocoon 2.2 spring dependencies from 2.5.1 to 2.5.6
Posted by Jeroen Reijn <j....@onehippo.com>.
Hi Robby,
I guess it's just changing a maven dependency version right? Maybe we
could raise this on the dev list and see if any of the initial 2.2
developers would have any issues with bumping this version.
Jeroen
On 04/07/2010 05:04 PM, Robby Pelssers wrote:
> I need to integrate spring-ws within my cocoon application and this is giving me headaches (probably) due to dependency conflicts.
>
> So can anyone explain how to make the switch (on Cocoon side) from using spring 2.5.1 to spring 2.5.6?
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org