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

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

  • !!! Integration UWC Webmail with Portal Server

    Hello There...
    How can I integrate UWC Webmail with Portal Server. I"m using SJS Portal Server 6 2005Q1. I've configured a CHANNEL extending a IFRAME provider in order to open the webmail in the same window. But when I click on the "UWC Webmail" tab the Portal Server gets the user credentials and starts loading the webmail and stops without any error. If I open another window or tab it works proving the authentication process works fine.
    Thanks in advance...
    Jeff!

    Hi Jeff,
    Have you tried using the UWC channels that the portal ships out of the box?
    Portal Server 6 2005Q1 ships with a channel - UWCMail. Add this channel to your desktop, and provide the Messaging server details and user credentials in the channel edit screen. This channel will display a list of emails and also provide links to open the UWC webmail.
    Look at the "To Configure New Communications Express Channels" section of this guide - http://docs.sun.com/source/819-2201/index.html. The communications products (Messaging, Calendar, UWC) will have to configured as explained in this guide for the single signon to work.
    Butwhen I click on the "UWC Webmail" tab the Portal Server gets the user credentials and starts loading the webmail and stops without any error.I'm not clear what you mean by this, so can't comment. A little more detail will help.

  • Use GetNewObjectKey with DI Server?

    HI
    I'm converting from DI API to DI Server and want to know if there is a way to use GetNewObjectKey with DI Server?
    Thanks

    Hi Avish!
    You don't need to use GetNewObjectKey when using the DI Server. When you add/update/close/remove an object, you get the new key in the reply of the command.
    For example, the following request:
    <dis:AddObject xmlns:dis="http://www.sap.com/SBO/DIS">
    <BOM>
      <BO>
       <AdmInfo>
        <Object>oBusinessPartners</Object>
       </AdmInfo>
       <BusinessPartners>
        <row>
         <CardCode>NewBP</CardCode>
        </row>
       </BusinessPartners>
      </BO>
    </BOM>
    </dis:AddObject>
    Will return the following response:
    <dis:AddObjectReponse xmlns:dis="http://www.sap.com/SBO/DIS">
    <RetKey>NewBP</RetKey>
    </dis:AddObjectReponse>

  • Has anyone every try using the iplanet portal server radius authentication module with cryptoCard?

    We are using the easyRadius server from CryptoCARD. When we run the radius server in debug mode, it appears ips is sending multiple access-request message. Also, the server is coming back with a challenge which we are not expecting.

    yes,
    we did basic integration where the authentication will be done using siteminder. The trick is to protect the portal server web server and not the gateway. You also need to add a new authentication module for siteminder in the portal using ipsadmin. We are protecting the login html page only. We couldn't protect the desktop because it's built using servlets.

  • Using ESS with Portal 7.0 and backend ECC 5.0.  Why not?

    Hi,
    I have this landscape:
    server A: Portal 7.0 in WAS 7.0 (2004s) with BP ESS and XSS components
    server B: backend ECC 5.0 with EA-HR SP38.
    But I am having problems to run some ESS webdynpro iViews (specially personnel info);
    According this note: 1007341; this landscape is not supported because is necessary use a separate instance of WAS 6.40 in order to run XSS components.
    Why???  Which is the technical reason that I cannot use the j2ee stack from EP 7.0? SAP information about this is so confusing.
    if this is impossible to realize, I can use this alternative?:
    server A: Portal 7.0 in WAS 7.0 (2004s) with BP ESS
    server B: backend ECC 5.0 with EA-HR SP38 and XSS componentes (dual mode stack abap and java both of them 6.40)
    As per note 1007341, I need use a third server or I am confusing?.  Already having a server which runs E¨P frontend, and other server where it runs the ECC, technically I am not understanding why I need a third server with a older java version than I have in frontend.
    This is not supported by a specifically problem? Or can I do if I have a problem and I can fix it with some patch?
    Anybody has experiencie using this scheme: Portal 7.0 agains ECC 5.0 for use BP ESS/MSS?
    any suggestion will be welcome,
    thanks in advance,
    regards,
    Leandro.

    Ok, its true.
    My intention is to confirm if is possible install a Java instance in the same server that ECC is running with Abap instance.
    My confusion is because note 1007341, in "deviations" part, says:
    ECC 5.0 (ERP 2004 back-end system),
    XSS 500 on a separate J2EE 6.40, EP NW04s
    with business packages ESS and MSS (SAP ERP 2004).
    The SAP system only supports this system landscape
    if you have installed XSS 500 on a separate J2EE 6.40.
    Then, would I install abap stack, and java stack as separate instances (not add-in!) ? and this landscape is supported acordding this note?
    (in the example, A and C are in the same server)
    thanks in advance!
    regards,
    Edited by: Leandro  Balboni on Aug 12, 2008 5:28 PM

  • Using WLI with Portal

    Hi!
    Is anyone using BEA portal for user authentication and personalization along with
    Integration for workflow??? Looking at the two sets of examples and full functionality
    of wli it appears that the two should be easily tied together... Any thoughts
    or advice would be greatly appreciated.
    Thanks...Peggy

    Hi Stanley,
    THANKS very much for the info. Since our WLP instance
    is already established I am leaning towards your
    architecture. Hopefully I will get the documentation
    done early next week and can start implementation.
    The two domains will certainly simplify the
    port over. Please ping on me in a few weeks
    to discuss other aspects of this process....
    THANKS again,
    Peggy
    "Stanley Beamish" <[email protected]> wrote:
    Hi Peggy,
    I'm doing the same sort of thing, with WLP and WLI sitting in separate
    domains. This works fine, and separates the application load between
    two
    server machines (the WLP domain/server handles all the user/portal logic,
    the WLI domain/server handles all the talking to external systemes and
    business logic). However, I would also be very interested to hear views
    on
    running them within the same domain.
    Stanley.
    "Peggy" <[email protected]> wrote in message
    news:3dbd9e48$[email protected]..
    Sasi,
    After reading the docs it looks like the two may live together
    in the same domain...okay...not sure.
    I will be 'porting' the WLI work I am doing into a current
    domain where they have a portal installed. I think a single
    domain is what I need.
    I do not know if having two domains is better or not...do
    you know?
    Any insight is appreciated.
    Are you doing anything similar?
    THANKS! Peggy
    "Sasikanth" <[email protected]> wrote:
    HI Peggy
    You can do authentication and personalization with portal and
    workflow
    with
    WLI. But I would like to know whether or not you would like to launch
    them as
    a single domain or not.
    regards
    Sasi
    "Peggy" <[email protected]> wrote:
    Hi!
    Is anyone using BEA portal for user authentication and personalization
    along with
    Integration for workflow??? Looking at the two sets of examples andfull
    functionality
    of wli it appears that the two should be easily tied together...
    Any
    thoughts
    or advice would be greatly appreciated.
    Thanks...Peggy

  • Using Log4j with Listener

    We are using Log4j and all of our logging files are properly created by a
    listener that starts once our application is deployed. All logging works
    fine when we are running in single server mode but when we deploy the EAR to
    a cluster, the listener starts and we see the log files created and there is
    an initial line written into one of the created log files by the listener.
    When we access our application on the cluster non of the logging messages
    are written out to the files. I am thinking that maybe the listener is
    dieing but I am not sure. We have a log4j config file that is included in
    our WEB-INF directory.
    Is there a way to see what listeners are running?
    Has anyone used log4j in a clustered environment?
    Thanks
    Michelle

    We have managed to get a little further. When the managed servers are
              started up by the admin server, and application is deployed, the log files
              are created by the listener BUT when we access the application nothing is
              written to the logs. We have not located any exceptions, the logs just
              don't seem to get written to. Now, if redeploy the application it properly
              logs to the log files. Any ideas??? Again, our log4j config file is in
              the WEB-INF directory in the EAR and the web.xml has an entry for
              log4j-init-file pointing to the WEB-INF log4j file. We have deployed our
              application to production and I just don't like the fact that if the servers
              must be rebooted that our application must be redeployed. If this step is
              missed then we won't be logging and of course troubleshooting goes out the
              window. Any help greatly appreciated
              I will have to double check if we have a try catch block. If not I will do
              this pronto.
              <Srinagesh Susarla> wrote in message news:[email protected]..
              > log4j should work the same both on single server as well as clustered env.
              > Can you try adding some debug to your listener to ensure that its getting
              > initialized correctly. Also can you surround it with a try catch block to
              > ensure that its getting loaded correctly.
              > Another question: Is this a ServletContextListener or an
              > ApplifecycleListener?
              > If there are any exceptions please post them here.
              >
              > -- Nagesh

  • Using Hprof with Commerce Server 3.5

    My company is beginning the move to J2EE and I have been tasked with researching
    profilers. I quickly came across Hprof, which is provided by the Sun JVM through
    the use of the -Xrunhprof option. I have been able to successfully profile a
    very small test application (stand alone app). However, I run into problems when
    I use Hprof and try to start the example server provided with Commerce Server
    3.5 (with WebLogic 6.0). Please see below for my syntax and results.
    Syntax
    %JAVA_HOME%\bin\java -Xrunhprof:cpu=times,doe=y .....
    Results
    The server appears to start and work correctly (no HRPOF ERROR: messages). When
    I shut it down (using the console) and look at the java.hprof.txt file that is
    created, the hprof data has not been fully written to the file. The file ends
    in the middle of a trace:
    TRACE 6687:
         java/net/URLStreamHandler.getDefaultPort(URLStreamHandler.java:Unknown line)
    I am curious if anyone has run into this problem before and how they might have
    corrected it. Can anyone suggest a set of Hprof parameters to use? Or provide
    a link to a good description of all of the parameters (I haven't found a lot of
    documentation on it)?
    I know that there are other commercial profilers (JProbe, Optimizeit, etc.) but
    I would like to learn the basics before diving into them.
    Any comments or suggestions would be appreciated.
    Thanks
    --Chris

    Hi Martin,
    You probably already noticed, but a new WLCS 3.5 license has been
    posted at http://commerce.bea.com/downloads/commerce_servers.jsp
    Thanks for posting this. I'm sorry it didn't get answered until now.
    If you ever have a question in the newsgroup that is not answered quickly
    enough to get you on track with your evaluation or development process
    then you can let our support team know about it by opening a support case
    (for free) at http://www.bea.com/support/index.jsp
    Martin Swan wrote:
    When will the license on your site be updated, it ran out yesterday ?--
    Ture Hoefner
    BEA Systems, Inc.
    2590 Pearl St.
    Suite 110
    Boulder, CO 80302
    www.bea.com

  • Problem in using MDB with Foregin Server

    Hi, anyone can help me? I am currently using Weblogic 11g, 10.3.5, development edition locally in my desktop.
    My scenario is I have to using an MDB to monitor a queue in a Tibco EMS queue (lookup with LDAP server).
    I create a JMS Server, and a JMS module with a Foreign Server configured. In the module, I specified "JNDI Initial Connection Factory", "JNDI Connection URL", "JNDI Credentirals", etc.
    In the module, I have a Queue with local jndi name: jms/MyReqQueue and a Connection Factory, jms/MyReqCF (with password setup).
    I created an MDB with annotations, and packaged into a EAR
    @MessageDestinationConfiguration(connectionFactoryJNDIName = "jms/MyReqCF")
    @MessageDriven(
              activationConfig = {
                        @ActivationConfigProperty(propertyName = "destinationType", propertyValue = "javax.jms.Queue"),
                        @ActivationConfigProperty(propertyName = "connectionFactoryJndiName", propertyValue = "jms/MyReqQueue")
              mappedName = "jms/MyReqQueue")
    public class FortressOrderProcMDBean implements MessageListener {
    I created a testing program, which create an initial context, connection factory, queue myself to the weblogic server using my local jndi names, then i can receive mesages from the queue properly, so the JMS Foreign Server should work fine.
    However, I got the foilowing error withn deploying the MDB.
    [EJB:011012]The JMS connection factory with the JNDI name: weblogic.jms.MessageDrivenBeanConnectionFactory could not be found. Please ensure that the JNDI name
    in the weblogic-ejb-jar.xml or corresponding annotation is correct, and the JMSconnection factory has been deployed.
    javax.naming.NameNotFoundException: [LDAP: error code 32 - No Such Object]; remaining name 'ou=weblogic.jms.MessageDrivenBeanConnectionFactory' NestedException
    Message is :[LDAP: error code 32 - No Such Object]>
    Thanks

    Your annotated MDB does not seem to be correct. The error indicates that the connection factory jndi name of the MDB was not set correctly.
    Please refer to the following doc for an sample.
    http://download.oracle.com/docs/cd/E17904_01/web.1111/e15493/annotations.htm#sthref25

  • Calendar Integration with Portal Server 6.0

    Hi,
    I have installed Calender Server 5.1.1 with portal server6.0..When click the Launch Calendar channel link in my portal page,it takes me to login page for Calendar Server on.I expected it to take me to the calendar page .I donot want to re-authenticate every time i launch a calendar.Any ideas??
    Thanks,
    Ramnath

    Quickest path to success...
    stop the cal server
    cd to Install Path/cal/bin/config
    edit ics.conf
    change "service.htttp.ipsecurity" from yes to no
    save you changes
    restart the server
    hope this helps

  • 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 log4j with JavaFX and Netbeans 6.8

    Hello,
    I'm trying to use log4j within a JavaFX project using NetBeans 6.8.
    I've donwloaded the .zip file from the Apache website and added the log4j-1.2.16.jar to the project's libraries.
    Then I added the imports:
    import org.apache.log4j.Logger;
    import org.apache.log4j.BasicConfigurator;But using the Logger class does not work:
    def log:Logger = Logger.getLogger("MyApp.class");NetBeans says 'cannot find symbol'
    When I'm doing the same things within a Java project, everything works fine.
    What am I doing wrong?
    thanks
    Edited by: Lichti on Apr 17, 2010 12:08 PM

    To answer my own question ... there's a known bug in NB 6.8 with including JARs.

  • Using equalizer with reports server cluster

    Hello World!
    Just wonder if anybody using equalizer with Reports servers cluster, if yes what type?
    what is the cluster architecture?
    such as Machine A, B, C.... machine A has infra and mid , machine B has only infra, machine C has only mid...
    The problem we are having when the second member of a cluster is down the report server component complaints with somw internal error...
    TIA

    3. Connection factories target: admin server; JMS server target: admin          server
              > -> Potential drawback - The MDB has to maintain a queue connection with a
              server
              > that is not part of the cluster. (Again, please correct me if I'm wrong.)
              I'm
              > not sure if this introduces extra time taken for the MDB to receive its
              messages
              > and for it to send the processed messages to the queue.
              Admin server is not supposed to participate in the cluster. I wouldn't
              deploy anything on the admin server.
              I think my personal preferene would be connection factories to the cluster
              and use distributed destinations.
              Regards...
              

  • Using log4j with WLS7.0 SP2

    Hello,
    I'm trying to start using log4j. It seems to work fine initially after the
    server starts up. But if I make a modification to any of the logged classes
    and recompile them, log4j errors out saying it cannot find an appender for
    the category specified. log4j.jar is in the classpath of the WLS startup
    script. Has anyone come across this problem? I'm not quite sure what the
    source of problem is. And it is not really productive to restart the server
    every time anything changes in one class...any insight is appreciated!
    Thank you,
    Makoto

    Oops. I solved my own problem. I turned off "Prefer WEB-INF classes" in the
    console and the problem went away.
    mk.
    "Makoto Suzuki" <[email protected]> wrote in message
    news:3f034462$[email protected]..
    Hello,
    I'm trying to start using log4j. It seems to work fine initially after the
    server starts up. But if I make a modification to any of the loggedclasses
    and recompile them, log4j errors out saying it cannot find an appender for
    the category specified. log4j.jar is in the classpath of the WLS startup
    script. Has anyone come across this problem? I'm not quite sure what the
    source of problem is. And it is not really productive to restart theserver
    every time anything changes in one class...any insight is appreciated!
    Thank you,
    Makoto

Maybe you are looking for

  • Help with Yosemite update

    I updated a mid 2011 IMac to Yosemite and now cannot access my photos.  It says because I need to update iPhoto, but when I try it says update available for this apple ID.  I have tried all of the obvious solutions to no avail.  I wouldn't have updat

  • Can you have multiple bleed allowances (along with the multiple page sizes) in InDesign CS5?

    Hi there, I'm new to InDesign and have a question about documents with mixed page sizes in CS5.  I'm preparing an illustrated book for print and was hoping to be able to contain all the pages (including the covers) in one document.  My basic setup is

  • Photoshop Elements won't startup

    Hello, I spent a long time last night trying to start Photoshop Elements 4 (or 3 for that matter). The repetitive course was that it would proceed quite far into the startup until a blank but flickering dialog box appeared. From the on the only choic

  • DVD Player will not Start Playing Disc Automatically...

    I am not sure when exactly this feature stopped working... I have the most current version of the DVD Player program (App Version 5.0.1, Framework Version 5.0.3) and I have all the settings the same as I have always had (within the Preferences Menu:

  • 6 channel audio device for STP

    I need to do a temp dub on a small film and am going to attempt using STP 5.1. Can anyone recommend a 6 channel audio output device that is not expensive, yet will suffice for a simple mix. Thanks for help!