You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@xalan.apache.org by bu...@apache.org on 2001/11/07 22:17:22 UTC

DO NOT REPLY [Bug 4711] New: - xsltc TrAX servlet thows No parser input source trying to create templates

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=4711>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=4711

xsltc TrAX servlet thows No parser input source trying to create templates

           Summary: xsltc TrAX servlet thows No parser input source trying
                    to create templates
           Product: XalanJ2
           Version: CurrentCVS
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: Blocker
          Priority: Other
         Component: org.apache.xalan.xsltc
        AssignedTo: xalan-dev@xml.apache.org
        ReportedBy: tom.amiro@sun.com


This trax version of the "search" servlet was working until very 
recently, but now it blows up in the init method as Tomcat attempts 
to load the context. One thing that changed recently was the introduction
of xml-commons into the build process. Also, there is a related discussion 
in bug 4574. Note, at the same time a version of the servlet using 
Xalan, which creates a templates object, works!

Here's the messages showing the error.

XmlMapper: Set locator : org.apache.crimson.parser.Parser2$DocLocator@505c81
2001-11-07 03:43:50 - Ctx( /calendar ): Add user tomcat tomcat tomcat
2001-11-07 03:43:50 - Ctx( /calendar ): Add user role1 tomcat role1
2001-11-07 03:43:50 - Ctx( /calendar ): Add user both tomcat tomcat,role1
2001-11-07 03:43:50 - Ctx( /calendar ): Loading -2147483646 jsp
2001-11-07 03:43:50 - Ctx( /calendar ): Loading 5 xslt
2001-11-07 03:43:50 - Ctx( /calendar ): Loading 5 xalan
2001-11-07 03:43:50 - Ctx( /calendar ): Get real path search_xalan.xsl
/usr/local/tomcat/webapps/calendar/search_xalan.xsl
/usr/local/tomcat/webapps/calendar
in the try
xslSource is javax.xml.transform.stream.StreamSource@2b853b
tFactory is org.apache.xalan.processor.TransformerFactoryImpl@382368
template is org.apache.xalan.templates.StylesheetRoot@49b9ca
2001-11-07 03:43:52 - Ctx( /calendar ): Loading 5 xsltnc
2001-11-07 03:43:52 - Ctx( /calendar ): Loading 5 xslttrax
2001-11-07 03:43:52 - Ctx( /calendar ): Get real path search.xsl
/usr/local/tomcat/webapps/calendar/search.xsl /usr/local/tomcat/webapps/calendar
in the try
xslfile is file:/usr/local/tomcat/webapps/calendar/search.xsl
xslSource is javax.xml.transform.stream.StreamSource@3fc93a
tFactory is org.apache.xalan.xsltc.trax.TransformerFactoryImpl@341960
ERROR: No parser input source!
javax.xml.transform.TransformerConfigurationException: Could not compile
stylesheet
        at
org.apache.xalan.xsltc.trax.TransformerFactoryImpl.newTemplates(Unknown Source)
        at XSLTCTraxServlet.init(XSLTCTraxServlet.java:99)
        at org.apache.tomcat.core.ServletWrapper.doInit(ServletWrapper.java:317)
        at org.apache.tomcat.core.Handler.init(Handler.java:215)
        at org.apache.tomcat.core.ServletWrapper.init(ServletWrapper.java:296)
        at
org.apache.tomcat.context.LoadOnStartupInterceptor.contextInit(LoadOnStartupInterceptor.java:130)
        at
org.apache.tomcat.core.ContextManager.initContext(ContextManager.java:491)
        at org.apache.tomcat.core.ContextManager.init(ContextManager.java:453)
        at org.apache.tomcat.startup.Tomcat.execute(Tomcat.java:195)
        at org.apache.tomcat.startup.Tomcat.main(Tomcat.java:235)
can't make templates, Could not compile stylesheet