After Making Changes In Log4j.xml Application Needs Recompilation?

Hello,
I am using log4j in my jsp pages and for that I instantiating Logger class like this
Logger logger = Logger.getLogger("test.jsp");
{code}
And I have log4j.xml in the classpath.
I believe, priority levels can be changed and log level can be changed without re-compiling.
Change the log4j.xml and re-run jsp pages.
However I need to re-compile after making changes in log4j.xml file. Without re-compilation changes are not getting reflected.
Why I need to re-compile application in order to see the changes I have made in log4j.xml?
Appreciate any help in this regard.
Regards                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

This is the contents of my log4j.xml, its under WEB-INF/lib
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE log4j:configuration SYSTEM "log4j.dtd">
<log4j:configuration xmlns:log4j="http://jakarta.apache.org/log4j/">
  <!-- A1 is set to be a ConsoleAppender -->
  <appender name="sout" class="org.apache.log4j.ConsoleAppender">
    <!-- A1 uses PatternLayout -->
    <layout class="org.apache.log4j.PatternLayout">
      <param name="ConversionPattern" value="%d [%c] %p - %m%n"/>
    </layout>
  </appender>
  <root>
    <!-- Set root logger level to DEBUG and its only appender to A1 -->
    <priority value="off"/>
    <appender-ref ref="sout"/>
  </root>
</log4j:configuration>

Similar Messages

  • After i changed the setting in application tab in options : open pdf doc by adobe by default, the "Ask" window still pop up every time. How to fix this ?

    <blockquote>Locking duplicate thread.<br>
    Please continue here: [[/questions/913026]]</blockquote>
    after i changed the setting in application tab in options : open pdf doc by adobe by default, the "Ask" window still pop up every time. How to fix this ?

    How do I fix this problem ...javascript (cid) applications.

  • Can anyone help me with an iWeb problem? I cannot save the site after making changes. I receive this error: "website.sites2 could not be saved"

    Can anyone help me with an iWeb problem? I cannot save the site after making changes. I receive this error: "website.sites2 could not be saved"

    You could try duplicating the Domain.sites2 file and launch this in iWeb. Delete the last page you edited and try saving. If that doesn't work, undo and try deleting another and so on...
    If you can find the problem page you would only have to rebuild it rather than the whole site.
    The other possibility is to create a new site on the same domain file and drag each page in turn down to it from the top site and try to save each time.

  • Script Error after making changes

    First, I am not a website designer. I own a website and have
    been making minor (text) changes using Contribute since I didn't
    need to know html. I started a couple of years ago just using the
    trial and never had any problems with it, but about a month ago
    bought it...CS3.
    After sitting down and making some changes, I published and
    then got:
    Script Error
    Line: 17
    Char: 1
    Error: Object required
    Code: 0
    URL;
    http://www.dirty-dog.com/contact/
    I've looked at the source code, found line 17, but have no
    idea what I'm supposed to do. I think this is an easy fix, right?
    Can someone explain in "plain english" what I need to do?
    Also, one day I somehow fixed it...just by moving stuff
    around on the page. I also made some changes to other pages,
    thought they were published (looked at all of them), but when I
    went back yesterday, all the changes were gone?!? How is that
    possible??? I'm going to try to paste the code here....

    This is the contents of my log4j.xml, its under WEB-INF/lib
    <?xml version="1.0" encoding="UTF-8" ?>
    <!DOCTYPE log4j:configuration SYSTEM "log4j.dtd">
    <log4j:configuration xmlns:log4j="http://jakarta.apache.org/log4j/">
      <!-- A1 is set to be a ConsoleAppender -->
      <appender name="sout" class="org.apache.log4j.ConsoleAppender">
        <!-- A1 uses PatternLayout -->
        <layout class="org.apache.log4j.PatternLayout">
          <param name="ConversionPattern" value="%d [%c] %p - %m%n"/>
        </layout>
      </appender>
      <root>
        <!-- Set root logger level to DEBUG and its only appender to A1 -->
        <priority value="off"/>
        <appender-ref ref="sout"/>
      </root>
    </log4j:configuration>

  • Making changes in web.xml dynamically

    Hi all,
    I have a requirement in which i need to redirect request to com site if it is from desktop browser and to WAP site if request for wap site or from a mobile device
    Have servlet ready doing it but presently taking only to two harcoded URLS of .com and .mobile sites.in web.xml.
    Now i want dynamic changes in web.xml through a servlet to changes those URLs to respective request.
    Thanks in advance,
    dcosta_halo

    The web.xml file is only a data storage file. When a Java Web Server starts up, it read the web.xml file and creates the appropriate objects that live in the JVM and manage parts of the applications hosted by the server. Any changes to the web.xml data file while the server is running are lost once the server is turned off. You need to figure out another design, possibly having the servlet read a database table to get URL strings.

  • Po print out after making changes in po

    hi experts,
    we r facing a problem ,after making a po when we edit it for additon of some more materials  and take the print out ,only item that were there in po intially are coming , it is not printing all the items that are that are added i po, but po print out is coming ok ,it is showing alll the items,can anybody help why it is coming like this .<b>points will be awarded surely</b>

    Hi
    In Message determination for PO, you have an output type (eg.,NEU) for printing the changed PO.
    This has to be created(if not maintained) and maintained in <b>"Fine tuned message control"</b> in SPRO and it should be <b>ticked</b> in the last column.
    Try this and it should work.
    Pls Revert and Reward.
    Regards
    Vijay

  • SWF works originally but won't work after making changes, then saving

    I have two small flash elements that are embedded into a website, and upon first exporting the swf and putting into the html in Dreamweaver, worked like a charm. After making edits to the Flash file, then exporting the swf a second time - no changes on the publish settings - upon deleting the old, then putting the new swf object into dreamweaver, they won't work. This has happened with both the flash piece on the home page, and on the "what we do page". Below are links to what's currently up, but I've made edits since those that I can't post!!
    I'm completely baffled. I've even done "save as" to overwrite the original file, then replace in Dreamweaver, but nope....
    carwinadvisors.com/index.php
    carwinadvisors.com/what-we-do.php

    Here's flash code that should work :
    http://www.wyodor.net/MoreEmbed/flash.html
    More Flash (video) here : http://www.wyodor.net/iFrame/
    Perhaps using another sort of slideshow would solve it too:
    http://www.wyodor.net/iWebBlogTest/Wyodor_1/WebBanner.html
    Demo : http://www.wyodor.net/_Demo/MyHouse/Huis.html
    These are the displayed shows:
    http://www.wyodor.net/_Demo/Gardens/flagstones.html
    http://www.wyodor.net/_Demo/Gardens/gardens.html
    Check the source code to see how it's done.

  • Error when trying to reopen a page in Jdev after making changes

    Message
    BME-99003: An error occurred, so processing could not continue.
    Cause
    The application has tried to de-reference an invalid pointer. This exception should have been dealt with programmatically. The current activity may fail and the system may have been left in an unstable state. The following is a stack trace.
    java.lang.NullPointerException
         at oracle.jdevimpl.webapp.model.content.dom.xml.XElement.getAttrQName(XElement.java:250)
         at oracle.jdevimpl.webapp.model.content.dom.xml.XElement._getAttributeValue(XElement.java:176)
         at oracle.jdevimpl.webapp.model.content.dom.xml.XElement.getAttributeValue(XElement.java:146)
         at oracle.jdevimpl.webapp.model.content.dom.xml.XElement.getAttributeValue(XElement.java:141)
         at oracle.jdevimpl.webapp.model.content.dom.view.proxy.ONodeProxy.getAttributeValue(ONodeProxy.java:124)
         at oracle.jdevimpl.webapp.model.css.html.LinkedStyleSheet.getHref(LinkedStyleSheet.java:120)
         at oracle.jdevimpl.webapp.model.css.html.LinkedStyleSheet.getProducer(LinkedStyleSheet.java:230)
         at oracle.jdevimpl.webapp.model.css.html.LinkedStyleSheet.getResourceProducer(LinkedStyleSheet.java:133)
         at oracle.jdevimpl.webapp.editor.StyleSheetChangeObserver.addStyleNodeObservers(StyleSheetChangeObserver.java:96)
         at oracle.jdevimpl.webapp.editor.StyleSheetChangeObserver.startListening(StyleSheetChangeObserver.java:80)
         at oracle.jdevimpl.webapp.editor.StyleSheetChangeObserver.activate(StyleSheetChangeObserver.java:70)
         at oracle.jdevimpl.webapp.editor.StyleSheetChangeObserver.activate(StyleSheetChangeObserver.java:54)
         at oracle.jdevimpl.webapp.editor.AbstractWebAppEditor.attachStyleSheetObservers(AbstractWebAppEditor.java:1434)
         at oracle.jdevimpl.webapp.editor.AbstractWebAppEditor.postViewDocumentActivated(AbstractWebAppEditor.java:1271)
         at oracle.jdevimpl.webapp.editor.AbstractWebAppEditor.activateViewDocument(AbstractWebAppEditor.java:1239)
         at oracle.jdevimpl.webapp.editor.AbstractWebAppEditor.createDocuments(AbstractWebAppEditor.java:1174)
         at oracle.jdevimpl.webapp.editor.AbstractWebAppEditor.open(AbstractWebAppEditor.java:364)
         at oracle.jdevimpl.webapp.editor.html.HtmlEditor.open(HtmlEditor.java:172)
         at oracle.jdevimpl.webapp.editor.jsp.JspEditor.open(JspEditor.java:113)
         at oracle.ideimpl.editor.EditorState.openEditor(EditorState.java:240)
         at oracle.ideimpl.editor.EditorState.createEditor(EditorState.java:148)
         at oracle.ideimpl.editor.EditorState.getOrCreateEditor(EditorState.java:91)
         at oracle.ideimpl.editor.SplitPaneState.canSetEditorStatePos(SplitPaneState.java:231)
         at oracle.ideimpl.editor.SplitPaneState.setCurrentEditorStatePos(SplitPaneState.java:194)
         at oracle.ideimpl.editor.TabGroupState.createSplitPaneState(TabGroupState.java:103)
         at oracle.ideimpl.editor.TabGroup.addTabGroupState(TabGroup.java:278)
         at oracle.ideimpl.editor.EditorManagerImpl.createEditor(EditorManagerImpl.java:1261)
         at oracle.ideimpl.editor.EditorManagerImpl.createEditor(EditorManagerImpl.java:1196)
         at oracle.ideimpl.editor.EditorManagerImpl.openEditorInFrame(EditorManagerImpl.java:1077)
         at oracle.ideimpl.editor.EditorManagerImpl.openDefaultEditorInFrame(EditorManagerImpl.java:1036)
         at oracle.adfdt.controller.util.CommonUtils.showEditor(CommonUtils.java:575)
         at oracle.adfdt.controller.jsf.diagram.shape.PageNode.gotoPage(PageNode.java:347)
         at oracle.adfdt.controller.diagram.model.MenuActions.gotoPage(MenuActions.java:459)
         at oracle.adfdt.controller.diagram.model.MenuActions.access$200(MenuActions.java:23)
         at oracle.adfdt.controller.diagram.model.MenuActions$2.onCheckedCmdUIEvent(MenuActions.java:174)
         at oracle.bm.diagrammer.cmdUI.CmdUIReceiver$Checked.onCmdUIEvent(Unknown Source)
         at oracle.bm.diagrammer.BaseDiagram$14.onCmdUIEvent(Unknown Source)
         at oracle.bm.addinUtil.IDEAppContext.handledElseWhere(Unknown Source)
         at oracle.bm.addinUtil.IDEAppContext.onCmdUI(Unknown Source)
         at oracle.bm.addinUtil.IDEAppContext.handleEvent(Unknown Source)
         at oracle.ide.controller.IdeAction.performAction(IdeAction.java:525)
         at oracle.ide.controller.IdeAction$1.run(IdeAction.java:772)
         at oracle.ide.controller.IdeAction.actionPerformedImpl(IdeAction.java:789)
         at oracle.ide.controller.IdeAction.actionPerformed(IdeAction.java:498)
         at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1849)
         at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2169)
         at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:420)
         at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:258)
         at javax.swing.AbstractButton.doClick(AbstractButton.java:302)
         at javax.swing.plaf.basic.BasicMenuItemUI.doClick(BasicMenuItemUI.java:1000)
         at javax.swing.plaf.basic.BasicMenuItemUI$Handler.mouseReleased(BasicMenuItemUI.java:1041)
         at java.awt.Component.processMouseEvent(Component.java:5488)
         at javax.swing.JComponent.processMouseEvent(JComponent.java:3126)
         at java.awt.Component.processEvent(Component.java:5253)
         at java.awt.Container.processEvent(Container.java:1966)
         at java.awt.Component.dispatchEventImpl(Component.java:3955)
         at java.awt.Container.dispatchEventImpl(Container.java:2024)
         at java.awt.Component.dispatchEvent(Component.java:3803)
         at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4212)
         at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3892)
         at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3822)
         at java.awt.Container.dispatchEventImpl(Container.java:2010)
         at java.awt.Window.dispatchEventImpl(Window.java:1774)
         at java.awt.Component.dispatchEvent(Component.java:3803)
         at java.awt.EventQueue.dispatchEvent(EventQueue.java:463)
         at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:242)
         at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:163)
         at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:157)
         at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:149)
         at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)
    Action
    If further errors occur, you should restart the application.
    Also, report the problem on the JDeveloper forum on otn.oracle.com, or contact Oracle support, giving the information from this message.
    ________________________________________________________________________________

    I'm having the same problem in Business Objects 4 BI Launch Pad with reports that were created in CR 2011.
    The viewer could not process an event. Error in File Buyer Status:
    Encapsulating page failed. []
    Error code:0 [CRWEB00000119]
    The interesting thing is that I have a test platform where all my reports work correctly.  However, all these reports fail with the error message on my production platform.
    On the production platform, I can run these reports from CMC without any errors.  I suspect that something about my Single Sign-On to database configuration is not correct.
    So far, I have been unable to detect any significant differences between the working test platform and the failing production platform.

  • WebRFC - clearing cache after making changes in SAP

    I'm finding that as I make changes to my Functional Modules in SAP, and then try to test them from Personas, I can not pick up the new version until I log right out of NWBC and the log back in again .... there has to be a faster way .... right?
    Any tips much appreciated.
    Regards.
    patrick

    No, you don't need to clear the cache. You only have to reconfigure your domain through the psadmin menu.
    Nicolas.

  • Firefox will not respond after restarting my computer after making changes in the cookies and history settings

    I make some changes with cookies and cleared my history for today...and then restarted my computer...now firefox will not open...will not respond...should I uninstall firefox and then reinstall it?
    If I uninstall firefox will the changes I made with the cookies and my history be reversed?
    If I were to uninstall and then reinstall firefox will I loose my bookmarks if I do this? or does firefox remember them...so when I reinstall the previous bookmarks are reinstalled too?

    Does Firefox starts up when you first open it after rebooting the computer but hangs the next time you try to start it? If so, then there's a [https://bugzilla.mozilla.org/show_bug.cgi?id=1005487 bug] in Firefox 29 where Firefox hangs on exit when the setting "Clear history when Firefox closes" is selected, so that you get an "already running but not responding" error the next time you ttry to start it. In that case, end the firefox.exe process in the Windows Task Manager (or reboot the computer) then reset your Firefox Privacy options and UNCHECK the option "Clear history when Firefox closes". See this article for details:
    [[Settings for privacy, browsing history and do-not-track]]
    If that's not the problem and Firefox still not open even after rebooting the computer then try starting in Firefox Safe Mode by holding down the shift key while starting Firefox. If Firefox starts then see the [[Troubleshoot extensions, themes and hardware acceleration issues to solve common Firefox problems]] article to narrow down the cause.

  • Why are my addresses disappearing on my events after making changes?

    I have addresses disappearing on my calendar after I make a change to an event. For instance: I make an error with a house number so I make the change. After I click DONE, the whole address vanishes. Or, if I insert a phone number in notes, the address disappears. The only fix is to add the address last so that no entry causes the problem.

    I have addresses disappearing on my calendar after I make a change to an event. For instance: I make an error with a house number so I make the change. After I click DONE, the whole address vanishes. Or, if I insert a phone number in notes, the address disappears. The only fix is to add the address last so that no entry causes the problem.

  • How to save a PDF in Acrobat XI after making changes without changing the document name

    Whenever I work in Adobe Acrobat XI, I am forced to 'save as' when trying to save the changes I have just made.  I am unable to save the document under the same name I have been working on it under (the way you can do in every other program).  This happens every time I create form fields, merge or extract pages, add text, etc.  This is extremely annoying because then I have to go into my documents, delete the old version, and then rename the document I was working on.  HELP! I work in Acrobat every day creating and editing documents and there HAS to be a better way!

    CTRL+F brings up the search bar within the document. When I go to File --> Save (or CTRL+S) I receive an error message that states "The document could not be saved.  The file may be read-only, or another user may have it open.  Pelase save the document with a different name or in a different folder". This message pops up for EVERY document I have modified that I try to save.

  • How to validate data in editable ALV report after making changes

    Hi Folks,
    My requirement is to display data in ALV format with quantity field is editable. Once we get the data in display mode only quantity field is enabled right. I am going to make changes to that quantity field and updating that modifed value to the database table. Before updating databse table i want to validate the data for perticluar field which I edidted(Quantity).
    Can you guide me on this.
    Currently I am using FM: GET_GLOBALS_FROM_SLVC_FULLSCR and calling the method CHECK_CHANGED_DATA.
    I want to validate the quantity data.
    If I entered negative value like -100 instead of 100. It should validate and show some popup screen or message.
    Pls guide me on this or give some code to do that.
    Thanks&Regards,
    Surendra

    Hey Surendra,
    Check if this helps: Link:[Click here|Edit Field in Oops Alv;
    There are many posts available for this requirement. Please look SDN/web for same.
    Regards,
    Santosh

  • How can I regain control of .bash_profile after making changes to $PATH?

    Hi,
    Today, I installed Android ADB on my MBP (late 2013) and used the following guide to get it started: http://www.droidviews.com/a-comprehensive-guide-to-adb-android-debug-bridge-and- commands/ - that guide said I should make a change to ~/bash_profile in order to get the settings right. Here's what I did (copied from the link):
    Open terminal window and type following: nano ~/.bash_profile
    This shall open the .bash_profile file. Now enter the following line to define ADB path. export PATH=${PATH}:~/android-sdk-macosx/tools export PATH=${PATH}:~/android-sdk-macosx/platform-tools
    Then, I saved and closed the terminal window.
    Now, I cannot use a lot of terminal commands anymore - sudo, latex, rm, all only give me:
    -bash: latex: command not found
    If I try to access ~/.bash_profile, I get the following error:
    -bash: /Users/richard/.bash_profile: Permission denied
    I tried this:
    RMBP:~ richard$ echo $PATH
    {PATH}:/Users/richard/android-sdk-macosx/platform-tools
    which only shows me that I have changed the path.
    Is there any way I can regain access to the .bash_profile file and control over the Terminal in general?
    Any help would be highly appreciated, thanks in advance!

    I solved the problem, it seems, by doing the following:
    I found the defective .bash_profile file by using Omni Disk Sweeper, and deleted it right away. Someone else here in the support forum had a similar problem and solved it this way, so that's how I got the idea. The Terminal works nicely now and no other signs of trouble have come up yet.

  • Cannot save two home pages on FF 24 after making changes as instructed, reseting FF and enabling cookies as it instructs. How can I do this? I can do it in IE

    I have had remote control of my computer with specialists at Silicon Valley and they cannot change the necessary settings and have them saved either. Have talked to numerous people at Xfinity (I am changing from AT&T to Comcast). Xfinity cannot help either. They said to email Firefox.
    I can save my home page as well as another one for emails in IE for Yahoo but not Xfinity. Xfinity has tab come up that says "enable cookies." I have done everything to get the two home pages to open upon startup of FF in Xfinity but cannot do it.
    Is there any help?

    Did you try to set the home pages via Firefox/Tools > Options > General?
    If you only open both pages in tabs then you can click the "Use Current Pages "button.
    *https://support.mozilla.org/kb/How+to+set+the+home+page
    You can remove all data stored in Firefox from a specific domain via "Forget About This Site" in the right-click context menu of an history entry ("History > Show All History" or "View > Sidebar > History") or via the about:permissions page.
    Using "Forget About This Site" will remove all data stored in Firefox from that domain like bookmarks, cookies, passwords, cache, history, and exceptions, so be cautious and if you have a password or other data from that domain that you do not want to lose then make a note of those passwords and bookmarks.
    You can't recover from this 'forget' unless you have a backup of the involved files.
    It doesn't have any lasting effect, so if you revisit such a 'forgotten' website then data from that website will be saved once again.
    Create a new profile as a test to check if your current profile is causing the problems.
    See "Creating a profile":
    *https://support.mozilla.org/kb/profile-manager-create-and-remove-firefox-profiles
    *http://kb.mozillazine.org/Standard_diagnostic_-_Firefox#Profile_issues
    If the new profile works then you can transfer some files from an existing profile to the new profile, but be cautious not to copy corrupted files to avoid carrying over the problem.
    *http://kb.mozillazine.org/Transferring_data_to_a_new_profile_-_Firefox

Maybe you are looking for

  • Absence quota generation with PCR in Time Evaluation

    Dear All, I am generation absence quota Annual leave = 50 through PT60- ZM04. Its daily calculation and transfered at the month end. The quota entitlement is 30 days per year. I have written this pcr. Have configured a time type too. but not sure why

  • Opening workitem when a link in mail is clicked

    Hi I have requirement, where user wants to open the workitem in the UWL when he clicks on the link in the his outlook mail. Thanks and Regards, Vijay.

  • Webdynpro vs URL - iViews

    Hi all, What is the difference between WebDynpro iView and URL iView pointing to a WebDynpro application? any advantages? disadvantages? Aviad

  • Export as qt movie ... no video?

    Hey everyone, This is weird.  I exported as a qt movie. Did not try to burn on dvd but just clicked on my file and only heard audio... no video? Thanks in advance for your help kfcman

  • Error 50 in iTunes 9.0.2

    For the past several days I am unable to access the iTunes store from iTunes. As soon as I start iTunes and click on the iTunes store link on the left, I get a "One Moment Please, Connecting to the iTunes Store...Loading" and it just sits there. If I