Running ADF Essentials in Tomcat

Posted by Rodrigues, Raphael on Oracle Blogs See other posts from Oracle Blogs or by Rodrigues, Raphael
Published on Tue, 25 Sep 2012 17:07:34 +0000 Indexed on 2012/09/25 21:44 UTC
Read the original article Hit count: 509

Filed under:
Oracle released a few days ago ADF Essentials, which is a free version of its Oracle ADF Framework. Oracle ADF Essentials can run on the Glassfish Application Server, well explained by Shay here  . Glassfish is also certified to run ADF Essentials Application.

However, It could be possible to run ADF Essentials Applications in a Java EE Container. So, I’ll describe the steps to run the ADF Faces Rich Client demo application into a Tomcat 7.

Before we start, you should download the files:

Apache Tomcat 7 : http://tomcat.apache.org/download-70.cgi
Oracle ADF Essentials 11.1.2.3 : http://www.oracle.com/technetwork/developer-tools/adf/downloads/index.html
Oracle ADF Faces Components Demo 11.1.2.3: http://www.oracle.com/technetwork/developer-tools/adf/downloads/index.html

Steps:

1. Extract your tomcat 7. In my case, I choose D:\ apache-tomcat-7.0.29
2. Extract ADF Essentials zip file inside the %TOMCAT_HOME%\lib
3. Put the rcf-dvt-demo.war file inside the %TOMCAT_HOME%\webapps
4. Open the file %TOMCAT_HOME%\bin\catalina.bat (or .sh if you’re in linux environment) and add in the end of the line ‘set JAVA_OPTS=%JAVA_OPTS% %LOGGING_CONFIG%’ this -Xms1024m -Xmx1024m
If you don’t do this, probably when you start you’ll see a OutOfMemory error.
5. Here is the little trick, tomcat does not come with jsf jar’s, so you have to put there. So, I went to the Oracle Jdeveloper 11.1.2 instalation and search for this files:
jsf-api.jar
jsf-impl.jar
glassfish.jstl_1.2.0.1.jar
6. You’re ready to start tomcat in %TOMCAT_HOME%\bin\startup.bat

If everything is fine, you will be able to open your favourite browser and type http://localhost:8080/rcf-dvt-demo/faces/index.jspx


© Oracle Blogs or respective owner

Related posts about /ADF