Besides not reporting an error, does running from the command line
actually work as expected? Either way, I'd guess this has to do with
"endorsed libs" and outdated/mismatched versions of the xml libraries.
I don't know enough of the ant/jEdit plugin or the mechanics of jEdit
classloading to help you track it down but that's the first place I'd
look.
Geoff
On Sat, 25 Sep 2004 21:05:04 -0800, JD Daniels <[EMAIL PROTECTED]> wrote:
>
> I can't seem to get the xpatch to work for me :(
> When I call the target from the command line, I do not get any errors,
> but calling it with antfarm inside jedit spits:
>
> Class javax.xml.transform.TransformerFactory loaded from parent loader
> BUILD FAILED
>
> java.lang.ExceptionInInitializerError
>
> at XConfToolTask.execute(Unknown Source)
...
> Caused by: java.lang.ClassCastException
>
> at javax.xml.transform.TransformerFactory.newInstance(Unknown Source)
>
> at DocumentCache.<clinit>(Unknown Source)
...
> I am adding the task to my own project in my build file with:
> <taskdef name="xpatch" classname="XConfToolTask"
> classpath="${cocoon.dev.dir}/tools/anttasks"/>
>
> here is my patch file:
> <?xml version="1.0"?>
> <xconf xpath="cocoon">
> <component role="com.blah.PersistenceFactory"
> class="com.blah.HibernateFactory"/>
> </xconf>
>
> This is what ant spits out at debug level on the command line:
>
> Class org.apache.tools.ant.types.XMLCatalog loaded from parent loader
> (parentFirst)