Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Virgo » Virgo 3.7.0 Fragment host, resource loading fails with JSF 2.2
Virgo 3.7.0 Fragment host, resource loading fails with JSF 2.2 [message #1761832] Thu, 11 May 2017 15:27 Go to next message
Joel Traber is currently offline Joel TraberFriend
Messages: 11
Registered: October 2015
Junior Member
We try to migrate a web application (Virgo 3.6.4, Spring 3.2.5, JSF 2.1, Primefaces 3.5) to Virgo 3.7.0, JSF 2.2, Primefaces 6.0.
We use the Fragment-Host feature to load web resources from another bundle. The main web application works like a host bundle. The other bundle works as a fragement bundle and provides webpages (*.xhtml). It works very smooth with Virgo 3.6.4.

The resource loading of the fragement bundles does not to work in the new environment (Virgo 3.7.0, Spring 4.2.9, JSF 2.2, Primefaces 6)
(The exception is a javax.faces.view.facelets.TagAttributeException: Invalid path : ....)
JSF is not able to retrieve the .xhtml resource. (We work on a small example to sort out that the JSF upgrade is responsible for)

Has there been a change in Virgo 3.7.0 related with the Fragment-Host feature? Or does Gemini Web 3.0 bring some changes to it?
Anybody facing something similiar?

We use Virgo 3.7.0 (virgo-tomcat-server-3.7.1.D-20170508083732) provided by Violeta Georgieva (https://bugs.eclipse.org/bugs/show_bug.cgi?id=514227)
https://hudson.eclipse.org/virgo/view/3.7.0-SNAPSHOT/job/gradle-build/lastSuccessfulBuild/artifact/packaging/tomcat-server/build/distributions/virgo-tomcat-server-latest.zip

Thanks for hints,
Joël
Re: Virgo 3.7.0 Fragment host, resource loading fails with JSF 2.2 [message #1763753 is a reply to message #1761832] Fri, 19 May 2017 10:02 Go to previous messageGo to next message
Florian Waibel is currently offline Florian WaibelFriend
Messages: 166
Registered: June 2010
Senior Member
Hi Joël,

any progress with your small example?

Regards,
florian

[Updated on: Fri, 19 May 2017 10:04]

Report message to a moderator

Re: Virgo 3.7.0 Fragment host, resource loading fails with JSF 2.2 [message #1763877 is a reply to message #1763753] Mon, 22 May 2017 13:23 Go to previous message
Joel Traber is currently offline Joel TraberFriend
Messages: 11
Registered: October 2015
Junior Member
Hi Florian,

Yes, we finally proofed that it has not to do with Virgo 3.7! It's related to the migration of JSF 2.2.
We referenced resources in xhtml files like this:
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
               ...
               template="../layout/smallLayout.xhtml">

or
<ui:include src="../include/xyz.xhtml" />

With JSF 2.1 it was resolved to this path: jndi:/localhost/main/ct/index.xhtml and includes of fragment bundle resources worked fine
With JSF 2.2 it's resolved to: bundleentry://206.fwk540642172/ct/index.xhtml
(in JSF 2.2 the jndi path does not work: MalformedURLException: unknown protocol: jndi)

The path is created with a base URL (e.g. bundleentry://206.fwk540642172/). The base URL is fixed after start of the application and the bundle ID 206 points to the host-bundle not considering any fragment bundles.

We implemented our own JSF ResourceHandler to look up resources in fragment bundles. This works!
(Side note: We changed paths slightly to "/layout/smallLayour.xhtml", JSF does not trigger custom ResourceHandler for paths starting with "../")

Thanks anyway,
joël
Previous Topic:Virgo 3.7.0 Spring bundles from plugins conflicts with repo/ext bundles
Next Topic:Plan for Virgo 3.7.1?
Goto Forum:
  


Current Time: Thu Apr 25 05:05:05 GMT 2024

Powered by FUDForum. Page generated in 0.02180 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top