Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[udig-devel] NoClassDefFoundError org.apache.batik.css.engine.CSSEngine

So my test case ends up with the following:

java.lang.NoClassDefFoundError: org/apache/batik/css/engine/CSSEngine
	at org.apache.batik.dom.svg.SAXSVGDocumentFactory.<init>(Unknown Source)
	at net.refractions.udig.libs.tests.GeoToolsTest.testSVGGraphicsFactory(GeoToolsTest.java:40)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	at java.lang.reflect.Method.invoke(Method.java:597)
	at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:44)
	at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:15)
	at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:41)
	at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:20)
	at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:28)
	at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:31)
	at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:76)
	at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:50)
	at org.junit.runners.ParentRunner$3.run(ParentRunner.java:193)
	at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:52)
	at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:191)
	at org.junit.runners.ParentRunner.access$000(ParentRunner.java:42)
	at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:184)
	at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:28)
	at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:31)
	at org.junit.runners.ParentRunner.run(ParentRunner.java:236)
	at org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:49)
	at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)
	at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:467)
	at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:683)
	at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:390)
	at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:197)
Caused by: java.lang.ClassNotFoundException: org.apache.batik.css.engine.CSSEngine
	at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
	at java.security.AccessController.doPrivileged(Native Method)
	at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
	at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
	... 28 more

Is this what you are seeing?
Jody

On 14/08/2010, at 4:42 PM, Jody Garnett wrote:

> Okay it looks like the plugin we depend on (transcoder) - while it has dependencies on everything we need; it does not export them causing some of the classes we need to not be found when I write a test case.
> 
> There are two ways to proceed:
> - depend the various batik plugins directly
> - depend on them "indirectly" by listing the packages libs expects to be avaialble
> 
> The second technique is used to allow libs (or any plugin) to use the w3c package space - regardless of which xml implementation is available in the JDK).
> 
> Thus far the first approach is allowing me to write a test case that passes. I will commit in a couple of moments and when you are online we can decide what to do with respect to 1.2.0.
> 
> The other issue is splash screen under win32; Mark Leslie was able to verify this issue exists on his machine (thanks mark).
> 
> Jody
> 
> On 14/08/2010, at 3:19 PM, Jody Garnett wrote:
> 
>> Hi Andrea:
>> 
>> Apparently this issue is important to you; I had been focusing on getting the release out.
>> 
>> What I have done is added a plugin for testing libs to trunk - hopefully this will allow us to bash out test cases and fix problems sooner (and will
>> be helpful when transitioning libs to a more sensible arrangement of individual OSGi plugins).
>> 
>> There are two test cases:
>> - GeoToolsTest.java - a normal JUnit Test that can be run quickly; use this to quickly write up a test case when submitting GeoTools bug reports
>> - LibsTest.java - must be run as a JUnit Plugin Test - used to ensure that things still work when run inside Eclipse
>> 
>> I will use these to check that Batik is available - you indicated a class not found exception earlier (for what class?)
>> Other than that; could you share a sample file with me using dropbox and we should be able to knock this one over.
>> 
>> Jody
>> 
>> On 12/08/2010, at 3:48 AM, andrea antonello wrote:
>> 
>>> Jody, is it possible you pushed out once again svg from the
>>> refresh.xml and so from the build.
>>> I already added it twice now and it always gets away after changes you
>>> applied by you.
>>> The bad part is that style in the official 1.2.0 will not support svg
>>> graphics, which is quite sad.
>>> 
>>> Andrea
>>> _______________________________________________
>>> User-friendly Desktop Internet GIS (uDig)
>>> http://udig.refractions.net
>>> http://lists.refractions.net/mailman/listinfo/udig-devel
>> 
> 



Back to the top