how to run Servlet 3.0 app in WebSphere 7?
I know WebSphere 7 support Servlet 2.5, but I don't know if is impossible or possible.
Related
Our application needs to support Tomcat 10.
We are migrating the code to Jakarka EE 9, but due to HazelCast we are blocked.
When can we expect the HazelCast jakarta EE migration??
Details:
We are evaluating to support Tomcat 10 in our product. To start it, we initially try to use Servlet 5.0 spec as Tomcat 10 supports Servlet 5.0 specification.
The Servlet 5.0 version migrated the classes to Jakarta.servlet.* from javax.servlet.. So, most of our java code have been migrated to Jakarta EE9.
But, in the middle we come to know that the HazelCast versions not compatible with Jakarta EE.
The internal classes of HazelCast still references to javax.servlet. from Servlet 3.0 specification.
So as a result, we got compile time issues as well.
Does the HazelCast compatible with Tomcat 10??
We have application running JSF 1.1. Until these days we were using Java 6 deployed in WAS 7, now we are migrating to WAS 8.5 with Java 8 as runtime. Please advise where JSF 1.1 is supported with combo of Java8 with WAS 8.5.
I would like to upgrade my JSF 1.2 application to JSF 2.2. What's the minimum required Tomcat version for JSF 2.2? I'm currently using Tomcat 5. Is it possible to run JSF 2.2 on it?
JSF 2.2 requires a Servlet 3.0 compatible container, mainly because of the new <h:inputFile> component which requires container-native file upload support. This was only introduced in Servlet 3.0.
If you check the Tomcat versions overview, then you'll see that you need minimally Tomcat 7.x in order to have a Servlet 3.0 compatible container.
So what's the latest version I can update JSF to?
You're not terribly clear on the exact Tomcat version you're currently using (5.0.x vs 5.5.x is quite a difference), but if it is Tomcat 5.5.x, then you could run JSF 2.0/2.1 on it if you supply a custom EL 2.1 compatible implementation along the webapp itself. See also the answer on Running JSF 2.0 on Servlet 2.4 container.
How can I check what version of EL is server using .
I am running Websphere 7 . EL classes are in j2ee.jar and manifest is below.
Manifest-Version: 1.0
Ant-Version: Apache Ant 1.6.5
Created-By: 2.4 (IBM Corporation)
Specification-Title: Java Platform, Enterprise Edition Specification
Specification-Version: 5.0
Specification-Vendor: Sun Microsystems, Inc.
Implementation-Title: Java Platform, Enterprise Edition Specification
Implementation-Version: 5.0
Implementation-Vendor: Sun Microsystems, Inc.
Class-Path: activation-impl.jar mail-impl.jar
EL version goes hand in hand with Servlet/JSP version which is dependent on the servletcontainer implementation/version used and also on the web.xml root declaration of your webapp.
Servlet 5.0 comes with JSP 3.0 and EL 4.0 (Jakarta EE 9).
Servlet 4.0 comes with JSP 2.3 and EL 3.0 (Java EE 8).
Servlet 3.1 comes with JSP 2.3 and EL 3.0 (Java EE 7).
Servlet 3.0 comes with JSP 2.2 and EL 2.2 (Java EE 6).
Servlet 2.5 comes with JSP 2.1 and EL 2.1 (Java EE 5).
Servlet 2.4 comes with JSP 2.0 and EL 2.0 (J2EE 1.4).
Servlet 2.3 comes with JSP 1.2 without EL (J2EE 1.3). EL is to be provided by JSTL 1.0 and works inside JSTL tags only.
WebSphere 7 is a Java EE 5 certified container which thus implies Servlet 2.5 which in turn thus comes with JSP/EL 2.1. However, if the web.xml of your webapp is declared conform for example Servlet 2.4, then your webapp will run in Servlet 2.4 modus with JSP/EL 2.0.
Since you tagged this JSF, I guess that the sole purpose of this question is to figure out if you could use the new EL 2.2 feature of being able to invoke non-getter methods with arguments in EL. That's thus not natively supported by your container. However, you could install JBoss EL as per this answer to get it to work on Servlet 2.5 containers.
See also:
Difference between JSP EL, JSF EL and Unified EL
I'm trying to deploy an EJB 3 EAR project to WebSphere 7.
From RSA 8.0 I select the EAR file. When I select the EAR project > run as > Server > WAS7 I get the following error:
"the server does not support version 6.0 of the J2EE Enterprise application specification"
I changed my JRE/JDK to 1.5 in RSA, but the same thing happens. Is it a specific jar which causes this>
Java EE versions (J2EE 1.3, J2EE 1.4, Java EE 5, Java EE 6) are not the same like JRE/JDK version, this are two different things.
JRE/JDK is about the language, compiler and the java core frameworks.
J2EE/Java EE is about high level frameworks like EJB, JPA, JSF, CDI....
WebSphere Application Server 7 supports (only) Java EE 5 but not Java EE 6.
So you need to build a Java EE 5 application, reducing JRE/JDK from 6 to 5 is not enough, you also need to build a Java EE 5 EAR, without usage of any of the great Java EE 6 features.
So if it is only for your own, then I recommend to use GlassFish v3 instead, it has Java EE 6 support.