Amicuk Programming Answers

Apache with OC4J

2015-12-10   Views:1


How do we configure Apache to handle the static HTML and OC4J to handle the dynamic (JSP) content within a J2EE Application with a Web Module? I've just browsed both the General and J2EE forums, searching on "Apache". I see where others have ask

How do we configure Apache to handle the static HTML and OC4J to handle the dynamic (JSP) content within a J2EE Application with a Web Module?
I've just browsed both the General and J2EE forums, searching on "Apache". I see where others have asked the same or similar question, but none of the replies explain how to accomplish this.
I just attended Oracle's "Develop, Deploy and Manage J2EE Applications"; the course instructor indicated that OC4J (we're at iAS version supports mixing JSP and HTML content within a single web site directory and the static content could be served by Apache.
At present we have the static HTML pages at our site's DocRoot directory. In this directory we have installed our J2EE EAR application (as an exploded EAR directory). Under the EAR root directory we have a single Web Module, in which we have our JSP files and some static HTML files.
We have Apache configured with mod_proxy to forward requests for "mmrrc/" to the OC4J container (ie, http://<ourserver_on_port_80>/mmrrc/ is redirected to OC4J). This works. However, both our JSP and HTML content is served by OC4J when accessing anything under /mmrrc/. Static HTML is only served by Apache if it exists outside of the /mmrrc/ space (ie, /*.html and /documents/*.html).
Is it possible to get Apache to handle the static HTML within the J2EE Web application? If so, how? And, if not, is our configuration about as good as one can do?
Thanks, much.

The replay answer
Sorry, I left off my email address: [email protected]

Go to See the other 2 answers

UNSUPPORTED : The way it works Apache with OC4J via AJPV13 with mod_jk

Category:DefaultRelease time:2015-10-11Views:130

RDBMS Version: 8.1.7.x Operating System and Version: SUSE Linux 7.2 / Win NT/2k/XP Product (i.e., OAS, IAS, etc): 9ias OC4J Product Version: JDK Version: 1.3.1 Error number: UNSUPPORTED : The way it works Apache with OC4J via AJPV13[More]

Connect Apache and OC4J

Category:DefaultRelease time:-0001-11-30Views:130

Hello, I'm trying to connect Apache with OC4J to handle servlets and JSPs, but it doesn't work. I've already installed both, but I'm not sure which are the files I've to configure. I've configure the following: In httpd.conf I've added: LoadModule oc[More]

From Tomcat-Apache to OC4J

Category:DefaultRelease time:-0001-11-30Views:130

I4m migrating an application from Tomcat-Apache to OC4J. I have a problem whith a taglib in a Servlet call a JSP that use a taglib. In the JSP call a taglib whith: <%@ taglib uri="/oficios" prefix="portalOficios"%> <jsp:useBea[More]

How to Bounce Apache or OC4J for OAF Development

Category:DefaultRelease time:-0001-11-30Views:130

hi all, yesterday i've been trying to get answers as to why the changes i make in an OAF page does not reflect immediately. after doing research i found out that i need to bounce the apache or oc4j everytime i make changes to ui xml or class files. i[More]

What is the difference between Apache and OC4J?

Category:DefaultRelease time:-0001-11-30Views:130

Hi All, i am new to AS just a question in my mind what is the difference between Apache and OC4J? ThanksApache is a webserver which comes with OracleAS with added Oracle modules. OC4J = Oracle Containers for Java enjoy yourself with some reading http[More]

Problem with java.util while migrating an app. from Apache to OC4J

Category:DefaultRelease time:2015-10-11Views:130

Hello. I have a application which runs fine under APache/Jserv . This application contains bunch of jsp's. In the jsp's even though there are no directives for import of java.util.* packages it still works fine. But under oc4j the same application do[More]

Apache with OC4J

Category:DefaultRelease time:2015-12-10Views:130

How do we configure Apache to handle the static HTML and OC4J to handle the dynamic (JSP) content within a J2EE Application with a Web Module? I've just browsed both the General and J2EE forums, searching on "Apache". I see where others have ask[More]

Apache error - oc4j related

Category:DefaultRelease time:-0001-11-30Views:130

Hi, i've found some errors in the error_log_crit apache logs. I would understand what does they mean. Any help please.. MOD_OC4J_0184: Failed to find an oc4j process for destination: OC4J_PCRM MOD_OC4J_0145: There is no oc4j process (for destination:[More]

Integrate Apache with OC4J instance

Category:DefaultRelease time:-0001-11-30Views:130

Hi all, How to integrate mod_oc4j with apache so that I can route the request from apache http server to a specific oc4j instance. thanks JaysonThis guide explains how to do it with the Apache2 version that comes on the Companion CD: http://download-[More]

How apache map oc4j without Oc4jMount

Category:DefaultRelease time:-0001-11-30Views:130

I installed an oracle application server 10 release 3. It works, but there is something I do not understand. How does apache map / to oc4j as mod_oc4j.conf is empty of any Oc4jMount ? only oc4j related entry I have in mod_oc4j.conf is LoadModule oc4j[More]

OC4J + Apache

Category:DefaultRelease time:-0001-11-30Views:130

hi! i currently have in my system, a running apache working hand in hand with OC4J. I'm trying to distribute the webserver load of my system by limiting all the static elements (eg, html, images) to apache and leaving all dynamic elements (servlets,[More]

hello i am using my itunes id in my iphone for downloading apps in app store. due to some reasons now i could not continue with my old apple id so i create a new apple id and remove my previous account by performing the following steps goto settings [More]
problem scenerio: My upload thread occasionally rushes through its while-write loop, writing data for a 3mb image in less than a second and then it waits for a longer time (10-30 seconds) for a response. The thread is writing directly to the OutputSt [More]
Hi everyone, I've written an applet that is an animation of a wheel turning. The animation is drawn on a customised JPanel which is an inner class called animateArea. The main class is called Rotary. It runs fine when I run it from JBuilder in the Ap [More]
Hi gurus, Our company cannot justify having a full time data services functional developer to support our existing master data address cleanse / address validation process in data services.   There is light work for customizing data services jobs and [More]
Hello, I want to purchase an extra DC Charger to charge both my Ipad 4th gen and my iPhone 5S. Is it safe to use a 12W Apple Charger for both device ? Thanks.According to Apple Store page, it also charges iPhone and all iPod models. And I use the cha [More]
Ok, Well I Didn't want all the songs that were on my ipod so i deleted them and then i put new ones in my music caorgy and i pluged my ipod for it to update and after it says ''DO NOT DISCONNECT'' i went in to music on my ipod and it's all my old son [More]
I have a powerbook G4 that is really acting up. It has come to the point I had to reinstall my original software. Now when I go too upgrade to Panther it tells me disc error at the end of the installation of the first disc. Also I can not get on the [More]
how to save message when getting "email not responding"How could you even know if you have a message if the email account isn't responding? Quit the mail app and reboot your iPad. Tap the home button once. Then tap the home button twice and the [More]
Hi Experts, We have a requirement where we have to change the Register Configurations for the Device(EG42) programatically using Function Module: ISU_S_DEVICEMOD_CHANGE. If anyone has worked on similar requirement please suggest me what are all the e [More]
when we send aany msg to a particaula Destination(For Example :Folder)  we get the filename as %MessageID%.xml so the message ID will be the name of the file is there any way where we can get the Current Date in the name of the file?There are no excl [More]