With some help I got this issue resolved. The problem was not my program
crashing, but Geronimo crashing because the system property was set on
the transformer factory system wide in my code. So the way this was
resolved was through adding a file to META-INF/services with the
javax.xml.transform.TransformerFactory with one line
net.sf.joost.trax.TransformerFactoryImpl.

Just thought this update might be useful if anyone else runs into the
same problem later on

Tim Sutton

-----Original Message-----
From: Sutton, Timothy [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, July 19, 2006 2:37 PM
To: [email protected]
Subject: RE: Joost and Geronimo with GBean


I tried to do by putting the files in lib/endorsed, and as far as I can
tell I was already setting the System Property for the Transformer. Is
it possible I would need to set this system property at a higher level
or maybe even in a different classloader? 

Thanks  

Timothy Sutton

-----Original Message-----
From: David Jencks [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, July 19, 2006 12:45 PM
To: [email protected]
Subject: Re: Joost and Geronimo with GBean


My guess would be that you would have to put the xsl implementation  
you want to use in lib/endorsed.  The selection of which transformer  
factory to use is made by a setting a system property and IIUC the  
implementation has to be in an endorsed directory rather than added  
to the classpath some other way.

thanks
david jencks

On Jul 19, 2006, at 9:33 AM, Sutton, Timothy wrote:

> I was wondering if anyone had tried to deploy a Gbean with Joost (stx
> xml parser), and if they had any problems with it. I get the following

> exception.
>
> Exception in thread "Timer-2"
> javax.xml.transform.TransformerFactoryConfigurationError: Provider
> net.sf.joost.trax.TransformerFactoryImpl could not be instantiated: 
> java.lang.NullPointerException
>         at
> javax.xml.transform.TransformerFactory.newInstance
> (TransformerFactory.ja
> va:109)
>         at
> org.apache.geronimo.system.configuration.LocalAttributeManager.saveXml

> To
> File(LocalAttributeManager.java:467)
>         at 
> org.apache.geronimo.system.configuration.LocalAttributeManager.save
> (Loca
> lAttributeManager.java:433)
>         at 
> org.apache.geronimo.system.configuration.LocalAttributeManager$2.run
> (Loc
> alAttributeManager.java:636)
>         at java.util.TimerThread.mainLoop(Timer.java:512)
>         at java.util.TimerThread.run(Timer.java:462)
>
>
> Thanks again!
>
>
> Tim

Reply via email to