You are viewing a plain text version of this content. The canonical link for it is here.
Posted to j-users@xalan.apache.org by "Evgeniy Strokin (rT)" <ev...@yahoo.com> on 2002/11/22 16:49:49 UTC

TransformerFactoryConfigurationError

I'm not sure this question for this mailing list, but
I'll try:
How it could happen:
javax.xml.transform.TransformerFactoryConfigurationError:
Provider
org.apache.xalan.processor.TransformerFactoryImpl not
found
	at
javax.xml.transform.TransformerFactory.newInstance(Unknown
Source)
If xalan.jar in a classpath (actually it placed under
WEB-INF/lib folder of web application running on
Tomcat, so I hope Tomcat adds this JAR to classpath,
another classes from JARs from this folder I can use).
This string in Servlet throws that exception:
TransformerFactory tFactory =
TransformerFactory.newInstance();
And it happens only when I move my application to Unix
box.
Does somebody have such problem? What is a best way to
solve this?

Thanks,
Jenya


__________________________________________________
Do you Yahoo!?
Yahoo! Mail Plus � Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com

RE: TransformerFactoryConfigurationError

Posted by Gary L Peskin <ga...@firstech.com>.
Jenya --

I'm not sure exactly what you're trying to do and where you're trying to
place various classes.  Since this is a Tomcat 3 problem, I suspect the
issue arises from the fact that your version of Tomcat 3 is not properly
setting the context class loader.

This can be corrected by being sure that you have the Jdk12Interceptor
configured in the appropriate place in your server.xml file.  This would
be under the ContextManager element if you want it to apply to all
contexts.  Of couse, this requires that you be running under JDK 1.2+.

HTH,
Gary

> -----Original Message-----
> From: Evgeniy Strokin (rT) [mailto:evgeniy_strokin@yahoo.com] 
> Sent: Friday, November 22, 2002 7:30 PM
> To: Gary L Peskin; xalan-j-users@xml.apache.org
> Subject: RE: TransformerFactoryConfigurationError
> 
> 
> Thanks Gary, you absolutely right. This is Tomcat
> classloader issue. I've tried run it on Tomcat 4 and
> it works fine. This problem is only on Tomcat 3.
> Unfortunately, I should settle for Tomcat 3 only.
> So, maybe you have some solution how to solve this
> problem? I'll greatly appreciate it :)
> Thanks,
> Jenya
> 
> --- Gary L Peskin <ga...@firstech.com> wrote:
> > This sounds like a Tomcat classloader issue.  You
> > probably have a
> > jaxp.jar or some similar .jar elsewhere in your 
> classpath/classloader
> > hierarchy.
> > 
> > As a side note, I'll look into enhancing XalanJ to
> > provide a more
> > complete error message in cases like this.  We
> > should include the
> > classloader that was used to attempt to make this
> > lookup.
> > 
> > Gary
> > 
> > > -----Original Message-----
> > > From: Evgeniy Strokin (rT)
> > [mailto:evgeniy_strokin@yahoo.com]
> > > Sent: Friday, November 22, 2002 7:50 AM
> > > To: xalan-j-users@xml.apache.org
> > > Subject: TransformerFactoryConfigurationError
> > > 
> > > 
> > > I'm not sure this question for this mailing list,
> > but
> > > I'll try:
> > > How it could happen:
> > >
> >
> javax.xml.transform.TransformerFactoryConfigurationError:
> > > Provider
> > > org.apache.xalan.processor.TransformerFactoryImpl
> > not
> > > found
> > > 	at
> > >
> >
> javax.xml.transform.TransformerFactory.newInstance(Unknown
> > > Source)
> > > If xalan.jar in a classpath (actually it placed
> > under
> > > WEB-INF/lib folder of web application running on
> > Tomcat, so I
> > > hope Tomcat adds this JAR to classpath, another
> > classes from
> > > JARs from this folder I can use). This string in
> > Servlet
> > > throws that exception: TransformerFactory tFactory
> > =
> > > TransformerFactory.newInstance(); And it happens
> > only when I
> > > move my application to Unix box. Does somebody
> > have such
> > > problem? What is a best way to solve this?
> > > 
> > > Thanks,
> > > Jenya
> > > 
> > > 
> > > __________________________________________________
> > > Do you Yahoo!?
> > > Yahoo! Mail Plus - Powerful. Affordable. Sign up
> > now.
> > http://mailplus.yahoo.com
> > 
> > 
> > 
> > 
> 
> 
> __________________________________________________
> Do you Yahoo!?
> Yahoo! Mail Plus - Powerful. Affordable. Sign up now. 
http://mailplus.yahoo.com


RE: TransformerFactoryConfigurationError

Posted by "Evgeniy Strokin (rT)" <ev...@yahoo.com>.
Thanks Gary, you absolutely right. This is Tomcat
classloader issue. I've tried run it on Tomcat 4 and
it works fine. This problem is only on Tomcat 3.
Unfortunately, I should settle for Tomcat 3 only.
So, maybe you have some solution how to solve this
problem? I'll greatly appreciate it :)
Thanks,
Jenya

--- Gary L Peskin <ga...@firstech.com> wrote:
> This sounds like a Tomcat classloader issue.  You
> probably have a
> jaxp.jar or some similar .jar elsewhere in your
> classpath/classloader
> hierarchy.
> 
> As a side note, I'll look into enhancing XalanJ to
> provide a more
> complete error message in cases like this.  We
> should include the
> classloader that was used to attempt to make this
> lookup.
> 
> Gary
> 
> > -----Original Message-----
> > From: Evgeniy Strokin (rT)
> [mailto:evgeniy_strokin@yahoo.com] 
> > Sent: Friday, November 22, 2002 7:50 AM
> > To: xalan-j-users@xml.apache.org
> > Subject: TransformerFactoryConfigurationError
> > 
> > 
> > I'm not sure this question for this mailing list,
> but
> > I'll try:
> > How it could happen:
> >
>
javax.xml.transform.TransformerFactoryConfigurationError:
> > Provider
> > org.apache.xalan.processor.TransformerFactoryImpl
> not
> > found
> > 	at
> >
>
javax.xml.transform.TransformerFactory.newInstance(Unknown
> > Source)
> > If xalan.jar in a classpath (actually it placed
> under 
> > WEB-INF/lib folder of web application running on
> Tomcat, so I 
> > hope Tomcat adds this JAR to classpath, another
> classes from 
> > JARs from this folder I can use). This string in
> Servlet 
> > throws that exception: TransformerFactory tFactory
> = 
> > TransformerFactory.newInstance(); And it happens
> only when I 
> > move my application to Unix box. Does somebody
> have such 
> > problem? What is a best way to solve this?
> > 
> > Thanks,
> > Jenya
> > 
> > 
> > __________________________________________________
> > Do you Yahoo!?
> > Yahoo! Mail Plus - Powerful. Affordable. Sign up
> now. 
> http://mailplus.yahoo.com
> 
> 
> 
> 


__________________________________________________
Do you Yahoo!?
Yahoo! Mail Plus � Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com

RE: TransformerFactoryConfigurationError

Posted by Gary L Peskin <ga...@firstech.com>.
This sounds like a Tomcat classloader issue.  You probably have a
jaxp.jar or some similar .jar elsewhere in your classpath/classloader
hierarchy.

As a side note, I'll look into enhancing XalanJ to provide a more
complete error message in cases like this.  We should include the
classloader that was used to attempt to make this lookup.

Gary

> -----Original Message-----
> From: Evgeniy Strokin (rT) [mailto:evgeniy_strokin@yahoo.com] 
> Sent: Friday, November 22, 2002 7:50 AM
> To: xalan-j-users@xml.apache.org
> Subject: TransformerFactoryConfigurationError
> 
> 
> I'm not sure this question for this mailing list, but
> I'll try:
> How it could happen:
> javax.xml.transform.TransformerFactoryConfigurationError:
> Provider
> org.apache.xalan.processor.TransformerFactoryImpl not
> found
> 	at
> javax.xml.transform.TransformerFactory.newInstance(Unknown
> Source)
> If xalan.jar in a classpath (actually it placed under 
> WEB-INF/lib folder of web application running on Tomcat, so I 
> hope Tomcat adds this JAR to classpath, another classes from 
> JARs from this folder I can use). This string in Servlet 
> throws that exception: TransformerFactory tFactory = 
> TransformerFactory.newInstance(); And it happens only when I 
> move my application to Unix box. Does somebody have such 
> problem? What is a best way to solve this?
> 
> Thanks,
> Jenya
> 
> 
> __________________________________________________
> Do you Yahoo!?
> Yahoo! Mail Plus - Powerful. Affordable. Sign up now. 
http://mailplus.yahoo.com