Re: output to BMP possible?

Jorg Heymans <[email protected]> Thu, 20 Nov 2003 10:04:08 +0100
Newsgroups gmane.comp.krysalis.user
Message-ID <[email protected]>
Digging further, it seems that somewhere the servlet container gets a 
nosuchmethoderror on 
org.apache.avalon.framework.configuration.DefaultConfiguration.<init>(Ljava/lang/String;)V

I'm using avalon-framework-20020627.jar, default with cocoon 2.0.4.

It would be great if this would work, we could integrate it as a 
standard component (or block) in cocoon.

Any thoughts?

I did not get any further with the saxconfiguration. Doing something like
SAXConfigurationHandler ch = new SAXConfigurationHandler();
ch.setDocumentLocator(this.locator);
Configuration c = ch.getConfiguration();

results in a nullpointerexception, the configuration returned is null.


bleh
Jorg


Jorg Heymans wrote:

> owkay :)
> 
> Following line is not happy under cocoon 2.0.4
> 
> Configuration cfg = 
> ConfigurationUtil.buildConfiguration(org.w3c.dom.Document.document);
> 
> Stepping into this i get to the processelement method in ConfigurationUtil
> 
> private static DefaultConfiguration processElement(Element el) {
>  DefaultConfiguration cfg = new DefaultConfiguration(el.getLocalName());
>  NamedNodeMap atts = el.getAttributes();
>  ...
> 
> Now I have a breakpoint here on both lines. It stops at the first, i 
> step over it but it never executes the second, it seems to go off 
> somewhere into the xerces libs and then all of a sudden the cocoon 
> request is ended, very wierd. Somewhere in there are exceptions that 
> aren't thrown back and the whole thing just dies in silence.
> 
> I'll see about getting some xercers sources for further info.
> 
> 
> Interesting :)
> 
> Jorg
> 
> Jeremias Maerki wrote:
> 
>> See below.
>>
>> On 19.11.2003 16:42:39 Jorg Heymans wrote:
>>
>>> yup that did it thanks :)
>>>
>>> Because i'm using this from within cocoon, i like the fact that this 
>>> lib is using avalon, it matches nicely :)
>>
>>
>>
>> :-)
>>
>>
>>> Another thing:
>>> Is it possible to pass in a Document object to get the configuration?
>>>
>>> So instead of
>>> DefaultConfigurationBuilder builder = new DefaultConfigurationBuilder();
>>> Configuration cfg = builder.buildFromFile(new 
>>> File("barcode-cfg.xml"));       
>>>
>>> something like
>>> DOMConfigurationbuilder builder = new DOMConfigurationbuilder();
>>> Configuration cfg = builder.buildFromDocument(document);
>>
>>
>>
>> There's:
>> http://www.krysalis.org/barcode/javadocs/org/krysalis/barcode/tools/ConfigurationUtil.html 
>>
>>
>> You could try that but I'm not sure that it runs in every situation.
>> Feedback would be highly appreciated.
>>
>>
>>> Alternatively SAX events would be OK as well (to be used in cocoon 
>>> generator or transformer=
>>
>>
>>
>> Then have a look at Avalon Framework's documentation. The
>> SAXConfigurationHandler should help you in this case:
>>
>> http://avalon.apache.org/framework/api/org/apache/avalon/framework/configuration/SAXConfigurationHandler.html 
>>
>>
>> Jeremias Maerki
>>
>>
>>
>> -------------------------------------------------------
>> This SF.net email is sponsored by: SF.net Giveback Program.
>> Does SourceForge.net help you be more productive?  Does it
>> help you create better code?  SHARE THE LOVE, and help us help
>> YOU!  Click Here: http://sourceforge.net/donate/
>> _______________________________________________
>> krysalis-users mailing list
>> [email protected]
>> https://lists.sourceforge.net/lists/listinfo/krysalis-users
>>
> 
> 
> 
> -------------------------------------------------------
> This SF.net email is sponsored by: SF.net Giveback Program.
> Does SourceForge.net help you be more productive?  Does it
> help you create better code?  SHARE THE LOVE, and help us help
> YOU!  Click Here: http://sourceforge.net/donate/
> _______________________________________________
> krysalis-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/krysalis-users
> 



-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive?  Does it
help you create better code?  SHARE THE LOVE, and help us help
YOU!  Click Here: http://sourceforge.net/donate/