geronimo-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sutton, Timothy" <>
Subject RE: Joost and Geronimo with GBean
Date Fri, 21 Jul 2006 20:52:14 GMT
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

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

Tim Sutton

-----Original Message-----
From: Sutton, Timothy [] 
Sent: Wednesday, July 19, 2006 2:37 PM
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? 


Timothy Sutton

-----Original Message-----
From: David Jencks [] 
Sent: Wednesday, July 19, 2006 12:45 PM
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.

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(
>         at 
> (Loca
>         at 
> org.apache.geronimo.system.configuration.LocalAttributeManager$
> (Loc
>         at java.util.TimerThread.mainLoop(
>         at
> Thanks again!
> Tim

View raw message