[Yanel-usage] linking to webpages within a realm (hardcoded...)

Michael Wechner michael.wechner at wyona.com
Fri Jun 24 16:32:34 CEST 2011


Hi Bettina

As discussed offline the problem is that the include

5987311 2011-06-24 16:20:31,451 [http-8080-Processor21] ERROR 
org.wyona.yanel.core.transformation.XIncludeTransformer.startElement():69  
- XInclude error for href: 
yanelresource:/navigation/sub-menu-de.xml?path=/de/team/lienhard.html:  
org.xml.sax.SAXParseException: Premature end of file.
org.xml.sax.SAXParseException: Premature end of file.
     at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)

doesn't work properly, because there are no sub-nodes within the 
sitetree file and hence no well-formed XML is being generated and hence 
your XSLT transformation will fail.

In order to improve we need to enhance the following resource/controller:

src/resources/navigation/src/java/org/wyona/yanel/impl/resources/navigation/NavigationResource.java

Will do this now and keep you posted.

Thanks

Michael

Am 24.06.11 11:14, schrieb Bettina Messmer:
> Hi Michael,
>
>
> Thanks for you help, but unfortunately it still doesn't work.
>
> I also tried to use the toolbar instead (create new page...), but with this method, I get a page not found exception.
>
> thanks ,
>
> Bettina
>
>
> -------- Original-Nachricht --------
>> Datum: Thu, 23 Jun 2011 09:28:41 +0200
>> Von: Michael Wechner<michael.wechner at wyona.com>
>> An: yanel-usage at wyona.com
>> Betreff: Re: [Yanel-usage] linking to webpages within a realm (hardcoded...)
>> Am 23.06.11 09:27, schrieb Bettina Messmer:
>>> hi,
>>>
>>> I guess, the main Problem is that I can't display the file with the URL,
>>>
>>> "http://localhost:8080/yanel/realm/de/team/file.html"
>>>
>>> My file looks as follows:
>>>
>>> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
>> "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
>>
>> try removing the doctype and add an xml header instead<?xml
>> version="1.0"?>
>>
>> HTH
>>
>> Michael
>>> <html>
>>> 	<head>
>>> 		<title>Team</title>
>>> 	</head>
>>> 	<body>
>>> 		<p>blablabla</p>
>>> 	</body>
>>> </html>
>>>
>>> thanks,
>>>
>>> Bettina
>>>
>>>
>>> -------- Original-Nachricht --------
>>>> Datum: Wed, 22 Jun 2011 22:20:47 +0200
>>>> Von: Michael Wechner<michael.wechner at wyona.com>
>>>> An: yanel-usage at wyona.com
>>>> Betreff: Re: [Yanel-usage] linking to webpages within a realm
>> (hardcoded...)
>>>> Hi Bettina
>>>>
>>>> On 6/22/11 10:11 PM, Bettina Messmer wrote:
>>>>> hi,
>>>>>
>>>>> I don't manage to have a link to an other page with the realm
>>>> (hardcoded...). It also doesn't work with the simplest kind of html
>> file.
>>>> I am not sure I understand what exactly you are trying to achieve.
>>>> Can you give a more detailed example for example by specifying what
>> URLs
>>>> you are using
>>>> and what page/URL points to which other page/URL?
>>>>> I always get the attached error. Has someone an idea where my mistake
>>>> is?
>>>>
>>>> re your error below, when exactly do you receive this error? For
>> example
>>>> when you request the page containing the link?
>>>>
>>>> Thanks
>>>>
>>>> Michael
>>>>> thanks a lot and greets,
>>>>>
>>>>> Bettina
>>>>>
>>>>> *****************************
>>>>> Error message:
>>>>> *****************************
>>>>>
>>>>> 23506243 2011-06-22 21:51:39,732 [http-8080-Processor14] ERROR
>> org.wyona.yanel.impl.resources.BasicGenericExceptionHandlerResource.getContentXML():60
>>>>    - java.lang.Exception: Transformation error:
>>>>> SystemId-Unknown:Line=-1;Column=-1:
>>>> exception:org.xml.sax.SAXParseException: Premature end of file.
>>>>> root-cause:null
>>>>> line: (No systemId; cannot read file)
>>>>>
>>>>> error: org.xml.sax.SAXParseException: Premature end of file.
>>>>> SystemId-Unknown:Line=0;Column=0:
>>>> exception:org.xml.sax.SAXParseException: Premature end of file.
>>>>> root-cause:null
>>>>> line: (No systemId; cannot read file)
>>>>>
>>>>> fatalError: org.xml.sax.SAXParseException: Premature end of file.
>>>>> SystemId-Unknown:locator-unavailable:
>>>> exception:java.lang.RuntimeException: org.xml.sax.SAXParseException:
>> Premature end of file.
>>>>> root-cause:null
>>>>> error: java.lang.RuntimeException: org.xml.sax.SAXParseException:
>>>> Premature end of file.
>>>>> java.lang.Exception: Transformation error:
>>>>> SystemId-Unknown:Line=-1;Column=-1:
>>>> exception:org.xml.sax.SAXParseException: Premature end of file.
>>>>> root-cause:null
>>>>> line: (No systemId; cannot read file)
>>>>>
>>>>> error: org.xml.sax.SAXParseException: Premature end of file.
>>>>> SystemId-Unknown:Line=0;Column=0:
>>>> exception:org.xml.sax.SAXParseException: Premature end of file.
>>>>> root-cause:null
>>>>> line: (No systemId; cannot read file)
>>>>>
>>>>> fatalError: org.xml.sax.SAXParseException: Premature end of file.
>>>>> SystemId-Unknown:locator-unavailable:
>>>> exception:java.lang.RuntimeException: org.xml.sax.SAXParseException:
>> Premature end of file.
>>>>> root-cause:null
>>>>> error: java.lang.RuntimeException: org.xml.sax.SAXParseException:
>>>> Premature end of file.
>>>>> 	at
>> org.wyona.yanel.impl.resources.BasicXMLResource.getXMLView(BasicXMLResource.java:258)
>>>>> 	at
>>>> org.wyona.yanel.impl.resources.XMLResource.getView(XMLResource.java:89)
>>>>> 	at
>>>> org.wyona.yanel.impl.resources.XMLResource.getView(XMLResource.java:79)
>>>>> 	at
>>>> org.wyona.yanel.servlet.YanelServlet.getContent(YanelServlet.java:543)
>>>>> 	at org.wyona.yanel.servlet.YanelServlet.doGet(YanelServlet.java:381)
>>>>> 	at
>> org.wyona.yanel.servlet.YanelServlet.service(YanelServlet.java:285)
>>>>> 	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
>> org.wyona.yanel.servlet.communication.YanelFilter.doFilter(YanelFilter.java:37)
>>>>> 	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:213)
>>>>> 	at
>> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
>>>>> 	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.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
>>>>> 	at
>> org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
>>>>> 	at
>> org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
>>>>> 	at
>> org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
>>>>> 	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:662)
>>>>>
>>>> -- 
>>>> Yanel-usage mailing list Yanel-usage at wyona.com
>>>> http://lists.wyona.org/cgi-bin/mailman/listinfo/yanel-usage
>> -- 
>> Yanel-usage mailing list Yanel-usage at wyona.com
>> http://lists.wyona.org/cgi-bin/mailman/listinfo/yanel-usage



More information about the Yanel-usage mailing list