Hi, I'm seeing a problem with a Jetty MBean that makes use of Xalan. The problem manifests as a classcast exception. Looking at the stack trace, it appears that the code is failing in
FilterExprIteratorSimple.executeFilterExpr() So I'm assuming that org.apache.Xpath.Objects.XNodeSet is causing the problem. I noticed that the JRE 1.4.2_03 runtime lib (rt.jar) includes several apache classes, including XNodeSet. Is it possible that classes in xalan.jar are conflicting with those in rt.jar? Anyone had similar problems to this? javax.xml.transform.TransformerException: java.lang.ClassCastException at org.apache.xalan.templates.ElemValueOf.execute(Unknown Source) at org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(Unkno wn Source) at org.apache.xalan.templates.ElemLiteralResult.execute(Unknown Source) at org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(Unkno wn Source) at org.apache.xalan.templates.ElemLiteralResult.execute(Unknown Source) at org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(Unkno wn Source) at org.apache.xalan.templates.ElemLiteralResult.execute(Unknown Source) at org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(Unkno wn Source) at org.apache.xalan.transformer.TransformerImpl.applyTemplateToNode(Unknown Source) at org.apache.xalan.transformer.TransformerImpl.transformNode(Unknown Source) at org.apache.xalan.transformer.TransformerImpl.transform(Unknown Source) at org.apache.xalan.transformer.TransformerImpl.transform(Unknown Source) at org.apache.xalan.transformer.TransformerImpl.transform(Unknown Source) at com.staffware.integration.reqprocesslayer.library.xslt.XSLT.transform(XS LT.java:138) at com.staffware.integration.reqprocesslayer.library.xslt.XSLT.onResponse(X SLT.java:89) at com.staffware.integration.server.library.server.ServerEngineBean.invoke( ServerEngineBean.java:183) at com.staffware.integration.frameworkproxy.library.FrameworkProxy.invokeSe rverEngine(FrameworkProxy.java:790) at com.staffware.integration.frameworkproxy.library.FrameworkProxy.processM essage(FrameworkProxy.java:567) at com.staffware.integration.jmspooling.library.pool.QueueReader.run(QueueR eader.java:296) at java.lang.Thread.run(Unknown Source) Caused by: java.lang.ClassCastException at org.apache.xpath.axes.FilterExprIteratorSimple.executeFilterExpr(Unknown Source) at org.apache.xpath.axes.FilterExprWalker.setRoot(Unknown Source) at org.apache.xpath.axes.WalkingIterator.setRoot(Unknown Source) at org.apache.xpath.axes.LocPathIterator.executeCharsToContentHandler(Unkno wn Source) ... 20 more --------- java.lang.ClassCastException at org.apache.xpath.axes.FilterExprIteratorSimple.executeFilterExpr(Unknown Source) at org.apache.xpath.axes.FilterExprWalker.setRoot(Unknown Source) at org.apache.xpath.axes.WalkingIterator.setRoot(Unknown Source) at org.apache.xpath.axes.LocPathIterator.executeCharsToContentHandler(Unkno wn Source) at org.apache.xalan.templates.ElemValueOf.execute(Unknown Source) at org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(Unkno wn Source) at org.apache.xalan.templates.ElemLiteralResult.execute(Unknown Source) at org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(Unkno wn Source) at org.apache.xalan.templates.ElemLiteralResult.execute(Unknown Source) at org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(Unkno wn Source) at org.apache.xalan.templates.ElemLiteralResult.execute(Unknown Source) at org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(Unkno wn Source) at org.apache.xalan.transformer.TransformerImpl.applyTemplateToNode(Unknown Source) at org.apache.xalan.transformer.TransformerImpl.transformNode(Unknown Source) at org.apache.xalan.transformer.TransformerImpl.transform(Unknown Source) at org.apache.xalan.transformer.TransformerImpl.transform(Unknown Source) at org.apache.xalan.transformer.TransformerImpl.transform(Unknown Source) at com.staffware.integration.reqprocesslayer.library.xslt.XSLT.transform(XS LT.java:138) at com.staffware.integration.reqprocesslayer.library.xslt.XSLT.onResponse(X SLT.java:89) at com.staffware.integration.server.library.server.ServerEngineBean.invoke( ServerEngineBean.java:183) at com.staffware.integration.frameworkproxy.library.FrameworkProxy.invokeSe rverEngine(FrameworkProxy.java:790) at com.staffware.integration.frameworkproxy.library.FrameworkProxy.processM essage(FrameworkProxy.java:567) at com.staffware.integration.jmspooling.library.pool.QueueReader.run(QueueR eader.java:296) at java.lang.Thread.run(Unknown Source) 2006-04-13 09:39:51,034 [FATAL] [Thread-42] ServerEngineBean - Failed to process handler com.staffware.integration.common.library.message.SWMessageHandlerExcepti on: Unable to process XSLT at com.staffware.integration.reqprocesslayer.library.xslt.XSLT.transform(XS LT.java:146) at com.staffware.integration.reqprocesslayer.library.xslt.XSLT.onResponse(X SLT.java:89) at com.staffware.integration.server.library.server.ServerEngineBean.invoke( ServerEngineBean.java:183) at com.staffware.integration.frameworkproxy.library.FrameworkProxy.invokeSe rverEngine(FrameworkProxy.java:790) at com.staffware.integration.frameworkproxy.library.FrameworkProxy.processM essage(FrameworkProxy.java:567) at com.staffware.integration.jmspooling.library.pool.QueueReader.run(QueueR eader.java:296) at java.lang.Thread.run(Unknown Source) Caused by: javax.xml.transform.TransformerException: java.lang.ClassCastException at org.apache.xalan.templates.ElemValueOf.execute(Unknown Source) at org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(Unkno wn Source) at org.apache.xalan.templates.ElemLiteralResult.execute(Unknown Source) at org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(Unkno wn Source) at org.apache.xalan.templates.ElemLiteralResult.execute(Unknown Source) at org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(Unkno wn Source) at org.apache.xalan.templates.ElemLiteralResult.execute(Unknown Source) at org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(Unkno wn Source) at org.apache.xalan.transformer.TransformerImpl.applyTemplateToNode(Unknown Source) at org.apache.xalan.transformer.TransformerImpl.transformNode(Unknown Source) at org.apache.xalan.transformer.TransformerImpl.transform(Unknown Source) at org.apache.xalan.transformer.TransformerImpl.transform(Unknown Source) at org.apache.xalan.transformer.TransformerImpl.transform(Unknown Source) at com.staffware.integration.reqprocesslayer.library.xslt.XSLT.transform(XS LT.java:138) ... 6 more Caused by: java.lang.ClassCastException at org.apache.xpath.axes.FilterExprIteratorSimple.executeFilterExpr(Unknown Source) at org.apache.xpath.axes.FilterExprWalker.setRoot(Unknown Source) at org.apache.xpath.axes.WalkingIterator.setRoot(Unknown Source) at org.apache.xpath.axes.LocPathIterator.executeCharsToContentHandler(Unkno wn Source) ... 20 more 2006-04-13 09:39:51,034 [ERROR] [Thread-42] FrameworkProxy - Unable to invoke server engine com.staffware.integration.common.library.server.SWServerEngineException: Failed to process handler at com.staffware.integration.server.library.server.ServerEngineBean.invoke( ServerEngineBean.java:202) at com.staffware.integration.frameworkproxy.library.FrameworkProxy.invokeSe rverEngine(FrameworkProxy.java:790) at com.staffware.integration.frameworkproxy.library.FrameworkProxy.processM essage(FrameworkProxy.java:567) at com.staffware.integration.jmspooling.library.pool.QueueReader.run(QueueR eader.java:296) at java.lang.Thread.run(Unknown Source) Caused by: com.staffware.integration.common.library.message.SWMessageHandlerExcepti on: Unable to process XSLT at com.staffware.integration.reqprocesslayer.library.xslt.XSLT.transform(XS LT.java:146) at com.staffware.integration.reqprocesslayer.library.xslt.XSLT.onResponse(X SLT.java:89) at com.staffware.integration.server.library.server.ServerEngineBean.invoke( ServerEngineBean.java:183) ... 4 more Caused by: javax.xml.transform.TransformerException: java.lang.ClassCastException at org.apache.xalan.templates.ElemValueOf.execute(Unknown Source) at org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(Unkno wn Source) at org.apache.xalan.templates.ElemLiteralResult.execute(Unknown Source) at org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(Unkno wn Source) at org.apache.xalan.templates.ElemLiteralResult.execute(Unknown Source) at org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(Unkno wn Source) at org.apache.xalan.templates.ElemLiteralResult.execute(Unknown Source) at org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(Unkno wn Source) at org.apache.xalan.transformer.TransformerImpl.applyTemplateToNode(Unknown Source) at org.apache.xalan.transformer.TransformerImpl.transformNode(Unknown Source) at org.apache.xalan.transformer.TransformerImpl.transform(Unknown Source) at org.apache.xalan.transformer.TransformerImpl.transform(Unknown Source) at org.apache.xalan.transformer.TransformerImpl.transform(Unknown Source) at com.staffware.integration.reqprocesslayer.library.xslt.XSLT.transform(XS LT.java:138) ... 6 more Caused by: java.lang.ClassCastException at org.apache.xpath.axes.FilterExprIteratorSimple.executeFilterExpr(Unknown Source) at org.apache.xpath.axes.FilterExprWalker.setRoot(Unknown Source) at org.apache.xpath.axes.WalkingIterator.setRoot(Unknown Source) at org.apache.xpath.axes.LocPathIterator.executeCharsToContentHandler(Unkno wn Source) ... 20 more 2006-04-13 09:39:51,034 [ERROR] [Thread-42] FrameworkProxy - Unable to invoke server engine com.staffware.integration.jmspooling.library.SWPooledWorkerException: Unable to invoke server engine at com.staffware.integration.frameworkproxy.library.FrameworkProxy.invokeSe rverEngine(FrameworkProxy.java:796) at com.staffware.integration.frameworkproxy.library.FrameworkProxy.processM essage(FrameworkProxy.java:567) at com.staffware.integration.jmspooling.library.pool.QueueReader.run(QueueR eader.java:296) at java.lang.Thread.run(Unknown Source) Caused by: com.staffware.integration.common.library.server.SWServerEngineException: Failed to process handler at com.staffware.integration.server.library.server.ServerEngineBean.invoke( ServerEngineBean.java:202) at com.staffware.integration.frameworkproxy.library.FrameworkProxy.invokeSe rverEngine(FrameworkProxy.java:790) ... 3 more Caused by: com.staffware.integration.common.library.message.SWMessageHandlerExcepti on: Unable to process XSLT at com.staffware.integration.reqprocesslayer.library.xslt.XSLT.transform(XS LT.java:146) at com.staffware.integration.reqprocesslayer.library.xslt.XSLT.onResponse(X SLT.java:89) at com.staffware.integration.server.library.server.ServerEngineBean.invoke( ServerEngineBean.java:183) ... 4 more Caused by: javax.xml.transform.TransformerException: java.lang.ClassCastException at org.apache.xalan.templates.ElemValueOf.execute(Unknown Source) at org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(Unkno wn Source) at org.apache.xalan.templates.ElemLiteralResult.execute(Unknown Source) at org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(Unkno wn Source) at org.apache.xalan.templates.ElemLiteralResult.execute(Unknown Source) at org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(Unkno wn Source) at org.apache.xalan.templates.ElemLiteralResult.execute(Unknown Source) at org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(Unkno wn Source) at org.apache.xalan.transformer.TransformerImpl.applyTemplateToNode(Unknown Source) at org.apache.xalan.transformer.TransformerImpl.transformNode(Unknown Source) at org.apache.xalan.transformer.TransformerImpl.transform(Unknown Source) at org.apache.xalan.transformer.TransformerImpl.transform(Unknown Source) at org.apache.xalan.transformer.TransformerImpl.transform(Unknown Source) at com.staffware.integration.reqprocesslayer.library.xslt.XSLT.transform(XS LT.java:138) ... 6 more Caused by: java.lang.ClassCastException at org.apache.xpath.axes.FilterExprIteratorSimple.executeFilterExpr(Unknown Source) at org.apache.xpath.axes.FilterExprWalker.setRoot(Unknown Source) at org.apache.xpath.axes.WalkingIterator.setRoot(Unknown Source) at org.apache.xpath.axes.LocPathIterator.executeCharsToContentHandler(Unkno wn Source) ... 20 more