I really appreciate if somebody would help me with Cocoon 2.2/Fop/Batik

2010-10-15 Thread Fawzib Rojas

 I've posted twice about this and got no response.

My problem:

I'm moving from cocoon 2.1 to 2.2 (haven't done it yet because I knew 
maven would be a PITA and it didn't dissapoint). After a lot of hair 
pulling I finally compiled my webapp + blocks for cocoon 2.2 and was 
able to deploy on geronimo. The problem now is that cocoon-fop-impl will 
not work with embedded SVG. It uses fop-0.20.4 which wants to use batik 
1.6 and those 2 are incompatible. After looking around in a lot of posts 
found out about cocoon-fop-ng-impl, unfortunately it cant be found on 
maven (why?). Found a post that linked to the source, after more hair 
pulling got it working cocoon-fop-ng-impl+fop-1.0+batik 1.7.


I thought I was done but no. Now the SVG serializer stopped working. So 
I'll try and make a batik-ng. I did and now batik is giving me errors I 
was getting NullPointerException in SAXDocumentFactory.java at:


public void startElement(String uri,String localName,String 
rawName,Attributes attributes) throws SAXException {

// Check If we should halt early.
if (HaltingThread.hasBeenHalted()) {
throw new SAXException(new InterruptedIOException());
}
if (inProlog) {
// for some reason parser is null here
inProlog = false;
try {
isStandalone = parser.getFeature
("http://xml.org/sax/features/is-standalone";);
} catch (SAXNotRecognizedException ex) {
}
try {
xmlVersion = (String) parser.getProperty
("http://xml.org/sax/properties/document-xml-version";);
} catch (SAXNotRecognizedException ex) {
}
}
.
}

I moved both trys to where the parser is created since that code just 
saves the values so *I think* it makes no difference. Now I get another 
error:


java.lang.ClassCastException: org.apache.batik.dom.GenericElement cannot 
be cast to org.w3c.dom.svg.SVGSVGElement


after another search found a post talking about 
DOMUtilities.deepCloneDocument saying it would convert dom to Batik's 
own dom. It gives me the same error, so I'm stuck. I would really 
appreciate any help on this.



It was much easier to work with Cocoon 2.1, just add jars to build path 
in eclipse and that was it. I find maven to be an obstacle, most of the 
time I'm fighting it to get something done. When the dust settles I 
still end up downloading and creating my own things because what I need 
either outdated (cocoon-fop-impl), non-existent even though it was 
created a long time ago (cocoon-fop-ng-impl) or just wrongly configured 
(cocoon-fop-impl again).


Also, why when a new version of a library is created most of the time 
compatibility is just ignored (and I see this a lot with java)? Why not 
add a simple class that uses the old interfaces so you can move up to 
new versions without problems.



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



Re: 2.2 Bean "heritance"

2010-10-15 Thread Andre Juffer

 I forgot to include the following link:

http://cocoon.apache.org/2.2/core-modules/core/2.2/1263_1_1.html


On 10/15/2010 01:38 AM, florent andré wrote:

Hi all,

Newbie to 2.2 and not a star in spring, so maybe this question is non
sense.

The case :

- I have a module "Main" where is defined an input-module (AnInput) in a
"bean way"

- I have a module "Specific" that depend on the "Main" and would like to
use AnInput is his sitemap.

I have to redeclare the input-module in the "Specific" module ? Or there
is a way to use the "main" one ?

I would prefer the second one is possible.

Thanks for your lights.

++


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




--
Andre H. Juffer  | Phone: +358-8-553 1161
Biocenter Oulu and   | Fax: +358-8-553-1141
Department of Biochemistry   | Email: andre.juf...@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-unsubscr...@cocoon.apache.org
For additional commands, e-mail: users-h...@cocoon.apache.org



Re: 2.2 Bean "heritance"

2010-10-15 Thread Andre Juffer

 I am not sure if I understand your question.

You have two beans 'Main' and 'Specific', each to be configured by 
Spring. Specific depends on Main. For you Java lasses, you something like


public class Specific()
{
...
}

public class Main() {
...
private Specific specific;

public void setMain(Specific specific)
{
 this.specific = specific;
}
}

and your bean configuration looks like








Is you question whether or not you would need to include your bean 
configuration as local to a particular block or global to all blocks? My 
answer would be 'local' if these beans are required for particular 
blocks only. Otherwise take one of the blocks and include your beans as 
'global' and they will be the same to all blocks in your webapp.



On 10/15/2010 01:38 AM, florent andré wrote:

Hi all,

Newbie to 2.2 and not a star in spring, so maybe this question is non
sense.

The case :

- I have a module "Main" where is defined an input-module (AnInput) in a
"bean way"

- I have a module "Specific" that depend on the "Main" and would like to
use AnInput is his sitemap.

I have to redeclare the input-module in the "Specific" module ? Or there
is a way to use the "main" one ?

I would prefer the second one is possible.

Thanks for your lights.

++


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




--
Andre H. Juffer  | Phone: +358-8-553 1161
Biocenter Oulu and   | Fax: +358-8-553-1141
Department of Biochemistry   | Email: andre.juf...@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-unsubscr...@cocoon.apache.org
For additional commands, e-mail: users-h...@cocoon.apache.org



Re: [Cocoon+OAI]

2010-10-15 Thread Sands Alden Fish
Hello, you should also look at the DSpace source, which implements OAI in the 
digital library / institutional repository realm...

  http://dspace.org   (down at time of sending but should be back up shortly)
  http://scm.dspace.org/svn/repo/dspace/trunk/dspace-oai/


--
sands fish
Senior Software Engineer
MIT Libraries
Technology Research & Development
sa...@mit.edu
E25-131





On Oct 15, 2010, at 8:59 AM, Grégoire Neuville 
gregoire.neuvi...@gmail.com wrote:

Hi,

You could also have a look at the ORI-OAI project here : http://www.ori-oai.org/
and more specifically at the haverster and repository modules :
http://www.ori-oai.org/display/ORIOAIharvester/ORI-OAI-harvester
http://www.ori-oai.org/display/ORIOAIrepository/ORI-OAI-repository

Cheers,

Grégoire.

On 15 October 2010 13:54, Jos Snellings  wrote:
Hi Marco,

You are looking for scheduled harvesting and storage, whether you save the
harvest in xml or not.
Cocoon is more about the presentation/transformation of xml.

Maybe this brings you closer :
The Digital Commonwealth uses a solr based OAI-PMH engine to search digital
collections within Massachusetts

The SDX project is based upon cocoon, and gets serious about OAI as well:
http://www.nongnu.org/sdx/docs/html/doc-sdx2/en/index.html


Cheers,
Jos

On 10/15/2010 01:35 PM, Marco BÜCHLER wrote:

 Hi,

I'm currently preparing a proposal in the context of Digital Libraries and
Open Access. In this context: Does an implementation such as a block exist
for an OAI web interface? Since Cocoon is an XML based web publishing
framework, I would expect this but I could not found something available in
the internet.

Thanks for any help,

Cheers,
Marco

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







--
Grégoire Neuville

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




Re: [Cocoon+OAI]

2010-10-15 Thread Grégoire Neuville
Hi,

You could also have a look at the ORI-OAI project here : http://www.ori-oai.org/
and more specifically at the haverster and repository modules :
http://www.ori-oai.org/display/ORIOAIharvester/ORI-OAI-harvester
http://www.ori-oai.org/display/ORIOAIrepository/ORI-OAI-repository

Cheers,

Grégoire.

On 15 October 2010 13:54, Jos Snellings  wrote:
> Hi Marco,
>
> You are looking for scheduled harvesting and storage, whether you save the
> harvest in xml or not.
> Cocoon is more about the presentation/transformation of xml.
>
> Maybe this brings you closer :
> The Digital Commonwealth uses a solr based OAI-PMH engine to search digital
> collections within Massachusetts
>
> The SDX project is based upon cocoon, and gets serious about OAI as well:
> http://www.nongnu.org/sdx/docs/html/doc-sdx2/en/index.html
>
>
> Cheers,
> Jos
>
> On 10/15/2010 01:35 PM, Marco BÜCHLER wrote:
>
>  Hi,
>
> I'm currently preparing a proposal in the context of Digital Libraries and
> Open Access. In this context: Does an implementation such as a block exist
> for an OAI web interface? Since Cocoon is an XML based web publishing
> framework, I would expect this but I could not found something available in
> the internet.
>
> Thanks for any help,
>
> Cheers,
> Marco
>
> -
> To unsubscribe, e-mail: users-unsubscr...@cocoon.apache.org
> For additional commands, e-mail: users-h...@cocoon.apache.org
>
>
>
>



-- 
Grégoire Neuville

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



Re: [Cocoon+OAI]

2010-10-15 Thread Jos Snellings

Hi Marco,

You are looking for scheduled harvesting and storage, whether you save 
the harvest in xml or not.

Cocoon is more about the presentation/transformation of xml.

Maybe this brings you closer :
The Digital Commonwealth  uses a 
solr based OAI-PMH engine to search digital collections within Massachusetts


The SDX project is based upon cocoon, and gets serious about OAI as well:
http://www.nongnu.org/sdx/docs/html/doc-sdx2/en/index.html


Cheers,
Jos

On 10/15/2010 01:35 PM, Marco BÜCHLER wrote:

 Hi,

I'm currently preparing a proposal in the context of Digital Libraries 
and Open Access. In this context: Does an implementation such as a 
block exist for an OAI web interface? Since Cocoon is an XML based web 
publishing framework, I would expect this but I could not found 
something available in the internet.


Thanks for any help,

Cheers,
Marco

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






[Cocoon+OAI]

2010-10-15 Thread Marco BÜCHLER

 Hi,

I'm currently preparing a proposal in the context of Digital Libraries 
and Open Access. In this context: Does an implementation such as a block 
exist for an OAI web interface? Since Cocoon is an XML based web 
publishing framework, I would expect this but I could not found 
something available in the internet.


Thanks for any help,

Cheers,
Marco

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