You are viewing a plain text version of this content. The canonical link for it is here.
Posted to batik-users@xmlgraphics.apache.org by George Armhold <ar...@cs.rutgers.edu> on 2003/08/28 19:24:38 UTC
xerces classpath problems running squiggle batik-1.5 from CVS
I'm having the usual classpath problems trying to get squiggle
running. I'm running Batik-1.5 built from the latest CVS, with JDK
1.4.2. I have no problems running my own code that uses batik; I just
have trouble with squiggle. Here's my command path, and the resulting
error msg:
java -cp .:/usr/local/batik/batik.jar:/usr/local/batik/batik-rasterizer.jar:/usr/local/batik/batik-slideshow.jar:/usr/local/batik/batik-squiggle.jar:/usr/local/batik/batik-svgpp.jar:/usr/local/batik/batik-ttf2svg.jar:/usr/local/batik/lib/batik-awt-util.jar:/usr/local/batik/lib/batik-bridge.jar:/usr/local/batik/lib/batik-css.jar:/usr/local/batik/lib/batik-dom.jar:/usr/local/batik/lib/batik-extension.jar:/usr/local/batik/lib/batik-ext.jar:/usr/local/batik/lib/batik-gui-util.jar:/usr/local/batik/lib/batik-gvt.jar:/usr/local/batik/lib/batik-parser.jar:/usr/local/batik/lib/batik-script.jar:/usr/local/batik/lib/batik-svg-dom.jar:/usr/local/batik/lib/batik-svggen.jar:/usr/local/batik/lib/batik-swing.jar:/usr/local/batik/lib/batik-transcoder.jar:/usr/local/batik/lib/batik-util.jar:/usr/local/batik/lib/batik-xml.jar:/usr/local/batik/lib/js.jar:/usr/local/batik/lib/pdf-transcoder.jar:/usr/local/batik/lib/xerces_2_5_0.jar:/usr/local/batik/lib/xml-apis.jar -jar /usr/local/batik/batik-squ
iggle.jar
java.io.IOException: SAX2 driver class org.apache.xerces.parsers.SAXParser not found
at org.apache.batik.dom.util.SAXDocumentFactory.createDocument(Unknown Source)
at org.apache.batik.dom.util.SAXDocumentFactory.createDocument(Unknown Source)
at org.apache.batik.dom.util.SAXDocumentFactory.createDocument(Unknown Source)
at org.apache.batik.apps.svgbrowser.XMLPreferenceManager$XMLProperties.load(Unknown Source)
at org.apache.batik.util.PreferenceManager.load(Unknown Source)
at org.apache.batik.apps.svgbrowser.Main.<init>(Unknown Source)
at org.apache.batik.apps.svgbrowser.Main.main(Unknown Source)
I notice that xerces was recently upgraded to 2_5_0 from 2_3_0. I
also notice the following stanza in
resources/org/apache/batik/apps/svgbrowser/resources/svgbrowser.policy:
grant codeBase "${app.dev.base}/lib/xerces_2_3_0.jar" {
permission java.security.AllPermission;
};
Is this important? The header of the file suggests that it is
automatically generated, but I can't tell how; it seems static in the
ant build module. Any clues appreciated, thanks.
---------------------------------------------------------------------
To unsubscribe, e-mail: batik-users-unsubscribe@xml.apache.org
For additional commands, e-mail: batik-users-help@xml.apache.org
Re: xerces classpath problems running squiggle batik-1.5 from CVS
Posted by Thomas DeWeese <Th...@Kodak.com>.
Hi George,
Yes, the problem is that when I upgraded to xerces 2.5.0 I didn't
update all the appropriate places. This only effects you when you run
from jar files I (and probably most people working from CVS) normally
run from the class files (not that the jars shouldn't work I'm just
explaining my lameness :).
I'll commit the fix tonight. BTW the policy files were machine generated
originally using the policy tool but have long since gone under manual control.
George Armhold wrote:
> Furthermore, I notice that if I softlink xerces_2_5_0.jar to
> xerces_2_3_0.jar, squiggle works just fine. It seems to be unwilling
> to load xerces_2_5_0.jar.
>
>
> George Armhold wrote:
>
> > I notice that xerces was recently upgraded to 2_5_0 from 2_3_0. I
> > also notice the following stanza in
> > resources/org/apache/batik/apps/svgbrowser/resources/svgbrowser.policy:
> >
> >
> > grant codeBase "${app.dev.base}/lib/xerces_2_3_0.jar" {
> > permission java.security.AllPermission;
> > };
> >
> >
> > Is this important? The header of the file suggests that it is
> > automatically generated, but I can't tell how; it seems static in the
> > ant build module. Any clues appreciated, thanks.
>
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: batik-users-unsubscribe@xml.apache.org
> For additional commands, e-mail: batik-users-help@xml.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: batik-users-unsubscribe@xml.apache.org
For additional commands, e-mail: batik-users-help@xml.apache.org
Re: xerces classpath problems running squiggle batik-1.5 from CVS
Posted by George Armhold <ar...@cs.rutgers.edu>.
Furthermore, I notice that if I softlink xerces_2_5_0.jar to
xerces_2_3_0.jar, squiggle works just fine. It seems to be unwilling
to load xerces_2_5_0.jar.
George Armhold wrote:
> I notice that xerces was recently upgraded to 2_5_0 from 2_3_0. I
> also notice the following stanza in
> resources/org/apache/batik/apps/svgbrowser/resources/svgbrowser.policy:
>
>
> grant codeBase "${app.dev.base}/lib/xerces_2_3_0.jar" {
> permission java.security.AllPermission;
> };
>
>
> Is this important? The header of the file suggests that it is
> automatically generated, but I can't tell how; it seems static in the
> ant build module. Any clues appreciated, thanks.
---------------------------------------------------------------------
To unsubscribe, e-mail: batik-users-unsubscribe@xml.apache.org
For additional commands, e-mail: batik-users-help@xml.apache.org