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?

Similar Messages

  • Announcing: Developing JSF Portlets with WebLogic Portal Whitepaper

    Just Released: Developing JSF Portlets with WebLogic Portal Whitepaper
    A supplemental developer's guide has been published to help guide WLP 10.x customers that wish to use JSF as the web framework for building portlets on WebLogic Portal. This is a sizable document (150 pages) that covers a large number of topics. It also coaches developers on best practices and common pitfalls.
    Important: It also clarifies the supported configuration of JSF within Portal Web Projects. Workshop for WebLogic by default configures a web project in a configuration that is not supported by WebLogic Portal. The guide explains how to address this:
    * Change from the unsupported MyFaces JSF implementation to the supported Sun Reference Implementation (RI)
    * Change from the unsupported "client" STATE_SAVING_METHOD to the supported "server"
    The guide can be downloaded here:
    http://download.oracle.com/technology/products/weblogic/portal/weblogic-portal-jsf-whitepaper.pdf
    To help internet searches locate this document, the table of contents is reproduced below:
    Introduction
    1.1. Prerequisites...................................................................... 8
    1.2. Applicable Versions............................................................ 8
    1.3. Native Portlet Bridges and Standard Portlet Bridges .......... 8
    1.4. JSF Portlet Support Roadmap ........................................... 9
    1.5. Whitepaper Structure ....................................................... 10
    1.6. Look Before You Leap ..................................................... 10
    1.7. For More Information........................................................ 10
    Part 1: Converting JSF Applications into Portlets
    2. IDE Support for JSF Portlets Chapter ...................................... 12
    2.1. Workshop for WebLogic – WebLogic Portal's Supported IDE 12
    2.2. Workshop Features for JSF Support in WebLogic Portal.. 12
    3. Introduction to JSF Portlets Chapter ........................................ 18
    3.1. Creating Your First JSF Portlet......................................... 18
    3.2. Essentials of JSF Portlet Views........................................ 21
    3.3. WebLogic Portal Artifacts................................................. 22
    4. Configuring JSF within WebLogic Portal Chapter..................... 24
    4.1. JSF Library Modules in WebLogic Server ........................ 24
    4.2. Installing the JSF Libraries into a Portal Web Project ....... 25
    4.3. JSF Configuration Settings............................................... 27
    4.4. Configuring JSF 1.2 ......................................................... 29
    4.5. Building an Unsupported JSF Implementation Library Module 31
    4.6. Faces Configuration is Web Application Scoped.............. 31
    5. Navigation within a JSF Portlet Chapter................................... 33
    5.1. Navigating within a Portlet with the JSF Controller ........... 33
    5.2. Redirects.......................................................................... 34
    6. Namespacing Chapter ............................................................. 35
    6.1. Namespacing Managed Bean Names.............................. 35
    6.2. Client ID Namespacing with the View and Subview Components 35
    6.3. Client ID Namespacing with the WLP NamingContainer .. 36
    7. Logging, Iterative Development, and Debugging Chapter ........ 39
    7.1. Logging............................................................................ 39
    7.2. Iterative Development ...................................................... 39
    7.3. Debugging ....................................................................... 40
    8. Custom JavaScript Chapter ..................................................... 42
    8.1. DOM Manipulation within a JSF ....................................... 42
    8.2. Form Validation within a JSF Portlet ................................ 45
    9. Preparing JSF Portlets for Production Chapter ........................ 46
    9.1. Configuration.................................................................... 46
    9.2. Performance and Scalability............................................. 47
    9.3. Security............................................................................ 49
    9.4. Localization...................................................................... 50
    Part 2: Interacting with the Portal Environment
    10. Native Bridge Architecture Chapter ...................................... 54
    10.1. Container Architecture Overview.................................. 54
    10.2. Container Architecture.................................................. 54
    10.3. Container Interactions .................................................. 55
    11. Interportlet Communication Chapter .................................... 56
    11.1. Using Session and Request Attributes for IPC (Anti-pattern) 56
    11.2. Using the WLP Event Facility for IPC with JSF Portlets 56
    11.3. Notifications ................................................................. 60
    11.4. Comparison of the IPC Approaches ............................. 60
    12. Scopes Chapter ................................................................... 62
    12.1. Conceptual Scopes for Standard JSF Applications ...... 62
    12.2. Conceptual Scopes for Portal Applications................... 63
    12.3. Implementation Patterns for Portal Scopes .................. 63
    13. State Sharing Patterns Chapter ........................................... 66
    13.1. State Sharing Concepts ............................................... 66
    13.2. HttpSession Versus HttpServletRequest ...................... 66
    13.3. Base Code for HttpSession Patterns ............................ 67
    13.4. Single Portlet Pattern ................................................... 68
    13.5. Multiple Portlet Patterns ............................................... 69
    14. Rendering Lifecycles Chapter .............................................. 77
    14.1. WLP and JSF Lifecycles .............................................. 77
    14.2. Invocation Order of WLP and JSF Lifecycle Methods... 77
    14.3. Accessing WLP Context Objects from JSF Managed Beans 78
    15. Portal Navigation Chapter .................................................... 80
    15.1. Programmatically Constructing JSF Portlet URLs ........ 80
    15.2. Changing the Active Portal Page.................................. 80
    15.3. Redirects within a Portal............................................... 83
    16. Ajax Enablement Chapter .................................................... 85
    16.1. Ajax in JSF Portlets...................................................... 85
    16.2. Partial Page Rendering Pattern.................................... 85
    16.3. Stateless API Request Pattern ..................................... 86
    16.4. Portlet Aware API Request Pattern .............................. 87
    16.5. Controlling the WLP Ajax Framework........................... 91
    17. Additional WLP Features Chapter........................................ 93
    17.2. Portlet Container Features ........................................... 93
    17.3. Portal Container Features ............................................ 98
    18. Example: Implementing a Login Portlet Chapter .................. 99
    18.1. Login Portlet Motivation................................................ 99
    18.2. Login Portlet Design..................................................... 99
    18.3. Login Portlet Implementation...................................... 101
    Part 3: Integrating Third Party Libraries
    19. Integration Overview Chapter............................................. 111
    19.1. Types of Libraries....................................................... 111
    19.2. Roadmap for MyFaces Trinidad and ADF Faces Rich Client 111
    20. Using the Facelets View Technology Chapter.................... 113
    20.1. Introduction to Facelets .............................................. 113
    20.2. Configuring Facelets Support ..................................... 113
    21. Using the Apache MyFaces Tomahawk Component Library Chapter 115
    21.1. What is Apache MyFaces Tomahawk? ...................... 115
    21.2. Support for Tomahawk in WLP................................... 115
    21.3. Tomahawk Component List........................................ 116
    21.4. Installing and Configuring Tomahawk......................... 119
    21.5. Resolving the Duplicate ID Issue................................ 120
    21.6. Referring to Resources .............................................. 120
    21.7. forceId Attribute.......................................................... 124
    21.8. File Upload................................................................. 125
    22. Using the Apache Beehive Navigation Controller Chapter . 126
    22.1. Apache Beehive Page Flow ....................................... 126
    22.2. JSF and Page Flows .................................................. 126
    22.3. Configuring the JSF Integration with Page Flows ....... 127
    Appendices
    23. Appendix 1: Consolidated List of Best Practices ................ 130
    24. Appendix 2: Known Issues and Workarounds.................... 132
    24.1. CR383659, CR383662 Inconsistent failures with JSF portlets 132
    24.2. CR342124: IllegalStateException due to duplicate client-id 132
    24.3. CR384916: IllegalStateException due to duplicate client-id when using certain components such as Tomahawk and Trinidad...... 133
    24.4. CR361477 Problems with the integration of JSF portlets with Apache Beehive Page Flows.................................................................. 133
    24.5. CR377945 JSF 1.2 suffers from a memory leak during iterative development .............................................................................. 134
    25. Appendix 3: The JSFPortletHelper Class ........................... 135
    26. Appendix 4: The CleanupPhaseListener Class .................. 147

    Hi Peter!
    First, I wish to thank you for the great work.
    We followed your whitepaper and managed to deploy a JSF portlet on WLS.
    But we are not able to register it (consume it) as remote portlet in Oracle Portal 10.1.4. The error log is as follows:
    An error occurred while trying to refresh the provider. (WWC-43190)
    An error occurred during the call to the WSRP Provider:
    java.rmi.RemoteException: serialization error: serialization error:
    unexpected null value for literal data; nested exception is:
    serialization error: serialization error: unexpected null value for literal data
    com.sun.xml.rpc.encoding.SerializationException: serialization error:
    serialization error: unexpected null value for literal data
    com.sun.xml.rpc.encoding.SerializationException: serialization error:
    unexpected null value for literal data
    Java stack trace from root exception:
    unexpected null value for literal data
    at
    oracle.webdb.wsrp.RegistrationContext_LiteralSerializer.doSerialize(RegistrationContext_LiteralSerializer.java:107)
    at
    com.sun.xml.rpc.encoding.literal.LiteralObjectSerializerBase.internalSerialize(LiteralObjectSerializerBase.java:119)
    at
    com.sun.xml.rpc.encoding.literal.LiteralObjectSerializerBase.serialize(LiteralObjectSerializerBase.java:70)
    at
    oracle.webdb.wsrp.GetServiceDescription_LiteralSerializer.doSerialize(GetServiceDescription_LiteralSerializer.java:88)
    at
    com.sun.xml.rpc.encoding.literal.LiteralObjectSerializerBase.internalSerialize(LiteralObjectSerializerBase.java:119)
    at
    com.sun.xml.rpc.encoding.literal.LiteralObjectSerializerBase.serialize(LiteralObjectSerializerBase.java:70)
    at
    com.sun.xml.rpc.client.StreamingSender._writeRequest(StreamingSender.java:473)
    at com.sun.xml.rpc.client.StreamingSender._send(StreamingSender.java:62)
    at
    oracle.webdb.wsrp.WSRP_v1_ServiceDescription_PortType_Stub.getServiceDescription(WSRP_v1_ServiceDescription_PortType_Stub.java:63)
    at
    oracle.webdb.wsrp.client.design.v1.OraWSRP_v1_ServiceDescription_PortType.getServiceDescription(Unknown
    Source)Do you have any idea why this happens? Or you can provide some useful links to WLP -Oracle Portal federation?
    Thank you and best regards,
    PaKo

  • Oracle UCM with Weblogic portals

    Does any one has idea working with oracle UCM with Weblogic portals. Can anyone suggest any tutorial in online.

    Provided you are using the Oracle UCM Content Adapter for WLP (UCM SPI), using content sourced from UCM in WLP applications is not different from using content from other Repositories.
    See http://download.oracle.com/docs/cd/E13155_01/wlp/docs103/ucm_adapter/index.html for information on using the Adapter and for tips on content modeling.
    Brad

  • IBM Cognos 8 BI Integration with Weblogic portal

    Hi,
    In our project we need to integrate IBM Cognos 8 BI portlets with Weblogic portal 10.3.
    1. How to integrate Cognos ?
    2. How to enable SSO between Portals & Cognos? Cognos should use the portal users credentials for authentication
    Please share me some useful links and sample code to proceed.
    Thanks & regards,
    Rajesh

    Basically I am saying that your options are
    1. Screenscraping the apps into portlets
    2. Using SSO to login to the apps, but keepin them separate
    3. Using Web Services to consume parts of the apps and exposing those as portlets
    For our application we do 2 and 3. In many cases we just create portlets that represents views into other j2ee apps. When the users click on something, we launch the j2ee app in a popup browser. The users are already signed on, and taken to a specific detail page, add page or something within the app directly.
    Hope this helps.
    Kunal

  • Help needed with weblogic portal and documentum.

    hi guys,
    i have a project in which i have to use documentum with site caching services with weblogic portal 8.1. the html and xml pages will be stored in documentum and the metadata in oracle 8i and xslt will be used for transformation.
    Does anybody have any clue what api or things to use for this thing.
    any help , tutorial, links pointing to the solution will be helpful
    thanks in advance
    rajat

    Ok, so it looks like I only need to call a startapplicaiton after the distribute to make this work.

  • Need CVS plug in with weblogic portal 10.3

    I tried to integrate the CVS plug in with Weblogic Portal 10.3 using software updates (Selecting Eclipse CVS Client 1.0.2.r33x), but getting the error - Weblogic Portal 10.3 requires feature "com.m7.nitrox(1.0.20)", or compatible
    Can someone help me in CVS plug ins with weblogic portal 10.3.

    ttam,
    This is a bug, 8185869 (Check in Metalink) . that has been fixed in the Sunshine Release. In the meantime, here's the workaround from the bug report:
    Download the plugin manually, and either 1) create an extension location on the file system from it and add that via Help|Software Updates|Manage Configuration, or 2) extract it to one of the workshop eclipse folders (i.e. tools/eclipse_pkgs/2.0/eclipse_3.3.2, tools/eclipse_pkgs/2.0/pkgs/eclipse, workshop_10.3/workshop4WP/eclipse, wlportal_10.3/eclipse).
    Additionally, you can comment out the com.* import lines in your %BEA_HOME%\wlportal_10.3\eclipse\features\com.bea.wlp_10.3.0\feature.xml, like this:
    <requires>
    <import plugin="org.eclipse.core.runtime" version="3.3" match="compatible"/>
    <import plugin="org.eclipse.ui" version="3.3" match="compatible"/>
    <!--
    <import feature="com.m7.nitrox" version="1.0.20" match="compatible"/>
    <import feature="com.bea.workshop.cmdline.feature" version="1.0.30" match="compatible"/>
    <import feature="com.bea.workshop.common.feature" version="1.1.40" match="compatible"/>
    <import feature="com.bea.workshop.upgrade81.feature" version="1.0.30" match="compatible"/>
    <import feature="com.bea.workshop.web.feature" version="1.0.20" match="compatible"/>
    <import feature="com.bea.workshop.wls.feature" version="1.1.30" match="compatible"/>
    <import feature="com.bea.workshop.xmlbeans.feature" version="1.0.30" match="compatible"/>
    -->
    </requires>
    Then restart Workshop.
    cheers
    vijay

  • 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

  • How to integrate Oracle Enterprise Pack for Eclipse with Weblogic Portal

    Hi
    I am following this documentation http://download.oracle.com/docs/cd/E15919_01/wlp.1032/e14252/setup_dev_env.htm#i1013214
    to setup my development environment for developing portal applications, but I cannot set it up, my eclipse does not have PORTAL perspective.
    I have downloaded the Oracle Enterprise Pack for Eclipse 11gR1 (11.1.1.5) and the Oracle WebLogic Portal 10.3 as mentioned in the documentation.
    The Oracle Weblogic Portal 10.3 includes a workshop version of eclipse, but that is not based on a recent Eclipse, that is why I would like to use the Oracle Enterprise Pack for Eclipse 11gR1 (11.1.1.5).
    It is weird int he Oracle Portal 10.3 installation that I cannot install the Weblogic Portal without the Workshop.
    Could you help me in this? How can I integrate the Oracle Enterprise Pack for Eclipse with Weblogic Portal?
    Thank you.

    For WebLogic Portal tooling you have a couple of options. For WebLogic Portal 10.3 and older, Workshop for WebLogic will be your tooling environment.
    Starting in WebLogic Portal 10.3.2, which released this year, the development tools have migrated to Oracle Enterprise Pack for Eclipse. The WebLogic Portal 10.3.2 installer will install both the runtime and the IDE configured with additional WebLogic Portal Eclipse features (Portal Project Configuration, Perspecitives, Palettes, Deployment, etc).
    If you are interest in the latest version, you can download from the WebLogic Portal OTN page - http://www.oracle.com/technology/products/weblogic/portal/index.html

  • Basic Spring Interaction with WebLogic Portal

    Can you please post the article "Basic Spring Interaction with WebLogic Portal" by Article by Mark Meyer and Don Davis. Actually it was posted in http://dev2dev.bea.com/pub/a/2006/09/weblogic-portal-spring.html but after the BEA's acquisition by ORACLE, this link was not active. Can some one please assist regarding the same ?

    The archived dev2dev articles are suppose to be available at:
    http://www.oracle.com/technology/pub/articles/dev2arch/index.html
    But in a brief review of this site, I did not see this exact title. Maybe someone else knows where that one is.
    There are many other spring related articles there you may find helpful as well.

  • Help with weblogic portal

    hello friends,
    i have come from perl/cgi side of web applications and new to weblogic,theorotically familiar with java and jsp. now i have task on working with weblogic portal server 8.1. i need help on where to start and some kind of direction and all the advantages and disadvantages in this new field of mine. I am basically a novice and any kind of information would be greatly usefull. i have weblogic workshop installed.
    Thanks in advance
    --C                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

    Hi Chaitanya,
    you can find more information on portal at
    http://e-docs.bea.com/wlp/docs81/index.html
    Regards,
    Prasanna Yalam

  • 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.

  • 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

  • Getting started with WebLogic Portal 11g

    Please can someone provide links to get started with Oracle WebLogic Portal 11g.

    There is no such thing as Weblogic Portal 11g. The latest release of WebLogic Portal is 10.3.2.
    Here is a link to the documentation page. Please review the Getting Started and Tutorials documents.
    http://download.oracle.com/docs/cd/E15919_01/index.htm
    Edited by: Brad Posner on Dec 9, 2010 2:15 PM

  • Can I integrate BPM with WebLogic Portal virtual content repository?

    For example, when there is a new added node in WebLogic Portal virtual content repository, the workflow triggerd, and start a workflow instance on that node.
    May be the node is a document, I'd like the document have a complex approval process.
    My question is, there are many nodes so many workflow instance after I added many documents, so how can I know which node is combined with which workflow instance? May be in workflow process ,I'd like to get and set the node metadata or something else with the WebLogic Portal virtual content repository, how can I process data between BPM and WebLogic Portal VCR?

    With regard to inline editing with Content Presenter in WLP 10.2, you should know that this "feature" is simply an example of how you might author advanced display templates.. The sample application for Content Presenter has a display template which is used to allow this inline editing. The template is just a sample and source code is provided. For your purposes, you can author your own display template which can provide inline edit even if Library Services are enabled. You'll probably want to enable version preview and approval to the template as well. It's a little more work, but certainly possible.

  • Chat Integration with WebLogic Portal 10.3

    Hello Friends,
    For one of my pre sale account, I am suppose to propose a chat integration with Oracle WebLogic Portal 10.3.
    I was wondering if one can guide me as what would be the best possible option to consume? We are going to propose below Product stack -
    Oracle WAS 10.3
    Oracle WLP 10.3
    Oracle Web Center Interaction (not sure about the version)
    Vignette CMS 7.6
    Need to know if there are any OOTB features in oracle product stack. If not, then need to understand the best possible solution for integration either as software or in SaaS model.
    Appreciate your quick help on this point.
    Thank you,
    Regards,
    Chintan

    Bumping up the question,
    Can somebody please guide me.
    Thank you,
    Regards,
    Chintan

Maybe you are looking for

  • Do I need to have studio monitors?

    Being one day in to logic (Oh man is it overwhelming), do I need studio monitors? My problem being is that I start to create a track and then when I go to playback, I get nothing from my speakers. Do I need to change a setting or am I a complete idio

  • Upgraded to ios4, confused how to used ipod feature now?

    after recently installing the new software im now confused as to how i can use my i pod. When i go into it the 'songs' it says i have none, all my music is still available to view as albums but you seem to have to create playlists from the 'songs' se

  • Installed 7 created dupe empty files in library...any way to easily delete?

    I upgraded to the new Itunes. It initially lost my whole library settings..i.e. there were only empty files which would not play. I reset the link to the library, which is on a external drive, and consolidated the files. I now have doubled the librar

  • Memory leak in OracleXMLSave?

    I always get a Out of Memory : Java heap space at oracle.xml.sql.dml.OracleXMLSave.saveNodeVal(OracleXMLSave.java:2854)      at oracle.xml.sql.dml.OracleXMLSave.saveNodes(OracleXMLSave.java:2650)      at oracle.xml.sql.dml.OracleXMLSave.saveXML(Oracl

  • Planning on buying a Mac Pro

    Hi, I'm planning on buying a Mac Pro 3Ghz in the near future and had a few questions before I buy it. I plan on using the computer mainly for games but I want to have it for a long time and be able to handle whatever I throw at it (games and otherwis