You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Daniel Jue <te...@gmail.com> on 2006/12/19 18:43:48 UTC

org.apache.xalan.processor.TransformerFactoryImpl not found tapestry

Hi,
I am using Tapestry 4.0.2, Tomcat 5.5.17, starting Tomcat server via Eclipse.
I'm getting an error in the console when I add the Contrib:Timeout
component to a page.
http://tapestry.apache.org/tapestry4/tapestry-contrib/ComponentReference/Timeout.html

First I'll give the setup and the error text, and then I'll list what
I've done to try and fix it.
=======Part 1 ====================================

Here is how I've included the component, which is very similar to the
documentation for it:
<html>
<head>
<title>Main Page</title>
</head>
<body jwcid="$content$">
<span jwcid="@Border" title="Main Page">
    <span jwcid="@Contrib:Timeout" warningTime="15"/>
  Other stuff here,  like components.
</span>
</body>
</html>

Here is the error that occurs each second in the console, but only
_after_ I hover over any link on the page:

- Servlet.service() for servlet IEIS threw exception
javax.xml.transform.TransformerFactoryConfigurationError: Provider
org.apache.xalan.processor.TransformerFactoryImpl not found
	at javax.xml.transform.TransformerFactory.newInstance(Unknown Source)
	at org.apache.tapestry.contrib.ajax.XTileService.generateOutputString(XTileService.java:134)
	at org.apache.tapestry.contrib.ajax.XTileService.service(XTileService.java:100)
	at $IEngineService_10f9bb5e998.service($IEngineService_10f9bb5e998.java)
	at org.apache.tapestry.services.impl.EngineServiceOuterProxy.service(EngineServiceOuterProxy.java:66)
	at org.apache.tapestry.engine.AbstractEngine.service(AbstractEngine.java:248)
	at org.apache.tapestry.services.impl.InvokeEngineTerminator.service(InvokeEngineTerminator.java:60)
	at $WebRequestServicer_10f9bb5e967.service($WebRequestServicer_10f9bb5e967.java)
	at org.apache.tapestry.services.impl.DisableCachingFilter.service(DisableCachingFilter.java:48)
	at $WebRequestServicerFilter_10f9bb5e969.service($WebRequestServicerFilter_10f9bb5e969.java)
	at $WebRequestServicer_10f9bb5e96b.service($WebRequestServicer_10f9bb5e96b.java)
	at $WebRequestServicer_10f9bb5e963.service($WebRequestServicer_10f9bb5e963.java)
	at org.apache.tapestry.services.impl.WebRequestServicerPipelineBridge.service(WebRequestServicerPipelineBridge.java:56)
	at $ServletRequestServicer_10f9bb5e949.service($ServletRequestServicer_10f9bb5e949.java)
	at org.apache.tapestry.request.DecodedRequestInjector.service(DecodedRequestInjector.java:55)
	at $ServletRequestServicerFilter_10f9bb5e945.service($ServletRequestServicerFilter_10f9bb5e945.java)
	at $ServletRequestServicer_10f9bb5e94b.service($ServletRequestServicer_10f9bb5e94b.java)
	at org.apache.tapestry.multipart.MultipartDecoderFilter.service(MultipartDecoderFilter.java:52)
	at $ServletRequestServicerFilter_10f9bb5e943.service($ServletRequestServicerFilter_10f9bb5e943.java)
	at $ServletRequestServicer_10f9bb5e94b.service($ServletRequestServicer_10f9bb5e94b.java)
	at org.apache.tapestry.services.impl.SetupRequestEncoding.service(SetupRequestEncoding.java:53)
	at $ServletRequestServicerFilter_10f9bb5e947.service($ServletRequestServicerFilter_10f9bb5e947.java)
	at $ServletRequestServicer_10f9bb5e94b.service($ServletRequestServicer_10f9bb5e94b.java)
	at $ServletRequestServicer_10f9bb5e93d.service($ServletRequestServicer_10f9bb5e93d.java)
	at org.apache.tapestry.ApplicationServlet.doService(ApplicationServlet.java:123)
	at org.apache.tapestry.ApplicationServlet.doGet(ApplicationServlet.java:79)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
	at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
	at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
	at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
	at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
	at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
	at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
	at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
	at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
	at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
	at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
	at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
	at java.lang.Thread.run(Thread.java:595)


In this case, I'll usually stop the server...  Then I noticed that a
while later I would get the Javascript pop up saying [WARNING].  So I
guess the timeout is in minutes, not seconds as stated in the
documentation?
http://tapestry.apache.org/tapestry4/tapestry-contrib/ComponentReference/Timeout.html


=======Part 2 ====================================

I've tried looking it up with regards to Tapestry, but it seems like a
more general problem with Tomcat/Java 1.5

Here is one reference that I found:
http://forum.java.sun.com/thread.jspa?tstart=30&forumID=34&threadID=542044&trange=15


I've tried using a set property like this:
System.setProperty('javax.xml.transform.TransformerFactory','org.apache.xalan.processor.TransformerFactoryImpl');
Didn't seem to help.

I also tried it like this:
System.setProperty("javax.xml.transform.TransformerFactory",
"com.sun.org.apache.xalan.internal.xsltc.trax.TransformerFactoryImpl");
Also did not work.

So I downloaded xalan-j_2_7_0.zip, which includes some Jars.

I've also tried puting the Xalan.jar in these places, with no success:
web-inf/lib,
Tomcat/shared/lib
Tomcat/common/endorsed

I've also tried swapping in
serializer.jar, xalan.jar, xercesImpl.jar, xml-apis.jar, xsltc.jar
into these places:
web-inf/lib,
Tomcat/shared/lib
Tomcat/common/endorsed

In those places listed above, there sometimes appear older versions of
xercesImpl.jar and xml-apis.jar.  So for those places I've tried it
with and without replacing the old versions.

In most of these situations, either the web page would not load, or
once it loaded the server would start running at 100%, with no console
output.

I'm quite tired of taking shots in the dark.
Anyone have this working with Tap 4.0.2?  Or do I have to upgrade?

Thanks,

Daniel

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org