This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
The moose likes JSF and the fly likes Does JSF 1.2 work on OC4J 10.1.3.4? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Java » JSF
Bookmark "Does JSF 1.2 work on OC4J 10.1.3.4?" Watch "Does JSF 1.2 work on OC4J 10.1.3.4?" New topic
Author

Does JSF 1.2 work on OC4J 10.1.3.4?

Cory Max
Ranch Hand

Joined: Jul 20, 2005
Posts: 83
I tried to post this a few minutes ago but didn't seem to work, so I am reposting now... moderator: if I have double posted, please forgive me :-)

I am trying to migrate from JSF 1.1 to JSF 1.2 on OC4j 10.1.3.4.0 and am running in to problems. I recently stumbled on this post:

http://kjvarga.blogspot.com/2008/12/oc4j-1013-does-not-support-jsf-12.html

Which reads as follows:


I spent a very frustrating day wading through the version soup that is JavaServer Faces and trying to deploy a JSF 1.2 app on on OC4J 10.1.3 container. To save you a lot of time, OC4J DOES NOT SUPPORT JSF 1.2.

This technical paper explains that OC4J 10.1.3 (all versions) supports Servlet 2.4, JSP 2.0 and JSF 1.1.

http://www.oracle.com/technology/tech/java/oc4j/1013/whitepapers/OC4J-FOV-10131.pdf

And this handy webpage explains that "JSF 1.2 is the latest release and it works with servlet 2.5 and jsp 2.1". So obviously it's not compatible. It also details all the versions of Java technologies that each JSF version relies upon.

http://www.roseindia.net/jsf/jsf-versions.shtml


Next, I found these which seems to confirm my thoughts:

OC4J 10.1.3.4 Only has support for JavaServer Pages (JSP) 2.0 and Servlets 2.4:

http://download.oracle.com/docs/cd/E12524_01/web.1013/e12288/intro.htm#CEGBHBHC

JSF Requires Servlet 2.5 and JSP 2.1 as show in the first part of the release notes:

https://javaserverfaces.dev.java.net/nonav/rlnotes/1.2_12/releasenotes.html

But then.... I found this:

http://wiki.glassfish.java.net/Wiki.jsp?page=JavaServerFacesRI

See the section entitled


Do I have to use a JSP 2.1/Servlet 2.5 container with the Mojarra version 1.2?


which states:


If you're using JSPs for your view descriptions, then yes, you will need to use a JSP 2.1/Servlet 2.5 compliant container. However, if you're using another view technology, such as Facelets or JSFTemplating, you can run JSF 1.2 within a Servlet 2.4 container with out issue.


Now here is the part that may make me look like a newb... not sure if I am "using JSP's for my view descriptions"... what does that mean anyway?

I don't think I am not using Facelets or JSFTemplating. I'm just using standard JSF... but does that mean I am using JSP's for my view descriptions? All of my pages end in jsp and the standard faces servlet that makes all *.faces requests go through the faces controller servlet. There is no JSP EL code in my faces pages, just standard jsf tags like h:form, f:selectItems, h:inputText etc...

So my question is... am I using JSP's for my view descriptions?

Please help (and sorry for the novel) :-)


There are only 10 types of people in this world... Those who understand binary and those who don't.
Ashraf Abu-Aisheh
Ranch Hand

Joined: Apr 17, 2009
Posts: 88
Thank you for your useful post, but we need more details and developers experience.

Help us please.


SCJP 5 - 79%
SCWCD 5 - 100%
Joachim Skeie
Greenhorn

Joined: Jun 19, 2009
Posts: 8
As you describe, I would assume you are using JSP as your view descriptor. The FacesServlet will catch any JSF requests, but as you say, since you are using normal JSPs for your tags, I would assume you need JSP2.1 and servlet 2.5.

I would strongly recommend Facelets though, if you are inclined to check out that route of options.

On a side note, we were using JSF 1.1 with OC4J 10.1.3.0, and when we decided to upgrade to JSF 1.2 we scrapped OC4J altogether, as there is always way to much work involved for each and every OC4J upgrade.


JSFlot - Open Source JSF Chart library for drawing in-browser interactive charts.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Does JSF 1.2 work on OC4J 10.1.3.4?