[xmlc] SSI and XMLC
Sasa Bojanic <[email protected]> Thu, 31 Mar 2011 16:31:32 +0200
| Newsgroups | gmane.comp.java.enhydra.xmlc |
|---|---|
| Message-ID | <[email protected]> |
This is a multi-part message in MIME format...
------------=_1301581906-30467-16281
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
Me again :-)
Just a question...have you changed to XMLC related to Server Side
Includes from HTML?
The situation is the following:
HTML file (processed by XMLC) includes another HTML file via relative path:
<!--#include virtual="../media/TopBanner.ssi"-->
When XMLC parses HTML file, I get the following exception (when all the
resources are in the JAR file):
java.io.FileNotFoundException: JAR entry
com/lutris/airsent/presentation/customer/../media/TopBanner.ssi not
found in D:\apache-tomcat-6.0.29\webapps\airSent\WEB-INF\lib\airSent.jar
at
sun.net.www.protocol.jar.JarURLConnection.connect(JarURLConnection.java:122)
at
sun.net.www.protocol.jar.JarURLConnection.getInputStream(JarURLConnection.java:132)
at
org.enhydra.xml.io.InputSourceOps.openSystemId(InputSourceOps.java:65)
at org.enhydra.xml.io.InputSourceOps.open(InputSourceOps.java:85)
at
org.enhydra.xml.xmlc.misc.SSIParsedStream.readIntoBuffer(SSIParsedStream.java:198)
at
org.enhydra.xml.xmlc.misc.SSIParsedStream.<init>(SSIParsedStream.java:159)
at
org.enhydra.xml.xmlc.misc.SSIReader.openSSIInclude(SSIReader.java:153)
at
org.enhydra.xml.xmlc.misc.SSIReader.processSSIInclude(SSIReader.java:169)
at
org.enhydra.xml.xmlc.misc.SSIReader.processSSIDirective(SSIReader.java:179)
at org.enhydra.xml.xmlc.misc.SSIReader.read(SSIReader.java:228)
at
org.cyberneko.html.HTMLScanner$CurrentEntity.load(HTMLScanner.java:1772)
at
org.cyberneko.html.HTMLScanner.skipNewlines(HTMLScanner.java:1522)
at
org.cyberneko.html.HTMLScanner$ContentScanner.scanCharacters(HTMLScanner.java:2227)
at
org.cyberneko.html.HTMLScanner$ContentScanner.scan(HTMLScanner.java:1964)
at
org.cyberneko.html.HTMLScanner.scanDocument(HTMLScanner.java:895)
at
org.cyberneko.html.HTMLConfiguration.parse(HTMLConfiguration.java:499)
at
org.cyberneko.html.HTMLConfiguration.parse(HTMLConfiguration.java:452)
at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
at org.apache.xerces.parsers.DOMParser.parse(Unknown Source)
at
org.enhydra.xml.xmlc.parsers.xerces.XercesDOMParser.parse(XercesDOMParser.java:113)
at
org.enhydra.xml.xmlc.parsers.xerces.XercesHTMLDOMParser.parse(XercesHTMLDOMParser.java:64)
at org.enhydra.xml.xmlc.compiler.Parse.parse(Parse.java:291)
at
org.enhydra.xml.xmlc.deferredparsing.DocumentLoaderImpl.parseDocument(DocumentLoaderImpl.java:405)
at
org.enhydra.xml.xmlc.deferredparsing.DocumentLoaderImpl.getCacheEntry(DocumentLoaderImpl.java:175)
at
org.enhydra.xml.xmlc.deferredparsing.DocumentLoaderImpl.getDocument(DocumentLoaderImpl.java:247)
at
com.lutris.airsent.presentation.customer.LoginHTML.buildDocument(Unknown
Source)
at
com.lutris.airsent.presentation.customer.LoginHTML.<init>(Unknown Source)
at
com.lutris.airsent.presentation.customer.LoginHTML.<init>(Unknown Source)
at
sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at
sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
at
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
at
org.enhydra.xml.xmlc.deferredparsing.XMLCDeferredParsingFactory.createObject(XMLCDeferredParsingFactory.java:160)
at
org.enhydra.xml.xmlc.deferredparsing.XMLCDeferredParsingFactory.doCreate(XMLCDeferredParsingFactory.java:185)
at
org.enhydra.xml.xmlc.XMLCStdFactory.create(XMLCStdFactory.java:139)
at
com.lutris.airsent.presentation.customer.Login.showPage(Unknown Source)
at
com.lutris.airsent.presentation.customer.Login.handleDefault(Unknown Source)
at com.lutris.airsent.presentation.BasePO.handleEvent(Unknown
Source)
at com.lutris.airsent.presentation.BasePO.run(Unknown Source)
at
com.lutris.appserver.server.httpPresentation.HttpPresentationManager.runPresentationObj(Unknown
Source)
at
com.lutris.appserver.server.httpPresentation.HttpPresentationManager.Run(Unknown
Source)
at
com.lutris.appserver.server.httpPresentation.servlet.HttpPresentationServlet.serviceDirect(Unknown
Source)
at
com.lutris.appserver.server.httpPresentation.servlet.HttpPresentationServlet.service(Unknown
Source)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298)
at
org.apache.coyote.http11.Http11AprProcessor.process(Http11AprProcessor.java:861)
at
org.apache.coyote.http11.Http11AprProtocol$Http11ConnectionHandler.process(Http11AprProtocol.java:579)
at
org.apache.tomcat.util.net.AprEndpoint$Worker.run(AprEndpoint.java:1584)
at java.lang.Thread.run(Thread.java:662)
org.enhydra.xml.xmlc.XMLCError: Couldn't load XMLC class
Just to mention, like always with XMLC2.3-1 it worked...maybe because
our "magical" classloader...but can't be sure.
Greetings,
Sasa.
------------=_1301581906-30467-16281
Content-Type: text/plain; charset="UTF-8"; name="message-footer.txt"
Content-Disposition: inline; filename="message-footer.txt"
Content-Transfer-Encoding: quoted-printable
--
You receive this message as a subscriber of the [email protected] mailing list=
.
To unsubscribe: mailto:[email protected]
For general help: mailto:[email protected]?subject=3Dhelp
OW2 mailing lists service home page: http://www.ow2.org/wws
------------=_1301581906-30467-16281--