[ 
https://issues.apache.org/jira/browse/XMLCOMMONS-3?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Elliotte Rusty Harold resolved XMLCOMMONS-3.
--------------------------------------------
    Resolution: Not A Bug

> javax.xml.transformer.FactoryFinder#newInstance fails when called from 
> servlets
> -------------------------------------------------------------------------------
>
>                 Key: XMLCOMMONS-3
>                 URL: https://issues.apache.org/jira/browse/XMLCOMMONS-3
>             Project: XML Commons
>          Issue Type: Bug
>          Components: XML Commons External (JAXP)
>    Affects Versions: 1.x
>         Environment: Operating System: All
> Platform: PC
>            Reporter: Daiki Ueno
>            Priority: Major
>
> Since I updated Xalan-Java 2.2D12, my servlet using javax.xml.transformer.*
> has spewed up the following error:
> Error: 500
> Location: /diary/servlet/view
> Internal Servlet Error:
> javax.xml.transform.TransformerFactoryConfigurationError: Provider
> org.apache.xalan.processor.TransformerFactoryImpl not found
>       at javax.xml.transform.TransformerFactory.newInstance(Unknown Source)
>       at 
> org.unixuser.ueno.diary.processors.TransformerProcessor.process(Unknown 
> Source)
>       at org.unixuser.ueno.diary.DiaryBuilder.process(Unknown Source)
>       at org.unixuser.ueno.diary.DiaryBuilder.build(Unknown Source)
>       at org.unixuser.ueno.diary.servlet.View.doGet(Unknown Source)
>       at javax.servlet.http.HttpServlet.service(HttpServlet.java)
>       at javax.servlet.http.HttpServlet.service(HttpServlet.java)
> ...
> Of course, the SPI class org.apache.xalan.processor.TransformerFactoryImpl
> is located in <tomcat>/webapps/diary/lib/xalan.jar counted when the
> servlet container started.
> When I made a change in FactoryFinder#newInstance(String,ClassLoader)
> not to use the context ClassLoader for the current thread (i.e. always
> to call Class.forName), it worked as before.
> Regards,



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to