How to solve a 'NoClassDefFoundError' error when usi

Posted by cipdwak on 23-Nov-2010 03:42

Hi,

I'm writing a custom service for rendering xsl-fo files. The service is using Apache FOP 1.0 libraries.

Each time I invoke the service a get a java.lang.NoClassDefFoundError: org/apache/xml/serializer/OutputPropertiesFactory. This class is found in serialiser-2.7.0.jar, used by the apache fop libraries.

After investigating the ESB container log, I saw this log entry:

[10/11/23 10:23:28] ID=Domain1.dev_ESBTest (warning) Could not find file "sonicfs:///workspace/services/lib/serializer-2.7.0.jar" in the container cache

I checked the ESB container configuration and as far as I can see, I've added the .jar to the esb container classpath.

But, clearly, I'm missing somethin here.

Why is the jar not found? It is there, it is added to the classpath, but it is not in the container cache folder.

How do I add this jar tot the container cache, or how do I solve this problem?

T.i.a

Koen

All Replies

Posted by sk185050 on 23-Nov-2010 04:15

Can you check it is loaded in, via SMC?

Or can you put or import some other location via SMC and check.

Posted by cipdwak on 23-Nov-2010 04:51

How do I check if it is loaded in, via SMC?

Posted by sk185050 on 23-Nov-2010 05:30

Check out the attachment, and check the jar is loaded.

Posted by cipdwak on 23-Nov-2010 09:01

I found the problem: It was a xalan version problem (xalan 2.7.0 en 2.7.1 used in the same container). I upgraded the custom service to the latest version and removed the old xalan version from the container setup.

This solved the problem of the NoClassDefFoundError errors.

Posted by sk185050 on 23-Nov-2010 09:10

Oh, okie

This thread is closed