I wrote a web application that uses XALAN to transform xml source using
"tab.xsl" file
This web application works fine when I run it on Tomcat. (Tomcat
automatically extracts the contents of .war file)
But when I deploy it on WebLogic 6.1 it is trying to load "tab.xsl" file
from the .war file.
String uri =
getServletContext().getResource("/WEB-INF/xsl/tab.xsl").toString();
when I run it on WebLogic returns string:
"zip:C:/bea/wlserver6.1/config/mydomain/applications/.wlnotdelete/wl_comp296
17.war#WEB-INF/xsl/tab.xsl"
transformer = TemplatesCache.getTransformer(uri);
throws exception:
javax.xml.transform.TransformerConfigurationException:
javax.xml.transform.TransformerException:
javax.xml.transform.TransformerException: Did not find the stylesheet root!
at
weblogic.apache.xalan.processor.TransformerFactoryImpl.newTemplates(Transfor
merFactoryImpl.java:856)
at
weblogic.xml.jaxp.WebLogicSAXTransformerFactory.newTemplates(WebLogicSAXTran
sformerFactory.java:158)
at
weblogic.xml.jaxp.RegistrySAXTransformerFactory.newTemplates(RegistrySAXTran
sformerFactory.java:170)
at com.qwest.neap.util.TemplatesCache.getTransformer(TemplatesCache.java:17)
Question: Can XALAN load data from zip/war archive?
If yes - then why I am getting this exception and can it be more meaningful?