OC4J behind apache

Hi All,
OC4J and Apache can both be used as Web Servers. OC4J contains
its own Web server, but as per OC4J documentations it is
recommended that you configure for handling J2EE applications
behind Apache. Is there any advantage in using Apache for
processing proxy requests instead of OC4J?
can anyone reply?
Regards,
Yogavelan

Another reason is for ModPLSQL which can only be accessed from
Apache. You could use DB Prism 1.2.1/2.0.0 with OC4J to replace
mod_plsql with a complete servlet technology, but with other
features such as calling PLSQL code from jsp:include or
jsp:forward tags, integration with Apache Cocoon framework, and
so on.
DB Prism is at http://www.plenix.com/dbprism/
A dpls.ear file which is preconfigured as mod_plsql is ready to
use with OC4J at: http://www.plenix.com/dbprism/dist/dpls.ear
Best regards, Marcelo.

Similar Messages

  • Oc4j behind apache - possible to prevent hitting oc4j port directly?

    Hello -
    Is it possible to configure OC4J standalone running behind apache to accept only requests coming from apache instead of hitting OC4J's port (8888) ?
    We use OC4J stand-alone (9.0.3) behind Apache (1.3.x). We use mod_proxy to send requests from apache to OC4J. The directives in httpd.conf look like this:
    ProxyPass /myApp http://myserver.xyz:8888/myApp/
    ProxyPassReverse /myApp http://myserver.xyz:8888/myApp/
    Therefore, a user typing http://myserver.xyz/myApp will get their request sent to OC4J.
    Question: Is it possible to configure OC4J so that it only responds to request going through mod_proxy. i.e., I want to PREVENT someone from accessing myApp by hitting 8888 directly through their browser. Possible?
    Thanks.

    Hi there,
    if you specify the host in you web-site.xml (eg. <web-site host="127.0.0.1" port="8888" display-name="The Web Site">
    ), then oc4j should only respond to requests from localhost and shouldn't be available externally via apache...
    all you should need then is to modify your proxypasses like so:
    ProxyPass /myApp http://127.0.0.1:8888/myApp
    ProxyPassReverse /myApp http://127.0.0.1:8888/myApp
    hope this helps,
    Andy

  • Howto run appserver behind apache proxy

    I have an existing site that runs great on apache and have installed oracle application server elsewhere, now I need apache to redirect pages of /foo to oracle application server
    in my apache config I have proxypass and proxypassreverse
    when I access /foo then oracle application server sends a redirect using the host name of the box it's running on (which is behind the firewall and not accessisable) looking at the generated source all paths are relative so it appears the redirect is coming before the webapp ever sees the request
    I'm using version 0.1.2.0.2
    Has anyone done this? How do I do it?

    We are using mod_proxy to proxy requests for JSP and servlets to oc4j . This works fine
    <IfModule mod_proxy.c>
    ProxyRequests On
    ProxyPass /servlets http://oc4j_server_name:port/web_app/servlet
    ProxyPassReverse /servlets http://oc4j_server_name:port/web_app/servlet
    ProxyPass /jsp http://oc4j_server_name:port/web_app/jsp
    ProxyPassReverse /jsp http://oc4j_server_name:port/web_app/jsp
    </IfModule>

  • Oc4j versus apache

    Hi
    I have a minor problem with apache-oc4j ...
    Given a host name proposed by oracle as while installing all the stuff.. let say x.y.local...
    using this host to access a j2ee application works perfectly, from anywhere on the network.
    this server have alternative names, let say aHostName. When i use this the web application still work, excepts in one place. When i access a resources constrained to a role and i dont have the role, the redirect is from aHostName to x.y.local ... causing some problems to our application... We suspect that apache override some http header info about the hostname..
    Any idea ?

    You can try setting the UseCanonicalName, which defaults to be on, to be off in your Apache/Apache/conf/httpd.conf file. Or you can set your ServerName to aHostName instead of x.y.local.

  • Web Service client running on Tomcat behind Apache-ModJk

    Hi all.
    I've realized a web service, which have been deployed on a Tomcat 5.5 instance running behind a firewall.
    The Web Service is published through an Apache 2.0 Web Server, which is in the DMZ and which is connected to Tomcat via modjk.
    Everything is working fine (as apache forwards to tomcat clients' calls), except from one thing: one of the web-methods needs to connect to a remote server to validate some data... that is, this web-method implements a "web service client" piece of code, by which a remote validating method must be called.
    So, the problem is that this remote method must be accessed from something running behind the firewall...
    One way could be to open a hole in the firewall, allowing only calls to that remote address, but I'd rather avoid this.
    Do someone have other suggestions?
    Is there perhaps any way to use mod_jk also for "exiting" and not only for "entering"?
    Any help will be very appreciated!!

    Could you not use a proxy server. The web service client would go through the proxy server to the internet

  • Deploy JSP, XSQL-XSL Application on OC4J or Apache?

    I have an application having JSPs and XSQL-XSL pages (not EJBs)
    for the internet.
    Which is the best deployment type?
    - Running both on OC4J (after installing XSQL),
    - Running both on Apache,
    - Running one on Apache and other on OC4J?
    What about using Apache as a proxy sending requests to OC4J?
    Thanks.

    I deployed both on Apache (JSP,XSQL) and I have another PC with Apache as Proxy.
    It works fine. I dont know the performance when many users try to connect.

  • Configuring OC4j with Apache HTTPD server

    I want to use OC4j as servlet container and Apache Server as a
    Http server handling all static requests. Now as per the OC4j
    documentation I created a OC4j.conf file and included the same
    in the main httpd.conf file.
    However I could not get my servlets running.I get the page not
    found error.Can you suggest a way out.

    Hi,
    Try this step.
    Comment the following statements from your Jserv.conf file in
    <oracle_home>/Apache/Jserv/conf :-
    ApJServMount /servlets /root
    ApJServMount /servlet /root
    Still not working, reply.
    Regards,
    Yoga

  • OC4J and Apache Virtual Hosts

    Server Setup
    OS Version: Windows Server 2003 64bit
    Server Version: Oracle-Application-Server-10g/10.1.3.1.0 Oracle-HTTP-Server
    API Version: 19990320:18
    Run Mode: standalone
    I have setup two seperate Apache VirtualHosts address1.mycompany.com and address2.mycompany.com I have also setup 2 seperate OC4J application groups appgroup1 and appgroup2. I need to tie appgroup1 to the virtualhost address1.mycompany.com and appgroup2 to address2.mycompany.com. There will be two seperate applications running on each app group and they both need to run at the root level of the address .... instead of running like so address1.mycompany.com/application1 ....
    Is this possible to do with this version of Oracle Application Server. I have seen that in the Weblogic version there are ways in which to do this, but due to a deadline and my limited knowledge of Weblogic at this point I am unable to go that direction ... Any help with this would be greatly appreciated and well recieved.
    Edited by: Steve Carlson on Jan 23, 2009 3:41 PM

    Hi,
    I have a similar problem, I'm running apache 2.2 on windows and oc4j 10.1.3.4.0.
    I'd like to map http://app1.example.com/home.html in apache to http://10.1.1.3:8888/app1/home.html and http://app2.example.com/home.html to http://10.1.1.3:8888/app2/home.html
    I have the ProxyPass settings in my httpd.conf file
    ProxyPass / http://10.1.1.3:8888/app1
    ProxyPassReverse / http://10.1.1.3:8888/app1
    This works fine for the first URL and the browser shows the correct page at http://app1.example.com/home.html however as soon as I click a link in the page the browser tries to go to http://app1.example.com/app1/page2.html
    And since I have my ProxyPass mapping in apache, I think its trying to get to the following page in oc4j http://10.1.1.3:8888/app1/app1/page2.html which doesn't exist.
    Is there any way to map a subdomain/virtual host to an oc4j context but hide from the browser the oc4j context in each of the URLs.
    To make matters more tiricky (or maybe not), I'm using Struts 1.3.10 as my application framework, so I don't normally construct the <a> links myself but have Struts do that for me with <html:link> tags.
    Thanks in advance for any pointers,
    Andy.

  • Using OC4J with Apache Web Server

    Hi,
    I followed the instruction to put the following lines in apache/config/httpd.conf:
    <IfModule mod_proxy.c>
    ProxyRequests On
    ProxyPass /servlet/ http://sundev.ultradns.net:8888/servlet/
    ProxyPassReverse /servlet/ http://sundev.ultradns.net:8888/servlet/
    </IfModule>
    I can access my servlet as:
    http://sundev.ultradns.net:8888/servlet/MyServlet
    But when I tried to access through apache server as:
    http://sundev.ultradns.net:80/servlet/MyServlet
    I got an error:
    The requested URL /servlet/MyServlet was not found on this server.
    Thanks,

    Are you using OHS aka Apache from an Oracle9iAS install. In Oracle9iAS, there is another servlet engine Jserv configured for URI /servlet and this is causing the problem.
    If you are not using JServ then you can disable Jserv by commenting out the directive for mod_jserv in your httpd.conf file and this should work fine.
    regards
    Debu Panda
    Oracle

  • ITS620  behind Apache Reverse Proxy : POST data (only) gives error for IAC

    Hi all ,
    we are proxying EP6 and ITS620 through Apache 2.0.59 . All portal and most ESS ITS Iviews display correctly . All GET method/display ITS Iviews display correctly BUT as soon as we try to change some info in an ESS Iview (e.g Change Work Address (POST method) the Proxy errors out .
    Here is the httpd.conf :
    RewriteRule ^/sap/(.*) https://<itshost>:8443/sap/$1 [P,NC,L]
    RewriteRule ^/scripts/(.*) https://<itshost>:8443/scripts/$1 [P,NC,L]
    ProxyPass           /scripts https://<itshost>:8443/scripts
    ProxyPass           /sap https://<itshost>:8443/sap
    ProxyPassReverse    /sap https://<itshost>:8443/sap
    ProxyPassReverse    /scripts https://<itshost>:8443/scripts
    When we hit POST a long URL of the form
    /scripts/wgate/zpzxx/~flNlc3Npb249VFM0OlNBUE5UVDAxOjAwMDEuMDAwMS5lMDgyMTU3NS5hM2RhJn5odHRwX2NvbnRlbnRfY2hhcnNldD1pc28tODg1OS0xJn5TdGF0ZT0yODY5Mi4wMDEuMDIuMDI=
    (with some POST data)
    is sent to ITS ...ITS receives it OK but Apache immediately errors .
    Has anyone seen this behaviour before either with POSTS or ESS IAC Iviews through Apache ?
    Regards
    Daniel

    I found the answer myself... Use ProxyPreserveHost on with internal hostnames (not IP's):
            ProxyPass / http://macserver.home/
            ProxyPassReverse / http://macserver.home/
            ProxyPreserveHost on

  • Apache in front of OC4J?  AJP13?

    Hello,
    I need to place OC4J behind Apache.
    I have a working Apache setup that talks to JBoss/Jetty via AJP13 on port 8009. How can I configure OC4J to listed to some port and listen for AJP13 requests?
    Does OC4J come with its own protocol and Apache module?
    When I start OC4J and use `nmap' to check which ports OC4J is listening, I only see port 8888, which is OC4J's internal HTTP server. I want to put Apache in front instead.
    I couldn't find any documentation about this, so any help would be great.
    Thanks,
    Otis

    For 9.0 PE you can also use the apache mod_jk plugin to have an apache in front of Glassfish/9.0PE. Google around for mod_jk and glassfish and you should find some blogs about it.

  • Deploying servlets (not in jar/war/ear!) to OC4J?

    I must be missing some very tiny but crucial issue....
    For over 2 days now (shame) I have been trying but not
    succeeding to deploy servlets to OC4J behind Apache. The 'behind
    Apache'-part is easy. Just set up a proxy. This is because
    Apache configuration is easy and well documented. But here is my
    real problem. I am using JDev 3.2 (9i too large) and this is
    what I want:
    I want to code a servlet in Jdeveloper, compile it to a class-
    file, not a jar, war, ear or whatever-r. Then I want to set up
    OC4J in such a way that I can access my servlets from the
    directory where the class files are. I do NOT want to use the
    default-web-app subdirectory for obvious reasons. Please, how do
    I set up OC4J to just look in my own classes-directory with my
    own servlets???? No jar, no war, no ear.
    I have been reading all sorts of information on this and tried
    everything, but am not succeeding and getting all sorts of
    error/not found messages.
    Extra info:
    I am using OC4J on windows. To start I use java -jar orion.jar,
    to restart I use ^C and repeat the start command. Is that ok or
    do I need to restart in a different way? I tried to setup OC4J
    as a service but the link to runexecsvc went astray to judosoft
    Any help will be greatly appreciated!

    Avi,
    Thanks for your swift reply. I have indeed read the docs, but
    the exploded directory format does not seem to work for one
    reason or another (got some error messages on file not found or
    something). Have you succeeded in deployment using exploded
    directories? If so, I would be greatly interested in your xml-
    files and directory structure!
    But, please do not spend too much time on this, because I have
    now decided that I will deploy using a war. I have written a
    small script to make a war out of my whole project and copy it
    to de OC4J file system. This works and everybody is happy.
    Thanks again,
    Martijn

  • Oc4j, jdeveloper and apache, port conflicts ?

    Hi all,
    I am currently in the process of deploying my first EJB on Oracle 9i AS.
    I have successfully installed oc4j.zip and set the login credentials.
    I am however, unable to connect to the index page of the OC4J server from any computer besides the server.
    My URL is http://prams_nt_03:6666 and this works on the server. The reason for it being 6666 is that I have changed it to avoid conflicts with the oc4j server. I have changed it in the default-web-site.xml file. There is a danger of conflict because I want to access the OC4J server behind Apache.
    I have also created the oc4j.conf file, which httpd.conf looks at :
    <IfModule mod_proxy.c>
    ProxyRequests On
    ProxyPass /servlet/ http://prams_nt_03:6666/servlet/
    ProxyPassReverse /servlet/ http://prams_nt_03:6666/servlet/
    </IfModule>
    Does anyone have any suggestions as to what else I need to do ? Maybe I need to specify somewhere else that I am using port 6666 ?
    Also, another point is that I am unable to deploy from JDeveloper, the connection test to the application server fails with the error message : Disconnected.
    My server is Win NT sp6, my AS is 1.0.2.2.2a.
    Thanks in advance for any help you can give.

    Hiya Debu,
    1) Are OHS and OC4J running on the same server ?
    - Yes, along with 9i DB rel 1
    2) What ports are used by OHS and OC4J ?
    The ports are 8888 for both, I have removed the setting for the OC4j Server, which means the OC4J server is not working behind Apache.
    3) Can you go to OC4J's homepage directly i.e. http://myhost:6666 ?
    I cannot go using hostname, but can using I.P address
    4) Can you go to OHS (aka Apache)'s homepage directly ?
    Yes, using I.P and hostname
    5) Do you get any errors during startup of OC4J or OHS ? You will an error port already in use error when a port is used by someone else ?
    None that I can think of.
    I think you hit the nail on the head when you said it could be a DNS problem ! I will configure that now. Thanks for your help, you're a star !

  • Apache does'n propagate request information to OC4J

    Hello,
    We are successfuly using a great piece of code, modNTLM (sets REMOTE_USER request variable to "PRAHA\Kolek_R" for example), on our intranet server. We are implementing security on "LOCATION" container (see uncommented part of httpd.conf bellow). Everything works fine till time we tried to apply security on "remote" location. In other words security on "local" location only works fine.
    So, the question is, how we have to setup apache to behave the same way in respect of "remote" locations ? The redirection to remote location we implemented through ProxyPass and ProxyPassReverse directives as You can see bellow in commented section. It works well except of discovering the username of incomming user. It can be seen in access.log file too.
    Note that "remote" location is placed on our application server (OC4J) and apache serves as its frontend.
    PLEASE FORGET THAT WE ARE USING NOT SUPPORTED APACHE MODULE (MODNTLM) AND PLEASE HELP US TO DISCOVER WHY APACHE (FRONTEND) DOES NOT PROPAGATE REQUEST INFORMATION TO APPLICATION SERVER (BACKEND).
    Please help and & thanks in advance for Your time and answer,
    Radim.
    access.log entry in case of "local" location, proxy entries stays commented
    160.218.101.56 - PRAHA\Kolek_R [29/May/2002:10:39:29 +0200] "GET /webstore/test.jsp HTTP/1.1" 404 319
    access.log entry in case of "remote" location, proxy entries are uncommented
    160.218.101.56 - - [29/May/2002:10:39:27 +0200] "GET /webstore/test.jsp HTTP/1.1" 401 505
    piece of httpd.conf file
    #<IfModule mod_proxy.c>
    # ProxyRequests On
    # ProxyPass /webstore/ http://dbiatest:8888/webstore/
    # ProxyPassReverse /webstore/ http://dbiatest:8888/webstore/
    #</IfModule>
    <Location /webstore>
    Order deny,allow
    Deny from all
    AuthType NTLM
    AuthName "WebStore"
    NTLMAuth On
    NTLMAuthoritative On
    NTLMOfferBasic Off
    require valid-user
    satisfy any
    </Location>

    BTW I also tried to deploy same application on Tomcat and run same load test with same scenario but don't see such error in Tomcat log file. So I guess this is Oracle AS related issue but not general Apache issue.

  • Servlets and OC4J

    Hi!
    I need help. I'm working with OC4J 9.0.2.0.0a behind Apache. In my application a have to obtain data of DataBase and show it in a fdf. To do that i have done a class that obtains the data and a servlet that show it in a fdf using classes of Adobe. The Adobe jar's name is jFdfTk. The servlet runs ok at port 7777, but when i change to port 80 the fdf doesn't show data. I can't understand why.
    Does anyone have the same problem??
    Can anyone help me??
    Does anyone know why??
    Thanks!

    I see now that I can use the old method of JNDI
    lookup with the 3rd party messaging from a web
    container, I just can't use the java:comp/resource/MQSeries logical JNDI location.
    document: oracle 9ias Container for J2EE,
    Services Guide
    Release 2(9.0.3)
    Aug 2002
    Part No A97690-01
    Chapter 9 Page 9-2
    I am having trouble with this statement;
    The ResourceProvider interface enables you to plug in
    third-party message
    providers for JMS connections. For Oracle JMS, this
    allows EJBs, servlets, and OC4J
    clients to access many different queue
    implementations.
    (OK good so far,)
    With third-party message
    providers, only EJBS can access queue
    implementations. The resources are available
    under java:comp/resource/ as the default JMS
    resources.
    WHAT? I can't do asynchronous messaging from a web
    App to a MDB with a 3rd party JMS implementation?
    What gives?
    Can someone tell me this is not true please

Maybe you are looking for

  • Problem while running infopackage on GDS

    Hi I have made a GDS using Function module. It is showing correct records in RSA3. But when I am running infopackage of full mode it is in yellow state(still running state). Presently data in RSA3 is 7 records which should take very less time while r

  • Calling IP function in ABAP report

    Hi guys, I would like to execute a planning function of BIIP from an ABAP report. Which function module has to be used or is there a different approach? For the old BPS planning function there was the API_SEM_BPS.... Regards Stefan

  • Just Installed Tiger Can't Connect to Internet

    I just upgraded to Tiger this morning. Ever since when I attemp to connect to my wireless router through airport, my router crashes and resets and all the computers that are connected to it lose the connection. I believe that my airport is somehow ac

  • I want to control width on column in report screen - new user

    the file is "CHANGEMANAGEMENT" The field is "REQUEST_DESCRIPTION" - It is 2000 characters I can't find a combination of settings that will allow me to set the width on a column for a screen so that the screen doesn't have to scroll away to the right.

  • Wrong language

    installed CS5 in wrong langauge. How do we change it to english