You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cocoon.apache.org by Carsten Ziegeler <cz...@s-und-n.de> on 2002/01/28 11:41:31 UTC

[Bug]: Deli-Example displays empty page

After I turned on the Deli component in the cocoon.xconf,
I get an empty HTML page with IE 6.0 for the Deli example.

Carsten

---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
For additional commands, email: cocoon-dev-help@xml.apache.org


RE: SystemID, [Bug]: Deli-Example displays empty page

Posted by Carsten Ziegeler <cz...@s-und-n.de>.
Vadim Gritsenko wrote:
> 
> > From: Carsten Ziegeler [mailto:cziegeler@s-und-n.de]
> > 
> > Vadim Gritsenko wrote:
> > >
> > >
> > > What do you think about SystemID generated by SitemapSource? I
> really do
> > > not like server name and port there. It makes compiled JSPs
> > > non-portable...
> > >
> > 
> > Can you elaborate a little bit on this?
> 
> Sure. If you have:
> 
>    <map:match pattern="xsp">
>     <map:generate type="serverpages" src="cocoon:/xsp-source"/>
>     <map:serialize/>
>    </map:match>
> 
> "cocoon:/xsp-source" has SystemID:
> 	http://localhost:8080/cocoon/sub/xsp-source
> 
> On the hard drive you will get:
> 	WEB-INF\work\org\apache\cocoon\www\http_\_\localhost_8080\
> 	cocoon\sub\xsp_ source.class
> 
> Which IMHO is bad: once you change host/port, your XSP is going to be
> recompiled. I propose:
> 
> SystemID:
> 	cocoon://sub/xsp-source
> 
> File:
> 	
> WEB-INF\work\org\apache\cocoon\www\cocoon_\_\sub\xsp_source.class
> 
> 
Ah, I see - but this has nothing to do with Deli, right?
Nevertheless, here is my +1.

Carsten

---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
For additional commands, email: cocoon-dev-help@xml.apache.org


RE: SystemID, [Bug]: Deli-Example displays empty page

Posted by Vadim Gritsenko <va...@verizon.net>.
> From: Carsten Ziegeler [mailto:cziegeler@s-und-n.de]
> 
> Vadim Gritsenko wrote:
> >
> >
> > What do you think about SystemID generated by SitemapSource? I
really do
> > not like server name and port there. It makes compiled JSPs
> > non-portable...
> >
> 
> Can you elaborate a little bit on this?

Sure. If you have:

   <map:match pattern="xsp">
    <map:generate type="serverpages" src="cocoon:/xsp-source"/>
    <map:serialize/>
   </map:match>

"cocoon:/xsp-source" has SystemID:
	http://localhost:8080/cocoon/sub/xsp-source

On the hard drive you will get:
	WEB-INF\work\org\apache\cocoon\www\http_\_\localhost_8080\
	cocoon\sub\xsp_ source.class

Which IMHO is bad: once you change host/port, your XSP is going to be
recompiled. I propose:

SystemID:
	cocoon://sub/xsp-source

File:
	
WEB-INF\work\org\apache\cocoon\www\cocoon_\_\sub\xsp_source.class


Vadim


---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
For additional commands, email: cocoon-dev-help@xml.apache.org


RE: SystemID, [Bug]: Deli-Example displays empty page

Posted by Carsten Ziegeler <cz...@s-und-n.de>.
Vadim Gritsenko wrote:
> 
> 
> What do you think about SystemID generated by SitemapSource? I really do
> not like server name and port there. It makes compiled JSPs
> non-portable...
> 

Can you elaborate a little bit on this?

Carsten

<snip/>


---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
For additional commands, email: cocoon-dev-help@xml.apache.org


SystemID, [Bug]: Deli-Example displays empty page

Posted by Vadim Gritsenko <va...@verizon.net>.
What do you think about SystemID generated by SitemapSource? I really do
not like server name and port there. It makes compiled JSPs
non-portable...

> From: Carsten Ziegeler [mailto:cziegeler@s-und-n.de]
> 
> Thanks Vadim!
> 
> You're right, that was the reason - I have an apache server in front
of
> Tomcat.
> After removing the ":8080" from legacyDevice.xml and(!) restarting
cocoon it
> works.
> 
> Hm, where is this documented?

I hope our HP guys will fix this eventually...

 
> This tight binding of cocoon to the current port and servername of the
> servlet engine
> is really bad, we should get rid of this in the next version (= 2.0.2
or
> higher).


Agreed.

Vadim


---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
For additional commands, email: cocoon-dev-help@xml.apache.org


RE: [Bug]: Deli-Example displays empty page

Posted by Carsten Ziegeler <cz...@s-und-n.de>.
Thanks Vadim!

You're right, that was the reason - I have an apache server in front of
Tomcat.
After removing the ":8080" from legacyDevice.xml and(!) restarting cocoon it
works.

Hm, where is this documented?

This tight binding of cocoon to the current port and servername of the
servlet engine
is really bad, we should get rid of this in the next version (= 2.0.2 or
higher).

Thanks,
Carsten

Vadim Gritsenko wrote:
>
> > From: Carsten Ziegeler [mailto:cziegeler@s-und-n.de]
> >
> > After I turned on the Deli component in the cocoon.xconf,
> > I get an empty HTML page with IE 6.0 for the Deli example.
>
> Do you have Tomcat on other than 8080 port and error message in console
> like
>
> RDF Error code:10 Nested Exception = java.net.ConnectException:
> Connection refused: connect
> JenaProcessProfile: Could not load profile
>
> ? If yes, you need to edit legacyDevice.xml.
>
> PS Deli sample works for me (IE6 also). Result:
>
> ColorCapable: Yes
> TextInputCapable: Yes
> ImageCapable: Yes
> CcppAccept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg,
> application/vnd.ms-powerpoint, application/vnd.ms-excel,
> application/msword, text/html,
> CcppAccept-Charset: US-ASCII, ISO-8859-1, UTF-8, ISO-10646-UCS-2,
> CcppAccept-Encoding: base64,
> BrowserName: Microsoft
> TablesCapable: Yes
> ImageCapable: Yes
> Keyboard: Qwerty
> StandardFontProportional: Yes
> SoundOutputCapable: Yes
> TextInputCapable: Yes
> AcceptDownloadableSoftware: No
> Vendor: Microsoft
> FramesCapable: Yes
>
> Vadim
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
> For additional commands, email: cocoon-dev-help@xml.apache.org
>


---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
For additional commands, email: cocoon-dev-help@xml.apache.org


RE: [Bug]: Deli-Example displays empty page

Posted by Vadim Gritsenko <va...@verizon.net>.
> From: Carsten Ziegeler [mailto:cziegeler@s-und-n.de]
> 
> After I turned on the Deli component in the cocoon.xconf,
> I get an empty HTML page with IE 6.0 for the Deli example.

Do you have Tomcat on other than 8080 port and error message in console
like

RDF Error code:10 Nested Exception = java.net.ConnectException:
Connection refused: connect
JenaProcessProfile: Could not load profile

? If yes, you need to edit legacyDevice.xml.

PS Deli sample works for me (IE6 also). Result:

ColorCapable: Yes
TextInputCapable: Yes
ImageCapable: Yes
CcppAccept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg,
application/vnd.ms-powerpoint, application/vnd.ms-excel,
application/msword, text/html, 
CcppAccept-Charset: US-ASCII, ISO-8859-1, UTF-8, ISO-10646-UCS-2, 
CcppAccept-Encoding: base64, 
BrowserName: Microsoft
TablesCapable: Yes
ImageCapable: Yes
Keyboard: Qwerty
StandardFontProportional: Yes
SoundOutputCapable: Yes
TextInputCapable: Yes
AcceptDownloadableSoftware: No
Vendor: Microsoft
FramesCapable: Yes

Vadim



---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
For additional commands, email: cocoon-dev-help@xml.apache.org