Problem in Using Log4J with Weblogic 9.2

I am using Weblogic 9.2 and Log4j.
By using Admin console I set the Severity Level to WARNING and inside my java code is given below:
Logger logger = Log4jLoggingHelper.getLog4jServerLogger();
if (logger.isEnabledFor(Priority.DEBUG)){
logger.debug("DEBUG - Test Debug message");
logger.info("DEBUG - Test Info Message");
logger.warn("DEBUG - Test Warning Message");
logger.error("DEBUG - Test Error Message");
logger.fatal("DEBUG - Test Fatal Message");          
Somehow the logger.isEnabledFor(Priority.DEBUG) returning 'TRUE' and the follwoing message is displayed.
<Nov 29, 2006 2:44:04 PM EST> <Warning> org.apache.log4j.Category> <000000> <DEBUG - Test Warning Message>
<Nov 29, 2006 2:44:04 PM EST> <Error> <org.apache.log4j.Category> <000000> <DEBUG - Test Error Message>
<Nov 29, 2006 2:44:04 PM EST> <Info> <org.apache.log4j.Category> <000000> <DEBUG - Test Fatal Message>
<b><i>NOTE - The logger.debug() and logger.info() methods are not invoked because of the severity level to 'WARNING' in the console.</i></b>
<b>I would like to know why the Somehow the logger.isEnabledFor(Priority.DEBUG) is having a value of 'TRUE'.</b>
I expected only the Somehow the logger.isEnabledFor(Priority.ERROR) will have the value of 'TRUE'.

Did you get an answer to your question? I have the same problem with WebLogic 10.0.

Similar Messages

  • Log4J with Weblogic Server 10

    Hi,
    We are migrating an EJB application from Weblogic 8.1 to Weblogic 10.0
    In the current configuration, we simply include the following in the server startup script, so as to specify the log4j configuration file, and this takes care of the logging part.
    -Dlog4j.configuration=file:<complete file name>
    The same thing doesn't work with WL 10. Is there any other (special) way of using Log4j with WL 10?
    Note that inside the code, we use commons-logging to get hold of the logger as follows:-
    org.apache.commons.logging.LogFactory.getLog(class)
    I would be grateful for any help on this.
    Thanks in advance.
    Regards,
    Neelesh

    Tricky questions.. this problem needs more analysing. I see that you are on R27.6.0, we've come with a few updates to that one. Download the latest greatest and see if that works things out: http://www.oracle.com/technology/software/products/jrockit/index.html. If not, then report this issue to JRockit support (see how to below)!
    Best Regards,
    Tuva
    JRockit PM
    How to report to JRockit support:
    You must register and file the issue on Metalink, http://metalink.oracle.com. Note that you must have purchased support to continue.
    If you have problems during the registration or filing you can call our support +1.800.223.1711* or 1-800-633-0738 directly.
    In case you have not purchased support call 1.800.833.3536* for support sales.
    More information on our support site: http://www.oracle.com/support/index.html.
    *) US numbers - for global technical support contacts see: http://www.oracle.com/support/contact.html

  • Has anyone used JAAS with WebLogic?

    Has anyone used JAAS with Weblogic? I was looking at their example, and I have a bunch of questions about it. Here goes:
    Basically the problem is this: the plug-in LoginModule model of JAAS used in WebLogic (with EJB Servers) seems to allow clients to falsely authenticate.
    Let me give you a little background on what brought me to this. You can find the WebLogic JAAS example (to which I refer below) in the pdf: http://e-docs.bea.com/wls/docs61/pdf/security.pdf . (I believe you want pages 64-74) WebLogic, I believe goes about this all wrong. They allow the client to use their own LoginModules, as well as CallBackHandlers. This is dangerous, as it allows them to get a reference (in the module) to the LoginContext's Subject and authenticate themselves (i.e. associate a Principal with the subject). As we know from JAAS, the way AccessController checks permissions is by looking at the Principal in the Subject and seeing if that Principal is granted the permission in the "policy" file (or by checking with the Policy class). What it does NOT do, is see if that Subject
    has the right to hold that Principal. Rather, it assumes the Subject is authenticated.
    So a user who is allowed to use their own Module (as WebLogic's example shows) could do something like:
    //THEIR LOGIN MODULE (SOME CODE CUT-OUT FOR BREVITY)
    public class BasicModule implements LoginModule
    private NameCallback strName;
    private PasswordCallback strPass;
    private CallbackHandler myCB;
    private Subject subj;
             //INITIALIZE THIS MODULE
               public void initialize(Subject subject, CallbackHandler callbackHandler, Map sharedState, Map options)
                      try
                           //SET SUBJECT
                             subj = subject;  //NOTE: THIS GIVES YOU REFERENCE
    TO LOGIN CONTEXT'S SUBJECT
                                                     // AND ALLOWS YOU TO PASS
    IT BACK TO THE LOGIN CONTEXT
                           //SET CALLBACKHANDLERS
                             strName = new NameCallback("Your Name: ");
                             strPass = new PasswordCallback("Password:", false);
                             Callback[] cb = { strName, strPass };
                           //HANDLE THE CALLBACKS
                             callbackHandler.handle(cb);
                      } catch (Exception e) { System.out.println(e); }
         //LOG THE USER IN
           public boolean login() throws LoginException
              //TEST TO SEE IF SUBJECT HOLDS ANYTHING YET
              System.out.println( "PRIOR TO AUTHENTICATION, SUBJECT HOLDS: " +
    subj.getPrincipals().size() + " Principals");
              //SUBJECT AUTHENTICATED - BECAUSE SUBJECT NOW HOLDS THE PRINCIPAL
               MyPrincipal m = new MyPrincipal("Admin");
               subj.getPrincipals().add(m);
               return true;
             public boolean commit() throws LoginException
                   return true;
        }(Sorry for all that code)
    I tested the above code, and it fully associates the Subject (and its principal) with the LoginContext. So my question is, where in the process (and code) can we put the LoginContext and Modules so that a client cannot
    do this? With the above example, there is no Security. (a call to: myLoginContext.getSubject().doAs(...) will work)
    I think the key here is to understand JAAS's plug-in security model to mean:
    (Below are my words)
    The point of JAAS is to allow an application to use different ways of authenticating without changing the application's code, but NOT to allow the user to authenticate however they want.
    In WebLogic's example, they unfortunately seem to have used the latter understanding, i.e. "allow the user to authenticate however they want."
    That, as I think I've shown, is not security. So how do we solve this? We need to put JAAS on the server side (with no direct JAAS client-side), and that includes the LoginModules as well as LoginContext. So for an EJB Server this means that the same internal permission
    checking code can be used regardless of whether a client connects through
    RMI/RMI-IIOP/JEREMIE (etc). It does NOT mean that the client gets to choose
    how they authenticate (except by choosing YOUR set ways).
    Before we even deal with a serialized subject, we need to see how JAAS can
    even be used on the back-end of an RMI (RMI-IIOP/JEREMIE) application.
    I think what needs to be done, is the client needs to have the stubs for our
    LoginModule, LoginContext, CallBackHandler, CallBacks. Then they can put
    their info into those, and everything is handled server-side. So they may
    not even need to send a Subject across anyways (but they may want to as
    well).
    Please let me know if anyone sees this problem too, or if I am just completely
    off track with this one. I think figuring out how to do JAAS as though
    everything were local, and then putting RMI (or whatever) on top is the
    first thing to tackle.

    Send this to:
    newsgroups.bea.com / security-group.

  • Log4J with weblogic Portal 9.2

    Can anybody have sample process to configure Log4J with weblogic Portal 9.2?
    Sample code alongwith log4jConfig.xml and other required jsr files would be helpful.
    I want to store all the log messages to defult weblogic dirctory. i.e base_doman\servers\AdminServer\logs

    Do you want your app to log messages using log4j (in which case the setup is no different in WLP than with any other app using log4j, read the log4j docs) or do you want weblogic server messages to be sent to Log4j?

  • Using Flexlm with Weblogic 8.1

    Hi all,
    I am using Flexlm utility to get my license up for my web application on Weblogic 8.1 but its throwing the exception.
    Is there any configuration issues in using Flexlm with Weblogic?
    I will appreciate any help. Thanks.
    The exact stack trace is
    at com.macrovision.flexlm.lictext.PriKey.pubkeyVerify(PriKey.java:115)
    at com.macrovision.flexlm.lictext.LicenseElement.doAuthenticate(LicenseElement.java:459)
    at com.macrovision.flexlm.lictext.FeatureLine.authenticate(FeatureLine.java:85)
    at com.macrovision.flexlm.lictext.LicenseCertificate.authenticateList(LicenseCertificate.java:206)
    at com.macrovision.flexlm.lictext.LicenseCertificate.authenticate(LicenseCertificate.java:188)
    at com.macrovision.flexlm.lictext.LicenseGroup.getCertificateData(LicenseGroup.java:198)
    at com.macrovision.flexlm.lictext.LicenseGroup.<init>(LicenseGroup.java:106)
    at com.macrovision.flexlm.licsource.LicenseFile.<init>(LicenseFile.java:78)
    at com.macrovision.flexlm.LicenseSource.createLicenseSource(LicenseSource.java:128)
    at com.macrovision.flexlm.License.<init>(License.java:216)
    at

    there is a thin driver problem when inserting a blob greater than 4k in oracle. this worked fo me:
    // thing i want to store
    Object myObject = new Object();
        String SQL = "UPDATE mytableSET blobcolumn= ? "
        + "WHERE id= ? ";
        String SQL2 ="SELECT blobcolumn FROM mytable "
        + "WHERE id= ? ";
        try
          // create an empty_lob
          BLOB myBlob = BLOB.empty_lob();
          statement = conn.prepareStatement(SQL);
          statement.setBlob(1, myBlob);
          statement.setBigDecimal(2, id);
          // update with the empty_lob
          result = statement.executeUpdate();
          if(result == 1)
            // get the blob back
            statement = conn.prepareStatement(SQL2);
            statement.setBigDecimal(1, id);
            results = statement.executeQuery();
            if(results.next())
              // write the new value
              myBlob = (BLOB)results.getBlob(1);
              OutputStream w = myBlob.getBinaryOutputStream();
              w.write(myObject);
              w.flush();
        }

  • Using log4j with portal server

    Hi,
    I am trying to use log4j with Portal server 6.1 using log taglibs from jakarta.
    Here is what i've done:
    1. copy taglibs-log.jar in /etc/opt/SUNWps/desktop/classes
    2. copy taglibs-log.tld in /etc/opt/SUNWps/desktop/default/tld
    3. put log statements in JSPs
    for example:
    <log:debug>This is body content.</log:debug>
    <log:debug message="This is attribute content." />
    4. /etc/opt/SUNWps/desktop/classes/log4j.properties contains
    =========================================
    # Sample properties to initialise log4j
    log4j.rootCategory=debug, stdout, R
    #log4j.rootCategory=debug, stdout
    log4j.appender.stdout=org.apache.log4j.ConsoleAppender
    log4j.appender.stdout.layout=org.apache.log4j.PatternLayout
    # Pattern to output the caller's file name and line number.
    log4j.appender.stdout.layout.ConversionPattern=%5p [%t] (%F:%L) - %m%n
    log4j.appender.R=org.apache.log4j.RollingFileAppender
    log4j.appender.R.File=logtags.log
    log4j.appender.R.MaxFileSize=100KB
    # Keep one backup file
    log4j.appender.R.MaxBackupIndex=2
    log4j.appender.R.layout=org.apache.log4j.PatternLayout
    log4j.appender.R.layout.ConversionPattern=%p %t %c - %m%n
    ===============================================
    However no log file is created on my system. I am very new to this and would appreciate if anyone could tell me what more needs to be done to get log records in a file.
    Thanks for all your help.
    Kind regards,
    Apoorv

    Hi,
    I am trying to use log4j with Portal server 6.1 using
    log taglibs from jakarta.
    Here is what i've done:
    1. copy taglibs-log.jar in
    /etc/opt/SUNWps/desktop/classes
    2. copy taglibs-log.tld in
    /etc/opt/SUNWps/desktop/default/tld
    3. put log statements in JSPs
    for example:
    <log:debug>This is body content.</log:debug>
    <log:debug message="This is attribute content." />
    4. /etc/opt/SUNWps/desktop/classes/log4j.properties
    contains
    =========================================
    # Sample properties to initialise log4j
    log4j.rootCategory=debug, stdout, R
    #log4j.rootCategory=debug, stdout
    log4j.appender.stdout=org.apache.log4j.ConsoleAppender
    log4j.appender.stdout.layout=org.apache.log4j.PatternL
    ayout
    # Pattern to output the caller's file name and line
    number.
    log4j.appender.stdout.layout.ConversionPattern=%5p
    [%t] (%F:%L) - %m%n
    log4j.appender.R=org.apache.log4j.RollingFileAppender
    log4j.appender.R.File=logtags.log
    log4j.appender.R.MaxFileSize=100KB
    # Keep one backup file
    log4j.appender.R.MaxBackupIndex=2
    log4j.appender.R.layout=org.apache.log4j.PatternLayout
    log4j.appender.R.layout.ConversionPattern=%p %t %c -
    %m%n
    ===============================================
    However no log file is created on my system. I am
    very new to this and would appreciate if anyone could
    tell me what more needs to be done to get log records
    in a file.
    Thanks for all your help.
    Kind regards,
    Apoorv

  • How to use ADF with weblogic Portal 10.3.2

    Hello All,
    I want to use ADF with Weblogic Portal 10.3.2. Can anyone guide me ?
    Thanks,
    *(' ')sman*

    Hello,
    To use ADF with WLP 10.3.2 you will need a WebCenter WSRP producer running the portlet, which you can then consume as a remote portlet in WLP. The documentation on how to do that is here:
    http://download.oracle.com/docs/cd/E15919_01/wlp.1032/e14235/chap_webcenter_interop.htm#BABDBJBD
    Kevin

  • Using iFS with weblogic

    Hi,
    I would like to know if anybody has used iFS with weblogic before. If so could you please share the information like how to make it work. I would like to know the classpath settings etc...
    Any help will be greatly appreciated.

    while i don't work for Oracle, i would suggest this is not a supported configuration. ;)
    having said that, it should be easy enough to accomplish. just make sure your classpath (better yet, your WAR or EAR file) includes the required runtime iFS jars (repos.jar, adk.jar, utils.jar and email.jar), and then use JDBC to get iFS service configuration information. (See my response to Satya in the "custom JSP in OC4J" thread.)
    that should work just fine.
    .rich

  • Error while using TXDataSource with Weblogic 6.1 & Oracle 8.1.6

    Hi,
    I am using Weblogic 6.1 and Oracle 8.1.6.
    I have configured JDBC XA Connection Pool with Oracle thin driver. These are my settings...
    Connection Pool:
    Name - myXAPool
    URL - jdbc:oracle:thin:@myServer:1521:myDb
    DriverClassname - oracle.jdbc.xa.client.OracleXADataSource
    TXDataSource:
    Name - myXADS
    JNDIName - myXADS
    PoolName - myXAPool
    I get the following error when I try to lookup the datasource. I am not sure where the problem is as I have configured Connection Pool and TXDataSource as mentioned in the documentation.
    java.sql.SQLException: XA error: XAER_RMERR : A resource manager error has occured in the transaction branch start() failed on resource 'myXAPool' Unexpected error during start for XAResource 'myXAPool': null
    It would be really great if you can help me out.
    Thanks in Advance,
    Sudhir.

    Hi Sudhir,
    If you do not know if upgrade or not, have a look here :
    http://e-docs.bea.com/wls/docs61/notes/bugfixes2.html
    Note that at the end of June SP3 will be released...
    Sergi
    "Sudhir Babu" <[email protected]> wrote:
    >
    Hi Sergi,
    Thanks a lot for the class file, I figured out what the problem was. Actually
    the
    database version I was working with was 8.0.6.0. The Oracle driver doesn't
    work with
    this but the JDriver worked. This is the output of running CheckDriver..
    DatabaseProductName : Oracle
    DatabaseProductVersion : Oracle8 Enterprise Edition Release 8.0.6.0.0 -
    Production
    With the Partitioning and Objects options
    PL/SQL Release 8.0.6.0.0 - Production
    DriverName : Oracle JDBC driver
    DriverVersion : 8.1.7.1.0
    Then I tried on using the Oracle Driver on another instance which has the
    version
    8.1.7.1.0 and it worked. The JDriver and Oracle driver both work with this
    database.
    The output of CheckDriver for this Oracle instance is..
    DatabaseProductName : Oracle
    DatabaseProductVersion : Oracle8i Enterprise Edition Release 8.1.7.1.0 -
    Production
    With the Partitioning option
    JServer Release 8.1.7.1.0 - Production
    DriverName : Oracle JDBC driver
    DriverVersion : 8.1.7.0.0
    By the way I am working on WLS 6.1 SP1. What is the advantage of SP2 ? Should
    I upgrade
    Thanks once again,
    Sudhir.
    "Sergi Vaz" <[email protected]> wrote:
    Hi Sudhir ,
    JDriver works well, you can work with it.
    Just for curiosity, can you run the class I attached using the "exact"classpath
    of your WL instance (with Oracle drivers in front of weblogic.jar) ? What
    is the
    output ?
    On which platform are you running your WLSP2 ?
    Thanks
    Sergi
    "Sudhir Babu" <[email protected]> wrote:
    Hi Sergi,
    I just checked the things you mentioned. The connection pool starts correctly
    without
    any errors. I also made sure SELECT previlege was granted to DBA_PENDING_TRANSACTIONS.
    I do have the JAVA_XA package installed and it has EXECUTE permission
    to
    PUBLIC.
    I actually tried using the Weblogic JDriver (weblogic.jdbc.oci.xa.XADataSource)
    and
    it works perfect without any issue. The only consideration is that itis
    a Type 2
    Driver and needs to have the Oracle Client installed. But right now Ido
    have it
    installed on the same machine.
    Do you know any known issues with Weblogic JDriver. Do you think it'sa
    good idea
    to go with it ?
    Thanks,
    Sudhir.
    "Sergi Vaz" <[email protected]> wrote:
    Hi Sudhir,
    does your connection pool start correctly ?
    Check the setup of your Oracle server too:
    1) grant select on DBA_PENDING_TRANSACTIONS table to PUBLIC
    2) package JAVA_XA installed (with grant execute to PUBLIC)
    Sergi
    "Sudhir Babu" <[email protected]> wrote:
    Hi Sergi,
    Thanks for the response. I downloaded the driver for 8.1.7 from Oraclesite
    and put
    it in classpath in front of weblogic.jar. I still get the same problem.
    Is there
    another location where we can download the Oracle driver with the bug
    fixed
    Regards, Sudhir.
    "Sergi Vaz" <[email protected]> wrote:
    Hi Sudhir,
    I think you are using Oracle JDBC drivers 8.1.6.
    They have a bug, they do not accept a foreign XID.
    Use 8.1.7 or higher to solve this problem.
    Sergi
    Sudhir Babu <[email protected]> wrote:
    Hi,
    I am using Weblogic 6.1 and Oracle 8.1.6.
    I have configured JDBC XA Connection Pool with Oracle thin driver.
    These
    are my settings...
    Connection Pool:
    Name - myXAPool
    URL - jdbc:oracle:thin:@myServer:1521:myDb
    DriverClassname - oracle.jdbc.xa.client.OracleXADataSource
    TXDataSource:
    Name - myXADS
    JNDIName - myXADS
    PoolName - myXAPool
    I get the following error when I try to lookup the datasource. I amnot
    sure where the problem is as I have configured Connection Pool and
    TXDataSource
    as mentioned in the documentation.
    java.sql.SQLException: XA error: XAER_RMERR : A resource manager errorhas
    occured in the transaction branch start() failed on resource 'myXAPool'
    Unexpected error during start for XAResource 'myXAPool': null
    It would be really great if you can help me out.
    Thanks in Advance,
    Sudhir.

  • Using p3p with Weblogic/CSS

    I am trying to use p3p policy and compact privacy policy.
    We have Weblogic as App server and a hardware CSS to maintain session on weblogic
    clusters.
    The browser on client end is accpeting cookie, but I dont see the actual cookie
    being placed.
    The cookie contains session info and is used by CSS to maintain sticky to the
    same managed server.
    Am sending cpmpact policy using Meta tag in my JSPs
    ANyone had similiar problem.

    Hi.
              Hmm, since WLS execute threads never die, I don't know that your threadlocal variables
              will get cleaned up or gc'd until the server is shutdown.
              Regards,
              Michael
              Kumar Ampani wrote:
              > With weblogic thread pooling, When I use threadlocal variables in my application,
              > how does it work as far as cleaning those variables after the request is completed.
              >
              > Thanks in advance.
              Michael Young
              Developer Relations Engineer
              BEA Support
              

  • Problem in using log4j..i'm getting warning!!!

    i have been using log4j without any porblems. i have placed the log4j.properties file under classes folder under WEB-INF and it worked.
    but now i'm asked to place it under a folder named properties under CatalinaHome. And i came to know tht there is no problem in doing so and i just changed the path in my code.
    but now i'm getting the following warnings.. but logging is also going well..
    what could be the reson for this warning.
    log4j:WARN No appenders could be found for logger (com.servlet.Search
    Profile).
    log4j:WARN Please initialize the log4j system properly.

    Hi
    Have not come across a situation to limit the number of records in APD while processing, we have several DTP's extracting quite high volume of data and processing it further. (Including Cumulative & Non-cumulative key figures)
    However please be informed that the processing will fail if the query execution runs out of memory due to high volume of data.
    Based on the above screen shot it seems to be a warning message but will process the data.
    Regards
    Ashish 

  • Navigation problem when using tiles with JSF

    Hi all,
    I m using tiles with JSF. i have included all the libraries and jsp page is rendered properly. but when i use <h:commandLink> in the body part of the JSP , i cannot go to the specified link. when we use tiles, what changes need to be done in faces-config file?? i mean what navigation rule we need to specify ??

    Hello, I have the same problem; JSF+Tiles = No navigation.
    One basic question is should I reference the parent jsp or the included body jsp in the faces-config.xml file.
    For example: The login.jsp is a main tiles page that includes a menu.jsp, header.jsp & a loginBody.jsp.
    Hence the faces-config could have this rule;
    <navigation-rule>
    <from-view-id>/login.jsp</from-view-id>
    <navigation-case>
    <to-view-id>/catalog.jsp</to-view-id>
    </navigation-case>
    </navigation-rule>
    (I've left the outcome tag out to simplify this post)
    Or, I could refer loginBody.jsp in the navigation rule;
    <navigation-rule>
    <from-view-id>/loginBody.jsp</from-view-id>
    <navigation-case>
    <to-view-id>/catalog.jsp</to-view-id>
    </navigation-case>
    </navigation-rule>
    The loginBody.jsp has a commandbutton which a user clicks which starts the navigation.
    Neither seems to work unfortunately & I'm a stuck.
    Thanks

  • Can I use log4j with a java stored procedure

    I have code that resides on the middle tier and on the database. Our company is using log4j for debugging purposes. In order to get my code to work on the database, I have had to remove all the log4j stuff. Has anyone tried to get code that has log4j messages to run on the database? I am not concerned with actual debugging, I just don't want to have to strip this code out if I can avoid it.

    Hi Laura,
    As far as I know, you have two choices:
    1. Load the log4j classes into the database (using the "loadjava" tool).
    2. Enable remote invocation of log4j classes via RMI (or similar).
    Hope this helps.
    Good Luck,
    Avi.

  • Using ThreadLocal with WebLogic App Server

              With weblogic thread pooling, When I use threadlocal variables in my application,
              how does it work as far as cleaning those variables after the request is completed.
              Thanks in advance.
              

    Hi.
              Hmm, since WLS execute threads never die, I don't know that your threadlocal variables
              will get cleaned up or gc'd until the server is shutdown.
              Regards,
              Michael
              Kumar Ampani wrote:
              > With weblogic thread pooling, When I use threadlocal variables in my application,
              > how does it work as far as cleaning those variables after the request is completed.
              >
              > Thanks in advance.
              Michael Young
              Developer Relations Engineer
              BEA Support
              

  • How to use log4j into weblogic 10.3

    Hi,
    I am migrating an enterprise application from JBoss 4.3 + JBossCache to WebLogic 10.3+Coherence.
    I am blocked since I can't get log4j to work inside WL.
    I enabled log4j inside the administration console, as stated in the user guide.
    Googling I've also found that I have to copy these 2 jars
    wllog4j.jar
    llog4j-1.2.14.jar
    inside my domain lib directory (that is C:\Oracle\Middleware\user_projects\domains\base_domain\lib), and I did it.
    Now where should I put the log4j.xml configuration file and how can I tell to WL to use that xml as log4j configuration ?
    To give you more information, my classes use log4j in this way:
    Logger log = Logger.getLogger(MyClass.class);
    And I am constantly getting this error:
    log4j:WARN No appenders could be found for logger (it.ltm.ejba.session.EjbAServiceBean).
    log4j:WARN Please initialize the log4j system properly.
    I hope someone can help me.
    I apologize for this stupid question, but really I didn't find a good guide/tutorial on the net.
    Thanks in advance.
    Edited by: e.gherardini on 3-mar-2010 3.16

    Hi Jay, thanks for helping me.
    In fact what I am trying to do is a server-wide log4j configuration.
    Your solution implies writing-deploying-maintaining 1 log4j configuration file for each application developed inside the application server.
    This is not what I want to do.
    Digging around WL 10.3 installation folders, I've found a log4j.properties file inside the medrec example application (C:\Oracle\Middleware\wlserver_10.3\samples\domains\medrec).
    It uses this properties file setting a startup parameter to the server (file setDomainEnv.cmd):
    set JAVA_PROPERTIES=%JAVA_PROPERTIES% -Dlog4j.configuration=file:%LOG4J_CONFIG_FILE%
    I would like to do the same starting the server from eclipse 3.5.
    I am working on this, I hope you can give some hints.
    Thanks a lot

Maybe you are looking for

  • Possible to do "grant" sql statement in Native SQL?

    We have a need to do a grant of access from one of our systems out for various applications.  In order for this to work we need to run a grant access command on the table and are trying to put a wrapper around this so we can use an abap.  Below is th

  • Universal Dock Model Number

    I have just purchased an Apple Universal Dock (with remote), to be used to connect my Nano (and soon iPhone 3G) to a pair of Audioengine A5 active speakers. The dock I've purchased has a model number MB125G/A. Browsing the net, I've found the Univers

  • Dell ST2420L x 2 Plus 13" MBP

    Hello everyone, I'm thinking about buying a couple of the Dell ST2420L monitors and hooking them up to my 13" MBP (Mid-2010) to form a nice desk-top system.  I'm fairly new to this type of thing and don't know if I'll need more accessories or drivers

  • Beans, jsp and servlets

    i want to use jsp to servlet communication. i use a bean with session scope for each user. in the jsp pages i simply use the jsp command -<jsp:useBean id="cart" scope="session" class="DummyCart" /> and set properties etc. how can i use a servlet and

  • Why is my iMac logging so many system crashes?

    When I type in the command last in OSX's Terminal I get a long list of logins, reboots and shutdowns. However, very many of them - more than half - have the status crash instead of the logout/shutdown time. Thing is, my Mac hasn't crashed even once.