Getting error with Log4j

Hi,
Not sure if this is the right place to post this as it is a problem with log4j really and not java. Let me know if this needs moving.
Here goes:
I have a servlet in tomcat that uses log4j to log details, this works fine on all the systems at home and work, but I get the following error when it is run on our customers site:
log4j: No appenders could be found for category (some.category.name).
log4j: Please initialize the log4j system properly.
I have looked this up on log4j's website, they give the following advice:
Log4j does not have a default logging target. It is the user's responsibility to ensure that all categories can inherit an appender. This can be easily achieved by attaching an appender to the root category.
This works fine off site? I have the following log4j.properties in the WEB-INF/classes dir in tomcat:
log4j.rootCategory=DEBUG, dest1
log4j.appender.dest1=org.apache.log4j.FileAppender
log4j.appender.dest1.file=/rmx.log
log4j.appender.dest1.layout=org.apache.log4j.PatternLayout
log4j.appender.dest1.layout.ConversionPattern=%-5p %l %x: %m%nAny ideas?
Thanks in advance.
Phil Maskell

I have added code similar to what you suggested,
being deployed on Tomcat I get the following:
java.class.path=C:\Program Files\Apache Group\Tomcat
5.5\bin\bootstrap.jar
Is this what I should get? This is on my working
system.That was probably not a good test (in hindsight). Tomcat's classpath is evidently not where its servlet classloader looks for classes.
My log4j code uses a logFactory, in a final class,
will this have any effect on the class path?The fact that the class is final will have no effect on any classloading. I doubt whether a logfactory will either, but I don't know what that is.
P.S I could post my Logger.java, but stupid thing is
it works fine on all my systems, just not on the
customers :(I put my log4j.properties in the web app's WEB-INF/classes directory, just like you did. If your customer's system is not working the same as yours then you are probably wasting your time looking at Java code. The two systems are not configured the same and you need to find the difference.

Similar Messages

  • SharePoint Designer 2013 after installation getting error with runtime i.e. error writing to file Microsoft.SharePoint.Client.Runtime.Local.Resources.dll Verify that you have access to that directory

    SharePoint Designer 2013 after installation getting error with runtime i.e. error writing to file Microsoft.SharePoint.Client.Runtime.Local.Resources.dll Verify that you have access to that directory
    after retry..again SharePoint Designer requires the following component require to install Microsoft.NET framework version 4 i have downloaded and try to installed but fail not work please answer what to do?
    Thanks and Regards, Rangnath Mali

    Hi Rangnath,
    For running SharePoint Designer 2013, you need to install Microsoft .NET 4.0 Framework or higher.
    Please uninstall the Microsoft .NET 4.0 Framework, and install it again. After that, reboot your machine.
    Best Regards,
    Wendy
    Wendy Li
    TechNet Community Support

  • Import of credit card data(tcode PRCC) getting error with currency

    Hi Everyone,
    Here is one query regarding Credit Card Clearing in Travel Management.
    We were initially using KR files for uploading SAP specific credit card Transactional data to employee buffer and it contained data for only US employees with currency as US. Now we are migrating to use GL1025 files with employees from multiple countries and multiple currency. But the Service Provider (American Express) is sending transactional details with billed currency as USD for all employees(even for employees from other country). On processing the file in PRCC we are getting the below error for non US employees.
    Do we have any configurations or something that needs to be maintained inorder to allow this?
    Awaiting response.
    Thanks in advance...
    Regards
    Binshi

    Hi All,
    For my above requirement, I made two configuration changes and the transaction details are getting loaded with out any error.
    1) Changed the 'Settlement of foreign currency receipts" to 'hard currency' for the trip provision variant in global settings under control parameters for Travel expenses.
    2) Maintained hard currency as USD for the other country(non US) in country settings. non US employee receipts got loaded in buffer in currency USD as required.
    With this configuration change, even the posting document  for all foreign currency receipts including AMEX receipts were created in USD.But our requirement was to make payment for all AMEX receipts in USD and other foreign currency receipts in the employee local currency.
    So we just tried with the third  option for configuration 1. Changed the 'Settlement of foreign currency receipts" to 'choose Between Trip currency and Hard currency per receipt'.
    Now with this, foriegn currency receipts of the employee posting document getting created in employee local currency and AMEX receipts in USD. But we are confused how the currency for posting document is being selected with this option 3. Could anyone help us please??
    Thanks & Regards
    Binshi

  • Getting Error with date parameter field -"Invalid DATE"

    Hi
    I created a report with 9.2 version. And  i created 2 date parameter fields in it. And within crystal reports it works fine.
    But If, I call from the VS2005 crystalreport.net(report document) SDK , i am getting error as Invalid Date" enter a Date Value". Actually it is a dtp control. how can i modify it.

    <p>There&#39;s not enough details to get a good understanding of your scenario, but it sounds like you&#39;re using some kind of date control to retrieve the date value and pass it to the report&#39;s parameter field at runtime. </p><p>If this is correct, it sounds like the format of the date value from the control may not be what the report is expecting. To debug, I would first use hardcoded values when you set the report parameter fields to see what works. Then compare that to what the return value is from the control to see if they match. I suspect the formats differ. </p><p>I did a quick search on the BOBJ kbase and found a couple of articles that may help you. I recommend searching as there are lots of information on how to set parameter fields at runtime. </p><p><span style="margin-left: 5px"><a href="http://technicalsupport.businessobjects.com/KanisaSupportSite/search.do?cmd=displayKC&docType=kc&externalId=c2010247&sliceId=&dialogID=8582434&stateId=1 0 8584068" target="_blank">c2010247</a></span><span style="margin-left: 5px"><span style="margin-left: 5px"><a href="http://technicalsupport.businessobjects.com/KanisaSupportSite/search.do?cmd=displayKC&docType=kc&externalId=c2010251&sliceId=&dialogID=8582434&stateId=1 0 8584068" target="_blank">c2010251</a></span></span></p><p>-MJ</p>

  • Getting error with Oracle10g Express using SQLPlus?

    I just installed Oracle10g Express on Linux FC6.
    I get errors in Java and SQLPlus when trying to connect to the database, or start it.
    In SQLPlus as "sysdba" when I type "startup" I get this error...
    ORA-27100: shared memory realm already exists
    And in Java or SQLPlus when I try to connect as a valid user I get this error...
    ORA-01034: ORACLE not available
    ORA-27123: unable to attach to shared memory segment
    Please help me.

    Have you set the environment with
    . /usr/lib/oracle/xe/app/oracle/product/10.2.0/server/bin/oracle_env.sh?
    C.

  • Getting error with selectSingleNode in XML DOM

    I have some pages that utilitize the following in XML DOM:
    loadXML
    selectSingleNode
    getElementsByTagName
    I am using JavaScript. I am getting "undefined" errors. Anyone know the proper syntax/capitalization for these methods when using Safari. I had a similiar error with IE 7.0 and posting via an xmlHTTPPost. The problem there was capitalization of one of the methods.
    Thanks.
    Peter

    Hi,
    See below examples..
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/01a57f0b-0501-0010-3ca9-d2ea3bb983c1
    http://www.troobloo.com/tech/xslt.toc.shtml
    http://www.w3schools.com/xsl/
    http://www.w3.org/TR/xslt
    http://help.sap.com/saphelp_nw04/helpdata/en/73/f61eea1741453eb8f794e150067930/frameset.htm
    https://sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/xi/xi-code-samples/generic%20xslt%20mapping%20in%20sap%20xi%2c%20part%20i.pdf
    /people/anish.abraham2/blog/2005/12/22/file-to-multiple-idocs-xslt-mapping
    Required XSLT Mapping tips!
    Regards
    Chilla..

  • Getting error with word wrap

    So this is the error im getting:
    Error: Error #1502: A script has executed for longer than the default timeout period of 15 seconds.
              at flashx.textLayout.elements::FlowElement/getAbsoluteStart()[C:\Vellum\branches\v1\1.0\dev\ output\openSource\textLayout\src\flashx\textLayout\elements\FlowElement.as:960]
              at flashx.textLayout.compose::TextFlowLine/get location()[C:\Vellum\branches\v1\1.0\dev\output\openSource\textLayout\src\flashx\textLayo ut\compose\TextFlowLine.as:262]
              at flashx.textLayout.compose::ComposeState/createTextLine()[C:\Vellum\branches\v1\1.0\dev\ou tput\openSource\textLayout\src\flashx\textLayout\compose\ComposeState.as:369]
              at flashx.textLayout.compose::ComposeState/composeNextLine()[C:\Vellum\branches\v1\1.0\dev\o utput\openSource\textLayout\src\flashx\textLayout\compose\ComposeState.as:295]
              at flashx.textLayout.compose::BaseCompose/composeParagraphElementIntoLines()[C:\Vellum\branc hes\v1\1.0\dev\output\openSource\textLayout\src\flashx\textLayout\compose\BaseCompose.as:3 45]
              at flashx.textLayout.compose::ComposeState/composeParagraphElement()[C:\Vellum\branches\v1\1 .0\dev\output\openSource\textLayout\src\flashx\textLayout\compose\ComposeState.as:264]
              at flashx.textLayout.compose::BaseCompose/composeBlockElement()[C:\Vellum\branches\v1\1.0\de v\output\openSource\textLayout\src\flashx\textLayout\compose\BaseCompose.as:219]
              at flashx.textLayout.compose::BaseCompose/composeInternal()[C:\Vellum\branches\v1\1.0\dev\ou tput\openSource\textLayout\src\flashx\textLayout\compose\BaseCompose.as:322]
              at flashx.textLayout.compose::ComposeState/composeInternal()[C:\Vellum\branches\v1\1.0\dev\o utput\openSource\textLayout\src\flashx\textLayout\compose\ComposeState.as:126]
              at flashx.textLayout.compose::BaseCompose/composeTextFlow()[C:\Vellum\branches\v1\1.0\dev\ou tput\openSource\textLayout\src\flashx\textLayout\compose\BaseCompose.as:288]
              at flashx.textLayout.compose::ComposeState/composeTextFlow()[C:\Vellum\branches\v1\1.0\dev\o utput\openSource\textLayout\src\flashx\textLayout\compose\ComposeState.as:102]
              at flashx.textLayout.compose::StandardFlowComposer/http://ns.adobe.com/textLayout/internal/2008::callTheComposer()[C:\Vellum\branches\v1\1.0\dev\output\openSource\textLayout\src\flashx\textLayout\compos e\StandardFlowComposer.as:678]
              at flashx.textLayout.compose::StandardFlowComposer/internalCompose()[C:\Vellum\branches\v1\1 .0\dev\output\openSource\textLayout\src\flashx\textLayout\compose\StandardFlowComposer.as: 758]
              at flashx.textLayout.compose::StandardFlowComposer/compose()[C:\Vellum\branches\v1\1.0\dev\o utput\openSource\textLayout\src\flashx\textLayout\compose\StandardFlowComposer.as:821]
              at flashx.textLayout.container::TextContainerManager/compose()[C:\Vellum\branches\v1\1.0\dev \output\openSource\textLayout\src\flashx\textLayout\container\TextContainerManager.as:1205 ]
              at flashx.textLayout.container::TextContainerManager/updateContainer()[C:\Vellum\branches\v1 \1.0\dev\output\openSource\textLayout\src\flashx\textLayout\container\TextContainerManager .as:1292]
              at spark.components::RichEditableText/updateDisplayList()[E:\dev\4.0.0\frameworks\projects\s park\src\spark\components\RichEditableText.as:2605]
              at mx.core::UIComponent/validateDisplayList()[E:\dev\4.0.0\frameworks\projects\framework\src \mx\core\UIComponent.as:8531]
              at mx.managers::LayoutManager/validateClient()[E:\dev\4.0.0\frameworks\projects\framework\sr c\mx\managers\LayoutManager.as:932]
              at mx.core::UIComponent/validateNow()[E:\dev\4.0.0\frameworks\projects\framework\src\mx\core \UIComponent.as:7631]
              at spark.components::DataGroup/getVirtualElementAt()[E:\dev\4.0.0\frameworks\projects\spark\ src\spark\components\DataGroup.as:1430]
              at layouts::SemiCarouselLayout/updateDisplayListVirtual()[C:\ColdFusion9\wwwroot\com\schooli mprovement\pd360\layouts\SemiCarouselLayout.as:745]
              at layouts.supportClasses::NavigatorLayoutBase/updateDisplayList()[C:\ColdFusion9\wwwroot\co m\schoolimprovement\pd360\layouts\supportClasses\NavigatorLayoutBase.as:400]
              at layouts.supportClasses::PerspectiveNavigatorLayoutBase/updateDisplayList()[C:\ColdFusion9 \wwwroot\com\schoolimprovement\pd360\layouts\supportClasses\PerspectiveNavigatorLayoutBase .as:132]
              at layouts::SemiCarouselLayout/updateDisplayList()[C:\ColdFusion9\wwwroot\com\schoolimprovem ent\pd360\layouts\SemiCarouselLayout.as:716]
              at spark.components.supportClasses::GroupBase/updateDisplayList()[E:\dev\4.0.0\frameworks\pr ojects\spark\src\spark\components\supportClasses\GroupBase.as:1224]
              at spark.components::DataGroup/updateDisplayList()[E:\dev\4.0.0\frameworks\projects\spark\sr c\spark\components\DataGroup.as:1316]
              at mx.core::UIComponent/validateDisplayList()[E:\dev\4.0.0\frameworks\projects\framework\src \mx\core\UIComponent.as:8531]
              at mx.managers::LayoutManager/validateDisplayList()[E:\dev\4.0.0\frameworks\projects\framewo rk\src\mx\managers\LayoutManager.as:663]
              at mx.managers::LayoutManager/doPhasedInstantiation()[E:\dev\4.0.0\frameworks\projects\frame work\src\mx\managers\LayoutManager.as:736]
              at mx.managers::LayoutManager/doPhasedInstantiationCallback()[E:\dev\4.0.0\frameworks\projec ts\framework\src\mx\managers\LayoutManager.as:1072]
    From what I can tell I have several links and the end of my text flow they are formatted like this "2.nf.5" they reference to a code. If I add text to so that one of them kicks down to then next line the error goes away. also if I change the textAlign to justify it goes away as well. it looks like it has to do with the word wrap. If you have any suggestions or help that would be great thanks.

    "Error: Error #1502: A script has executed for longer than the default timeout period of 15 seconds." means there is an endless loop in getAbsoluteStart(). That is to say, one of the elements in the textflow has a incorrect '_parent'. You can debug to see if it's your fault or ours.

  • File not found error with log4j.properties

    Hi,
    I'm writing a web service on weblogic 8.1 with weblogic workshop.I have to use log4j-1.2.7 supplied by client with my application.I cannot write ant script manually.Also I cannot change server start script or cannot put any command line argument when the server starts.
    Now I require this logger in my EJB.I have kept log4j.properties in the same path where my EJB's are.But the final ear produced does not contain this log4j.properties and subsequently I get the error "log4j:ERROR Could not read configuration file [log4j.properties]."
    Please help me to resolve this problem so that log4j.properties goes with the final .ear file and the ejb code finds the logger.
    thanks,
    pratim

    Hello,
    I am having a similar problem. Did you find a solution?
    Thank you,
    Melissa
    "arunak" <[email protected]> wrote:
    >
    Hi Pratim,
    I am also facing the same problem. can u please let me know whenever
    u get the
    solution for this.
    Regards,
    Arunak
    Pratim <[email protected]> wrote:
    Hi,
    I'm writing a web service on weblogic 8.1 with weblogic workshop.Ihave
    to use log4j-1.2.7 supplied by client with my application.I cannot write
    ant script manually.Also I cannot change server start script or cannot
    put any command line argument when the server starts.
    Now I require this logger in my EJB.I have kept log4j.properties inthe
    same path where my EJB's are.But the final ear produced does not contain
    this log4j.properties and subsequently I get the error "log4j:ERROR
    Could not read configuration file [log4j.properties]."
    Please help me to resolve this problem so that log4j.properties goes
    with the final .ear file and the ejb code finds the logger.
    thanks,
    pratim

  • I am getting error with Fiscal Year Period

    Hi Gurus
    When i am loading data into Data Target from ODS i am getting this error
    Time conversion from 0CALDAY to 0FISCPER (fiscal year Z1 ) failed with value 02000801
    Can u please help me to solve this issue
    Thanks & Regards
    Mahi

    There is somthing wrong in 0calday value (02000801); it should be 20000801 fro first of augost 2000.
    Che data in your ODS.
    Hope it helps.
    Regards

  • I use blackboard, since the latest update to 3.6.14, I get errors with caching applets, use IE and works fine. Whats happened and what can I do to resolve it?

    Error Cache:
    Unable to update files in cache.
    Name: myApplet
    java.net.MalformedURLException: no protocol: jar/dragndrop_applet.jar
    I get a bunch of these Cache Errors. Happens with application only, its blackboard hosted by continuinged.uml.edu.
    Run the same thing using IE it has no problems. Firefox till the latest upgrade was also working fine.
    What can I do to resolve this problem?

    There's a bug in 3.6.14 with Java applets. 3.6.15 was released last Friday to fix that bug. Use '''Help > Check for Updates''' to start the update process to 3.6.15.

  • Attempting to create an interactive map with flash - getting errors with my actionscript

    I'm currently having an issue creating a set of buttons that are supposed to turn individual layers on and off.  The layers I have are: fishing spots, facilities, trails, map elements, an aerial photo, and parking lots.  It is giving error #s 1119 and 1120.  Could anyone explain possible reasons I'm getting these errors. 
    It might be worth mentioning that I used a tutorial made with Flash CS4, but I'm writing the code in CS5.  Here is the exact code I'm using:
    spots._visible = false;
    facilities._visible = false;
    parking._visible = false;
    elements._visible = true;
    aerial._visible = false;
    trails._visible = false;
    displayedSpots._visible = false;
    displayedFacs._visible = false;
    displayedTrails._visible = false;
    displayedEles._visible = true;
    displayedAerial._visible = false;
    displayedPark._visible = false;
    fsbtn.onPress = function() {
              if (spots._visible == false) {
                        spots._visible = true;
                        displayedSpots._visible = true;
              } else {
                        spots._visible = false;
                        displayedSpots._visible = false;
    facbtn.onPress = function() {
              if (facilities._visible == false) {
                        facilities._visible = true;
                        displayedFacs._visible = true;
              } else {
                        facilities._visible = false;
                        displayedFacs._visible = false;
    trbtn.onPress = function() {
              if (trails._visible == false) {
                        trails._visible = true;
                        displayedTrails._visible = true;
              } else {
                        trails._visible = false;
                        displayedTrails._visible = false;
    mebtn.onPress = function() {
              if (elements._visible == false) {
                        elements._visible = true;
                        displayedEles._visible = true;
              } else {
                        elements._visible = false;
                        displayedEles._visible = false;
    aebtn.onPress = function() {
              if (aerial._visible == false) {
                        aerial._visible = true;
                        displayedAerial._visible = true;
              } else {
                        aerial._visible = false;
                        displayedAerial._visible = false;
    pbtn.onPress = function() {
              if (parking._visible == false) {
                        parking._visible = true;
                        displayedPark._visible = true;
              } else {
                        parking._visible = false;
                        displayedPark._visible = false;

    Only thing i see is that you are using == instead of = , Fixed Example...
    fsbtn.onPress = function() {
              if (spots._visible = false) {
                        spots._visible = true;
                        displayedSpots._visible = true;
              } else {
                        spots._visible = false;
                        displayedSpots._visible = false;
    == Is used for equality.
    = Is used for setting a value or in this case checking a value.

  • Getting errors with tag lib using Web Service

    I have created a web service client in my WEB-INF/classes catalogue. Im having problems because i get this error message when I compile:
    myServices/myCardValidate$Documents/verifyCreditCard_SOAPXML.jsp [-1:-1] This absolute uri (http://java.sun.com/jstl/core) cannot be resolved in either web.xml or the jar files deployed with this application
    myServices/myCardValidate$Documents/verifyCreditCard_TAGLIB.jsp [-1:-1] File "/WEB-INF/Service1Soap.tld" not found
    Errors compiling Web module compiling..
    anyone got a clue ?
    My other .jsp pages located in the WEB-INF catalogue has the http://java.sun.com/jstl/core uri and works fine...
    thanks in advance..

    Answering my own post to help others with the same problem:
    Im using Sun One Studio 5. What causes the error is that Sun Studio generates by default presentation jsp's etc. for the Web service client. At the properties tab of the client I set the Generate presentation parameter to False. No presentation jsp's are now generated and compiling and deployment of the web module works out fine.
    yours Aqoiiye

  • Error with LOG4J, in 10G compilation

    Hi Everyone,
    Please I need Help I try to load Log4J en Database 10G, When I try to compile the class in toad, or in database, sende a message error the class are:
    ORA-29521: referenced name javax/management/RuntimeOperationsException could not be found
    ORA-29521: referenced name javax/management/AttributeList could not be found
    ORA-29521: referenced name javax/management/Attribute could not be found
    ORA-29521: referenced name javax/management/DynamicMBean could not be found
    ORA-29521: referenced name javax/management/MBeanRegistration could not be found
    ORA-29521: referenced name javax/management/MBeanException could not be found
    ORA-29521: referenced name javax/management/ReflectionException could not be found
    ORA-29521: referenced name javax/management/AttributeNotFoundException could not be found
    ORA-29521: referenced name javax/management/InvalidAttributeValueException could not be found
    ORA-29521: referenced name javax/management/MBeanServer could not be found
    ORA-29521: referenced name javax/management/ObjectName could not be found
    ORA-29521: referenced name javax/management/MBeanInfo could not be found
    I dont now what to do, if enyone know what cause this error, I try to update the JDK in data base to 1.5 but I dontknow to do.

    Alcides,
    For your information, the Oracle 10g database embedded JVM is compatible with java 1.4 and so supports logging. Hence no real need to install Log4j.
    As far as I know, you cannot upgrade the Oracle database embedded JVM.
    (See your How Install JDK 1.5 in Data Base Oracle 10G, urgent pleeeeese.)
    Certainly looks like the version of Log4j you are trying to use is compatible with java 1.5, so if you insist on using Log4j, you'll have to use a version that is compatible with java 1.4. Sorry :-(
    By the way, I think the Java in the Oracle Database forum is the most appropriate for your question.
    Good Luck,
    Avi.

  • Dynamic Change event getting error with cascading LOV's

    Hi all,
    In my application (v4.0.0), I have two sets of cascading drop-down select lists, these each make up a date (year, month, day) plus a time value (not cascading).
    I also have a dynamic action that gets the hours difference between the two dates set above. This fires on the change event.
    When I change, say the month drop-down, the day list is refreshed. But before it is refreshed, it looks to be emptied and the change event fires. I then get an error from the dynamic action because the day value passed to the query is empty (confirmed when looking at POST data).
    Can anyone think of a workaround idea for this? e.g. a way to set the dynamic action to conditional?
    Thanks!

    Hi Peter
    Thanks for the tip, I have tried this and it has helped, although not solved the problem. I was originally getting two errors appear ("AJAX call returned server error ORA-01843: not a valid month for Set Value.") and this has removed one of them...
    When looking in Firebug, it seems to me that although the dynamic actions (cascading update + set value) are running one before the other, the values aren't updated in order. e.g. the cascading update is not applied before the set value action is run.
    Could this be a bug with dynamic actions?

  • Getting error as :  log4j : WARN No appenders could be found for logger

    Hi all,
    I am using IBM - Rational Application Developer (RAD) for the development of my project service task.
    I am trying to use log4j to log various events like errors and warnings and so on ....
    But I am getting following errors in console window of RAD :
    {color:#ff0000}
    [8/5/08 10:12:18:001 IST] 00000038 SystemErr R log4j:WARN No appenders could be found for logger (VINValidationService).
    [8/5/08 10:12:18:001 IST] 00000038 SystemErr R log4j:WARN Please initialize the log4j system properly.{color}
    If you have any clue regarding how to get out of this then it would be of great help to me .... please reply soon ....!
    (Please note that I have tried all the ways of setting CLASSPATHS and BUILDPATHS in the RAD) .
    --- Thanking you in advance ...
    Akshay_L.

    You could read these to get some hints [http://www.google.co.uk/search?q=%22Please+initialize+the+log4j+system+properly.%22]
    The first reply to the first hit on google says "log4j.properties needs to be on the classpath where log4j can find it.".
    You can set the system property if you wish but the classpath approach is the easiest in my opinion.

Maybe you are looking for