[xmlc] Re: SSI and XMLC

"Jacob Kjome" <[email protected]> Thu, 31 Mar 2011 12:44:00 -0500
Newsgroups gmane.comp.java.enhydra.xmlc
Message-ID <[email protected]>
This is a multi-part message in MIME format...

------------=_1301593443-30467-16290
Content-Type: text/plain;charset=iso-8859-1; format="flowed"
Content-Transfer-Encoding: quoted-printable


It looks like it's referencing the jar it should exist in, and clearly it=
=20
found the markup file including the SSI, so I don't think this is a=20
classloader issue.

Does the path seem right to you?=A0 That is, does the file in question ex=
ist in=20
the following relative path within the airSent.jar file?....

com/lutris/airsent/presentation/media/TopBanner.ssi

If you can confirm that, I can try to test things out at home tonight.=A0=
 I=20
presume this jar is one of those in the zip file containing all the webap=
ps=20
which can be deployed under Tomcat Standalone?


Jake

On Thu, 31 Mar 2011 16:31:32 +0200
=A0Sasa Bojanic <[email protected]> wrote:
> Me again :-)
>=20
> Just a question...have you changed to XMLC related to Server Side Inclu=
des=20
>from HTML?
>=20
> The situation is the following:
>=20
> HTML file (processed by XMLC) includes another HTML file via relative p=
ath:
>=20
> <!--#include virtual=3D"../media/TopBanner.ssi"-->
>=20
> When XMLC parses HTML file, I get the following exception (when all the=
=20
>resources are in the JAR file):
>=20
> java.io.FileNotFoundException: JAR entry=20
>com/lutris/airsent/presentation/customer/../media/TopBanner.ssi not foun=
d in=20
>D:\apache-tomcat-6.0.29\webapps\airSent\WEB-INF\lib\airSent.jar
>=A0=A0=A0=A0=A0=A0=A0=A0 at=20
>sun.net.www.protocol.jar.JarURLConnection.connect(JarURLConnection.java:=
122)
>=A0=A0=A0=A0=A0=A0=A0=A0 at=20
>sun.net.www.protocol.jar.JarURLConnection.getInputStream(JarURLConnectio=
n.java:132)
>=A0=A0=A0=A0=A0=A0=A0=A0 at=20
>org.enhydra.xml.io.InputSourceOps.openSystemId(InputSourceOps.java:65)
>=A0=A0=A0=A0=A0=A0=A0=A0 at org.enhydra.xml.io.InputSourceOps.open(Input=
SourceOps.java:85)
>=A0=A0=A0=A0=A0=A0=A0=A0 at=20
>org.enhydra.xml.xmlc.misc.SSIParsedStream.readIntoBuffer(SSIParsedStream=
.java:198)
>=A0=A0=A0=A0=A0=A0=A0=A0 at=20
>org.enhydra.xml.xmlc.misc.SSIParsedStream.<init>(SSIParsedStream.java:15=
9)
>=A0=A0=A0=A0=A0=A0=A0=A0 at=20
>org.enhydra.xml.xmlc.misc.SSIReader.openSSIInclude(SSIReader.java:153)
>=A0=A0=A0=A0=A0=A0=A0=A0 at=20
>org.enhydra.xml.xmlc.misc.SSIReader.processSSIInclude(SSIReader.java:169=
)
>=A0=A0=A0=A0=A0=A0=A0=A0 at=20
>org.enhydra.xml.xmlc.misc.SSIReader.processSSIDirective(SSIReader.java:1=
79)
>=A0=A0=A0=A0=A0=A0=A0=A0 at org.enhydra.xml.xmlc.misc.SSIReader.read(SSI=
Reader.java:228)
>=A0=A0=A0=A0=A0=A0=A0=A0 at=20
>org.cyberneko.html.HTMLScanner$CurrentEntity.load(HTMLScanner.java:1772)
>=A0=A0=A0=A0=A0=A0=A0=A0 at=20
>org.cyberneko.html.HTMLScanner.skipNewlines(HTMLScanner.java:1522)
>=A0=A0=A0=A0=A0=A0=A0=A0 at=20
>org.cyberneko.html.HTMLScanner$ContentScanner.scanCharacters(HTMLScanner=
.java:2227)
>=A0=A0=A0=A0=A0=A0=A0=A0 at=20
>org.cyberneko.html.HTMLScanner$ContentScanner.scan(HTMLScanner.java:1964=
)
>=A0=A0=A0=A0=A0=A0=A0=A0 at org.cyberneko.html.HTMLScanner.scanDocument(=
HTMLScanner.java:895)
>=A0=A0=A0=A0=A0=A0=A0=A0 at=20
>org.cyberneko.html.HTMLConfiguration.parse(HTMLConfiguration.java:499)
>=A0=A0=A0=A0=A0=A0=A0=A0 at=20
>org.cyberneko.html.HTMLConfiguration.parse(HTMLConfiguration.java:452)
>=A0=A0=A0=A0=A0=A0=A0=A0 at org.apache.xerces.parsers.XMLParser.parse(Un=
known Source)
>=A0=A0=A0=A0=A0=A0=A0=A0 at org.apache.xerces.parsers.DOMParser.parse(Un=
known Source)
>=A0=A0=A0=A0=A0=A0=A0=A0 at=20
>org.enhydra.xml.xmlc.parsers.xerces.XercesDOMParser.parse(XercesDOMParse=
r.java:113)
>=A0=A0=A0=A0=A0=A0=A0=A0 at=20
>org.enhydra.xml.xmlc.parsers.xerces.XercesHTMLDOMParser.parse(XercesHTML=
DOMParser.java:64)
>=A0=A0=A0=A0=A0=A0=A0=A0 at org.enhydra.xml.xmlc.compiler.Parse.parse(Pa=
rse.java:291)
>=A0=A0=A0=A0=A0=A0=A0=A0 at=20
>org.enhydra.xml.xmlc.deferredparsing.DocumentLoaderImpl.parseDocument(Do=
cumentLoaderImpl.java:405)
>=A0=A0=A0=A0=A0=A0=A0=A0 at=20
>org.enhydra.xml.xmlc.deferredparsing.DocumentLoaderImpl.getCacheEntry(Do=
cumentLoaderImpl.java:175)
>=A0=A0=A0=A0=A0=A0=A0=A0 at=20
>org.enhydra.xml.xmlc.deferredparsing.DocumentLoaderImpl.getDocument(Docu=
mentLoaderImpl.java:247)
>=A0=A0=A0=A0=A0=A0=A0=A0 at=20
>com.lutris.airsent.presentation.customer.LoginHTML.buildDocument(Unknown=
=20
>Source)
>=A0=A0=A0=A0=A0=A0=A0=A0 at com.lutris.airsent.presentation.customer.Log=
inHTML.<init>(Unknown=20
>Source)
>=A0=A0=A0=A0=A0=A0=A0=A0 at com.lutris.airsent.presentation.customer.Log=
inHTML.<init>(Unknown=20
>Source)
>=A0=A0=A0=A0=A0=A0=A0=A0 at sun.reflect.NativeConstructorAccessorImpl.ne=
wInstance0(Native=20
>Method)
>=A0=A0=A0=A0=A0=A0=A0=A0 at=20
>sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorA=
ccessorImpl.java:39)
>=A0=A0=A0=A0=A0=A0=A0=A0 at=20
>sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingCons=
tructorAccessorImpl.java:27)
>=A0=A0=A0=A0=A0=A0=A0=A0 at java.lang.reflect.Constructor.newInstance(Co=
nstructor.java:513)
>=A0=A0=A0=A0=A0=A0=A0=A0 at=20
>org.enhydra.xml.xmlc.deferredparsing.XMLCDeferredParsingFactory.createOb=
ject(XMLCDeferredParsingFactory.java:160)
>=A0=A0=A0=A0=A0=A0=A0=A0 at=20
>org.enhydra.xml.xmlc.deferredparsing.XMLCDeferredParsingFactory.doCreate=
(XMLCDeferredParsingFactory.java:185)
>=A0=A0=A0=A0=A0=A0=A0=A0 at=20
>org.enhydra.xml.xmlc.XMLCStdFactory.create(XMLCStdFactory.java:139)
>=A0=A0=A0=A0=A0=A0=A0=A0 at com.lutris.airsent.presentation.customer.Log=
in.showPage(Unknown=20
>Source)
>=A0=A0=A0=A0=A0=A0=A0=A0 at=20
>com.lutris.airsent.presentation.customer.Login.handleDefault(Unknown Sou=
rce)
>=A0=A0=A0=A0=A0=A0=A0=A0 at com.lutris.airsent.presentation.BasePO.handl=
eEvent(Unknown=20
>Source)
>=A0=A0=A0=A0=A0=A0=A0=A0 at com.lutris.airsent.presentation.BasePO.run(U=
nknown Source)
>=A0=A0=A0=A0=A0=A0=A0=A0 at=20
>com.lutris.appserver.server.httpPresentation.HttpPresentationManager.run=
PresentationObj(Unknown=20
>Source)
>=A0=A0=A0=A0=A0=A0=A0=A0 at=20
>com.lutris.appserver.server.httpPresentation.HttpPresentationManager.Run=
(Unknown=20
>Source)
>=A0=A0=A0=A0=A0=A0=A0=A0 at=20
>com.lutris.appserver.server.httpPresentation.servlet.HttpPresentationSer=
vlet.serviceDirect(Unknown=20
>Source)
>=A0=A0=A0=A0=A0=A0=A0=A0 at=20
>com.lutris.appserver.server.httpPresentation.servlet.HttpPresentationSer=
vlet.service(Unknown=20
>Source)
>=A0=A0=A0=A0=A0=A0=A0=A0 at javax.servlet.http.HttpServlet.service(HttpS=
ervlet.java:717)
>=A0=A0=A0=A0=A0=A0=A0=A0 at=20
>org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica=
tionFilterChain.java:290)
>=A0=A0=A0=A0=A0=A0=A0=A0 at=20
>org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilt=
erChain.java:206)
>=A0=A0=A0=A0=A0=A0=A0=A0 at=20
>org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValv=
e.java:233)
>=A0=A0=A0=A0=A0=A0=A0=A0 at=20
>org.apache.catalina.core.StandardContextValve.invoke(StandardContextValv=
e.java:191)
>=A0=A0=A0=A0=A0=A0=A0=A0 at=20
>org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java=
:127)
>=A0=A0=A0=A0=A0=A0=A0=A0 at=20
>org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java=
:102)
>=A0=A0=A0=A0=A0=A0=A0=A0 at=20
>org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.=
java:109)
>=A0=A0=A0=A0=A0=A0=A0=A0 at=20
>org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:2=
98)
>=A0=A0=A0=A0=A0=A0=A0=A0 at=20
>org.apache.coyote.http11.Http11AprProcessor.process(Http11AprProcessor.j=
ava:861)
>=A0=A0=A0=A0=A0=A0=A0=A0 at=20
>org.apache.coyote.http11.Http11AprProtocol$Http11ConnectionHandler.proce=
ss(Http11AprProtocol.java:579)
>=A0=A0=A0=A0=A0=A0=A0=A0 at=20
>org.apache.tomcat.util.net.AprEndpoint$Worker.run(AprEndpoint.java:1584)
>=A0=A0=A0=A0=A0=A0=A0=A0 at java.lang.Thread.run(Thread.java:662)
> org.enhydra.xml.xmlc.XMLCError: Couldn't load XMLC class
>=20
>=20
> Just to mention, like always with XMLC2.3-1 it worked...maybe because o=
ur=20
>"magical" classloader...but can't be sure.
>=20
> Greetings,
> Sasa.


------------=_1301593443-30467-16290
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

------------=_1301593443-30467-16290--