Exception during rendering svg file udig/geotools

Description

I am trying to add custom symbols using svg, but I am unable to do the same as every time I get an error:

Nov 18, 2008 2:31:41 PM org.geotools.renderer.lite.StreamingRenderer processStylers
SEVERE: Exception occurrend rendering a feature
java.lang.NoClassDefFoundError: org/geotools/renderer/style/InternalTranscoder
at org.geotools.renderer.style.SLDStyleFactory.getImage(SLDStyleFactory.java:1171)
at org.geotools.renderer.style.SLDStyleFactory.createPointStyle(SLDStyleFactory.java:468)
at org.geotools.renderer.style.SLDStyleFactory.createStyleInternal(SLDStyleFactory.java:343)
at org.geotools.renderer.style.SLDStyleFactory.createStyle(SLDStyleFactory.java:294)
at org.geotools.renderer.lite.StreamingRenderer.processSymbolizers(StreamingRenderer.java:1427)
at org.geotools.renderer.lite.StreamingRenderer.process(StreamingRenderer.java:1342)
at org.geotools.renderer.lite.StreamingRenderer.processStylers(StreamingRenderer.java:1292)
at org.geotools.renderer.lite.StreamingRenderer.paint(StreamingRenderer.java:464)
at org.geotools.renderer.lite.StreamingRenderer.paint(StreamingRenderer.java:374)
at net.refractions.udig.render.internal.feature.basic.BasicFeatureRenderer.render(BasicFeatureRenderer.java:328)
at net.refractions.udig.render.internal.feature.basic.BasicFeatureRenderer.render(BasicFeatureRenderer.java:199)
at net.refractions.udig.project.internal.render.impl.RenderJob.startRendering(RenderJob.java:103)
at net.refractions.udig.project.internal.render.impl.RenderJob.run(RenderJob.java:203)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
java.lang.Exception: Exception occurrend rendering a feature
at org.geotools.renderer.lite.StreamingRenderer.processStylers(StreamingRenderer.java:1303)
at org.geotools.renderer.lite.StreamingRenderer.paint(StreamingRenderer.java:464)
at org.geotools.renderer.lite.StreamingRenderer.paint(StreamingRenderer.java:374)
at net.refractions.udig.render.internal.feature.basic.BasicFeatureRenderer.render(BasicFeatureRenderer.java:328)
at net.refractions.udig.render.internal.feature.basic.BasicFeatureRenderer.render(BasicFeatureRenderer.java:199)
at net.refractions.udig.project.internal.render.impl.RenderJob.startRendering(RenderJob.java:103)
at net.refractions.udig.project.internal.render.impl.RenderJob.run(RenderJob.java:203)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
Caused by: java.lang.NoClassDefFoundError: org/geotools/renderer/style/InternalTranscoder
at org.geotools.renderer.style.SLDStyleFactory.getImage(SLDStyleFactory.java:1171)
at org.geotools.renderer.style.SLDStyleFactory.createPointStyle(SLDStyleFactory.java:468)
at org.geotools.renderer.style.SLDStyleFactory.createStyleInternal(SLDStyleFactory.java:343)
at org.geotools.renderer.style.SLDStyleFactory.createStyle(SLDStyleFactory.java:294)
at org.geotools.renderer.lite.StreamingRenderer.processSymbolizers(StreamingRenderer.java:1427)
at org.geotools.renderer.lite.StreamingRenderer.process(StreamingRenderer.java:1342)
at org.geotools.renderer.lite.StreamingRenderer.processStylers(StreamingRenderer.java:1292)
... 7 more

I have tried this using sld:

<Rule>
<PointSymbolizer>
<Graphic>
<ExternalGraphic>
<OnlineResource xlink:href="file:///D:/DesktopGIS/SVG/SVG-Symbol/symbols/test2.svg"/>
<Format>image/svg</Format>
</ExternalGraphic>
<Size>11</Size>
</Graphic>
</PointSymbolizer>
</Rule>

Even with code below it gives me same error.

ExternalGraphic icon = styleBuilder.createExternalGraphic(
"FILE:///D:/DesktopGIS/SVG/SVG-Symbol/symbols/test2.svg",
"image/svg");
Graphic graphic = styleBuilder.createGraphic( icon, null, null, 1,
60, 45);

PointSymbolizer pointSymbolizer = styleBuilder
.createPointSymbolizer(graphic);
// pointSymbolizer.setGraphic((Graphic) icon2);

Object style = styleBuilder.createStyle(pointSymbolizer);

I have tried with all formats i.e. "image/svg", "image/svg-xml",image/svg+xml"

As it seems InternalTranscoder is missing from class path.(or I am trying to access it from out side package).

Environment

None

Status

Assignee

Unassigned

Reporter

codehaus

Triage

None

Components

Fix versions

Priority

High
Configure