Weblogic 10.1 web apps merge log4j log files into single log file

Hi
I have deployed multiple web applications on my weblogic (v 10.1 - JDK 1.5.0_12). I am using log4j-1.2.13.jar in a four different web applications.
The location for the files are - WEB-INF\lib\log4j-1.3.13.jar and WEB-INF\classes\log4j.properties
When I deployed all the four webapps in weblogic - we found that all of the apps started writing their logs into the logfile which is configured in the log4j of the first web apps log file. The "first web app" is the web app which is the first app deployed in weblogic.
I have deployed all the four webapps in Tomcat and found that four separate log files get created. Hence, this problem is unique to Weblogic.
Any suggestions on what the problem could be? I have been battling with this issue for over a week- and have exhausted all ideas.
Thank you,
Ronak S.

Hi ,
Read all about your issue here :
Weblogic 10.0 and Log4j classpath problem
Issue is that the Weblogic system classloader includes log4J already..
Use "Filtering ClassLoader" a mechanism to configure deployment descriptors to explicitly specify that certain packages should always be loaded from the application, rather than being loaded by the system classloader.
see: http://e-docs.bea.com/wls/docs100/programming/classloading.html#wp1097187
Example:
Add following to your META-INF/weblogic-application.xml
<prefer-application-packages>
<package-name>org.apache.log4j.*</package-name>
</prefer-application-packages>
Exclude all library packages used within your applcation to have full control over what is used by the application.
regards,
Kris

Similar Messages

  • Error message when trying to merge multiple files into single PDF file

    Greetings! I'm on windows 7 professional, adobe 9 pro and a 64 bit PC. When I try to merge several PDF files from the same folder into a single PDF file I get this error message "You can choose multiple items only if they are all located in the same folder" - Please help! Thx.

    The product is Acrobat, not Adobe. That being said, I suspect you may only be running AA 9.0 and that may be the issue. If you have not done the updates to the 9.5.5, you probably should. That may fix the issue you are having, particularly since you mentioned a 64-bit system.

  • Merging two xml files into single xml file

    i hav to merge 2 xml files in to single xml file
    my xml files are
    input1.xml
    <?xml version="1.0"?>
    <PreVCD>
    <component name="stack">
    <subpath path="stack_environment">
    <variable var="ins" symbol="!" wireonbus="1"/>
    </subpath>
    </component>
    <dump>
    <time t="0">
    <data>
    <symbol sign="!" value="0"/>
    </data>
    </time>
    <time t="10">
    <data>
    <symbol sign="!" value="1"/>
    </data>
    </time>
    <time t="25">
    <data>
    <symbol sign="!" value="0"/>
    </data>
    </time>
    </dump>
    </PreVCD>
    input2.xml
    <?xml version="1.0"?>
    <PreVCD>
    <component name="stack">
    <subpath path="stack_behavior">
    <variable var="i" symbol="@" bussize="1"/>
    </subpath>
    </component>
    <dump>
    <time t="0">
    <data>
    <symbol sign="@" value="0"/>
    </data>
    </time>
    <time t="5">
    <data>
    <symbol sign="@" value="1"/>
    </data>
    </time>
    <time t="10">
    <data>
    <symbol sign="@" value="0"/>
    </data>
    </time>
    <time t="20">
    <data>
    <symbol sign="@" value="1"/>
    </data>
    </time>
    </dump>
    </PreVCD>
    The ouput should look like:
    <PreVCD>
    <component name="stack">
    <subpath path="stack_behavior">
    <variable var="i" symbol="@" bussize="1"/>
    </subpath>
    <subpath path="stack_environment">
    <variable var="ins" symbol="!" wireonbus="1"/>
    </subpath>
    </component>
    <dump>
    <time t="0">
    <data>
    <symbol sign="@" value="0"/>
    <symbol sign="!" value="0"/>
    </data>
    </time>
    <time t="5">
    <data>
    <symbol sign="@" value="1"/>
    </data>
    </time>
    <time t="10">
    <data>
    <symbol sign="@" value="0"/>
    <symbol sign="!" value="1"/>
    </data>
    </time>
    <time t="20">
    <data>
    <symbol sign="@" value="1"/>
    </data>
    </time>
    <time t="25">
    <data>
    <symbol sign="!" value="0"/>
    </data>
    </time>
    </dump>
    </PreVCD>
    thanks for any advice

    Merge xml documents with the xslt document() function.
    <?xml version="1.0" encoding="UTF-8"?>
    <xsl:stylesheet
    version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
    <xsl:output method="xml" />
    <xsl:template match="/">
    <xsl:copy-of select="*"/>
    <xsl:copy-of select="document('input2.xml')"/>
    </xsl:template>
    </xsl:stylesheet>

  • Can i merge multiple jsp files into single jsp file

    i have two jsp pages,and these two jsp pages generate different outputs,then i want merge these jsp pages output and generte new single file.

    yes what the do what the previous poster said.. this can also help to limit the file size of your jsp..

  • Merge multiple pdf files into single pdf

    How to merge multiple pdf files into single pdf file through any programmatic languages? Kindly share with me.
    Thanks

    Easy PDF
    http://www.macupdate.com/app/mac/38090/easy-pdf
    How To: Combine multiple PDFs in Preview
    http://macenstein.com/default/2011/12/how-to-combine-multiple-pdfs-in-preview/
    How to merge pdf files in OSX
    http://macintoshhowto.com/leopard/how-to-merge-pdf-files-with-preview-in-leopard .html
    How to Combine Multiple PDFs Using Preview
    http://www.macobserver.com/tmo/article/how_to_combine_multiple_pdfs_using_previe w/

  • Batch Merge Files Into Single PDF

    Just wanted to know if there's a way on Acrobat 9 Pro,i can select a folder using Merge Files Into Single PDF and have it merge each of the subfolders in the folder into separate single PDFs and have then retain the names of their corresponding subfolders? At the moment i'm having to do one folder at a time and then name them.
    Any help would be great
    [Thread moved from comments forum to Acrobat forum]

    Hello again. I took the long weekend off, so haven't replied for a while.
    While trying to set up a few documents out of the package I wanted to create, I discovered that there
    is only one file that is causing the problem.
    The biggest problem is that it is a confidential financial file, and I'm loathe to put it up on the web.
    I'm going to try to re-create the file without the confidential part, then send it to this forum. I can't
    figure out why it should cause problems when all the others don't and they have all been created by
    the same person with the same version of Office.
    So thanks for your help so far. I really appreciate the quick response from a couple of you.  I will get back to you.

  • Acrobat 9 Pro Merge Files Into Single PDF

    Just wanted to know if there's a way on Acrobat 9 Pro,i can select a folder using Merge Files Into Single PDF and have it merge each of the subfolders in the folder into separate single PDFs and have then retain the names of their corresponding subfolders? At the moment i'm having to do one folder at a time and then name them.
    Any help would be great

    Hi Bill
    Thanks so very much - you have solved the problem.
    I tried Document > Insert Pages and that worked.
    I then ran the "Repair" feature on Adobe which installed a few updates and I am now also able to merge pdf's by using the "Combine" feature and all the pages show the text/info.
    Thanks again for your help, it is very much appreciated.
    Thank you also to Apoorv for your assistance.

  • Error Message When Merging Multiple PDF Files into One PDF File

    Good Morning,
    I have a problem with Adobe Acrobat 9 Pro. I am trying to merge/combine multiple PDF files into one PDF file, but I keep receiving this error message:
    Does anyone have a fix for this? Thank you!

    To fix:
    Provide a unique name for each form field. This includes the individual PDFs fields. As you intend to combine/merge no field name in each of the individual PDFs can be the same.
    Be well...

  • Web App CSV Export Puts Everything into 1 Column in Numbers 3.0

    Hi
    Anyone have this issue before where the new Numbers by Apple, takes the web app export CSV and throws all data into one column? It displays the Template downloads just fine. Just not the Exports for Web App Items.
    Any tricks?
    Teejay

    Oh and the reason likely that has happened because if you do some HTML structures in the content it breaks the import/export process a bit.

  • Multiple web apps sharing same cache in a single JVM ?

    Is it possible to share cache across multiple web apps running in the same app server (multiple web apps, single JVM) ?
    Thanks for any info.

    Hi Bob,
    Cluster membership is scoped to the ClassLoader, so if your application server provides a ClassLoader-per-application, this will work fine.
    This is supported for both Coherence (NamedCaches) and Coherence*Web (HTTP sessions).
    Jon Purdy
    Tangosol, Inc.

  • How to merge the pdf files into single pdf?

    I need to merge the two (or) three pdf files into a single pdf via scripting. I used the below code for inserting(merging) the pages.
    this.insertPages({cPath: "Test.pdf"})
    But its merginging(inserting) successfully. But the links not working after inserting. kindly advise me the solution or any other ways.
    I am using Acrobat 8.0.
    Thanks in advance..

    http://gotofritz.net/blog/howto/joining-pdf-files-in-os-x-from-the-command-line/   <- this works but it strips OPI
    Here's what I did: (This is shell script)
    #!/bin/bash
    FROM="./"
    DESTINATION="./unCombined/"
    for i in $(ls *_F_ga.pdf)
              do
              BACK=`echo "$i" | sed "s/_F_/_B_/g"`
              if [ -f $BACK ] ; then
                        open "$i"
                        osascript selectMenuItem.scpt
                        sleep 3
                        mv -f "$FROM/$i" $DESTINATION
                        mv -f "$FROM/$BACK" $DESTINATION
              fi
    done
    This calls an applescript
    tell application "/Applications/Adobe Acrobat X Pro/Adobe Acrobat Pro.app"
    activate
    end tell
    tell application "System Events"
              tell process "Acrobat"
                        click menu item "combine Front and Back" of menu "File" of menu bar 1
              end tell
    end tell
    Which activates a menu item (made with Java and saved into Macintosh\ HD/Users/*user*/Library/Application\ Support/Adobe/Acrobat/10.0/JavaScripts)
    app.addMenuItem({
        cName: "combineFB",
        cUser: "combine Front and Back",
        cParent: "File",
        cExec: "combineFrontAndBack()",
        nPos: 0
    Which activates this script (again saved into Macintosh\ HD/Users/*user*/Library/Application\ Support/Adobe/Acrobat/10.0/JavaScripts)
    combineFrontAndBack = app.trustedFunction(
    function(){
    // get the file name and extension
    var sFullFileName =  this.documentFileName
    // make into an arry
    var aFullFileName = sFullFileName.split('_F_');
    // build a file name array dropping the extension
    var aFileName = new Array(aFullFileName.length - 2);
    for (i = 0; i < aFullFileName.length - 1; i++) {
    aFileName[i] = aFullFileName[i];
    // recreate file name
    var sFileName = aFileName.join('.');
    var back = sFileName + "_B_ga.pdf";
    app.beginPriv(); // Explicitly raise privilege
    //add back page based on front page name
    this.insertPages ({
                        nPage: 0,
                        cPath: "/Macintosh HD/Users/jfox/test/" + back,
                        nStart: 0
    this.saveAs("/Macintosh HD/Users/jfox/test/" + sFileName + "_ga.pdf");
    this.closeDoc(true);
    app.endPriv();
    return true;
    It's convoluted and comparitively slow, but it works.
    EDIT: I just realized you probably meant document links and not OPI links. Ha ha. I have no Idea what this would do to document links.

  • Distorted text when trying to merge files into single pdf

    I am trying to merge several pdf documents into a single pdf. The pages are all distorted with missing words and random characters appearing here and there. I have combined these pages successfully using 'Assemble files into a PDF package' so I know the files are okay. Trying 'Merge files into a single pdf' is what creates the problem. I have tried this on Acrobat 8.0 and also 10. It is the same in both cases.
    Help please!

    Hello again. I took the long weekend off, so haven't replied for a while.
    While trying to set up a few documents out of the package I wanted to create, I discovered that there
    is only one file that is causing the problem.
    The biggest problem is that it is a confidential financial file, and I'm loathe to put it up on the web.
    I'm going to try to re-create the file without the confidential part, then send it to this forum. I can't
    figure out why it should cause problems when all the others don't and they have all been created by
    the same person with the same version of Office.
    So thanks for your help so far. I really appreciate the quick response from a couple of you.  I will get back to you.

  • How to merge five different xml input files into three output files

    Hi All,
    Can you please explain me to merge 5 different xml input files into 3 output xml files.
    I'm looking forward for ur suggestions...
    Thanks
    Pullarao

    HI
    Please see the below links
    /people/pooja.pandey/blog/2005/07/27/idocs-multiple-types-collection-in-bpm - Collection of IDoc to Single File
    http://help.sap.com/saphelp_nw04/helpdata/en/3c/831620a4f1044dba38b370f77835cc/content.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/62/dcef46dae42142911c8f14ca7a7c39/content.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/de/766840bf0cbf49e10000000a1550b0/content.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/cb/15163ff8519a06e10000000a114084/content.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/08/16163ff8519a06e10000000a114084/content.htm
    Many other examples can be found under the following link at help.sap.com
    http://help.sap.com/saphelp_nw04/helpdata/en/14/80243b4a66ae0ce10000000a11402f/frameset.htm
    And some weblogs
    https://weblogs.sdn.sap.com/pub/wlg/1403 [original link is broken] [original link is broken] [original link is broken]
    /people/siva.maranani/blog/2005/05/22/schedule-your-bpm *****
    /people/krishna.moorthyp/blog/2005/06/09/walkthrough-with-bpm
    /people/michal.krawczyk2/blog/2005/06/11/xi-how-to-retrieve-messageid-from-a-bpm
    /people/arpit.seth/blog/2005/06/27/rfc-scenario-using-bpm--starter-kit
    /people/sravya.talanki2/blog/2005/08/24/do-you-like-to-understand-147correlation148-in-xi
    /people/michal.krawczyk2/blog/2005/09/04/xi-do-you-realy-enjoy-clicking-and-waiting-while-tracing-bpm-steps *****
    /people/udo.martens/blog/2005/09/30/one-logical-system-name-for-serveral-bpm-acknowledgements *****
    /people/sudharshan.aravamudan/blog/2005/12/01/illustration-of-multi-mapping-and-message-split-using-bpm-in-sap-exchange-infrastructure
    /people/kannan.kailas/blog/2005/12/07/posting-multiple-idocs-with-acknowledgement
    Also have a look at these seminars,
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/media/uuid/daea5871-0701-0010-12aa-c3a0c6d54e02
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/media/uuid/e8515171-0701-0010-be98-e37bec4706cc
    <b>BPM CollectPattern..</b>
    http://help.sap.com/saphelp_nw2004s/helpdata/en/08/16163ff8519a06e10000000a114084/frameset.htm
    Thanks !
    Regards
    Abhishek Agrahari
    Questions are welcome here!!
    <b>Also mark helpful answers by rewarding points </b>

  • How to merge 2 pdf forms into one print file ?

    I have been using Adobe forms for a year or so.  Now I have the need to merge together 2 PDF print files into 1 within the same ABAP program before writing the file to my server.  To be more exect, I am talking the output coming from structure FPFORMOUTPUT-PDF.  Does anyone out there have some input for me on this issue ?  Regards, Stuart.

    Hi Stuart. Did you find a solution for this problem? Iam facing the same.
    kind regards,
    Anton Pierhagen

  • How to save contents of two different rich edit box into single rtf file in windows 8.1 app

    Developer, I have requirement to save registration data into rtf file.. These can only be done by if I put rich edit box to fill the data.. Now if I am going to write the code for saving the data of different rich edit box into one particular file, it
    only saves the data of last rich edit box.. So plzz suggest that how can I save the contents of different rich edit box together into one rtf file.

    Ok Nishant, just did some quick research, since rtf file is unlike txt file, we cannot simply directly write some content to the rtf.
    You can try to find some third party code that can help you insert text into rtf file or you would like to load the content from rtf out to the richeditbox and merge them to one richeditbox and then save back to the file.
    You could like to see how to read/save rtf file sample from:
    RichEditBox class
    --James
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

Maybe you are looking for