OC4J and Log4Java

Our application uses Log4Java for logging tasks. It's deployed in an OC4J instance created for it and named OC4J_App.
File log4j.properties the file is referenced this way:
log4j.appender.IDLOG.File=log/applog.log
We think the log should be generated in $OHOME/j2ee/OC4J_App/log but it is always generated in OC4J home instance's directory ($OHOME/j2ee/home/log).
Anyone can tell me what's wrong ?
Thanks

Javier,
Check where the current directory is for the java vm.Just in case the above is unclear, the current directory for the JVM can be obtained via the following code:
String currentDirectory = System.getProperty("user.dir");Good Luck,
Avi.

Similar Messages

  • OC4J and FOP installation

    Hi,
    We would like to use the PDF printing of 3.0.1
    I am trying to install FOP but I do not have any knowledge in OC4J and Java ... so I am kind a lost right now.
    I am following the installation guide of OC4J standalone (http://download.oracle.com/docs/cd/B32110_01/web.1013/b28950/install.htm#BABIBGCA)
    I was wondering :
    1- do I need to install oc4j standalone in a separate Oracle Home ?
    2- There is already an OC4J installed in my db Oracle Home , I guess for emdbconsole. So , I created a new directory called oc4j_sa and unzipped the file. When I start OC4J with oc4j -start , it does not give me the prompt back. Then , I can access the web page with port 8888 (192.168.0.21:8888) , but 192.168.0.21:8888/em fails . So I cannot deploy the FOP war file.
    Any pointers or guidance would be great.
    Thanks
    Francis.
    P.S. :
    Oracle 10.1.0.5
    Oracle Linux (RH 4)

    OK, I finally got to the deployment of FOP but now it generates a corrupted PDF.
    Are there any log files that I can check ?
    I created a new Oracle_home for OC4J and ran "EM" to deploy FOP and everything worked like in the viewlet.
    Now I did the setup in APEX and set the following :
    Standard Support
    Print Server Protocol HTTP
    Print Server Host Address 192.168.0.21
    Print Server Port 8888
    Print Server Script /fop/apex_fop.jsp
    I created a sample application to test. In a report , I added the print link.
    When I clic Print, the pdf generated is corrupted and does not work.
    Thanks
    Francis.

  • OC4J and Oracle forms causes ie or firefox to not respond when running form

    When I run a form in Oracle Forms 10g, I have OC4J running, and have the following displayed:
    E:\Windows\system32>E:\DevSuiteHome_5\jdk\bin\java -Doracle.security.jazn.confi
    g=E:\DevSuiteHome_5\j2ee\DevSuite\config\jazn.xml -Doracle.home=E:\DevSuiteHome_
    5 -DORACLE_HOME=E:\DevSuiteHome_5 -jar E:\DevSuiteHome_5\j2ee\home\oc4j.jar -use
    rThreads -config E:\DevSuiteHome_5\j2ee\DevSuite\config\server.xml
    07/11/20 23:11:44 Warning: Error reading transaction-log file (/E:/DevSuiteHome_
    5/j2ee/DevSuite/persistence/transaction.state) for recovery: premature end of fi
    le
    07/11/20 23:11:44 Forced or abrupt (crash etc) server shutdown detected, startin
    g recovery process...
    07/11/20 23:11:44 Recovery completed, 0 connections committed and 0 rolled back.
    07/11/20 23:11:44 Oracle Application Server Containers for J2EE 10g (10.1.2.0.2)
    initialized
    07/11/20 23:18:10 FormsServlet init():
    configFileName: E:\DevSuiteHome_5/forms/server/formsweb.cfg
    testMode: false
    I am running vista, and have the latest version of the dev suite. Does anybody know how I can fix this problem?

    You cannot use Internet Explorer on Windows Vista to run Web Forms.
    <p>But you CAN run web forms through Netscape or Firefox. But you first need to disable Java in the browser.
    <p>And to run OC4J on Vista, you need to set its compatibility mode to Windows XP.
    <p>See my notes on OC4J and "Browser Settings" in this thread:<br>   
    Forms 10g installed and running on Windows Vista

  • Report display is different in report builder, local oc4j and app server

    Hi guys,
    we upgrade reports from sql report writer into report 10g. In the report 10g builder,
    the report format looks fine. but if i use the url as below
    http://applicationserver/reports/rwservlet?report=test.rdf&userid=username/password@service&desformat=pdf&destype=cache
    so the format will be mess up whatever i use this url in my local oc4j or i deployed it into 10g application server. and the format is different in oc4j and application server. Why this issue happend?
    Thanks in advance,
    Appcat

    Hello,
    They are a Fix Pack higher than you which may explain why it's broken on their server.
    Download the Fix Pack for R2 and see if you can duplicate the issue.
    Thank you
    Don

  • How to make OC4J and IIS on diffrent machines ?

    Hi,
    How to make OC4J and IIS running diffrent machines. following document tells use "standalone ONS daemon",Can anybody tell what standalone ONS daemon means and steps to be done to make IIS working on diffrent machine
    http://download-west.oracle.com/docs/cd/B25221_03/web.1013/b25211/oc4jplugin.htm#i638738
    Thanks & Regards
    Vino joy

    sender,
    the quantize menu is in the top info box in the arrange.
    if you double click on it, an extended parameter box appears with a lot of quantizing options. also RTFM about this bit.
    in the sample editor, there is an audio quantize feature.
    but it is old, and probably hasn't been updated in ten years........try it, you
    'll prolly hate it.
    there is also a quantize audio/groove plug, in the special menu.
    it works....sorta.
    if you're talkin' drums, on seperate tracks, like kik on one, and snr on the next, etc., try strip silence to cut the loop/file up, then select same in the arrange trk and quantize this, as above. (info box).
    this does work well provided you know just where you want the feel to be.
    you could also try making a groove template of the original clip/loop and use this as a timing reference.
    this also works well if you can get a clean footprint of the audio.
    best,
    DR9

  • How Standalone OC4J and the Oracle Application Server linked to each other

    Hi ,
    Please let me know what is the relation between a Standalone OC4J and the Oracle Application Server ?
    In my application The Oracle Application Server is installed in C drive and there is a Stand alone oC4j .
    Please tell me how they are linked to each other .
    Thank you .

    It depends on your need and what features and functionality of Oracle Application Server you are interested in. Note that OC4J is a component of Oracle Application Server that can run as a standalone component or within Oracle Application Server. Question #6 in earlier mentioned FAQ document states:
    OC4J standalone is J2EE 1.3 compatible (1.4 and 1.5 too in later releases of OC4J) and is able to be used in both development and small scale production environments. OC4J standalone provides its own inbuilt HTTP/S listener to allow clients to execute Web applications that it has deployed. Application deployment and server configuration of OC4J standalone is performed by the manual editing of a simple set of XML files.
    For large scale enterprise deployments, the Oracle Application Server product is likely to be more suitable with its comprehensive feature set including Oracle HTTP Server, process monitoring and management capabilities, and its configuration and management console.
    So if you are happy with what you see in standalone OC4J and scalability isn't an issue for you, you can stay with standalone OC4J and don't need to move to Oracle Application Server.
    PS: If you do decide to use OC4J that's embedded with Oracle Application Server, you can't move your standalone OC4J inside Oracle Application Server. You will have to reconfigure embedded OC4J again (as you might have done with standalone OC4J) and redeploy your applications.
    Hope this helps.
    Thanks
    Shail

  • Is the Lastest OC4J and AS9i work with oracle 8i ?

    Hi, a quick question:
    Is the lastest OC4J and Oracle AS9i works/compatible with Oracle 8i?

    Yes, you can use OC4J and Oracle9iAS with Oracle8i also.
    -Arun

  • Standalone oc4j and oracle 9i database on the same windows xp machine

    I m trying to deploy my j2ee application in my local system using standalone oc4j container(Oracle Containers for J2EE 10g (10.1.3.1)).To configure OC4j,I had to mention ORACLE_HOME=d:\oc4j as a user defined env variable.after that the oc4j started running normally.then i installed oracle 9i database in the same system to use it as the database for the application.During installation it prompts that ORACLE_HOME is alredady set.However the installation completes successfully.But when i try opening sql plus,it throws and error asking to check oracle_home.Its only after changing oracle home to d:\oracle,that sql plus opened and i could log in to it.But after that oc4j would not run saying it cannot find relevant files.Is it not possible to have standalone oc4j and a database for a J2ee application on the same system.if its possible,how can we go ahead?Thanks in advance

    user549113,
    Problem with ORACLE_HOME has been discussed several times already in this forum. I suggest you search the forum archives for "ORACLE_HOME".
    Good Luck,
    Avi.

  • OC4J and login failure

    'Install' the embedded OC4J in JDev9i (<Jdev9i_HOME>\j2ee\home) and assign an administrative password of admin.
    Deployment from JDev9i works with no issue - URL uses port 8888.
    Problem is when shutdown machine and come back in I have to go back and reinstall the embedded OC4J. It seems to lose
    the fact that it was installed and had a password of admin.
    What gives - Thanks - Ken Cooper

    First of all i had the exact same problem for few weeks ago.
    I was advised to download the Oracle9iAS Containers for J2EE Standalone ( http://technet.oracle.com/software/products/ias/devuse.html )
    then make own oc4j directory and install this version. This will work!
    Note that if you work with bc4j you need to adjust your configuration
    according to this doc:
    http://otn.oracle.com/products/jdev/htdocs/bc4j9ioc4j.html
    and do the configuration manually.
    You will never have to reinstall oc4j and if for any reason the oc4j does not work properly, you can simply delete the oc4j directory and setup a clean one.
    succes!
    greetz jaime

  • OC4J and JDK version compatibility

    Does anyone know if OC4J 1.0.2.2.1 is certified to work with JDK1.3.1?
    The reason being :
    1. We have a situation where the CPU gets full frequently because of OC4J.
    2. When OC4J is recycled the app works fine. App uses JSP, servlets and JDBC connection to Oracle 8.1.7
    3. Is there any way to find if OC4J 1.0.2.2.1 is not supposed to be used with JDK1.3.1?
    Finally, is there any URL that provides this information so that I can check the same with later versions of OC4J and JDK?
    Thanks,

    OC4J 1.0.2.2.1 is not certified with 1.3.1.x. Certification information should be available in http://metalink.oracle.com. You should have a CSI to get into Metalink.
    thanks
    debu

  • OC4J and OracleAQ

    I've developed an EJB to use in OC4J. This EJB tries to access a Queue in an Oracle8i Database, but i always get an error, saying the connection is invalid. The same code executing as a normal Java Class works fine. Is there any problem with OC4J and oracleAQ?

    I have successfully used AQ with OC4J. I have 2 beans where one bean writes to the queue and another bean reads from the queue. As far as connection is concerned, when you move the EJBs from JServer to OC4J, you can't use the KPRB driver. You can use either Thin/Thick driver. May be you could check that.
    --Rajesh                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • OC4J and HTTP?

    Hi,
    I am curious if someone might be able to shed some
    light for me on this problem? I need to first run a
    servlet on OC4J and then I want to pass some
    data from that to an HTTP mod pl/sql instance
    and I want both to run HTTPS. How would I go about
    configuring what I want to do? Run OC4J on port 80
    and then pass it over to Apache?
    TIA

    I opened an enhancement request at metalink for this issue
    regards

  • Oc4j and JVM

    Where I can obtain information detailed on the use of instances of jvm in OC4J and possible behaviors of this.
    We setup a container to make use of 2 virtual machines ( in the numprocs parameter in the opmn.xml file ) when we do opmnctl status command the instance shows two processes alive.
    But when we observed the logs, only the first instance is modified. I want to know if is possible to balance the requirements to the 2 jvm? how to do it? or where i can found information about that?
    Regards.
    Edgar René

    Hi Edgar --
    But when we observed the logs, only the first instance is modified.
    I want to know if is possible to balance the requirements to the 2 jvm? how to do it?
    or where i can found information about that?Can you explain a little further about what you mean by first instance modified -- what operation are you doing? What logs are you looking at? You may have observed this already, but when you run with multiple procs, each process (ie JVM) has a separate log file -- colors~blue~colors~1.log and colors~blue~colors~2.log for example.
    When you have multiple processes running for an OC4J instance, then incoming client requests are automatically balanced over them.
    It's really helpful when you post questions if you state what version you are usign too -- there are some differences between the releases.
    cheers
    -steve-

  • OC4J and BC4J Runtime installation for Solaris (Unix)!

    We have successfully installed, configured and deployed JSP/BC4J apps using OC4J and BC4J on Windows NT/2000. However, our production environment is Solaris.
    We have installed OC4J on Solaris, with some difficulties. How/where is the installation process for the BC4J Runtime Installation? The download (bc4j-ojsp.zip) for this utility is Windows only.
    Is there a method or process to install BC4J Runtime on Unix? If not, we are stuck.
    We cannot use JServ (servlet limitations) and refuse to use OSE (to many issues).
    Any guidance or assistance would be greatly appreciated...
    JDeveloper 3.2.3
    iAS 1.0.2.2
    Solaris 8
    JDK 1.2.2_08 (Unix)
    Dean

    Stephan,
    I have located multiple "connections" files and will remove all but the default located in the OC4J classes directory. We have been developing with JDeveloper and it often created multiple connections files that appear when you "jar" project components.
    We also installed JDK1.2.2_008 and are using this. However, when I use the classpath method of starting OC4J, I receive numerous errors. Using the jar method, everything works, with the exception of BC4J apps. I'll have to look into the errors more.
    Thanks for the response. At least I know one other person (organization) is using this successfully. I hope to join the "success" crowd tomorrow!
    Thanks again...
    Dean

  • OC4J and WTP JDT-compiler

    Hi.
    Does anyone know about OC4J and JDT-compiler compatibility ?
    If I don't mistake, OC4J works officially with JDK compiled classes.
    What's about JDT compiled classes compatibility ?
    Thx

    Hello,
    Correct me if I am wrong but JDT is the JSP compiler of Tomcat, that "transform the JSP in to a Servlet". Based on this statement, I do not think it will bepossible to use these classes in OC4J since Oracle has its own JSP/Servlet engine.
    Regards
    Tugdual Grall

Maybe you are looking for

  • After hard drive replacement, iTunes points to wrong drive

    I have my iTunes media on an external drive, and the drive failed. Luckily I had a backup, and I also had a spare drive to replace the bad one with. So I set up the replacement drive on my Mac Mini, naming it the same as the old drive (iTunes Library

  • Password for my appletv

    I am trying to set up Apple TV in my classroom, but can't put in my network password (which I usually do online?)  I have full network strength.  Any help out there?

  • Transferring PC Quicken files to a Quicken for Mac

    My dad is making the switch from PC to Mac, but is worried about losing his quicken files. I know they make quicken for Mac, but are files the same? (i.e. .docx for word) Will he have a problem making the transfer? Thanks!

  • SAP Patch :'Error reading the standard sequence from the document tables

    Hi Experts, Please help! Recently SAP patching is carried out in our R/3 environments. Before patching, all our customized RFCs were working correctly. We are using BAPI ''BAPI_ALM_ORDER_GET_DETAIL' in a RFC. After the patching, the version date of t

  • Speeding up select count(*)

    Hi, I'm using a query : - SELECT COUNT(*) FROM tebevt01 a WHERE a.DAIRY_EVENT_ID IN (SELECT dairy_event_id FROM tebevt03) AND a.CREATE_TS BETWEEN '22-JAN-04' AND '12-DEC-04' Is there any particular optimizer hint that I can use to speed up the retrie