users@jaxb.java.net

XJC plugin with depencies

From: <mail_at_olimartin.de>
Date: Mon, 3 Jan 2011 21:55:16 +0000 (GMT)

Hi!

I've written a xjc plugin with the following depencies ...
antlr-2.7.7.jar, stringtemplate-3.2.1.jar, slf4j-api-1.6.1.jar and
slf4j-simple-1.6.1.jar.

When I execute the plugin like this ...
xjc -classpath
myplugin.jar:antlr-2.7.7.jar:stringtemplate-3.2.1.jar:slf4j-api-1.6.1.j
ar:slf4j-simple-1.6.1.jar -extension -Xmyplugin myXsd.xsd

... I've got the following error ...

java.lang.ClassCastException:
org.antlr.stringtemplate.language.ChunkToken cannot be cast to
antlr.Token
        at antlr.CharScanner.makeToken(CharScanner.java:173)
        at ...

Is there another stringtemplate/antlr version in the classpath of xjc,
or what is the problem?

- Oliver