tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From David Delbecq <de...@oma.be>
Subject Re: Where does tomcat loads classes from? Mysterious classes loaded....
Date Thu, 13 Oct 2005 08:31:08 GMT
Finally i found out old xslt classes are provided along the 1.4 jvm,
unfortunately, to replace them, i need to put crimson at the top
of tomcat, in the endorsed libs. If someone has a smarter solution,
I'd like to know about it!


David Delbecq a écrit :

>Hi, to be short, tomcat send me an error in console for my webapp in
>classes which simply
>are not supposed to exist: xalan classes.
>
>Linux debian computer,
>
>here is what i do:
>
>delbd@CAL-12:~/tomcat/jakarta-tomcat-5.5.7$ find * -iname '*xalan*'
>delbd@CAL-12:~/tomcat/jakarta-tomcat-5.5.7$ grep -i -R xalan . | grep -v
>catalina.out
>./webapps/tomcat-docs/printer/class-loader-howto.html:<li><em>org.apache.xalan.*</em></li>
>./webapps/tomcat-docs/class-loader-howto.html:<li><em>org.apache.xalan.*</em></li>
>Fichier binaire ./webapps/intranet/WEB-INF/lib/oscore-2.2.2.jar concorde
>Fichier binaire ./webapps/RMI_intranet/WEB-INF/lib/oscore-2.2.2.jar concorde
>
>ok, so 2 .jar contains references to xalan, here is the entry in those
>jar conatining string xalan:
>
>com/opensymphony/provider/xmlprinter/XalanXMLPrinterProvider$1.class
>com/opensymphony/provider/xmlprinter/XalanXMLPrinterProvider.class
>com/opensymphony/provider/xpath/XalanXpathProvider.class
>
>
>Now, as you see, no track of any org.apache.xalan classes. And for a
>good reason, i replaced xalan by saxon in my webapp.
>Now, here is where the fun starts:
>using an xsl 2.0 in my webapp, supported by saxon but not by xalan, i
>get this:
>
>javax.xml.transform.TransformerException: Impossible de trouver la
>fonction : matches
>        at org.apache.xpath.compiler.XPathParser.error(XPathParser.java:649)
>        at
>org.apache.xpath.compiler.XPathParser.FunctionCall(XPathParser.java:1496)
>        at
>org.apache.xpath.compiler.XPathParser.PrimaryExpr(XPathParser.java:1435)
>        at
>org.apache.xpath.compiler.XPathParser.FilterExpr(XPathParser.java:1334)
>        at
>org.apache.xpath.compiler.XPathParser.PathExpr(XPathParser.java:1267)
>        at
>org.apache.xpath.compiler.XPathParser.UnionExpr(XPathParser.java:1225)
>        at
>org.apache.xpath.compiler.XPathParser.UnaryExpr(XPathParser.java:1131)
>        at
>org.apache.xpath.compiler.XPathParser.MultiplicativeExpr(XPathParser.java:1052)
>        at
>org.apache.xpath.compiler.XPathParser.AdditiveExpr(XPathParser.java:994)
>        at
>org.apache.xpath.compiler.XPathParser.RelationalExpr(XPathParser.java:919)
>        at
>org.apache.xpath.compiler.XPathParser.EqualityExpr(XPathParser.java:859)
>        at
>org.apache.xpath.compiler.XPathParser.AndExpr(XPathParser.java:823)
>        at
>org.apache.xpath.compiler.XPathParser.OrExpr(XPathParser.java:796)
>        at org.apache.xpath.compiler.XPathParser.Expr(XPathParser.java:779)
>        at
>org.apache.xpath.compiler.XPathParser.initXPath(XPathParser.java:172)
>        at org.apache.xpath.XPath.<init>(XPath.java:202)
>        at
>org.apache.xalan.processor.StylesheetHandler.createXPath(StylesheetHandler.java:199)
>        at
>org.apache.xalan.processor.XSLTAttributeDef.processEXPR(XSLTAttributeDef.java:796)
>        at
>org.apache.xalan.processor.XSLTAttributeDef.processValue(XSLTAttributeDef.java:1398)
>        at
>org.apache.xalan.processor.XSLTAttributeDef.setAttrValue(XSLTAttributeDef.java:1589)
>        at
>org.apache.xalan.processor.XSLTElementProcessor.setPropertiesFromAttributes(XSLTElementProcessor.java:381)
>        at
>org.apache.xalan.processor.XSLTElementProcessor.setPropertiesFromAttributes(XSLTElementProcessor.java:312)
>        at
>org.apache.xalan.processor.ProcessorTemplateElem.startElement(ProcessorTemplateElem.java:122)
>        at
>org.apache.xalan.processor.StylesheetHandler.startElement(StylesheetHandler.java:668)
>        at
>org.apache.xerces.parsers.AbstractSAXParser.startElement(Unknown Source)
>        at
>org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanStartElement(Unknown
>Source)
>        at
>org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown
>Source)
>        at
>org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown
>Source)
>        at org.apache.xerces.parsers.XML11Configuration.parse(Unknown
>Source)
>        at org.apache.xerces.parsers.XML11Configuration.parse(Unknown
>Source)
>        at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
>        at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
>        at
>org.apache.xalan.processor.TransformerFactoryImpl.newTemplates(TransformerFactoryImpl.java:972)
>        at
>org.apache.xalan.processor.TransformerFactoryImpl.newTransformer(TransformerFactoryImpl.java:788)
>        at be.dissco.slide.SlideFopDriver.run(SlideFopDriver.java:158)
>        at be.dissco.slide.SlideFopDriver.run(SlideFopDriver.java:136)
>        at
>be.rmi.intranet.workflow.FOPHelper.createDocument(FOPHelper.java:107)
>        at
>be.rmi.intranet.workflow.FOPHelper.createDocument(FOPHelper.java:83)
>        at
>be.rmi.intranet.workflow.FOPHelper.createDocument(FOPHelper.java:80)
>        at
>be.rmi.intranet.workflow.function.BuildPDF.execute(BuildPDF.java:67)
>        at
>com.opensymphony.workflow.AbstractWorkflow.executeFunction(AbstractWorkflow.java:1229)
>        at
>com.opensymphony.workflow.AbstractWorkflow.transitionWorkflow(AbstractWorkflow.java:1268)
>        at
>com.opensymphony.workflow.AbstractWorkflow.initialize(AbstractWorkflow.java:602)
>        at
>be.dissco.opensymphony.SlideWorkflow.initialize(SlideWorkflow.java:110)
>        at
>be.rmi.intranet.struts.InternalMissionAction.request(InternalMissionAction.java:127)
>        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>        at
>sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>        at
>sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>        at java.lang.reflect.Method.invoke(Method.java:324)
>        at
>org.apache.struts.actions.DispatchAction.dispatchMethod(DispatchAction.java:276)
>        at
>org.apache.struts.actions.DispatchAction.execute(DispatchAction.java:196)
>        at
>be.rmi.intranet.struts.InternalMissionAction.execute(InternalMissionAction.java:296)
>        at
>org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:421)
>        at
>org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:226)
>        at
>org.apache.struts.action.ActionServlet.process(ActionServlet.java:1164)
>        at
>org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:415)
>        at javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
>        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
>be.rmi.intranet.filter.ContentEncodingFilter.doFilter(ContentEncodingFilter.java:41)
>        at
>org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
>        at
>org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
>        at
>be.rmi.intranet.db.HibernateFilter.doFilter(HibernateFilter.java:66)
>        at
>org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
>        at
>org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
>        at
>be.rmi.intranet.filter.PrincipalUser.doFilter(PrincipalUser.java:65)
>        at
>org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
>        at
>org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
>        at
>org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:214)
>        at
>org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
>        at
>org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:482)
>        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.valves.AccessLogValve.invoke(AccessLogValve.java:526)
>        at
>org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
>        at
>org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:825)
>        at
>org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:738)
>        at
>org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:526)
>        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:534)
>
>
>Question is, how on hell did tomcat find a way to load
>org.apache.xalan.* classes !!!!!
>Subsidiary question, how do i make tomcat understand it's not xalan, but
>crimson the xslt processor?
>
>
>Thanks for help, am lost!
>David Delbecq
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
>For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
>
>  
>


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


Mime
View raw message