OC4J + Apache

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, jsps) to oc4j. right now, the images in my jsp files are pointed to "/images" directory (eg, img src="/images/clear.gif"). and my problem is that its oc4j that reads the image file and gets it relative to the port (which is :8888). I was hoping that it would follow apache's config, because my goal is that both apache and oc4j will dig static resources from the same dir. should my proxypass setting be like this:
ProxyPass /images/ http://morpheus/images/ (????)
or do you have any other suggestions for the proxy pass entry?
also, i was hoping to configure apache to handle cgi-bin accesses, and only through apache..
thanks!
-deo

Hello,
Your question is directly related to Axis stack. As you did, you can deploy and execute Axis Web services on OC4J. Some Axis use are probably monitorin this forum but you will have more chance to get an answer by using Apache Axis mailing lists and forum since your question is not related to OC4J or Oracle Web Services.
regards
Tugdual Grall

Similar Messages

  • OC4j-Apache Axis

    Hi,
    I have Axis integrated with Oc4j. But in my application I have custom complex datatypes & not direct JavaBeans only. For implementing Jax-rpc I believe the only solution out there is to write a custom serializer/deserializer with Axis. I am running in to issues with the same.
    Axis example wasent sufficient to explain how to implement it.
    Request :- If sombody has has any examples or prior knowledge could you share with me, also if someone could point out if there is a discussion forum for Apache Axis, strange as it might sound I havent found any!!
    Gaurav

    Hello,
    Your question is directly related to Axis stack. As you did, you can deploy and execute Axis Web services on OC4J. Some Axis use are probably monitorin this forum but you will have more chance to get an answer by using Apache Axis mailing lists and forum since your question is not related to OC4J or Oracle Web Services.
    regards
    Tugdual Grall

  • PDF printing with oc4j apache fop not working

    I am configuring PDF printing in Apex 3.1.1. I have set up a shared component report query with a simple query. I have implemented the oc4j standalone and implemented the fop.war as specified in the "pdf printing in Apex" documentation. When I use the test button to verify the output of the report, I am redirected to a 404-page not found and the oc4j instance logs the following:
    08/09/09 12:02:36 [ERROR] Logger not set
    08/09/09 12:02:36 [INFO] Using oracle.xml.parser.v2.SAXParser as SAX2 Parser
    08/09/09 12:02:36 [INFO] building formatting object tree
    08/09/09 12:02:36 [INFO] setting up fonts
    08/09/09 12:02:36 [INFO] [1]
    08/09/09 12:02:36 [WARNING] table-layout=auto is not supported, using fixed!
    08/09/09 12:02:36 [WARNING] Sum of fixed column widths 662000 greater than maximum specified IPD 658800
    08/09/09 12:02:36 [INFO] Parsing of document complete, stopping renderer
    Any ideas why this is happening?
    Database is oracle 9.2.0.7
    OC4J standalone 10.1.3

    Hello,
    Just did some more search on this, and apparently it's a more common problem:
    Re: PDF problem FOP mod_plsql: /pls/apex/wwv_flow.accept ORA-22293
    Regards,
    Dimitri
    http://dgielis.blogspot.com/
    http://www.apex-evangelists.com/
    http://www.apexblogs.info/

  • Exicts any workpaper with all errors (java, etc) from OC4J, Apache, etc.?

    I´ll need a recopilation of any error in file.log from Apache and Java applications:
    I mean the errors contain in this file (for instance):
    $ORACLE_HOME/Apache/Apache/logs/error_log.1189512000
    $ORACLE_HOME/j2ee/OC4J_Application/log/OC4J_Application_default_island_1/server.log
    Regards.
    Message was edited by:
    JohnRC

    I´ll need a recopilation of any error in file.log from Apache and Java applications:
    I mean the errors contain in this file (for instance):
    $ORACLE_HOME/Apache/Apache/logs/error_log.1189512000
    $ORACLE_HOME/j2ee/OC4J_Application/log/OC4J_Application_default_island_1/server.log
    Regards.
    Message was edited by:
    JohnRC

  • OC4J Install for APEX printing

    Hi,
    I have an Oracle 11g Enterprise Edition insalled on my Windows 2008 server. I am now trying to get the report printing option to work within APEX. One of the options was to use OC4J + Apache FOP to get this going. However, I'm hitting problems when trying to access my OC4J instance.
    If I just do http://localhost:8888/ it works, but when I put in http://localhost:8888/em, it falls over with a 404 error.
    Has anybody seen this before? I've tried finding something related but they all seem to point to Oracle iAS. I'm assuming that the OC4J that comes with the database qualifies as a stand-alone config?
    If I can't use the application server console, is there any other way to deploy the .war file? Can I just use the admin_client.jar and install the war? Anybody hit any problems with this too?
    Thank you,
    Chandini

    I have recently been deploying some war files without using the console. I did the following:
    - in the j2ee_home/config: updated the application.xml and added a new <web-module> entry with my specific details
    - in the j2ee_home/config: updated the default-web-site.xml and added a new <web-app> entry with my specific details
    - copy the war in to the j2ee_home/applications folder
    - restart the oc4j container
    This has been working for me using OC4J 10.1.3.

  • Http request through Apache

    I have few EJB/JSP applications deployed on OC4J. I want to access applications
    on Apache deployed on same/other machines . As this application is intended to be used by few administrators, I need to authenticate the user before access.
    Is there any standard way to achieve this?
    What I need to configure on OC4J/Apache.
    Do I need to make any changes in the application to achieve this ?
    Any thoughts
    --pranay   

    Hi Pranay,
    I can only suggest the following references (although I'm not sure
    if they will help you).
    http://www.elephantwalker.com
    http://www.atlassian.com
    http://www.orionserver.com
    http://www.orionsupport.com
    http://tahiti.oracle.com
    Good Luck,
    Avi.

  • Clustering OC4J in a full installation OracleAS

    I have a full OracleAS Infrastructure and 2 MiddleTier installation with OC4J,
    Apache, Web Caché and Portal.
    If I create an OC4J on each MiddleTier installation for my Java Application.
    Can I create a cluster with the 2 OC4Js?
    I'm asking this because in 9.0.2 the only way to create OC4J cluster was to
    install a Java only OracleAS Instance.

    If by "clustering" you mean using dcm to create a dcm-managed cluster and mantain the configuration of multiple instances syncrhonized, then the answer is NO FOR PORTAL (you can't use dcm-managed clusters with OracleAS instances of type "Portal") If by clustering you mean enabling session replication for two OC4J instances that are created inside OracleAS instances of type "Portal", then the answer is YES; you can use sesison replication inside OC4J containers that are part of a Portal installation
    HTH

  • Redirection fails on Oracle10gAS on Solaris 8 - SPARC

    Hi all,
    Am facing a strange problem, where the serverside redirection is failing on Oracle10gAS installation on Solaris 8 (tried on two setups). Am getting browser "Page cannot be displayed", also tried with a simple "hello world" example, it fails.
    The application works fine on Oracle10gAS on Windows & Linux and other App servers like websphere and weblogic.
    Are there any configurations to be done OC4J-Apache on Solaris box, apart from the basic installation, for the application to work?
    Any help provided would be highly appreciable.

    The problem got resolved by changing the Apache httpd.conf file property "ServerName". The hostname while installing Solaris was incorrect, which was picked by Apache during Oracle10gAS installation.
    ServerName <hostname>
    Find the description as given by Apache below for ServerName property:
    # ServerName allows you to set a host name which is sent back to clients for
    # your server if it's different than the one the program would get (i.e., use
    # "www" instead of the host's real name).
    # Note: You cannot just invent host names and hope they work. The name you
    # define here must be a valid DNS name for your host. If you don't understand
    # this, ask your network administrator.
    # If your host doesn't have a registered DNS name, enter its IP address here.
    # You will have to access it by its address (e.g., http://123.45.67.89/)
    # anyway, and this will make redirections work in a sensible way.
    # 127.0.0.1 is the TCP/IP local loop-back address, often named localhost. Your
    # machine always knows itself by this address. If you use Apache strictly for
    # local testing and development, you may use 127.0.0.1 as the server name.
    Thanks all for viewing this post :-)

  • Report Queries are using different sort order

    Hello,
    my enviroment is
    Apex 3.1.2
    Apache Web Server
    OC4J Apache FOP
    i have 4 Source queries in one Report Query (shared components --> report queries)
    This 4 Source queries have to be executed in a specific order, for instance my data in
    DATA>
         <ROWSET1>
              <ROWSET1_ROW>
    <query1>AABBCC<\query2>
              <\ROWSET1_ROW>
    <ROWSET2>
              <ROWSET2_ROW>
    <query2>XXYYZZ<\query2>
              <\ROWSET2_ROW>
    content always the same rows.
    Apex is doing some strange things here. Sometimes my queries are executed in a different sequence.
    So the output is like
    DATA>
         <ROWSET1>
              <ROWSET1_ROW>
    <query2>XXYYZZ<\query2>
              <\ROWSET1_ROW>
    <ROWSET2>
              <ROWSET2_ROW>
    <query1>AABBCC<\query1>
              <\ROWSET2_ROW>
    How can i fix the sequence of my source queries??
    Any help is welcome!!
    bye
    Volker Strasser

    I found the solution.
    Anychart seems to have a problem with null values!
    The corrupted sorting only occured for a specific set of search criteria and a specific day. At this day some values have been null.
    I added a "nvl( [...], 0) for every value.
    No I get a correct sort order.

  • Fop printing returns 0 byte pdf files

    Hi,
    Spent the whole day trying to get a PDF document out of APEX using Fop, but no luck sofar. Interestingly "fop" in Dutch means: tease, fool, trick, hoax, badger, vex, swindle, hoodwink
    I've tried OC4J/Apache Fop:
    http://www.oracle.com/technology/products/database/application_express/html/configure_printing.html#05
    I've tried Cocoon Fop:
    http://carlback.blogspot.com/2007/03/apex-cocoon-pdf-and-more.html
    Both OC4J and Cocoon work fine when trying their sample pages.
    I've setup the Apex print server parameters pointing first to the oc4j printserver and then to the cocoon printserver.
    This is as far as the documentation gets me. How do I get a document produced? Here is what I did:
    I created a form with a sql_query report, entered some query (select * from user_tables) and enabled PDF printing.
    Both OC4J and Cocoon produce a zero byte pdf document.
    I wonder if the printserver a being called at all since no activity is logged in ...\cocoon\WEB-INF\logs\cocoon.log
    How do I find out what is going on. Is Apex calling the print server at all? What logs to check, any additional info to be sent to logfiles?
    Another strange behaviour. When I turned on printing for an existing report region the print link has the following URL:
    http://ngdwsrv/pls/apex/f?p=107:2:278743463863218506:FLOW_XMLP_OUTPUT_R3825265334087776571_nlThis results in : 404 The requested URL /pls/apex/f was not found on this server.
    Rene

    Hello!
    Help me, please!
    I need to print reports in PDF.
    What I did:
    1 I installed Apache Tomcat 6.0.14
    2 I installed Cocoon 2.1.10
    All works fine! http://localhost:8080/Cocoon opened OK
    3 I copied fop_post to \apache-tomcat-6.0.14\webapps\cocoon\ , now I have apache-tomcat-6.0.14\webapps\cocoon\fop_post\sitemap.xmap
    4 In apex I choose : Oracle BI Publiser - Standart Support
    print server host address 192.168.1.112
    print server port 8080
    print server script \cocoon\fop_post\
    Now I make simple report consists from 1 column from a simple table like emp table, and choose.
    Output format - PDF
    Report Layout - Default Report Layout
    Apex is English.
    I read that can be problem if I'll write use point in (example) 0.5 and everywhere I used 1.
    When I run the programm and click print button I have error message : Acrobat could not open 'a[1].pdf' because is either not a supported file type or because
    the file has been damage ......
    I saved this file and opened with text editor but there was nothing and size of this file is 0 kb.
    PLEASE, explain me where is problem and how to solve it?
    Thank you!!!

  • Please help track this Internal server error

    I am in the process of getting integrated development work with my projects. I am getting this error on trying to access a simple jsp page....
    Just having the jsp file extension is enough to trigger this error... I am using WL 10 and java 1.5
    Error 500--Internal Server Error
    java.lang.ClassCastException: workshop.util.filesystem.file.WlFile
         at workshop.util.filesystem.zip.ArFileSystem.createFileObject(ArFileSystem.java:401)
         at workshop.util.filesystem.zip.ArFileSystem.constructRelative(ArFileSystem.java:270)
         at workshop.util.filesystem.zip.ArFileSystem.constructNoScheme(ArFileSystem.java:257)
         at workshop.util.filesystem.FS.getInternalFile(FS.java:157)
         at workshop.util.filesystem.FS.getIFile(FS.java:181)
         at weblogic.servlet.jsp.JavelinxJSPStub.compilePage(JavelinxJSPStub.java:228)
         at weblogic.servlet.jsp.JspStub.prepareServlet(JspStub.java:216)
         at weblogic.servlet.jsp.JspStub.prepareServlet(JspStub.java:165)
         at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:235)
         at weblogic.servlet.internal.ServletStubImpl.onAddToMapException(ServletStubImpl.java:394)
         at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:309)
         at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:175)
         at weblogic.servlet.internal.RequestDispatcherImpl.invokeServlet(RequestDispatcherImpl.java:525)
         at weblogic.servlet.internal.RequestDispatcherImpl.forward(RequestDispatcherImpl.java:261)
         at weblogic.servlet.internal.ServletResponseImpl.sendError(ServletResponseImpl.java:733)
         at weblogic.servlet.internal.ServletResponseImpl.sendError(ServletResponseImpl.java:582)
         at weblogic.servlet.JSPServlet.service(JSPServlet.java:171)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)

    Hi,
    Thanks for the reply! And yes its very frustrating. There is no other reference to this error - and I have the app and all Oracle components (oc4j & Apache) at their maximum log level.
    I have logged a SR with Oracle and off course their first response was that it "must be an issue with the 3rd party app". Needless to say the 3rd party vendor suggests I speak to Oracle...Anyway I am still working with Oracle on the SR.
    I have in the meantime upgraded to 9041, but I still get the same. I will try 9042 next. I have also started a "Plan B" workaround in my code...
    Thanks for the sympathy and any other other insights still most welcome...
    Cheers.
    Anton.

  • Please help 9iDS - 500 internal server error

    Hi all,
    I got the message 500 internal server error when I run report from form by using WEB.SHOWDOCUMENT. When I test it seperately, both the report and form work fine. But i got this problem when I run report from form. Is anyone have suggestions? I try so many ways but still can't solve this problem. Thank you very much.

    Hi,
    Thanks for the reply! And yes its very frustrating. There is no other reference to this error - and I have the app and all Oracle components (oc4j & Apache) at their maximum log level.
    I have logged a SR with Oracle and off course their first response was that it "must be an issue with the 3rd party app". Needless to say the 3rd party vendor suggests I speak to Oracle...Anyway I am still working with Oracle on the SR.
    I have in the meantime upgraded to 9041, but I still get the same. I will try 9042 next. I have also started a "Plan B" workaround in my code...
    Thanks for the sympathy and any other other insights still most welcome...
    Cheers.
    Anton.

  • Please help with "500 Internal Server Error"

    Hi all,
    I get a "500 Internal Server" error when doing some processing with a Java program that makes HTTP calls into an application API deployed as WAR file on a OC4J midtier installation. The process works fine until I get a "500 Internal Server" after about 100 transactions. I can see reference to the 500 error in the Apache access_log, but that is it - no other references whatsoever in any of the logs (OPMN, OC4J, Apache, etc.).
    Can anyone point me to some sort of "500 error troubleshooting guide" or have any suggestions as to how to track the problem down?
    Thank you.
    Anton.

    Hi,
    Thanks for the reply! And yes its very frustrating. There is no other reference to this error - and I have the app and all Oracle components (oc4j & Apache) at their maximum log level.
    I have logged a SR with Oracle and off course their first response was that it "must be an issue with the 3rd party app". Needless to say the 3rd party vendor suggests I speak to Oracle...Anyway I am still working with Oracle on the SR.
    I have in the meantime upgraded to 9041, but I still get the same. I will try 9042 next. I have also started a "Plan B" workaround in my code...
    Thanks for the sympathy and any other other insights still most welcome...
    Cheers.
    Anton.

  • CPU Patch analysis 2009

    Gurus,
    I am new to R12 CPU patch analysts, I need Some Guidence,
    I want to know how to find out the versions in R12,
    1.Oracle HTTP server version.
    Oracle HTTP Server Patches for Oracle E-Business Suite Release 12
    Table 2 lists the patches for Oracle HTTP Server. Oracle HTTP Server patches are cumulative; that is, Critical Patch Update patches contain all previous CPU content. Where applicable, customers need to apply the following CPU patches to both the OracleAS 10.1.2 and OracleAS 10.1.3 Oracle Homes.
    Mean i want to apply Oracle HTTP server patches in both 10.1.2 and 10.1.3 Oracle homes..
    2.Oracle Developer Suite(forms,reports)
    Thanks.
    3.

    In 11i we can find out . ./httpd -version , but in R12 how to find Oracle HTTP server version and Application Developer (forms,reports) versions.Oracle HTTP Server:
    UNIX: $ORACLE_HOME/Apache/Apache/bin/httpd -version
    Windows: %ORACLE_HOME%\Apache\Apache\apache.exe -version
    Oracle Developer:
    Unix: frmcmp_batch.sh
    Windows: frmcmp.exe
    Or, get it from the application (Help > About Oracle Applications).
    How to apply patches in both oracle homes.
    10.1.3 --> Application Server 10.1.3 Java ORACLE_HOME (OC4J, Apache).
    10.1.2 --> Application Server 10.1.2 Developer ORACLE_HOME (Forms, Reports).Always follow the steps in the Patch README file to apply the patches (you will mainly use opatch).

  • App Server as a web-server

    Hi guys!
    I know it's not a good idea to use oracle as a database for my site. But I want it just for learning oracle. Now I am using apache+ perl + oracle database on my site. Can I change perl and apache for oracle app server? Is it capable of doing it? Thanks.

    Yes it is possible by doing a fresh setup of oracle application server infrastructure i.e installing the metadata repository in your existing database you have. Then install the application server middle tier that configures components like OC4J, apache etc. Now re-register your applications .jar .war .ear files to the middletier.
    Sami Malik

Maybe you are looking for