Log4j error

Hi Team,
I have seeing this error in our weblogic engine logs. Also the logs are not getting updated due to below error.
Looks like there is some issues with the configuration.
Let me know should you require any further information.
Any help on this will be highly apprecited.

Hi,
Can you please provide the error.
Also would like to know whether you have added the Log4J component additionally to the project or are utilising the logging provided within the BPM?

Similar Messages

  • Log4j Error while deploying application in weblogic

    Hi All,
    I am deploying one web application in weblogic, which uses log4j jar file to write logs. But ahile deploying it shows the following error in weblogic console.
    Please help on this.
    log4j:ERROR A "org.apache.log4j.RollingFileAppender" object is not assignable to a "org.apache.log4j.Appender" variable.
    log4j:ERROR The class "org.apache.log4j.Appender" was loaded by
    log4j:ERROR [sun.misc.Launcher$AppClassLoader@169e11] whereas object of type
    log4j:ERROR "org.apache.log4j.RollingFileAppender" was loaded by [weblogic.utils.classloaders.ChangeAwareClassLoader@169baee finder: weblogic.utils.classloaders.CodeGenClassFinder@44c4a4 annotation: Server@Server].
    log4j:ERROR Could not instantiate appender named "log".
    log4j:WARN No appenders could be found for logger (com.servion.citigreece.util.LoggerUtil).
    log4j:WARN Please initialize the log4j system properly.
    Thanks & Regards,
    Raja Mohammed.

    Seems like a classic case of having log4j both in the war and the app-server's own libraries.
    At least in JBoss this would be fixed by making sure that common/lib's log4j jar is being used (or alternatively, removing that and using the one in the war, but that might not go as smooth).

  • Log4j error when starting Tomcat

    Hi. I've just installed Tomcat on my desktop PC and when I try starting it up (startup.bat), I get the following warning:
    log4j:ERROR No appenders could be found for category (org.apache.struts.util.PropertyMessageResources).
    log4j:ERROR Please initialize the log4j system properly.
    I can still view my STRUTS app, but I'm curious to know why this problem is occuring and how it can be fixed.
    Thanks

    Log4j is fail-stop meaning that if the log4j system is not initialized properly, attempts to log will throw up this message initially. There is nothing 'broken' with Tomcat or logging, and no 'error' is occuring other than the fact that some of the code is trying to do logging but the logging has not been initialized properly.
    If you want to eliminate this message, you will need to provide a log4j configuration file. There probably already is one somewhere; it just isn't being read when the system is started.

  • Log4J Error Message

    Hello,
    I have this code:
    public static final String LOGGER_NAME="email_notifier_implementation";
    emailAppender=new SMTPAppender(new TriggeringEventEvaluator()
    public boolean isTriggeringEvent(LoggingEvent loggingEvent)     
    { return true; }
    logger=Logger.getLogger(LOGGER_NAME);
    logger.setLevel(Level.ALL);
    logger.addAppender(emailAppender);
    emailAppender.setSMTPHost(host);
    emailAppender.setFrom(from);
    emailAppender.setSubject(subject);
    emailAppender.setTo(buildEmailRecieversList(to));
    logger.log(Level.ALL,message); //message is an argument to the functionWhen I run it, I get an error:
    log4j:ERROR Message object not configured.
    Can somebody please explain me why this error is happening and how to fix it?
    Thanks.

    Double post
    http://forum.java.sun.com/thread.jspa?threadID=685425&
    tstart=0I am very sorry. When I sent it in the first time, it didn't respond and so I thought the post was not sent and I sent it again.
    Sorry...

  • Log4j:ERROR Message object not configured.

    while trying to use the SMTPAppender i got this message:
    log4j:ERROR Message object not configured.
    any idea?
    thank you

    It is unfortunte that this tops the Google serach
    result for the subject text. It is message like this
    that really pollutes all the good information that
    are found in the web space. Message like this not
    only perpetuates the "anti-social geek, I'm God and
    you're not" stereotype, but also alienates the next
    generation of aspired developers that this country is
    so in need of.Did you register an account just to insult a pretty well-dedicated group of volunteers here? These people offer to help people they don't know with absolutely no benefit to themselves except to further the process of learning. Maybe there' s a warm fuzzy stemming from the fact that the person whose question was answered might have learned something.
    If this is the type of asshat developer you would like to foster through the IT world, then you can try to put up with these people. People who are unwilling to communicate their problems do not deserve to have them solved. People who are simply attempting to skate by and be spoonfed through what's left of their mediocre careers can go elsewhere for help.
    Thank you for your answer, and I admire that you posted here after you solved your own problem. Just leave out the cheeky, holier-than-thou diatribe next time. Go to Javaranch if you want to chat about Java and have your hand held while you bumble around.

  • Log4j:ERROR Could not instantiate configurator

    I use
    -Dlog4j.configuratorClass=mypackage.Log4jConfigurator
    java option in startWeblogic command file
    to read changes in log4j-config.xml.
    After that I have in console.log
    og4j:ERROR A "mypackage.Log4jConfigurator" object is not assignable to a "org.apache.log4j.spi.Configurator" variable.
    log4j:ERROR The class "org.apache.log4j.spi.Configurator" was loaded by
    log4j:ERROR [weblogic.utils.classloaders.GenericClassLoader@544b02 finder: weblogic.utils.classloaders.CodeGenClassFinder@a0e9d7 annotatio
    n: consoleapp@] whereas object of type
    log4j:ERROR "mypackage.Log4jConfigurator" was loaded by [sun.misc.Launcher$AppClassLoader@12498b5].
    log4j:ERROR Could not instantiate configurator [mypackage.Log4jConfigurator].
    Could anybody help?

    Did you get a resolution? I have a similar problem with a different object, org.apache.log4j.spi.TriggeringEventEvaluator, which has been loaded by the Weblogic consoleapp. I am running in a standalone server configuration -- admin and application server are the same. Also, using exploded directories.
    Is there a way to prevent the WebLogic classloader from loading its version from the consoleapp?

  • Log4j:ERROR Failed to load driver

    I want to use log4j to log information,my jdk version is 1.5.0_06,and my oracle version is 9.2.0.1.0,my web.xml and servlet is follows:
    web.xml
    <servlet>          
    <display-name>LogServlet</display-name>
    <servlet-name>LogServlet</servlet-name>
    <servlet-class>
    test.a
    </servlet-class>
    <init-param>
    <param-name>log4j-config-file</param-name>
    <param-value>
    /WEB-INF/log4j.properties
    </param-value>
    </init-param>
    <load-on-startup>1</load-on-startup>
    </servlet>
    /*a.java*/
    package test;
    import java.io.*;
    import javax.servlet.*;
    import javax.servlet.http.*;
    import org.apache.log4j.*;
    public class a extends HttpServlet{
    public void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException{ }
    public void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException{ }
    public void init() throws ServletException{
    String prefix = getServletContext().getRealPath("/");
    String file = getServletConfig().getInitParameter("log4j-config-file");
    if (file != null) {
    PropertyConfigurator.configure(prefix + file);
    /*log4j.properties*/
    log4j.rootLogger=DEBUG,DATABASE
    log4j.addivity.org.apache=true
    log4j.appender.DATABASE.Threshold=INFO
    log4j.appender.DATABASE=org.apache.log4j.jdbc.JDBCAppender
    log4j.appender.DATABASE.URL=jdbc:oracle:thin:@192.1.1.2:1521:Ora
    log4j.appender.DATABASE.driver=oracle.jdbc.driver.OracleDriver
    log4j.appender.DATABASE.user=scott
    log4j.appender.DATABASE.password=tiger
    log4j.appender.DATABASE.sql=INSERT INTO test VALUES('%m')
    log4j.appender.DATABASE.layout=org.apache.log4j.PatternLayout
    When I start Tomcat,it raise following error:
    log4j:ERROR Failed to load driver
    java.lang.ClassNotFoundException: oracle.jdbc.driver.OracleDriver
    at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1352)
    at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1198)
    at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
    at java.lang.Class.forName0(Native Method)
    at java.lang.Class.forName(Class.java:164)
    at org.apache.log4j.jdbc.JDBCAppender.setDriver(JDBCAppender.java:351)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:585)
    at org.apache.log4j.config.PropertySetter.setProperty(PropertySetter.java:205)
    at org.apache.log4j.config.PropertySetter.setProperty(PropertySetter.java:164)
    at org.apache.log4j.config.PropertySetter.setProperties(PropertySetter.java:129)
    at org.apache.log4j.config.PropertySetter.setProperties(PropertySetter.java:96)
    at org.apache.log4j.PropertyConfigurator.parseAppender(PropertyConfigurator.java:654)
    at org.apache.log4j.PropertyConfigurator.parseCategory(PropertyConfigurator.java:612)
    at org.apache.log4j.PropertyConfigurator.configureRootCategory(PropertyConfigurator.java:509)
    at org.apache.log4j.PropertyConfigurator.doConfigure(PropertyConfigurator.java:415)
    at org.apache.log4j.PropertyConfigurator.doConfigure(PropertyConfigurator.java:316)
    at org.apache.log4j.PropertyConfigurator.configure(PropertyConfigurator.java:324)
    at test.a.init(a.java:20)
    at javax.servlet.GenericServlet.init(GenericServlet.java:211)
    at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1105)
    at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:932)
    at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3915)
    at org.apache.catalina.core.StandardContext.start(StandardContext.java:4176)
    at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:759)
    at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:739)
    at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:524)
    at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:910)
    at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:873)
    at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:474)
    at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1118)
    at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:310)
    at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
    at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1020)
    at org.apache.catalina.core.StandardHost.start(StandardHost.java:718)
    at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1012)
    at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:442)
    at org.apache.catalina.core.StandardService.start(StandardService.java:450)
    at org.apache.catalina.core.StandardServer.start(StandardServer.java:700)
    at org.apache.catalina.startup.Catalina.start(Catalina.java:551)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:585)
    at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:275)
    at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
    I have put all jar file of the directory C:\oracle\ora92\jdbc\lib,such as classes12.jar,classes12_g.jar,classes12dms.jar,classes12dms_g.jar,nls_charset11.jar,nls_charset12.jar,ocrs12.jar,ojdbc14.jar,ojdbc14_g.jar into the direcory tomcat5\webapps\ROOT\WEB-INF\lib
    But Tomcat still raise above error? Why? I am puzzled with it for a long time! Anybody meet with above question? Any idea will be appreciated!

    Well, classes12.zip is a fairly old driver, especially for JDK 1.5, and even for Oracle 9. So, I would first suggest visiting Oracle's JDBC driver download sie.
    If that fails, please post the code you are using to connect to your database (please do not post the real domain or your user name or password). :^)
    - Saish

  • Get a log4j error.

    I've installed axis and now every time I compile I
    get a log4j error.
    C:\Program Files\Java\jdk1.5.0\bin\javac Continental.java
    error: error reading c:\axis\lib\log4j.properties; java.util.ZipException: error in opening zip file
    1 errorWhy does javac try and read anything from axis? Why is it concerned
    with log4j?
    I am using Java 1.5.0
    The classpath is
    .;C:\Program Files\Java\jdk1.6.0\bin;C:\jakarta-tomcat-5.0.25\common\lib\servlet-api.jar;c:\jakarta-tomcat-5.0.25\common\lib\jsp-api.jar;c:\jakarta-tomcat-5.0.25\common\lib\commons-el.jar;C:\Program Files\Jade\lib\http.jar;C:\Program Files\Jade\lib\iiop.jar;C:\Program Files\Jade\lib\jade.jar;C:\Program Files\Jade\lib\jadeTools.jar;C:\Program Files\Jade\lib\Base64.jar;C:\axis\samples\userguide\example1\TestClient.java;%AXISCLASSPATH%The axisclasspath is
    %AXIS_LIB%\axis.jar;%AXIS_LIB%\commons-discovery-0.2.jar;%AXIS_LIB%\commons-logging-1.0.4.jar;%AXIS_LIB%\jaxrpc.jar;%AXIS_LIB%\saaj.jar;%AXIS_LIB%\log4j-1.2.8.jar;%AXIS_LIB%\wsdl4j-1.5.1.jar;%AXIS_LIB%\log4j.properties;%AXIS_LIB%\xml-apis.jar;%AXIS_LIB%\xercesImpl.jarThanks

    I've installed axis and now every time I compile I
    get a log4j error.
    C:\Program Files\Java\jdk1.5.0\bin\javac Continental.java
    error: error reading c:\axis\lib\log4j.properties; java.util.ZipException: error in opening zip file
    1 errorWhy does javac try and read anything from axis? Why is it concerned
    with log4j?
    I am using Java 1.5.0
    The classpath is
    .;C:\Program Files\Java\jdk1.6.0\bin;C:\jakarta-tomcat-5.0.25\common\lib\servlet-api.jar;c:\jakarta-tomcat-5.0.25\common\lib\jsp-api.jar;c:\jakarta-tomcat-5.0.25\common\lib\commons-el.jar;C:\Program Files\Jade\lib\http.jar;C:\Program Files\Jade\lib\iiop.jar;C:\Program Files\Jade\lib\jade.jar;C:\Program Files\Jade\lib\jadeTools.jar;C:\Program Files\Jade\lib\Base64.jar;C:\axis\samples\userguide\example1\TestClient.java;%AXISCLASSPATH%The axisclasspath is
    %AXIS_LIB%\axis.jar;%AXIS_LIB%\commons-discovery-0.2.jar;%AXIS_LIB%\commons-logging-1.0.4.jar;%AXIS_LIB%\jaxrpc.jar;%AXIS_LIB%\saaj.jar;%AXIS_LIB%\log4j-1.2.8.jar;%AXIS_LIB%\wsdl4j-1.5.1.jar;%AXIS_LIB%\log4j.properties;%AXIS_LIB%\xml-apis.jar;%AXIS_LIB%\xercesImpl.jarThanks

  • Log4j:ERROR Could not instantiate class [org.jboss.logging.util.OnlyOnceErr

    Hi,
    when i run my standalone application i am getting following error:
    I am using log4j-1.2.15.jar file.
    log4j:ERROR Could not instantiate class [org.jboss.logging.util.OnlyOnceErrorHandler].
    java.lang.ClassNotFoundException: org.jboss.logging.util.OnlyOnceErrorHandler
         at java.net.URLClassLoader$1.run(URLClassLoader.java:199)
         at java.security.AccessController.doPrivileged(Native Method)
         at java.net.URLClassLoader.findClass(URLClassLoader.java:187)
         at java.lang.ClassLoader.loadClass(ClassLoader.java:289)
         at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:274)
         at java.lang.ClassLoader.loadClass(ClassLoader.java:235)
         at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:302)
         at java.lang.Class.forName0(Native Method)
         at java.lang.Class.forName(Class.java:141)
         at org.apache.log4j.helpers.Loader.loadClass(Loader.java:179)
         at org.apache.log4j.helpers.OptionConverter.instantiateByClassName(OptionConverter.java:320)
         at org.apache.log4j.xml.DOMConfigurator.parseErrorHandler(DOMConfigurator.java:302)
         at org.apache.log4j.xml.DOMConfigurator.parseAppender(DOMConfigurator.java:266)
         at org.apache.log4j.xml.DOMConfigurator.findAppenderByName(DOMConfigurator.java:171)
         at org.apache.log4j.xml.DOMConfigurator.findAppenderByReference(DOMConfigurator.java:184)
         at org.apache.log4j.xml.DOMConfigurator.parseChildrenOfLoggerElement(DOMConfigurator.java:502)
         at org.apache.log4j.xml.DOMConfigurator.parseRoot(DOMConfigurator.java:471)
         at org.apache.log4j.xml.DOMConfigurator.parse(DOMConfigurator.java:921)
         at org.apache.log4j.xml.DOMConfigurator.doConfigure(DOMConfigurator.java:790)
         at org.apache.log4j.xml.DOMConfigurator.doConfigure(DOMConfigurator.java:696)
         at org.apache.log4j.helpers.OptionConverter.selectAndConfigure(OptionConverter.java:471)
         at org.apache.log4j.LogManager.<clinit>(LogManager.java:125)
         at org.apache.log4j.Logger.getLogger(Logger.java:105)
         at com.DSA.common.offline.batchjob.Job.<clinit>(Job.java:37)
    log4j:ERROR Could not create an Appender. Reported error follows.
    java.lang.ClassNotFoundException: org.jboss.logging.appender.DailyRollingFileAppender
         at java.net.URLClassLoader$1.run(URLClassLoader.java:199)
         at java.security.AccessController.doPrivileged(Native Method)
         at java.net.URLClassLoader.findClass(URLClassLoader.java:187)
         at java.lang.ClassLoader.loadClass(ClassLoader.java:289)
         at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:274)
         at java.lang.ClassLoader.loadClass(ClassLoader.java:235)
         at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:302)
         at java.lang.Class.forName0(Native Method)
         at java.lang.Class.forName(Class.java:141)
         at org.apache.log4j.helpers.Loader.loadClass(Loader.java:179)

    solved by adding file
    jboss-common.jar. to the classpath

  • Log4j:ERROR setFile(null,true) call failed.

    Hello
    I have Log4j.properties
    log4j.rootCategory = DEBUG, file ,ImportFileAppender , console
    log4j.appender.stdout.threshold = ERROR
    log4j.appender.stdout = org.apache.log4j.ConsoleAppender
    log4j.appender.stdout.layout = org.apache.log4j.PatternLayout
    log4j.appender.stdout.layout.ConversionPattern = %d{ABSOLUTE} %5p [%t] %c - %m%n
    log4j.appender.file.threshold = DEBUG
    log4j.appender.file.File = ${qtl.log.location}
    log4j.appender.file.MaxFileSize = 10MB
    log4j.appender.file.MaxBackupIndex = 10
    log4j.appender.file = org.apache.log4j.RollingFileAppender
    log4j.appender.file.layout = org.apache.log4j.PatternLayout
    log4j.appender.file.layout.ConversionPattern =%-5p|%-80m|%d%n
    log4j.appender.ImportFileAppender.threshold = DEBUG
    log4j.appender.ImportFileAppender.File = ${qtl.log.import}
    log4j.appender.ImportFileAppender = org.apache.log4j.RollingFileAppender
    log4j.appender.ImportFileAppender.layout = org.apache.log4j.PatternLayout
    log4j.appender.ImportFileAppender.layout.ConversionPattern = %-5p|%-80m|%d%n
    and i am giving ${qtl.log.location} through java file like this
    private static String LOG_4J_PROPERTY_FILE = "/src/com/impact/qtl12/commons/log4j.properties";
    logFileName     = "log-" + new SimpleDateFormat("yyyyMMdd-hhmm").format(new Date()) + ".log";
              logFilePath = dirString + "\\" + logFileName;;
    System.setProperty("qtl.log.location", logFilePath); //replacing ${qtl.log.location} by the logFilePath in log4j.properties String directory = System.getProperty("user.dir");
    PropertyConfigurator.configure(directory + LOG_4J_PROPERTY_FILE);
    when i run my program i get error of this type
    log4j:ERROR setFile(null,true) call failed.
    java.io.FileNotFoundException:
         at java.io.FileOutputStream.openAppend(Native Method)
         at java.io.FileOutputStream.<init>(Unknown Source)
         at java.io.FileOutputStream.<init>(Unknown Source)
         at org.apache.log4j.FileAppender.setFile(FileAppender.java:289)
         at org.apache.log4j.RollingFileAppender.setFile(RollingFileAppender.java:165)
         at org.apache.log4j.FileAppender.activateOptions(FileAppender.java:163)
         at org.apache.log4j.config.PropertySetter.activate(PropertySetter.java:256)
         at org.apache.log4j.config.PropertySetter.setProperties(PropertySetter.java:132)
         at org.apache.log4j.config.PropertySetter.setProperties(PropertySetter.java:96)
         at org.apache.log4j.PropertyConfigurator.parseAppender(PropertyConfigurator.java:654)
         at org.apache.log4j.PropertyConfigurator.parseCategory(PropertyConfigurator.java:612)
         at org.apache.log4j.PropertyConfigurator.configureRootCategory(PropertyConfigurator.java:509)
         at org.apache.log4j.PropertyConfigurator.doConfigure(PropertyConfigurator.java:415)
         at org.apache.log4j.PropertyConfigurator.doConfigure(PropertyConfigurator.java:316)
         at org.apache.log4j.PropertyConfigurator.configure(PropertyConfigurator.java:324)
         at com.impact.qtl12.imports.UI.CSVFile.QTL.main(QTL.java:964)
    log4j:ERROR setFile(null,true) call failed.
    Edited by: Mayur Mitkari on Jan 2, 2013 12:53 AM
    Edited by: Mayur Mitkari on Jan 2, 2013 12:54 AM
    Edited by: Mayur Mitkari on Jan 2, 2013 12:55 AM

    Mayur Mitkari wrote:
    I checked it out the directory existsReally? You have a directory 'src' in the root of your filesystem?
    /src/com/...EDIT: never mind, moving along, I missed a bit of code there... In my own defense, use \ formatting tags to make it slightly more inviting to read it.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • Log4j:ERROR Failed to rename [../logs/avaluos] to [../logs/avaluos.2004-07-

    Hello,
    I have a webapp deployed in Tomcat on Windows 2000 server, I configured log4j using a DailyRollingFileAppender in the following way:
    # Set root logger level to DEBUG and its only appender to A1.
    log4j.rootLogger=DEBUG, A1,DAILY
    #Daily log file
    log4j.appender.DAILY=org.apache.log4j.DailyRollingFileAppender
    #A log file for each day. Better for manageability
    log4j.appender.DAILY.DatePattern='.'yyyy-MM-dd'.log'
    #The file for each day will be named avaluos+DatePattern+.log
    log4j.appender.DAILY.File=../logs/avaluos
    #Layout configured for this appender
    log4j.appender.DAILY.layout=org.apache.log4j.PatternLayout
    #The pattern used to log messages
    log4j.appender.DAILY.layout.ConversionPattern=[%d{HH\:mm\:ss,SSS}] %-5p %c{3} - %m%n
    but every time log4j tries to roll the file, and therefore renaming, it fails with the message "log4j:ERROR Failed to rename [../logs/avaluos] to [../logs/avaluos.2004-07-29.log].", loosing the log of the day before!!!!
    I watch on other forums and someone suggested to try out the same pattern adding the minutes, because sometimes this error is present just the first time. I did so, but the error is still present. I read in other place that problem can arise from window's file locking, but nor they explain it well, neither they gave a solution.
    Please HELP!!!
    Thanks in advance, Alfredo Ledezma

    By the way, some time before (1 month or so) the same configuration worked.... so I don't know what's messing around :-(

  • Log4j error while deploying EJB 3.0 in weblogic 10

    Hi Friends,
    I am migrating an application EJB from 2.0 to 3.0 annotations.
    The log4j-1.2.3 for the project is configured in this way, it is added to the startWeblogic.cmd in weblogic 10 as :
    set JAVA_OPTIONS=%JAVA_OPTIONS% -Dlog4j.configuration=log4j.properties
    Now i am trying to deploy my EAR file that contains an EJB 3.0 Project and a Web project , it gives following error while deployment.
    ###<Jan 29, 2010 8:21:01 PM EST> <Warning> <Deployer> <ALPITSWXP00001> <wlw-pricingdev-s10> <[STANDBY] ExecuteThread: '5' for queue: 'weblogic.kernel.Default (self-tuning)'> <<WLS Kernel>> <> <> <1264814461242> <BEA-149078> <Stack trace for message 149004
    weblogic.application.ModuleException: Exception preparing module: EJBModule(streamlinesuspenseEJB.jar)
    [EJB:011023]An error occurred while reading the deployment descriptor. The error was:
    org.apache.log4j.spi.RootCategory.<init>(Lorg/apache/log4j/Level;)V.
    at weblogic.ejb.container.deployer.EJBModule.prepare(EJBModule.java:452)
    at weblogic.application.internal.flow.ModuleListenerInvoker.prepare(ModuleListenerInvoker.java:93)
    at weblogic.application.internal.flow.DeploymentCallbackFlow$1.next(DeploymentCallbackFlow.java:387)
    at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:37)
    at weblogic.application.internal.flow.DeploymentCallbackFlow.prepare(DeploymentCallbackFlow.java:58)
    at weblogic.application.internal.flow.DeploymentCallbackFlow.prepare(DeploymentCallbackFlow.java:42)
    at weblogic.application.internal.BaseDeployment$1.next(BaseDeployment.java:615)
    at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:37)
    at weblogic.application.internal.BaseDeployment.prepare(BaseDeployment.java:191)
    at weblogic.application.internal.EarDeployment.prepare(EarDeployment.java:16)
    at weblogic.application.internal.DeploymentStateChecker.prepare(DeploymentStateChecker.java:155)
    at weblogic.deploy.internal.targetserver.AppContainerInvoker.prepare(AppContainerInvoker.java:60)
    at weblogic.deploy.internal.targetserver.operations.ActivateOperation.createAndPrepareContainer(ActivateOperation.java:197)
    at weblogic.deploy.internal.targetserver.operations.ActivateOperation.doPrepare(ActivateOperation.java:89)
    at weblogic.deploy.internal.targetserver.operations.AbstractOperation.prepare(AbstractOperation.java:217)
    at weblogic.deploy.internal.targetserver.DeploymentManager.handleDeploymentPrepare(DeploymentManager.java:723)
    at weblogic.deploy.internal.targetserver.DeploymentManager.prepareDeploymentList(DeploymentManager.java:1190)
    at weblogic.deploy.internal.targetserver.DeploymentManager.handlePrepare(DeploymentManager.java:248)
    at weblogic.deploy.internal.targetserver.DeploymentServiceDispatcher.prepare(DeploymentServiceDispatcher.java:159)
    at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer.doPrepareCallback(DeploymentReceiverCallbackDeliverer.java:157)
    at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer.access$000(DeploymentReceiverCallbackDeliverer.java:12)
    at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer$1.run(DeploymentReceiverCallbackDeliverer.java:45)
    at weblogic.work.SelfTuningWorkManagerImpl$WorkAdapterImpl.run(SelfTuningWorkManagerImpl.java:516)
    at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
    at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)
    java.lang.NoSuchMethodError: org.apache.log4j.spi.RootCategory.<init>(Lorg/apache/log4j/Level;)V
    at org.apache.log4j.LogManager.<clinit>(LogManager.java:113)
    at org.apache.log4j.Logger.getLogger(Logger.java:124)
    at com.jmfamily.common.log.LogManager.getLogger(LogManager.java:33)
    at com.jmfamily.common.log.LogManager.getLogger(LogManager.java:42)
    at com.jmfamily.jma.contract.ejb.SuspendedContractSOBean.<clinit>(SuspendedContractSOBean.java:33)
    at java.lang.Class.forName0(Native Method)
    at java.lang.Class.forName(Class.java:247)
    at weblogic.ejb.container.dd.xml.EjbAnnotationProcessor.processWLSAnnotations(EjbAnnotationProcessor.java:1699)
    at weblogic.ejb.container.dd.xml.EjbDescriptorReaderImpl.processWLSAnnotations(EjbDescriptorReaderImpl.java:346)
    at weblogic.ejb.container.dd.xml.EjbDescriptorReaderImpl.createReadOnlyDescriptorFromJarFile(EjbDescriptorReaderImpl.java:192)
    at weblogic.ejb.spi.EjbDescriptorFactory.createReadOnlyDescriptorFromJarFile(EjbDescriptorFactory.java:93)
    at weblogic.ejb.container.deployer.EJBModule.loadEJBDescriptor(EJBModule.java:1198)
    at weblogic.ejb.container.deployer.EJBModule.prepare(EJBModule.java:380)
    at weblogic.application.internal.flow.ModuleListenerInvoker.prepare(ModuleListenerInvoker.java:93)
    at weblogic.application.internal.flow.DeploymentCallbackFlow$1.next(DeploymentCallbackFlow.java:387)
    at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:37)
    at weblogic.application.internal.flow.DeploymentCallbackFlow.prepare(DeploymentCallbackFlow.java:58)
    at weblogic.application.internal.flow.DeploymentCallbackFlow.prepare(DeploymentCallbackFlow.java:42)
    at weblogic.application.internal.BaseDeployment$1.next(BaseDeployment.java:615)
    at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:37)
    at weblogic.application.internal.BaseDeployment.prepare(BaseDeployment.java:191)
    at weblogic.application.internal.EarDeployment.prepare(EarDeployment.java:16)
    at weblogic.application.internal.DeploymentStateChecker.prepare(DeploymentStateChecker.java:155)
    at weblogic.deploy.internal.targetserver.AppContainerInvoker.prepare(AppContainerInvoker.java:60)
    at weblogic.deploy.internal.targetserver.operations.ActivateOperation.createAndPrepareContainer(ActivateOperation.java:197)
    at weblogic.deploy.internal.targetserver.operations.ActivateOperation.doPrepare(ActivateOperation.java:89)
    at weblogic.deploy.internal.targetserver.operations.AbstractOperation.prepare(AbstractOperation.java:217)
    at weblogic.deploy.internal.targetserver.DeploymentManager.handleDeploymentPrepare(DeploymentManager.java:723)
    at weblogic.deploy.internal.targetserver.DeploymentManager.prepareDeploymentList(DeploymentManager.java:1190)
    at weblogic.deploy.internal.targetserver.DeploymentManager.handlePrepare(DeploymentManager.java:248)
    at weblogic.deploy.internal.targetserver.DeploymentServiceDispatcher.prepare(DeploymentServiceDispatcher.java:159)
    at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer.doPrepareCallback(DeploymentReceiverCallbackDeliverer.java:157)
    at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer.access$000(DeploymentReceiverCallbackDeliverer.java:12)
    at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer$1.run(DeploymentReceiverCallbackDeliverer.java:45)
    at weblogic.work.SelfTuningWorkManagerImpl$WorkAdapterImpl.run(SelfTuningWorkManagerImpl.java:516)
    at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
    at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)
    >
    If i remove the "set JAVA_OPTIONS=%JAVA_OPTIONS% -Dlog4j.configuration=log4j.properties" from the weblogic statrup script and install the EAR it will be installed , but the logger is not initialized.
    If the option "set JAVA_OPTIONS=%JAVA_OPTIONS% -Dlog4j.configuration=log4j.properties" added to the startup script and i deployed the OLD EJB 2.0 app , it is installed successfully, but it didnt let me deploy EJB 3.0 app.
    I am hitting my head around it for a day now, no success so far..
    Please provide you suggestions , thanks a lot to all in advance.
    Thanks
    Sachin

    Does the ejbCreate() method of the com.package.ejbimpl.RemoteServicesEjb class have an exception on it's throws clause that is not present on the ejbCreate() method of your home interface? If so, does the error go away if you add the exception to the home's ejbCreate() method? In general, you want checked exceptions in a throws clause to match between the interface declaration of the method and the implementation of the method on the bean class.
    - Matt

  • Log4J-Error + Unexpected Database-Connector-Error

    Hello!
    I am trying to integrate a Report into an existing Java Eclipse-Project usind Crystal Reports for Eclipse.
    To do this I am modifying the example program which comes together with the installation. I am trying to pass the data to the report directly via a POJO using the call
    CRJavaHelper.passPOJO(...)
    Now, when I try to open the report I get the following error:
    log4j:WARN No appenders could be found for logger (com.businessobjects.reports.sdk.JRCCommunicationAdapter).
    log4j:WARN Please initialize the log4j system properly.
    Unerwarteter Datenbank-Connector-Fehler
    (The last line would be "Unexpected Database-Connector-Error" in english.)
    What am I doing wrong? I included log4j.jar into the build path of the project.
    Thanx for your help!
    UPDATE: Most errors are sitting 50cm in front of the screen. Dumb error on my side. Fixed it and it's working.
    Edited by: QSOTech on May 18, 2009 1:33 PM

    Error is fixed.
    I created the report in Eclipse and used a Plain Old Java Object (POJO) as datasource. No other Database.
    The problem was that the Object wasn't instanciated properly.

  • Log4j error on exceution

    Hi,
    I have an application that uses log4j for logging purpose. I designed this is Windows using eclipse. So, what happened was I placed the "log4j.properties" file in the <package name>/bin/ folder and the program could read the log4j.properties file. With this I was able to successfully run the application on Windows.
    Now I need to run this application on a Unix machine, and I have packaged my application as a jar. Also I have included the log4j.jar file in the proper folders and have made sure that my application is able to access this jar when i try to run.
    I am using a common class by the name "LogCreation" that contains the PropertyConfigurator part. So, this is the class that I use across all my Java files to generate log. The code in that file is as below:
    package ftpScheduler;
    * Class to create the Logger and initialize the Properties file
    * @author user_name
    import org.apache.log4j.Logger;
    import org.apache.log4j.PropertyConfigurator;
    public class LogCreation {
          * Constructor for LogCreation class to assign the properties file
         public LogCreation(){
              PropertyConfigurator.configure("/home/uchebolu/FTPSchedulerApp/log4j.properties");
         static Logger cmnLogger = Logger.getLogger(LogCreation.class.getName());
    }So, now I am getting the following error:
    log4j:WARN No appenders could be found for logger (ftpScheduler.LogCreation).
    log4j:WARN Please initialize the log4j system properly.
    My log4j.properties file is as follows:
    #The root logger is assigned priority level DEBUG and an appender
    # named myAppender.
    log4j.rootLogger=INFO, logAppender
    # log4j.additivity.rootLogger=false
    # The appender's type specified as FileAppender, i.e. log output
    # written to a file.
    # The appender is assigned a layout SimpleLayout.
    # SimpleLayout will include only priority level of the log
    # statement and the log statement itself in log output.
    log4j.appender.logAppender=org.apache.log4j.DailyRollingFileAppender
    log4j.appender.logAppender.File=${user.home}/logs/FTPSChedulerLog/logfile.log
    log4j.appender.logAppender.datePattern='.'yyyy-MM-dd
    log4j.appender.logAppender.append=true
    log4j.appender.logAppender.ImmediateFlush=true
    log4j.appender.logAppender.Threshold=ERROR
    log4j.appender.logAppender.layout=org.apache.log4j.PatternLayout
    log4j.appender.logAppender.layout.ConversionPattern=%-5p %d{ISO8601} [%t] - %m%nInspite of mentioning the Appender I seem to getting an error. Can anyone Please help me out. Thanks in advance!!

    static Logger cmnLogger =Logger.getLogger(LogCreation.class.getName());
    You retrieve the logger before your Constructor iscalled thus Log4J is not >initialized.
    andi
    Hi Andi,
    I am sorry but I could not understand this. BecauseI need to make a call to getLogger, >which will will
    in turn call the consructor. There is no other way I
    could do it..:-(. I dont think >there is any other
    way out other than making a call using getLogger.
    I don't see the point where your Constructor is
    called.
    Because I need to make a call to getLogger, whichwill will in turn call the consructor.
    Why should this happen ? This would only be true if
    your LogCreation class were a LogFactory andyou have configured Log4J to use your LogFactory
    instead of the default LogFactory.
    one possibility would be
    public class LogCreation {
    static Logger cmnLogger;
         static {
    PropertyConfigurator.configure(
    "/home/uchebolu/FTPSchedulerApp/log4j.properties");
    cmnLogger =
    ger = Logger.getLogger(LogCreation.class);
    // or
    static {
    System.getProperties().put("log4j.configuration",
    "/home/uchebolu/FTPSchedulerApp/log4j.properties"
    ies" ) ;
    cmnLogger =
    gger = Logger.getLogger(LogCreation.class);
    }or set the Systemproperty
    "-Dlog4j.configuration=/home/uchebolu/FTPSchedulerApp
    /log4j.properties" at the commandline.
    andi
    Hi Andi,
    Thanks a lot, for that explanation. Now I understand where I went wrong in my understanding.
    So, in my java class, though I had given the entire path for the log4j.properties file, it was not even read. Because I was using the default name log4j.properties, once I placed the file in the CLASSPATH, the JVM started recognizing the file. And the only line of code that was being executed was :
    static Logger cmnLogger = Logger.getLogger(LogCreation.class.getName());So, if I put the PropertyConfigurator.configure() part also in a static block it will get invoked before the cmnLogger object is instantiated.
    Hope this time I got it right!
    Thank you once again Andi.

  • Log4j:ERROR No appenders could be found for category

    Log not og

    In your top level class did you include a configurator?
    This is the minimum requirement:
    import org.apache.log4j.BasicConfigurator;
    BasicConfigurator.configure();Calling a configurator only needs to be done in the initialization of the application (not of each class), prior to the first call to log a message.
    I am responding to this because this thread about log4j got me thinging about a logging API and then to compare log4j to the Logger classes in 1.4. I started to use log4j and recalled that an error I saw was similar to your initial post.

Maybe you are looking for

  • Adding html

    I'm trying to add html code that locks the body to a fixed position on the background. When I add the html as an object it just shows up as text on the site. I've used this code successfully with other wysiwyg site builders. Is the add html object in

  • SAPKCCD46C Command file for customer export

    Hi, We installed a new system 46C on Win2000/Oracle. then created a client. Then we import all customer develement classes in our PROD system to new system. Aim is to construct new system using client export import from our production system. during

  • Time out for Client Proxy

    Hi All, I have a scenario, where ECC sends a request to a BPM synchronously. The BPM can sends a response back immediately, if it is a success, else  sends the response back to ECC after 2 minutes, if there is a communication failure. But for the sec

  • Do over on an apple imap account

    I want to delete a me.com imap account and let mail recreate it from scratch. Question is the saved mail folder that is "on my mac" will that be deleted, when I delete the account? If it is I can copy it to a folder on the me.com web app first.

  • [SOLVED]bridge connection to container with static IP

    I have been messing for many days now trying to do a clean setup for a bridge br0 for a linux container managed with systemd-nspawn. I run a custom kernel (as I need user space set) 3.13.5-1, systemd-git. The container boots fine. This container is a