Log4j doesn't create backup files in web-app, the same code in pure java ap

Hi all,
in my application I have a class DummyLogger, which is a superclass to all others. It provides them a log4j Logger.
In the constructor it sets up the important attributes:
log = Logger.getLogger(name+" (" + app + ") ");
log.setLevel(Level.toLevel(level));
PatternLayout defaultLayout = new PatternLayout("%p %c,line %L,%d{dd.MM.yyyy/HH:mm:ss},%m%n");
RollingFileAppender rollingFileAppender = new RollingFileAppender();
rollingFileAppender.setName(name);
rollingFileAppender.setFile(path+app+".log", true, false, 0);
rollingFileAppender.setMaxFileSize("10MB");
rollingFileAppender.setMaxBackupIndex(5);
rollingFileAppender.setLayout(defaultLayout);
log.removeAllAppenders();
log.addAppender(rollingFileAppender);
log.setAdditivity(false);Formerly I had the application as a pure java app and everything worked fine. Now I've made it a web application (I run it on WebsphereAS 5.0) and it has stopped creating the backup files. However the code remained the same.
Any ideas what has happend?
Thanks a lot,
Ondra

I also have the same problem. Did you find a fix?

Similar Messages

  • Firefox gives 500 internal server error when i upload a javascript file with .js extention the same code works in Chrome

    hi love, i was surprised to see this and lack of my knowledge brought me here. below is my code
    HTML
    <pre><nowiki> <form id="form" name="form" action="http://123.21.111.51:8081/v1/AUTH_beta27/peter/" method="POST" enctype="multipart/form-data">
    <input type="file" id="fileToUpload" name="fileToUpload" />
    <input type="hidden" id="auth" name="auth" value="AUTH_tk7f679e48c7074a06bf28ca3a999f3dda" />
    <input type="hidden" id="fileSize" name="fileSize" value="" />
    </form>
    <p>
    <input type="button" value="Upload" onclick="upload_files()" />
    </p>
    JAVASCRIPT:
    function upload_files() {
    var file = document.getElementById('fileToUpload');
    fileName = file.files.item(0).name;
    fileSize = file.files.item(0).size;
    var fm = document.getElementById("form");
    var action = 'http://123.21.111.51:8081/v1/AUTH_beta27/peter/' + fileName;
    console.log('action = ' + action);
    document.getElementById('form').action = action;
    document.getElementById('fileSize').value = fileSize;
    fm.submit();
    }</nowiki></pre>

    Which security software (firewall, anti-virus) do you have?
    Did you make sure that your firewall or anti-virus software isn't blocking such uploaded content?

  • How to create backup file on itunes for ipod touch 4g game apps data? Is there a way to do it? I want to try an app on my friend's computer, but you can't add apps on another computer without having your own ipod's data being deleted. Thx for any help!

    How to create backup file on itunes for ipod touch 4g game apps data? Is there a way to do it? I want to try an app on my friend's computer, but you can't add apps on another computer without having your own ipod's data being deleted. Thx for any help!
    I want to know how to create a backup file (because I'm pretty new with itunes, and it's hard to use it for me still), how to store my app data/media/videos, etc. And how I can retrieve them back when I'm done with the app I tried on my friend's computer.
    If anyone can help, it'd be great! Thank you so much!

    Sure-glad to help you. You will not lose any data by changing synching to MacBook Pro from imac. You have set up Time Machine, right? that's how you'd do your backup, so I was told, and how I do my backup on my mac.  You should be able to set a password for it. Save it.  Your stuff should be saved there. So if you want to make your MacBook Pro your primary computer,  I suppose,  back up your stuff with Time machine, turn off Time machine on the iMac, turn it on on the new MacBook Pro, select the hard drive in your Time Capsule, enter your password, and do a backup from there. It might work, and it might take a while, but it should go. As for clogging the hard drive, I can't say. Depends how much stuff you have, and the hard drive's capacity.  As for moving syncing from your iMac to your macbook pro, should be the same. Your phone uses iTunes to sync and so that data should be in the cloud. You can move your iTunes Library to your new Macbook pro
    you should be able to sync your phone on your new MacBook Pro. Don't know if you can move the older backups yet-maybe try someone else, anyways,
    This handy article from Apple explains how
    How to move your iTunes library to a new computer - Apple Support''
    don't forget to de-authorize your iMac if you don't want to play purchased stuff there
    and re-authorize your new macBook Pro
    time machine is an application, and should be found in the Applications folder. it is built in to OS X, so there is nothing else to buy. double click on it, get it going, choose the Hard drive in your Time capsule/Airport as your backup Time Machine  and go for it.  You should see a circle with an arrow on the top right hand of your screen (the Desktop), next to the bluetooth icon, and just after the wifi and eject key (looks sorta like a clock face). This will do automatic backups  of your stuff.

  • Error creating backup file

    Hi,
    I'm running adobe digital editions on a Mac OS X 10.6.3 and I keep getting this error message whenever I open adobe digital editions.
    Error creating backup file: /Users/yongrufui/Documents/Digital Editions/backup_manifest.xml
    Error detail: Error #2038
    This message also appears when I go to Library view. And I can't load my new ebook either.
    Please help!

    I wish I had an answer, but I have the same problem.  My error is: Error Creating Backup File  c:windows\personal\MyDigital Editions\Backup_Manifest.xml
    Error Detail: Error #2038
    I've reported this to Adobe and someone is trying to resolve, but its been over 4 days now.  All of the suggestions provided so far haven't fix it.
    I get this error upon Launching ADE.  Always comes up on Launch, but I can move on by clicking OK.  However, all that does is remove the error message. Still cannot download books from library.

  • How to create a file under web application root from java program

    how to create a file under web application root from java program like an action class?

    like an action class?Huh? What exactly is your requirement?
    Creating a file is usually done with java.io API. Read the java.io tutorials how to play with files.

  • I have lost an fcpx project. when i search it, i'm directed to a backup file, but it's just (gibberish/code) text.  how can i retrieve/restore my project?  HELP!!!???

    i have lost an fcpx project. when i search it, i'm directed to a backup file, but it's just (gibberish/code) text. 
    i think i was asked to install an update (something to do with libraries?) before i started working, but i didn't do the update.
    don't know if this has anything to do with problem.
    how can i retrieve/restore my project?  HELP!!!???

    juddfromsherman oaks wrote:
    i have lost an fcpx project. when i search it, i'm directed to a backup file, but it's just (gibberish/code) text.
    The backups for your version are date-time stamped as the name and with an extension of .fcpproject. They look like this.
    The original project is named CurrentVersion.fcpproject.
    You need to replace the CurrentVersion with the backup file and rename it to be CurrentVersion.fcpproject.
    With FCPX closed, I suggest you move the original to the Trash, but not empty it. Then promote your backup one level higher in the project folder hierarchy (to be at the same level that the original previously occupied. Then rename the backup.
    Open up FCPX, which should now recognize your project.
    Russ

  • I've just bought online converter and tried to convert my first pdf to excel and it hasn't created a file anything simialr to the pdf table? any ideas why??

    i've just bought online converter and tried to convert my first pdf to excel and it hasn't created a file anything simialr to the pdf table? any ideas why??

    Hi Tony,
    Would it be possible to share the pdf so that I can test it at my end.
    email me at < [email protected]  >
    Regards,
    Rave

  • [HELP] Error creating property: file. Please verify the Property size is within the Repository limits.

    I am using portal 8.1
    was trying to upload a file (.doc) to the repository, and encountered such error.
    com.bea.content.RepositoryRuntimeException: Error creating property: file. Please
    verify the Property size is within the Repository limits.
    TIA

    Hi,
    hopefully this may help towards a solution.
    Are you using the Loader EJB ?
    1) Are you publishing to a root node within the "BEA repository" ?
    -> does this work ?
    Do you have code that reads something like:
    loader.loadDirectory("firstNode");
    loader.loadFile("firstNode", myBinaryValue, myBytes, myProperties);
    -> Having banged our heads off a lot of walls on this, we think that it is only when you try to publish to a sub-node within the repository that problems appear.
    2) Try publishing to a sub-node in this manner:
    loader.loadDirectory("firstNode/secondNode"); // Ensure exist in Repository
    String contentNodeName = "firstNode/secondNode/myContentNode");
    loader.loadFile(contentNodeName, myBinaryValue, myBytes, myProperties);
    --- Drop us a line as well as replying to this group (as I don't check daily etc). Myself and a collegue, Niamh Fitzpatrick, have been looking at this. Thanks Niamh.
    Hopefully this will work.

  • Can i create more than one library on the same computer?

    Can I create more than one library on the same computer?  Just got an ipod for my wife but didn't want her to have to use my library to sync to, so I thought I created another library for her.  When I deleted my albums from her library the disappeared from mine. (I think?)

    pajagsfan wrote:
    Can I create more than one library on the same computer?  Just got an ipod for my wife but didn't want her to have to use my library to sync to, so I thought I created another library for her.  When I deleted my albums from her library the disappeared from mine. (I think?)
    I know it's Valentine's Day, but before you get your wife fixed up the first thing you need to do is recover the deleted albums for your own library.  See if the files are elsewhere on your hard drive, or in the Recycle Bin.  When you find them, get them back into your own library.  Now you are ready to help your wife.
    As noted above, you can have two libraries in one Windows user account via the Shift-Start approach, but if you both use your libraries regularly, that becomes annoying quickly.  It is better to set her up with her own Windows user account. She can have her own iTunes library there.
    Get a copy of your entire iTunes folder to start her off.  She can delete stuff she doesn't want without messing you up.

  • Open pdf files in tabs in the same window

    Hi,
    Could we open many pdf files in tabs in the same window in stead of many standalone pdf files?
    In other word, open pdf files in tabs like in a web browser ! This is very handy feature which is already available in Foxit reader !
    It would a great too in adobe !
    Thanks

    Thanks for your replies.
    It is a great feautre in my view ! Why Adobe doesn't make it enable/disable feautre for who wants it or doesn't?
    I'm planning to switch to Foxit for this feature (it is faster also)!

  • Does it make sense to create more than one repository of the same type?

    Hi guys!
    Does it make sense to create more than one repository of the same type? Let's say 2 CM repositories?
    Thanx for answer!
    Peter

    Hi Peter,
    yes, that makes sense. If you want to use different combinations of repository services you need different repositories. Or if you want to include existing data (e.g. file systems) from different locations. Or if you need to use different backup strategies (RDBMS, file), or ...
    BTW, my KM Installation (NW04 SPS9) has <b>23</b> CM repositories by default.
    HTH,
    Carsten
    Message was edited by:
            Carsten Buechert

  • How do I share files between users on the same machine?

    I tried using /Users/shared to share files between myself (Admin user) and another user on the machine (Standard user). Whenever I put a file or a folder into said directory permissions are 755 for directories and 644 for files, my umask is 0022. The files and directories belong to my user and the group staff. This means I can read and write and others can read. If I do the same using the other users account. Permissions are 700 and 600 respectively. (Owner is the other user and group is staff.) Strangely the other users umask is 0022, too.
    The result is, that all directories and files I create with my account (Admin user) are readable to every other user on the machine, whereas all directories and files the other user (Standard user) creates are not readable for anyone else. I can easily rectify this using the Terminal and chmod and/or chown, but it is a pain having to do this, since I also need to forcefully restart the Finder App for it to notice the changed permissions.
    Ideally I'd like all directories in /Users/Shared to have permissions 777 and all files 666 no matter which user created, copied or moved them to said location. I think this could possibly be done using applescript and shellscripting and the folder action hook. So far my attempts to find such a script on the net or/and write it myself have failed. I'd be grateful for any hints how I:
    a) write and setup such a script
    b) accomplish what I try to do (share files and folders on the same machine) in another possibly more Mac way
    Kind regards
    David

    The following AppleScript will recursively descend the directory tree and change the items to your modes:
    <pre style="
    font-family: Monaco, 'Courier New', Courier, monospace;
    font-size: 10px;
    margin: 0px;
    padding: 5px;
    border: 1px solid #000000;
    width: 720px; height: 340px;
    color: #000000;
    background-color: #FFDDFF;
    overflow: auto;"
    title="this text can be pasted into the Script Editor">
    on adding folder items to this_folder after receiving these_items
    repeat with some_item in these_items
    ProcessStuff from some_item
    end repeat
    end adding folder items to
    to ProcessStuff from SomeItem
    processes items contained in SomeItem, recursively descending the directory tree
    parameters - SomeItem [mixed]: an item containing the items to process
    returns nothing
    set SomeItem to SomeItem as text
    set FileInfo to (info for SomeItem as alias)
    if (folder of FileInfo) and not (package folder of FileInfo) then -- a folder (not a package)
    do shell script "chmod 666 " & quoted form of POSIX path of SomeItem
    -- do shell script "chown root:staff " & quoted form of POSIX path of SomeItem user name "me" password "mypassword" with administrator privileges
    try -- to get items in the folder
    tell application "Finder" to set SubFolder to (items of folder SomeItem)
    on error
    return {}
    end try
    repeat with SubItem in SubFolder -- process the sub items
    ProcessStuff from SubItem
    end repeat
    else -- a file
    do shell script "chmod 777 " & quoted form of POSIX path of SomeItem
    -- do shell script "chown root:staff " & quoted form of POSIX path of SomeItem user name "me" password "mypassword" with administrator privileges
    end if
    return
    end ProcessStuff
    </pre>
    You shouldn't need to change the ownership, so I commented out the chown shell script since this would need to be run as a super user. You can run a shell script with administrator privileges, but in order to be used by a standard user you will need to provide the appropriate user name and password in the script, which might not be a good idea - note that the folder action script will need to be attached in all accounts that you want to change the permissions, which means that it would need to be accessible to those accounts.

  • The test encountered an error while signing in to Outlook Web App. HTTP code: 200

    Infrastructure: Exchange 2010 SP3 RU2 environment on 17 servers worldwide with CAS, MB, HUB and UM roles. Server 2008 R2 VM's on Hyper-V 2008 R2.
    Trying to run the following command to test OWA connectivity on a server in the same Active Directory domain but in a different AD site:
    Get-ClientAccessServer -Identity Server1 | test-owaconnectivity -AllowUnsecureAccess -TrustAnySSLCertificate
    I get the reponse:
    WARNING: [11:04:51.276] : An Outlook Web App page wasn't received.
    WARNING: [11:04:51.276] : The test encountered an error while signing in to Outlook Web App.
    HTTP code: 200
    WARNING: [11:04:51.276] : Test failed for URL 'https://server1.domain.com/owa/'.
    ClientAccessServer        MailboxServer            URL                                               
    Scenario       Result       Latency          Error
    Server1.domain.com      Server2.domain.com  https://server1.domain.com/owa  Logon           Failure                           
    The test encountered an error while signing in to Outlook Web App. HTTP code: 200
    This is the same error message received from SCOM on its tests also.
    I have created a test account on all 17 servers using ./new-TestCasConnectivityUser and ensured their mailboxes reside on the correct server in the correct database.
    All internal servers are set for OWA and ECP for Windows Authentication. Only public facing CAS servers are set to Forms based. That said, have checked the 'Microsoft Exchange Forms-Based Authentication service' is running on both Server1 and Server2 as
    are all Exchange services except 'Microsoft Exchange IMAP4' (not used) or 'Microsoft Exchange POP3' (not used).
    However, if I run this command:
    test-owaconnectivity -AllowUnsecureAccess -TrustAnySSLCertificate -URL
    https://server1.domain.com/owa
    I get the following success after I have entered my correct credentials:
    Windows PowerShell Credential Request : cmdlet Test-OwaConnectivity at command pipeline position 1
    Warning: This credential is being requested by a script or application on the Server2.domain.com remote computer.
    Enter your credentials only if you trust the remote computer and the application or script requesting it.
    Supply values for the following parameters:
    MailboxCredential
    ClientAccessServer  MailboxServer  URL                                                
    Scenario              Result      Latency    Error
    (ms)
                                                            https://server1.domain.com/owa  
    Logon                 Success    6282.13
    So if I login with my domain username, it works and logs in. If the script runs using the 'extest....' user account created by the above ./new-TestCasConnectivityUser.ps1 , it does not work.
    Has anyone got any ideas please? I know its not the network as it works under my username, I know all fo the services required are running as it works under my username. There are no entries at all in the receiving server's error logs for Application, System,
    Exchange or Powershell at all.
    Any help greatly appreciated.
    Danny

    Did you read this?  http://support.microsoft.com/kb/2277649/en-us
    Did you run Test-MapiConnectivity? If not, can you run and post results? 
    HossFly, Exchange Administrator

  • Is there any option to recover a file we saved with the same name that other by mistake in a MAC PC

    is there any option to recover a file we saved with the same name that other by mistake in a MAC PC

    There's a slim chance. +*Stop using the drive IMMEDIATELY.+*
    Then see: [Data Recovery|http://web.me.com/pondini/AppleTips/Recover.html].

  • Hi! I made 2 records yesterday and 1 of them doesn't open. It's there, at the same place it was yesterday, but it doesn't open. Help me, please?

    Hi! I made 2 records yesterday and 1 of them doesn't open. It's there, at the same place it was yesterday, but it doesn't open. Help me, please?

    It was made by the recorder in my iPhone 4. I realised today that I tryed to send the file by sms, but the file is too big and it fail. As it fail, I erase the message. Can the file be erased? And if it was erased, why it keep in the list of records? And finally, can I recover the message erased, recovering the file? Thank you very much! P.s.: Sorry for the english mistakes...

Maybe you are looking for

  • Audio out of sync

    I have 2 Xl2s. Both running at the same time taping a performance. One is using tape, the other a HD recorder. When I do the capture of both streams, I am unable to sync the audio and video. Something I have done many times before with other cameras.

  • PDF files opening and closing slowly in Acrobat version 9.5.2.

    I am running Acrobat 9.5.2.  Last week our server died at work and we converted to a new one.  Since then pdf files have been opening and closing very slowly, sometimes taking 15+ seconds to close.  Strangely enough, if you open and close several in

  • Error with LKM File to Oracle(SQLLDR)

    Please help me to resolve error while using LKM File to Oracle(SQLLDR) Environment Details: ODI_11.1.1.6.0, Oracle DB 11g PFB error message: org.apache.bsf.BSFException: exception from Jython: Traceback (most recent call last):   File "<string>", lin

  • My MacBook Pro won't start- 3bleeps

    Hey. My MacBook is a 15" pro late 2008 non unibody, I haven't replaced the ram but the MacBook will no longer start up, I just get 3 bleeps, I have tried swapping the ram and the screen just stays blank, no backlight, nothing, when I put them back in

  • Standard Status bar

    Hi guys, There are four field in the standard Status Bar : The first status field displays the system ID and the client number. The second status field displays the server to which you are connected. The third status field specifies your data entry m