0

I'm migrating a jboss JSF/IceFaces application to Glassfish 3.1.2.2. I've created the datasources, deployed the application, but unexpectedly the browser shows me the JSF code, it just doenst render the JSF. If I've followed the "standard" for JSF and it works in Weblogic and jboss, what can be wrong in the Glassfish?

thanks for your help, José Cruz

josedacruz
  • 64
  • 1
  • 7

2 Answers2

0

That will happen if the FacesServlet isn't been invoked. You need to make sure that the request URL (as you see in browser's address bar) matches the <url-pattern> of the FacesServlet as you've definied in webapp's web.xml.

So if you've set the URL pattern to for example *.jsf, then you need to make sure that the request URL is like http://example.com/context/page.jsf and thus not like http://example.com/context/page.xhtml.

Alternatively, you could also change the URL pattern to *.xhtml, so that you never need to worry about virtual URLs.

See also:

Community
  • 1
  • 1
BalusC
  • 1,082,665
  • 372
  • 3,610
  • 3,555
  • The application works great in weblogic and jboss 7. So the configuration somehow its correct. I'm trying to figure out if there are any issues that I must be aware when migrating to glassfish, because the JSF isnt rendering. – josedacruz Dec 05 '12 at 10:47
0

The solution, which by the way its not a great solution, was creating an empty application starting from ground zero, creating an icefaces page, making sure that it was working. Then, we migrated the rest of the project to inside of this one. I dont like this solution, but it worked. It's not the first time while migrating web apps, JPA and other Java techs between applications servers compatibility(or just strange) issues like this arrive from nowhere. Hope this help anyone in the future.

Anyway, thanks for the comments.

José Cruz

josedacruz
  • 64
  • 1
  • 7