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.

Similar Messages

  • OC4J Versus 9ias

    With all the fuss over OC4J, what is the strategic importance of using OC4J versus deploying your application on 9ias? Is there something proprietory within 9ias that would be a dis-incentive? A response from would be greatly appreciated. When it seemed ORACLE had something stable they suddenly seemed to have created a whole lot of confusion!!
    Rajendra V Auradkar
    Software Architect
    [email protected]

    <BLOCKQUOTE><font size="1" face="Verdana, Arial, Helvetica">quote:</font><HR>Originally posted by Rajendra Auradkar ([email protected]):
    I am sure that OC4J has great features. Is there a structured treatment on what these features are and how to use them?
    Thanks,
    Rajendra V Auradkar<HR></BLOCKQUOTE>
    Rajendra,
    Before OC4J, we had the Oracle JVM running inside the database. This meant that users had to install a database to run J2EE applications. Though there were some benefits of running J2EE applications with Oracle JVM, there were some usability issues
    and our customers gave us feedback that they did not like to idea of installing a database ( in the middle tier) to run J2EE applications. To address these and other concerns OC4J was launched about 6 week back.
    Oracle JVM will continued to be enriched to run Java stored procedures and server -side JDBC and SQLJ. For your J2EE needs, please use OC4J. It is easy to use and very fast as another person on this thread mentioned.
    For more technical info including examples and white papers check out http://technet.oracle.com/tech/java/oc4j/content.html

  • 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.

  • 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.

  • Performance advantage to standalone OC4J versus App Server?

    If one uses only the JMS server part of the 10g Application Server, would there be any performance advantage to running the standalone version of the OC4J JMS server versus running the entire application server?

    Are you saying there is zero overhead associated with passing JMS messages through the application server?
    Logic suggests a performance increase when a step is removed...

  • 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.

  • 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

  • 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

  • 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.

  • 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.

  • HTTPS mode for OC4J - Very Urgent

    Hi,
    I am trying to implement HTTPS mode with OC4J for our internal application. The Server Configuration and how I tried to implement is detailed below.
    The Server Configuration :
    Operating System     :     Linux 7.1
    Java Development Kit     :     j2sdk1.3 with j2sse 1.0.3
    Web Server          :     Oracle9iAS Containers for J2EE (OC4J) OC4J build# 020712.1645.
    The command for generating the CSR (for test certificate from Entrust)
    1. keytool -genkey -keyalg "RSA" -keystore keystore -storepass 123456 -keysize 512
    2. keytool -certreq -keyalg "RSA" -file gisl-dev -keystore keystore
    I had generated a CSR from the server and submitted the CSR online for a test certificate. On submission freecert.entrust.com had issued the web server certificate and the CA certificate successfully.
    After this I tryed to import the Web Server Certificate with this command:
    3. keytool -keystore -keyalg "RSA" -import -trustcacerts -file gisl-dev.cer
    I am getting an error:
    keytool error: java.security.cert.CertificateException: Unsupported encoding
    Is there anyway to come out of this problem, I think I can use Apache Server and tunnel the request for OC4J through Apache. But the sad thing is that I don't know how do it.
    Please help me out to solve this problem

    1/ try to add a LF to your reply certicate. (there is a bug on keytool import)
    2/ Also you need to check if your CA provider certicate is known on cacerts file. If not you need to import it.
    Hope this help

  • Mod_orion for Apache?

    Does anyone know if a mod_orion (or similar) is in the works somewhere to hook up Orion (or OC4J) to Apache?
    John H.

    As Philip Ross already said, Orion announced AJP13 support with version 1.4.8. Upto 1.5.2 this is disabled due to 'pending issues', but when it will be available, you can use mod_jk from tomcat3.3 to connect Apache and OC4j/Orion. This would provide a more efficient connection and access to parts of the request like certificates.
    <BLOCKQUOTE><font size="1" face="Verdana, Arial, Helvetica">quote:</font><HR>Originally posted by John Haasbeek ([email protected]):
    My interest stems from all of the other mod's I like to use in Apache (php, perl, etc) to supplement the Java stuff I build applications with. I must research this reference to AJPV13 protocol support, as that seems to imply that Orion could work with mod_jk, which would be rather nice. Thanks for the replies,
    John H.<HR></BLOCKQUOTE>
    null

  • IFrame portlets with customization mode is available with JPDK v2 on OC4J

    iFrame portlets with customization mode is available with JPDK v2 on OC4J is uploaded into Knowledge Exchange.
    1. Download the 53708.ZIP from
    http://portalstudio.oracle.com/pls/ops/community.comm_folder_download.get_item?p_folderid=233480&p_itemid=279865&p_caid=233
    2. Unzip the 53708.zip into iframev2.ear and copy into your <OC4j_HOME>/j2ee/home
    3. Edit server.xml and http_web_site.xml or default-web-site.xml to deploy iframe provider.
    4. Detailed installation are available in same zip file
    Please provide your feedback.

    iFrame portlet being referred here belongs to verion2 ( v2 ), which
    is supposed to be used with OC4J not Apache JServ. Version1 of iFrame
    can be found at
    http://portalstudio.oracle.com/pls/ops/docs/FOLDER/COMMUNITY/PERSONALFOLDERS/DKNOX/IFRAME.ZIP
    Installation instruction are available at
    http://portalstudio.oracle.com/pls/ops/docs/FOLDER/COMMUNITY/PDK/SAMPLES/WEBPORTLETS/IFRAME/IFRAME.WEB.PORTLET.HTML
    -aMJAD.

  • 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

Maybe you are looking for

  • Mediasource 5 Functionality Changes...w

    I have loved the MediaSource Player/Organizer ever since it was shipped with the first Audigy card I purchased some time ago. I believe it was version 3 back then...the layout, functionality and easy of use made it the best player I had ever used- I

  • How to pass more than one value for one column in procedure

    hi select id, name from col_tab where dept_name in ('ECE','CIVIL'); when i was running this it is working well. CREATE OR REPLACE PACKAGE pack_str AS TYPE type_refcur IS REF CURSOR; PROCEDURE str(char_in VARCHAR2,ans OUT type_refcur); END pack_str; C

  • Save iBot in Shared folder

    Hi Gurus, 1) I loged in as Administrator and created the iBot when i am trying to save the iBot it is saving in the MyiBots folder i dont see any option to travers to the Shared iBots folder. Is anything i need do to save the iBots in Shared folder.

  • Trouble installing adobe 10.1.4 reader

    I have downloaded adobe reader 10.1.4 and keep getting an error message: core dll failed, what am I doing wrong?

  • Using iMovie to prep videos for inclusion in iPhoto - right choice?

    I like to use iPhoto to view my photos and video clips, since it automatically shows things in chronological order, and with iPhoto 09 it interleaves photos and video clips nicely. Works great with my current digicam which sources both stills and vid