On 2016-12-11 Martin Gainty wrote:
> On 2016-12-09 Jan Tosovsky wrote:
> > On 2016-12-08 Michael Harris wrote:
> > > On 2016-12-07 Jan Tosovsky wrote:
> > > >
> > > > I've tried to convert my SVG file using Batik rasterizer 
> > > > using the following command, but it ends with 
> > > > NoClassDefFoundError:
> > > >
> > > > D:\batik-1.8>java -Xmx512m -jar batik-rasterizer-1.8.jar 
> > > > -m application/pdf horologium.svg
> > > >
> > > > Exception in thread "main" java.lang.NoClassDefFoundError:
> > > >    org/apache/batik/dom/svg/SVGDOMImplementation at
> > > >    ...
> > >
> > > There is a SVGDOMImplementation in 1.8, but for some reason 
> > > it was moved to org.apache.batik.anim.dom.

This issue turned out to be a known issue:
https://issues.apache.org/jira/browse/BATIK-1148

> > To be honest, moving SVG DOM implementation into 'anim' package 
> > and moreover 'anim' module is questionable. As a developer I would 
> > be surprised by the request to include 'anim' module dependency 
> > in case I need to generate PDF even there is no animation 
> > in my SVG file.
> >
> > I'd rather expect to have a separate module svd-dom-impl with 
> > this stuff. And for consistency to rename svg-dom to svg-dom-api.
>
> refactoring artifacts to be repackaged into a different package is
> *supposed to follow spec change* e.g. DOM spec version 4 specified 
> 19 Nov 2015 in https://www.w3.org/TR/dom/

I am  not sure if we understand each other.

My idea was:
(1) to create a new batik module with that SVG DOM implementation only. Its
classes would be located in
org.apache.batik.dom namespace.
(2) to rename svg-dom module to svg-dom-api, but without changes in the
content.

It is analogy for e.g. JSF with separate jsf-api and jsf-impl modules.

If SVG DOM implementation has been moved to anim module only because of
circular dependency, moving it into a dedicated module is IMHO a better
approach than messing another module with unrelated stuff (from my POV).

 
> for any other reason then you as a software professional and apache
> member should ask why?
> 
> https://issues.apache.org/jira/browse/BATIK-1169
> 
> please let me know what the response is
> 

I am lost here. How is it related to a discussed NoClassDefFoundError?

Jan


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to