[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [xmlblaster-devel] Exception in thread "main" java.lang.NoClassDefFoundError: javax/xml/transform/TransformerFactoryConfigurationError



Heinrich Götzger wrote:

Hi,

we just discovered some problems using xmlBlaster with java version
"1.3.1_04".

Building the dist works fine, but starting brings a NoClassDefFoundError:
$ java -jar xmlBlasterDist.jar
[14:34]
Exception in thread "main" java.lang.NoClassDefFoundError:
javax/xml/transform/TransformerFactoryConfigurationError
       at org.xmlBlaster.Main.<init>(Main.java:105)
       at org.xmlBlaster.Main.main(Main.java:493)

The CLASSPATH is "".

We found out that this class is in xml-apis.jar which is in lib/ant and
therefore is available for building, but not for running.

Adding this jar to the CLASSPATH makes xmlBlaster running.

Under java 1.4 this class belongs to the JRE and is not missing.

How shall we fix this?

We should NOT depend on java 1.4 or on any lib/ant stuff.

Probably we need to change the classpath in build.xml?

As i can't reproduce your problem, please try a

  build.sh -verbose xmlBlaster

you can see that ant.jar shows up in the javac task, which is
not what we want - i think it comes from the bootclasspath.

I have no clue how to supress it.

Marcel




regards

Heinrich