Cant use log4j or commons logging with ease in OC4J/OAS 10g

Hi,
I have a simple JEE 5 app which just uses Log4J for logging. I have a log4j.properties at the right place. But deploying an EAR with this config fails
Operation failed with error: Lorg/apache/log4j/Logger;
or if i move to commons logging this...
Operation failed with error: Lorg/apache/commons/logging/Log;
Things as simple as using logging, I feel, shouldnt be any complex than what is inferred. Atleast there should more error detailing to it than a bozo message like the above.
Anyone used logging in just a ejb jar app???

We've run into this recently and were surprised to find out that Oracle not only "recommends" OAS over OC4J in a production environment, they require it. If you look at the license agreement that you accepted when you downloaded OC4J (you know, the thing that you never read) you'll find that Oracle expressly says that you are not allowed to use OC4J in anything other than a development environment.
So, after years of using it for several applications, we now have to switch to OAS. Actually, we are doing this not only to stay legal, but also to take advantage of mod_oc4j for reverse proxy. We could not get this to work under OC4J so we started poking around with OAS and then found out that we were not licensed for either in production.
If you are using OC4J in production, read the not-so-fine print. You are in violation of their license agreement.
-Bruce Altner
NASA HQ

Similar Messages

  • Log4j Vs commons-logging

    Can any one get me the difference between Log4j and commons-logging.
    Or, if both are same which one compliments the other.
    Thankls
    - Java Buddy.

    Can any one get me the difference between Log4j and
    commons-logging. Both are logging mechanisms.
    Or, if both are same which one compliments the
    other.Commons logging can be configured to internally use Log4J.
    http://jakarta.apache.org/commons/logging/guide.html#Configuration

  • I just downloaded Snow Leopard to my Mac Book, now my ICalendar says I cant use this version of iCal with this version of Mac OS X, i currently have ICal 3.0.8.....what do i need to do?

    I just downloaded Snow Leopard to my Mac Book, now my ICalendar says I cant use this version of iCal with this version of Mac OS X, i currently have ICal 3.0.8.....what do i need to do?

    Your profile shows you are running Snow Leopard. Put the Safari version you now have into the Trash. You need to reinstall Snow Leopard.
    Reinstall OS X without erasing the drive
    1. Repair the Hard Drive and Permissions
    Boot from your Snow Leopard Installer disc. After the installer loads select your language and click on the Continue button. When the menu bar appears select Disk Utility from the Utilities menu. After DU loads select your hard drive entry (mfgr.'s ID and drive size) from the the left side list.  In the DU status area you will see an entry for the S.M.A.R.T. status of the hard drive.  If it does not say "Verified" then the hard drive is failing or failed. (SMART status is not reported on external Firewire or USB drives.) If the drive is "Verified" then select your OS X volume from the list on the left (sub-entry below the drive entry,) click on the First Aid tab, then click on the Repair Disk button. If DU reports any errors that have been fixed, then re-run Repair Disk until no errors are reported. If no errors are reported click on the Repair Permissions button. Wait until the operation completes, then quit DU and return to the installer.
    If DU reports errors it cannot fix, then you will need Disk Warrior and/or Tech Tool Pro to repair the drive. If you don't have either of them or if neither of them can fix the drive, then you will need to reformat the drive and reinstall OS X.
    2. Reinstall Snow Leopard
    If the drive is OK then quit DU and return to the installer.  Proceed with reinstalling OS X.  Note that the Snow Leopard installer will not erase your drive or disturb your files.  After installing a fresh copy of OS X the installer will move your Home folder, third-party applications, support items, and network preferences into the newly installed system.
    Download and install Mac OS X 10.6.8 Update Combo v1.1.

  • Cant use continuity on iPhone 6 with iMac, can anyone help?

    Cant use continuity on iPhone 6 with iMac, can anyone help?
    Running iso8 on iPhone 6 space grey 64gb
    Running OS X Yosemite on iMac 2010 -12 gb i3 1TB
    handoff has been switched on off with restart, but doesn't show on iMac with incoming call
    any ideas?

    HAve you checked its its a feature supported by older macs ?
    if so then it maybe a beta softtware issiue

  • Log4j and commons logging

    Hi,
    My application is using log4j, I get my logger as follows:
    private static Logger sLogger = Logger.getLogger(Neolyser.class);My problem is that Im using a library thats using commons logging and writes all its logging onto my logger, which I dont want. I want only to see my log statements, I'm happy enough with exceptions and stack traces from the library. So how can I turn off the commons logging? Or at least get it to write to another logger? Thanks in advance,
    Ste

    Hi thanks for your reply, Im pretty new to log4j so I dont know how to do that. I configure my looger as follows:
    BasicConfigurator.resetConfiguration();
    ConsoleAppender lCAppender = new ConsoleAppender(new PatternLayout(lPattern));
    lCAppender.setThreshold(Level.toLevel(lLevel));Are there other settings I can use to turn off the library logging? Thanks

  • Commons Logging with embeded OC4J

    Hey people,
    I suppose this is a basic question, but haven't been able to figure it out yet. We have a BC4j/Struts web application built with Jdevloper 10.1.2.0.0. My query is with regards to the logging. Logging is performed by commons-logging. When I deploy my application to the server in production with an ear and run it, all seems well. However, when I run the application directly from Jdeveloper (that would be the embedded OC4j?), I'm unable to enable the logger. Here's a sample bit of code I use:
    (class declaration)
    private static Log log = LogFactory.getLog(EmpSearchAction.class);
    (sample code)
    if (log.isInfoEnabled()) {
    LogInfo message = new LogInfo(profile.getLogId(),
    LogConstants.ACCESS_OPR,
    LogConstants.WEBURL_TYPE, "" , "",
    "empsearch.do",
    profile.getLoginPrefix());
    log.info(message);
    I wanted to know if I run my web app directly from Jdeveloper without the ear, how would I have the Log enabled, I.e currently with existing settings when I debug in Jdeveloper it never enters the if loop I.e log isInfo is always disabled. Could anyone be kind enough to let this ignorant one what config needs to be tweaked to get this to start working when running directly from Jdeveloper.
    help much appreciated.

    hello,
    Common loggings uses a properties file to read what should be logged and what not.
    This file is named:
    commons-logging.propertiesI believe the file the internal OC4J uses is in:
    $JDEV_HOME$\jdk\jre\libthis will have a line like this:
    .level= SEVEREThis is the root level, meaning nothing below severe will be logged anywhere, which for you should be set to INFO or ALL I guess.
    Now you need to set which gets logged to the console and what not, by default this should be on INFO which is good enough I presume.
    java.util.logging.ConsoleHandler.level = INFOHope this helps,
    -Anton

  • Using log4j v.1.2 with Weblogic 7.0

    I try to use logging pissibilities of Log4j with Weblogic 7.0 using com.bea.logging.WeblogicAppender
    class from logtoolkit.jar.
    When I use Weblogic's version of Log4j (v. 1.1.3), all is OK. When I try to use
    current version of Log4j (v.1.2.6), I receive java.lang.NoSuchFieldError: priority
    at com.bea.logging.WeblogicAppender.append(Unknown Source)
         at org.apache.log4j.AppenderSkeleton.doAppend(AppenderSkeleton.java:221)
         at org.apache.log4j.helpers.AppenderAttachableImpl.appendLoopOnAppenders(AppenderAttachableImpl.java:57)
         at org.apache.log4j.Category.callAppenders(Category.java:187)
         at org.apache.log4j.Category.forcedLog(Category.java:372)
         at org.apache.log4j.Category.info(Category.java:674)
         at com.mydomain.framework.log.Log4JLogger.logInfo(Log4JLogger.java:73)
    There is configuration file:
    <log4j:configuration>
    <appender name="WeblogicAppender" class="com.bea.logging.WeblogicAppender">
         <layout class="org.apache.log4j.PatternLayout"></layout>
    </appender>
    <root>
    <priority value ="debug" />
    <appender-ref ref="WeblogicAppender"/>
    </root>
    </log4j:configuration>
    Does anybody know this problem?

    Try changing "priority" to "level".
    Kevin

  • Cant use Safari 4.0.3 With Snow Leopard

    Upgraded to Snow Leopard... Then I click on Safari I get this box that pops ups "You can't use this version of the application Safari with this version of Mac OS X." But I have the most current version of safari.. I try to redownload it..it says it cant be installed on this drive that it must be used with version 10.5 or newer..

    Are you trying to open Safari by clicking the link on the dock? My friend had this issue on his MacBook and it was solved by removing the link from the dock and creating a new one from the Applications folder. Easy way to check if the link is the problem is by trying to open Safari directly from the Applications folder.
    I'm assuming something goes wrong with the link during the upgrade process in this case.

  • "Cant use this version of mail with this version of Mac OS X"

    Hi all,
    Hope you can help.
    I have got a new hard disk the other day. Ran a copy from my Time Machine to bring my iMac back to my latest copy. Everything works except my mail program.
    Im told I have mail version 4.0 (1075/1076) and it cant be used with Mac version 10.6.1 (build 10B504)
    I have tried to look through my Snow Leopard installation disk but cant find the mail program so I could try to reinstall it.
    Am I looking the wrong place or do you have some other solution.
    Thanks in advance
    Thomas

    You should be able to find the SL version of Mail as follows:
    1. Insert the SL DVD in your optical drive. Locate the Optional Installs folder, double-click to open. Run the Optional Installs installer located inside. In Applications I believe you will find Mail. Check the box for it then click on the Install button. This will reinstall Mail.
    2. In case the above doesn't have Mail available for a separate installation then you can do the following:
    How to Use Pacifist to Replace Deleted or Missing OS X Components
    Insert the OS X Installer DVD into the optical drive. Use a simple utility like TinkerTool to toggle invisibility so you can see invisible items. Alternatively, open the Terminal application in your Utilities folder and at the prompt enter the following:
    defaults write com.apple.finder AppleShowAllFiles Yes
    Press RETURN.
    To turn off the display of invisible files repeat the above command substituting No for Yes.
    The install packages are located in the /System/Installation/ folder on the DVD.
    Download the shareware utility Pacifist from VersionTracker or MacUpdate. Use it to extract a fresh copy of the missing item(s) from the file archives on your OS X installation DVD. The file archives are in the /System/Installations/ folder (use Go to Folder option in the Go menu of the Finder.)
    Here are Four Basic ways to use Pacifist (courtesy of George Orville.)
    A. Drag a .pkg icon onto the Pacifist window .....proceed to step 7.
    B. Click on “Open Package ....” and navigate to package desired and click “Open” in the open/save window.....proceed to step 7.
    C. Insert Mac OS X installer CD and when it mounts, navigate to .... Menu->Go->Go to Folder.
    In the path field enter or paste ....
    /Volumes/disc name/System/Installation/Packages (where disc name is the name of the CD/DVD that you inserted.
    • Click on the "Go" button .....
    • Drag a .pkg to Pacifist..... proceed to step 7.
    The package you'll need will have to be discovered by trial and error, but for most applications you should start with the Essentials.pkg and/or Additional Essentials.pkg.
    D. Insert your Mac OS X install disk 1 .... and open Pacifist.
    1. In Pacifist, select "Open Mac OS X Install Packages" ... dialog may appear asking for disk 2, then disk 3 and finally disk 1 again.... {if DVD is not used)...If “Stop Loading” is selected...the procedure will stop!!!
    2a. When loading is complete, a new window appears, click the triangle to display contents of each package...Select item and proceed to step 7.
    2b. or click the “Find” icon in the Pacifist window and type the name of the software you need.
    3. In the list that comes back, click the top most entry for the item that you want. ..... that is the one for the English language.
    4. On the top of the Pacifist window, click “verify” .... you will probably be prompted for your password.
    5. Enter checks for.... “verify permissions” and “verify file contents.” and click “verify” ....enter password when prompted.... you will get back output which may look like this:
    20 files were scanned.
    20 of 20 files were present on the hard disk.
    0 of 20 files had file permissions that did not match those specified in the package.
    0 of 20 files had checksums that did not match those specified in the package.
    6. Click “close”. Go to step 7.
    Extract or Install........
    7. In the Toolbar (upper left), you now have the option to extract or install. Click a file in the lower list and those two icons will be enabled.
    8. If “Extract to...” is selected.... navigate to the location where the file will be placed, select “choose”, select “extract” in new dialog that appears,authenicate , if prompted, click “OK”.
    9. In the next dialog, click “Extract”.
    10. If “Install” is selected... dialog will appear with the location/path of the installed software. Click “Install”
    11. Type in your password, click “OK”
    • Pacifist will begin to extract files.
    12. In steps 8/10ß.... you also have the choice to “cancel”
    Notes.....
    • Pacifist may find that a file it is installing already exists on the hard disk. Pacifist will present you with an alert panel....
    Stop
    Leave original alone
    Update ..... Default selection
    Replace .... Replace option should only be used on full install packages

  • Logging with log4j in a Web app that uses TopLink

    The deployment engineer in my company is reporting problems with our first Web app that uses both log4j and TopLink. Apparently TopLink is failing to initialize correctly when log4j-1.2.8.jar is deployed to the WEB-INF/classes directory within the Web app.
    I know that 9iAS's Enterprise Manager uses an older version of log4j and I wonder if TopLink uses an older version too.
    Are there any known problems when using log4j 1.2.8 with TopLink 9.0.3?
    Thanks,
    Al Margheim

    Unfortunately, when I asked the deployment engineer for more information on the problem, he couldn't provide any, and since he moved the log4j library out of the application's WEB-INF\classes directory he can't reproduce the problem (whatever it was).
    Based on a variety of factors (including your response) I suspect that the people who encountered the problem misinterpreted the cause.
    If I can get him to put the log4j library back in WEB-INF\classes and get more specific information about the problem, and it still looks like a conflict between TopLink and log4j, I'll post the errors here.
    Thanks,
    Al Margheim

  • How to use commons.logging in weblogic (8.1)?

    Greetings,
    I'm trying to use commons.logging framework to manage the logs of my
    application. With Weblogic I will use an implementation that works with
    weblogic.logging package but with other J2EE products I'll use another
    native log implementations or frameworks (for instance, for jboss I will
    use log4j).
    1) I created a class WeblogicLogger which implements the Log interface::
    public final class WeblogicLogger implements Log {
    I packaged this class in a jar file with a properties file,
    commons-logging.properties, which has the property setting my class
    below has the default logger:
    org.apache.commons.logging.Log=pt.ptinovacao.weblogic.logging.WeblogicLogger
    2) My sample code has the following code:
    import org.apache.commons.logging.Log;
    import org.apache.commons.logging.LogFactory;
    private static final Log log = LogFactory.getLog(
    LogTimeStartHandler.class.getName());
    something(){
    log.info(this.getClass()+" test log");
    3) I added the commons-logging jars and my jar with my custom wrapper
    weblogic logger in ${WL_HOME}/common/bin/commEnv.sh:
    WEBLOGIC_CLASSPATH=
    (...)${CLASSPATHSEP}${WL_HOME}/server/lib/weblogiclogger.jar${CLASSPATHSEP}${WL_HOME}/server/lib/commons-logging-api.jar${CLASSPATHSEP}${WL_HOME}/server/lib/commons-logging.jar
    However, my loggings still not appear in my weblogic server. Did I miss
    something?
    thanks,
    Pedro Salazar

    Did you manage to get this working?
    If yes ... what did you do?
    I am having the same problem implementing commons-logging with log4j

  • Replace commons-logging.jar with another version

    Hi all,
    I'm using CR4E version 2 Update 4(v. 12.2.205) and I would use instead of
    commons-logging.jar (v. 1.1.1) provided, the version used in my application
    (v. 1.0.4). Is possible without errors?
    I specify that I not use the provided log4j.jar in CR4E v.2.
    Thanks a lot

    The versions that we provide with our product is the version that we expect to be using when using our product.  Any other version may or may not work and there would be no way to fix an issue specific to using a different version than what we provide.

  • I cant use the "google search" button but no proble, with internet explorer. The" feeling lucky" works.

    i cant use the "google search" button with firefox 3.6.6 or even 3.5. I have no problem with searching google on internet explorer. The" Im feeling lucky" button works. The google search tab on the top right corner of firefox browser works fine. But the main google search button on the google site doesnt work. I havent changed anything. i cant do anymore google searches.
    == URL of affected sites ==
    http://www. google.com

    When click on search, the Google search result didn't update (the google search page didn't change). BUT the url bar on top did have the Google URL updated with the new search term.
    Something like
    http://www.google.com/#hl=en&q=firefox+3.6+problem+with+google+search+button&aq=f&aqi=&aql=&oq=&gs_rfai=&fp=dd2d1939af06a5a
    So the URL is changed when I click the Google SEARCH button on the page. Just the page not changed nor updated.
    And when I click "Reload current Page", then the page is reloaded with the new google search result.

  • HT1665 how come i cant use other headphones or external speakers with my ipod

    how come i cant use headphones or external speakers with my ipod.sood as you plug either in there is no sound.

    - Try cleaning out/blowing out the headphone jack. Try inserting/removing the plug a dozen times or so.
    Try the following to rule out a software problem
    - Check also Settings > General > Accessibility > Hearing. Make sure that the sound balance is not set all the way to "R".
    - Reset the iPod. Nothing will be lost
    Reset iPod touch: Hold down the On/Off button and the Home button at the same time for at
    least ten seconds, until the Apple logo appears.
    - Reset all settings
    Go to Settings > General > Reset and tap Reset All Settings.
    All your preferences and settings are reset. Information (such as contacts and calendars) and media (such as songs and videos) aren’t affected.
    - Restore from backup
    - Restore to factory settings/new iPod.
    - Make an appointment at the Genius Bar of an Apple store. Seems you have a bad headphone jack.
    Apple Retail Store - Genius Bar
    Apple will exchange your iPod for a refurbished one for this price. They do not fix yours.
    Apple - iPod Repair price                  
    A third-party place like the following will replace the jack for less. Google for more.
    iPhone Repair, Service & Parts: iPod Touch, iPad, MacBook Pro Screens
    Replace the jack yourself
    iPod Touch Repair – iFixit

  • Commons-logging jar file useage

    How to create a commons-logging.properties file and what are all paramter should me there in the propeties file. Basically i was using log4j.jar for logging the message. Now i want to use the commons-logging.jar for logging messsge. for that i have to create properties files with the specific paramter.
    help me....
    thanks in advacne

    Here is home page of commons logging project:
    http://jakarta.apache.org/commons/logging/
    And short user guide available there:
    http://jakarta.apache.org/commons/logging/guide.html

Maybe you are looking for

  • Problem with accordion widget flashing open and shut when page loads

    why is it that my accordion widget flashes open and shut when the page is loading (see http://vincentballmusewebsite2013test.businesscatalyst.com/digital-illustration.html#.UVDr Ehx7JyII)  have tried everything to solve this, and Adobes customer serv

  • Issues with Macbook Pro and Lion

    Hi Folks, Since I upgraded to Lion I have been having issues with Lion/Macbook Pro. On occassions whilst using my magic mouse the mouse will start highlighting everything, neither left or right clicking will alleviate this. The only option I have is

  • Phone resets itself to January 1980

    For the past five days or so, my iPhone 5 (os 7.0.4) will arbitrarily reset itself to January 5, 1980; this happens only at home.  The phone could be charging, or not charging.  It's completely arbitrary. Upon a hard shutdown (home key/power off) and

  • Usernametoken Encryption

    We have been provided by below policy file from our client. How we can generate configuration file for WCF or WSE 3.0?  We need to consume new web services and we are told that this policy should be able to generate message security configuration so

  • Dashboard in visual composer

    Hi, We are using dashboard in Visual compser. It has two variables defined .One is on plant and another on Calendar month. If i execute same query in bex analyser, everything works fine. In dashboard also we get proper results. But we get 2 error pop