Log4j levels

Hi,
I am in need of one requirements. That is changing log levels dynamically through web application.
I can do that by setting logger.setLevel(Level.DEBUG) or other levels. But If I set as DEBUG i am able to get error/info/fatal errors which we don't want. Is there any way to break the priority levels?

They are our paying customers....I question this. Sorry, obviously you know your project and your customer better than me, but...
If the customer explicitly forbids custom appenders, then it also explicitly mentions using log4j. So it is his responsibility to have choosen log4j, and it his his responsibility if there are conflicting requirements (such as, log only DEBUG but no higher log levels).
If the customer hasn't mandated log4j, I don't see how it can forbid custom appenders ( a log4j notion).
If the customer has mandated log4j, forbidden custom appenders, and required logging at DEBUG level but not higher, then it is you who made a wrong decision (you shouldn't implement the DEBUG-only log using lo4j).
Nothing that a good requirements clarification meeting shouldn't solve.

Similar Messages

  • Import org.apache.log4j.Level;

    Cannot Resolve Symbol
    symbol : class Level
    location: package log4j
    import org.apache.log4j.Level;
    Can anyone suggest something.
    Thanks Tiboy.

    Hi there,
    I have another doubt. Im trying to deploy a web application/J2EE. I use JBOSS. Now, after compiling and placing my jar files in the required directory and as i start the JBOSS server I get the following error in the console............
    10:11:06,551 WARN [jbossweb] java.lang.IllegalStateException: Servlet class
    com
    .ncit.user.server.servlet.MainPageRequestHandler is not a
    javax.servlet.Servlet
    java.lang.IllegalStateException: Servlet class
    com.ncit.user.server.servlet.Main
    PageRequestHandler is not a javax.servlet.Servlet
    at
    org.mortbay.jetty.servlet.ServletHolder.start(ServletHolder.java:203)
    I just can't seem to figure out whats the problem.
    My RequestHandler extends an Abstract Req.Handler which imports javax.* etc etc.
    Please suggest a solution.
    Thanks,
    Tiboy.

  • Serializing org.apache.log4j.Level

    Hi,
    I'm working with Log4j and I have to serialize an org.apache.log4j.Level that has not an empty constructor but only more static instaces.
    Is there a workaround to do this ?
    Or How can I use the static instance ?
    Thanks,
    Bye Luigia

    this is my XML file
    <java version="1.5.0_08" class="java.beans.XMLDecoder">
    <object class="org.apache.log4j.net.SyslogAppender">
    <void property="name">
    <string>my.syslog</string>
    </void>
    <void property="SyslogHost">
    <string>localhost</string>
    </void>
    <void property="Facility">
    <string>local0</string>
    </void>
    How can I specify the "Threshold" Property of the SyslogAppender at "INFO" or int value?
    The threshold is a org.apache.log4j.Level.

  • Log4j level inheritance concept doubt

    log.properties file
    log4j.debug=true
    log4j.rootLogger=ERROR, A1
    log4j.appender.A1=org.apache.log4j.ConsoleAppender
    log4j.appender.A1.layout=org.apache.log4j.PatternLayout
    log4j.appender.A1.layout.ConversionPattern=%m%n
    log4j.logger.logging.basics=WARN, cs3
    log4j.appender.cs3=org.apache.log4j.RollingFileAppender
    log4j.appender.cs3.layout=org.apache.log4j.PatternLayout
    log4j.appender.cs3.File=c:\\logas.txt
    log4j.appender.cs3.layout.ConversionPattern=%m%n
    log4j.appender.cs3.MaxFileSize=100KB
    log4j.appender.cs3.MaxBackupIndex=1
    log4j.additivity.com.durasoft.logging=false
    log4j.logger.RAM=INHERITED, B1
    log4j.appender.B1=org.apache.log4j.RollingFileAppender
    log4j.appender.B1.layout=org.apache.log4j.PatternLayout
    log4j.appender.B1.File=c:\\trylog.txt
    log4j.appender.B1.layout.ConversionPattern=%m%n
    log4j.appender.B1.MaxFileSize=100KB
    log4j.appender.B1.MaxBackupIndex=1
    package logging.basics;
    import java.io.FileInputStream;
    import java.io.IOException;
    import java.util.Properties;
    import org.apache.log4j.BasicConfigurator;
    import org.apache.log4j.FileAppender;
    import org.apache.log4j.Logger;
    import org.apache.log4j.PatternLayout;
    import org.apache.log4j.PropertyConfigurator;
    import org.apache.log4j.spi.RootLogger;
    public class LogBasics
         public static void main(String[] args) throws IOException
              Properties prop = new Properties();
              FileInputStream stream = new  FileInputStream("logging\\Resources\\log.properties");
              prop.load(stream);
              PropertyConfigurator.configure(prop);
              Logger temp = Logger.getLogger("RAM");
              RootLogger root = (RootLogger)                     Logger.getRootLogger();
              temp.error("h1i"); 
              temp.warn("hel1lo");
    }Refering to above code and properties file(in bold font), the logger named "RAM" didnt inherit from logging.basics package(which it lies), but inherits only from root, even though level and appenders for logging.basics package is specified in properties file.
    I doubt, because according to level inheritance concept, the logger must inherit from parent level(assuming parent is not null).
    Here parent ,is logging.basics for LogBasics class,so RAM logger must inherit from logging.basics as logging.basics is defined in properties file.
    But,its not happening?Why it is so?
    2) also please explain me what getLogger does when configured using property file
    Thank you.

    phanikrishnait wrote:
    Hai
    I have 3 class class A,B,C in multi level as below the method present in class A should only be accessed in A and B .Should not be visible in C and notaccessible for C class object.Java does not support that in general. In this specific case, if A and B are in the same package, and C is in a different package, and the method in question has package-private access level (not public, private, or protected).
    However, if you're doing this, you almost certainly have a design flaw. My guess is you're trying to use inheritance for code sharing, which is not what it's for.

  • 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

  • How to make integrated weblogic server use log4j

    Hi all,
    I use Jdeveloper 11.1.1.6, WL 10.3 on Win7. JDK 1.6.0.3x64
    I tried to configure for 1 day during according to guides and informations on net. But i can not make it works unfortunately. Just after i start wls, encountered this:
    <14-12-2012 10:42:00 o'clock EET> <Error> <Log Management> <BEA-170022> <Log4j failed to initialize for DefaultServer. The default JDK Logging implementation will be used.
    java.lang.ClassNotFoundException: weblogic.logging.log4j.JDKLog4jAdapterFactory
         at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
         at java.security.AccessController.doPrivileged(Native Method)
         at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
         at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
         at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
         Truncated. see log file for complete stacktrace
    >
    I followed up basically through those links log4j Configuration in Standalone Weblogic Server - ADF and http://docs.oracle.com/cd/E15051_01/wls/docs103/logging/config_logs.html#using_log4j
    I changed Logging implementation as Log4j from JDK: http://www.2hotfile.com/image.php?di=72YU
    I created log4j.xml file under my %DOMAINHOME%\config : http://www.2hotfile.com/image.php?di=JHLI
    <?xml version="1.0" encoding="UTF-8" ?><!DOCTYPE log4j:configuration SYSTEM "log4j.dtd">
    <log4j:configuration>
    <appender name="CONSOLE" class="org.apache.log4j.ConsoleAppender">
    <param name="Threshold" value="INFO"/>
    <layout class="org.apache.log4j.PatternLayout">
    <param name="ConversionPattern"
    value="%d{ABSOLUTE} %-5p [%c{1}] %m%n"/>
    </layout>
    </appender>
    <appender name="FILE" class="org.apache.log4j.DailyRollingFileAppender">
    <param name="File" value="/log/daily.log"/>
    <param name="Append" value="false"/>
    <!-- Rollover at midnight each day -->
    <param name="DatePattern" value="'.'yyyy-MM-dd"/>
    <layout class="org.apache.log4j.PatternLayout">
    <param name="ConversionPattern" value="%d %-5p [%c] %m%n"/>
    </layout>
    </appender>
    <logger name="org.apache">
    <level value="WARN"/>
    </logger>
    <root>
    <level value="DEBUG"/>
    <appender-ref ref="FILE"/>
    <!-- <appender-ref ref="CONSOLE"/> -->
    </root>
    </log4j:configuration>
    i copied log4j.jar, wllog.jar into my %DOMAINHOME%\lib : http://www.2hotfile.com/image.php?di=BYB3
    Even i copied commons-logging-1.0.4.jar and com.bea.core.weblogic.commons.logging_1.4.0.0.jar files into the lib folder and then i set CLASSPATH accordingly, result was negative.
    I added these lines into startWeblogic.cmd
    @REM customized here for log4j
    set LOG4J_CONFIG_FILE=%DOMAIN_HOME%\config\log4j.xml
    set SAVE_JAVA_OPTIONS=%JAVA_OPTIONS% -Dweblogic.log.Log4jLoggingEnabled=true -Dlog4j.debug -Dlog4j.configuration=%LOG4J_CONFIG_FILE%
    set SAVE_CLASSPATH=%CLASSPATH%;%DOMAIN_HOME%\config;
    Additionally, i have tried adding log4j.jar into sysyem classpath becuse of classloading problem suspicion: http://www.2hotfile.com/image.php?di=7Y3N after view this link http://www.coderanch.com/t/479763/BEA-Weblogic/Log-Weblogic-ClassNotFoundException
    Thanks in advance...
    Edited by: webyildirim on 14.Ara.2012 02:45

    I resolved the exception; Jdeveloper 11.1.1.4 was setted up on my pc as well. That was the cause of problem. System was looking some paths on 11.1.1.4 server folders that belong to 11.1.14 version.
    Now, created server log which i defined in log4j.xml but no log line found in file, nothing logged according to log4j.xml config file and wls still writes its own log into its own log file which is under $domain_home$\servers\DefaultServer\logs\DefaultServer.log. What might be the reason?
    <?xml version="1.0" encoding="UTF-8" ?>
    <!DOCTYPE log4j:configuration SYSTEM "log4j.dtd">
    <log4j:configuration xmlns:log4j="http://jakarta.apache.org/log4j/"
    debug="true">
    <!-- A time/date based rolling appender -->
    <appender name="FILE" class="org.apache.log4j.DailyRollingFileAppender">
    <param name="File" value="./server.log"/>
    <param name="Append" value="false"/>
    <!-- Rollover at midnight each day -->
    <param name="DatePattern" value="'.'yyyy-MM-dd"/>
    <!-- Rollover at the top of each hour
    <param name="DatePattern" value="'.'yyyy-MM-dd-HH"/>
    -->
    <layout class="org.apache.log4j.PatternLayout">
    <!-- The default pattern: Date Priority [Category] Message\n -->
    <param name="ConversionPattern" value="%d %-5p [%c] %m%n"/>
    <!-- The full pattern: Date MS Priority [Category] (Thread:NDC) Message\n
    <param name="ConversionPattern" value="%d %-5r %-5p [%c] (%t:%x) %m%n"/>
    -->
    </layout>
    </appender>
    <appender name="CONSOLE" class="org.apache.log4j.ConsoleAppender">
    <param name="Target" value="System.out"/>
    <param name="Threshold" value="INFO"/>
    <layout class="org.apache.log4j.PatternLayout">
    <!-- The default pattern: Date Priority [Category] Message\n -->
    <param name="ConversionPattern" value="%d{ABSOLUTE} %-5p [%c{1}] %m%n"/>
    </layout>
    </appender>
    <category name="org.apache">
    <priority value="DEBUG"/>
    </category>
    <category name="com.weblogic">
    <priority value="DEBUG"/>
    </category>
    <category name="com.roketsan">
    <priority value="DEBUG"/>
    </category>
    <category name="org.hibernate">
    <priority value="DEBUG"/>
    </category>
    <category name="log4j.category.org.hibernate">
    <priority value="DEBUG"/>
    </category>
    <category name="log4j.category.org.hibernate.SQL">
    <priority value="STDOUT"/>
    </category>
    <root>
    <appender-ref ref="CONSOLE"/>
    <appender-ref ref="FILE"/>
    </root>
    </log4j:configuration>
    jdeveloper integrated weblogic console output: http://www.2hotfile.com/image.php?di=TPY2
    *** Using port 7101 ***
    C:\Users\Dijitaluser\AppData\Roaming\JDeveloper\system11.1.1.6.38.61.92\DefaultDomain\bin\startWebLogic.cmd
    [waiting for the server to complete its initialization...]
    this is suuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuun
    'LOG4J_CONFIG_FILE' i‡ ya da dis komut, ‡alistirilabilir
    program ya da toplu is dosyasi olarak taninmiyor.
    JAVA Memory arguments: -Xms256m -Xmx1024m -XX:CompileThreshold=8000 -XX:PermSize=128m -XX:MaxPermSize=512m
    WLS Start Mode=Development
    CLASSPATH=C:\Oracle\MIDDLE~1.6\ORACLE~1\modules\oracle.jdbc_11.1.1\ojdbc6dms.jar;C:\Oracle\MIDDLE~1.6\patch_wls1035\profiles\default\sys_manifest_classpath\weblogic_patch.jar;C:\Oracle\MIDDLE~1.6\patch_jdev1111\profiles\default\sys_manifest_classpath\weblogic_patch.jar;C:\PROGRA~1\Java\JDK16~1.0_3\lib\tools.jar;C:\Oracle\MIDDLE~1.6\WLSERV~1.3\server\lib\weblogic_sp.jar;C:\Oracle\MIDDLE~1.6\WLSERV~1.3\server\lib\weblogic.jar;C:\Oracle\MIDDLE~1.6\modules\features\weblogic.server.modules_10.3.5.0.jar;C:\Oracle\MIDDLE~1.6\WLSERV~1.3\server\lib\webservices.jar;C:\Oracle\MIDDLE~1.6\modules\ORGAPA~1.1/lib/ant-all.jar;C:\Oracle\MIDDLE~1.6\modules\NETSFA~1.0_1/lib/ant-contrib.jar;C:\Users\DIJITA~1\AppData\Roaming\JDEVEL~1\SYSTEM~1.92\DEFAUL~1\wcps-lib\derby-10.6.1.0.jar;C:\Users\DIJITA~1\AppData\Roaming\JDEVEL~1\SYSTEM~1.92\DEFAUL~1\wcps-lib\derbytools-10.6.1.0.jar;C:\Oracle\Middleware_11.1.1.6\jdeveloper\webcenter\modules\oracle.portlet.server_11.1.1\oracle-portlet-api.jar;C:\Oracle\Middleware_11.1.1.6\jdeveloper\webcenter\modules\wcps_11.1.1.6.0\wcps-connection-mbeans.jar;C:\Oracle\MIDDLE~1.6\ORACLE~1\modules\oracle.jrf_11.1.1\jrf.jar;C:\Oracle\MIDDLE~1.6\WLSERV~1.3\common\derby\lib\derbyclient.jar;C:\Oracle\MIDDLE~1.6\WLSERV~1.3\server\lib\xqrl.jar;.
    PATH=C:\Oracle\MIDDLE~1.6\patch_wls1035\profiles\default\native;C:\Oracle\MIDDLE~1.6\patch_jdev1111\profiles\default\native;C:\Oracle\MIDDLE~1.6\WLSERV~1.3\server\native\win\32;C:\Oracle\MIDDLE~1.6\WLSERV~1.3\server\bin;C:\Oracle\MIDDLE~1.6\modules\ORGAPA~1.1\bin;C:\PROGRA~1\Java\JDK16~1.0_3\jre\bin;C:\PROGRA~1\Java\JDK16~1.0_3\bin;C:\Program Files\Java\jre6X64;C:\Program Files\Java\jre6X64\bin;C:\Oracle\database\app\oracle\product\11.2.0\server\bin;C:\Oracle\database\app\oracle\product\11.2.0\server;C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files\WIDCOMM\Bluetooth Software\;C:\Program Files\WIDCOMM\Bluetooth Software\syswow64;C:\Program Files\Intel\WiFi\bin\;C:\Program Files\Common Files\Intel\WirelessCommon\;C:\Program Files (x86)\Microsoft SQL Server\100\Tools\Binn\;C:\Program Files\Microsoft SQL Server\100\Tools\Binn\;C:\Program Files\Microsoft SQL Server\100\DTS\Binn\;C:\Program Files (x86)\Microsoft SQL Server\100\Tools\Binn\VSShell\Common7\IDE\;C:\Program Files (x86)\Microsoft Visual Studio 9.0\Common7\IDE\PrivateAssemblies\;C:\Program Files (x86)\Microsoft SQL Server\100\DTS\Binn\;C:\Program Files\Dell\Dell Wireless WLAN Card;C:\Program Files (x86)\QuickTime\QTSystem\;C:\Program Files\TortoiseSVN\bin;C:\Program Files (x86)\ATI Technologies\ATI.ACE\Core-Static;C:\Program Files (x86)\OpenVPN\bin;C:\Users\Dijitaluser\Desktop\Yeni klas”r\commons-logging-1.0.4.jar;;C:\Oracle\MIDDLE~1.6\WLSERV~1.3\server\native\win\32\oci920_8
    * To start WebLogic Server, use a username and *
    * password assigned to an admin-level user. For *
    * server administration, use the WebLogic Server *
    * console at http:\\hostname:port\console *
    starting weblogic with Java version:
    java version "1.6.0_30"
    Java(TM) SE Runtime Environment (build 1.6.0_30-b12)
    Java HotSpot(TM) 64-Bit Server VM (build 20.5-b03, mixed mode)
    Starting WLS with line:
    C:\PROGRA~1\Java\JDK16~1.0_3\bin\java -client -Xms256m -Xmx1024m -XX:CompileThreshold=8000 -XX:PermSize=128m -XX:MaxPermSize=512m -Dweblogic.Name=DefaultServer -Djava.security.policy=C:\Oracle\MIDDLE~1.6\WLSERV~1.3\server\lib\weblogic.policy -agentlib:jdwp=transport=dt_socket,server=y,address=52130 -Djavax.net.ssl.trustStore=C:\Oracle\Middleware_11.1.1.6\wlserver_10.3\server\lib\DemoTrust.jks -Dweblogic.nodemanager.ServiceEnabled=true -Xverify:none -da -Dplatform.home=C:\Oracle\MIDDLE~1.6\WLSERV~1.3 -Dwls.home=C:\Oracle\MIDDLE~1.6\WLSERV~1.3\server -Dweblogic.home=C:\Oracle\MIDDLE~1.6\WLSERV~1.3\server -Djps.app.credential.overwrite.allowed=true -Dcommon.components.home=C:\Oracle\MIDDLE~1.6\ORACLE~1 -Djrf.version=11.1.1 -Dorg.apache.commons.logging.Log=org.apache.commons.logging.impl.Jdk14Logger -Ddomain.home=C:\Users\DIJITA~1\AppData\Roaming\JDEVEL~1\SYSTEM~1.92\DEFAUL~1 -Djrockit.optfile=C:\Oracle\MIDDLE~1.6\ORACLE~1\modules\oracle.jrf_11.1.1\jrocket_optfile.txt -Doracle.server.config.dir=C:\Users\DIJITA~1\AppData\Roaming\JDEVEL~1\SYSTEM~1.92\DEFAUL~1\config\FMWCON~1\servers\DefaultServer -Doracle.domain.config.dir=C:\Users\DIJITA~1\AppData\Roaming\JDEVEL~1\SYSTEM~1.92\DEFAUL~1\config\FMWCON~1 -Digf.arisidbeans.carmlloc=C:\Users\DIJITA~1\AppData\Roaming\JDEVEL~1\SYSTEM~1.92\DEFAUL~1\config\FMWCON~1\carml -Digf.arisidstack.home=C:\Users\DIJITA~1\AppData\Roaming\JDEVEL~1\SYSTEM~1.92\DEFAUL~1\config\FMWCON~1\arisidprovider -Doracle.security.jps.config=C:\Users\DIJITA~1\AppData\Roaming\JDEVEL~1\SYSTEM~1.92\DEFAUL~1\config\fmwconfig\jps-config.xml -Doracle.deployed.app.dir=C:\Users\DIJITA~1\AppData\Roaming\JDEVEL~1\SYSTEM~1.92\DEFAUL~1\servers\DefaultServer\tmp\_WL_user -Doracle.deployed.app.ext=\- -Dweblogic.alternateTypesDirectory=C:\Oracle\MIDDLE~1.6\ORACLE~1\modules\oracle.ossoiap_11.1.1,C:\Oracle\MIDDLE~1.6\ORACLE~1\modules\oracle.oamprovider_11.1.1 -Djava.protocol.handler.pkgs=oracle.mds.net.protocol -Dweblogic.jdbc.remoteEnabled=false -Dwsm.repository.path=C:\Users\DIJITA~1\AppData\Roaming\JDEVEL~1\SYSTEM~1.92\DEFAUL~1\oracle\store\gmds -DUSE_JAAS=false -Djps.policystore.hybrid.mode=false -Djps.combiner.optimize.lazyeval=true -Djps.combiner.optimize=true -Djps.auth=ACC -Doracle.core.ojdl.logging.usercontextprovider=oracle.core.ojdl.logging.impl.UserContextImpl -noverify -Doracle.webcenter.analytics.disable-native-partitioning=false -Doracle.webcenter.tagging.scopeTags=false -XX:+UseParallelGC -XX:+DisableExplicitGC -Dportlet.oracle.home=C:\Oracle\Middleware_11.1.1.6\jdeveloper -Dwc.oracle.home=C:\Oracle\Middleware_11.1.1.6\jdeveloper -Dweblogic.management.discover=true -Dwlw.iterativeDev= -Dwlw.testConsole= -Dwlw.logErrorsToConsole= -Dweblogic.ext.dirs=C:\Oracle\MIDDLE~1.6\patch_wls1035\profiles\default\sysext_manifest_classpath;C:\Oracle\MIDDLE~1.6\patch_jdev1111\profiles\default\sysext_manifest_classpath -Dlog4j.ignoreTCL=true -Dweblogic.log.Log4jLoggingEnabled=true -Dlog4j.debug weblogic.Server
    Listening for transport dt_socket at address: 52130
    Debugger connected to local process.
    <18-Dec-2012 13:58:09 o'clock EET> <Info> <Security> <BEA-090905> <Disabling CryptoJ JCE Provider self-integrity check for better startup performance. To enable this check, specify -Dweblogic.security.allowCryptoJDefaultJCEVerification=true>
    <18-Dec-2012 13:58:10 o'clock EET> <Info> <Security> <BEA-090906> <Changing the default Random Number Generator in RSA CryptoJ from ECDRBG to FIPS186PRNG. To disable this change, specify -Dweblogic.security.allowCryptoJDefaultPRNG=true>
    <18-Dec-2012 13:58:10 o'clock EET> <Notice> <WebLogicServer> <BEA-000395> <Following extensions directory contents added to the end of the classpath:
    C:\Users\Dijitaluser\AppData\Roaming\JDeveloper\system11.1.1.6.38.61.92\DefaultDomain\lib\com.bea.core.weblogic.commons.logging_1.4.0.0.jar;C:\Users\Dijitaluser\AppData\Roaming\JDeveloper\system11.1.1.6.38.61.92\DefaultDomain\lib\commons-logging-1.0.4.jar;C:\Users\Dijitaluser\AppData\Roaming\JDeveloper\system11.1.1.6.38.61.92\DefaultDomain\lib\log4j-1.2.15.jar;C:\Users\Dijitaluser\AppData\Roaming\JDeveloper\system11.1.1.6.38.61.92\DefaultDomain\lib\mbeantypes\csp-id-asserter.jar;C:\Users\Dijitaluser\AppData\Roaming\JDeveloper\system11.1.1.6.38.61.92\DefaultDomain\lib\mbeantypes\jps-wls-trustprovider.jar;C:\Users\Dijitaluser\AppData\Roaming\JDeveloper\system11.1.1.6.38.61.92\DefaultDomain\lib\wllog4j.jar>
    <18-Dec-2012 13:58:10 o'clock EET> <Info> <WebLogicServer> <BEA-000377> <Starting WebLogic Server with Java HotSpot(TM) 64-Bit Server VM Version 20.5-b03 from Sun Microsystems Inc.>
    <18-Dec-2012 13:58:11 o'clock EET> <Info> <Management> <BEA-141107> <Version: WebLogic Server 10.3.5.0 Fri Apr 1 20:20:06 PDT 2011 1398638 >
    <18-Dec-2012 13:58:12 o'clock EET> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to STARTING>
    <18-Dec-2012 13:58:12 o'clock EET> <Info> <WorkManager> <BEA-002900> <Initializing self-tuning thread pool>
    <18-Dec-2012 13:58:12 o'clock EET> <Notice> <LoggingService> <BEA-320400> <The log file C:\Users\Dijitaluser\AppData\Roaming\JDeveloper\system11.1.1.6.38.61.92\DefaultDomain\servers\DefaultServer\logs\DefaultServer.log will be rotated. Reopen the log file if tailing has stopped. This can happen on some platforms like Windows.>
    <18-Dec-2012 13:58:12 o'clock EET> <Notice> <LoggingService> <BEA-320401> <The log file has been rotated to C:\Users\Dijitaluser\AppData\Roaming\JDeveloper\system11.1.1.6.38.61.92\DefaultDomain\servers\DefaultServer\logs\DefaultServer.log00016. Log messages will continue to be logged in C:\Users\Dijitaluser\AppData\Roaming\JDeveloper\system11.1.1.6.38.61.92\DefaultDomain\servers\DefaultServer\logs\DefaultServer.log.>
    <18-12-2012 13:58:12 o'clock EET> <Notice> <Log Management> <WL-170019> <The server log file C:\Users\Dijitaluser\AppData\Roaming\JDeveloper\system11.1.1.6.38.61.92\DefaultDomain\servers\DefaultServer\logs\DefaultServer.log is opened. All server side log events will be written to this file.>
    log4j: Trying to find [log4j.xml] using context classloader java.net.URLClassLoader@7df44ec7.
    log4j: Using URL [file:/C:/Users/Dijitaluser/AppData/Roaming/JDeveloper/system11.1.1.6.38.61.92/DefaultDomain/log4j.xml] for automatic log4j configuration.
    log4j: Preferred configurator class: org.apache.log4j.xml.DOMConfigurator
    log4j: System property is :null
    log4j: Standard DocumentBuilderFactory search succeded.
    log4j: DocumentBuilderFactory is: weblogic.xml.jaxp.RegistryDocumentBuilderFactory
    log4j: debug attribute= "true".
    log4j: reset attribute= "false".
    log4j: Threshold ="null".
    log4j: Retreiving an instance of org.apache.log4j.Logger.
    log4j: Setting [org.apache] additivity to [true].
    log4j: Level value for org.apache is [DEBUG].
    log4j: org.apache level set to DEBUG
    log4j: Retreiving an instance of org.apache.log4j.Logger.
    log4j: Setting [com.weblogic] additivity to [true].
    log4j: Level value for com.weblogic is [DEBUG].
    log4j: com.weblogic level set to DEBUG
    log4j: Retreiving an instance of org.apache.log4j.Logger.
    log4j: Setting [com.roketsan] additivity to [true].
    log4j: Level value for com.roketsan is [DEBUG].
    log4j: com.roketsan level set to DEBUG
    log4j: Retreiving an instance of org.apache.log4j.Logger.
    log4j: Setting [org.hibernate] additivity to [true].
    log4j: Level value for org.hibernate is [DEBUG].
    log4j: org.hibernate level set to DEBUG
    log4j: Retreiving an instance of org.apache.log4j.Logger.
    log4j: Setting [log4j.category.org.hibernate] additivity to [true].
    log4j: Level value for log4j.category.org.hibernate is [DEBUG].
    log4j: log4j.category.org.hibernate level set to DEBUG
    log4j: Retreiving an instance of org.apache.log4j.Logger.
    log4j: Setting [log4j.category.org.hibernate.SQL] additivity to [true].
    log4j: Level value for log4j.category.org.hibernate.SQL is [STDOUT].
    log4j: log4j.category.org.hibernate.SQL level set to DEBUG
    log4j: Class name: [org.apache.log4j.ConsoleAppender]
    log4j: Setting property [target] to [System.out].
    log4j: Setting property [threshold] to [INFO].
    log4j: Parsing layout of class: "org.apache.log4j.PatternLayout"
    log4j: Setting property [conversionPattern] to [%d{ABSOLUTE} %-5p [%c{1}] %m%n].
    log4j: Adding appender named [CONSOLE] to category [root].
    log4j: Class name: [org.apache.log4j.DailyRollingFileAppender]
    log4j: Setting property [file] to [./server.log].
    log4j: Setting property [append] to [false].
    log4j: Setting property [datePattern] to ['.'yyyy-MM-dd].
    log4j: Parsing layout of class: "org.apache.log4j.PatternLayout"
    log4j: Setting property [conversionPattern] to [%d %-5p [%c] %m%n].
    log4j: setFile called: ./server.log, false
    log4j: setFile ended
    log4j: Appender [FILE] to be rolled at midnight.
    log4j: Adding appender named [FILE] to category [root].
    <18-12-2012 13:58:12 o'clock EET> <Warning> <NodeManager> <WL-300043> <Node manager native library not found - server process id not saved.>
    <18-12-2012 13:58:13 o'clock EET> <Error> <Socket> <WL-000438> <Unable to load performance pack. Using Java I/O instead. Please ensure that wlntio.dll is in: 'C:\PROGRA~1\Java\JDK16~1.0_3\bin;C:\Windows\Sun\Java\bin;C:\Windows\system32;C:\Windows;C:\Oracle\MIDDLE~1.6\patch_wls1035\profiles\default\native;C:\Oracle\MIDDLE~1.6\patch_jdev1111\profiles\default\native;C:\Oracle\MIDDLE~1.6\WLSERV~1.3\server\native\win\32;C:\Oracle\MIDDLE~1.6\WLSERV~1.3\server\bin;C:\Oracle\MIDDLE~1.6\modules\ORGAPA~1.1\bin;C:\PROGRA~1\Java\JDK16~1.0_3\jre\bin;C:\PROGRA~1\Java\JDK16~1.0_3\bin;C:\Program Files\Java\jre6X64;C:\Program Files\Java\jre6X64\bin;C:\Oracle\database\app\oracle\product\11.2.0\server\bin;C:\Oracle\database\app\oracle\product\11.2.0\server;C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files\WIDCOMM\Bluetooth Software\;C:\Program Files\WIDCOMM\Bluetooth Software\syswow64;C:\Program Files\Intel\WiFi\bin\;C:\Program Files\Common Files\Intel\WirelessCommon\;C:\Program Files (x86)\Microsoft SQL Server\100\Tools\Binn\;C:\Program Files\Microsoft SQL Server\100\Tools\Binn\;C:\Program Files\Microsoft SQL Server\100\DTS\Binn\;C:\Program Files (x86)\Microsoft SQL Server\100\Tools\Binn\VSShell\Common7\IDE\;C:\Program Files (x86)\Microsoft Visual Studio 9.0\Common7\IDE\PrivateAssemblies\;C:\Program Files (x86)\Microsoft SQL Server\100\DTS\Binn\;C:\Program Files\Dell\Dell Wireless WLAN Card;C:\Program Files (x86)\QuickTime\QTSystem\;C:\Program Files\TortoiseSVN\bin;C:\Program Files (x86)\ATI Technologies\ATI.ACE\Core-Static;C:\Program Files (x86)\OpenVPN\bin;C:\Users\Dijitaluser\Desktop\Yeni klasör\commons-logging-1.0.4.jar;;C:\Oracle\MIDDLE~1.6\WLSERV~1.3\server\native\win\32\oci920_8;.'
    >
    <18-12-2012 13:58:19 o'clock EET> <Notice> <Security> <BEA-090082> <Security initializing using security realm myrealm.>
    <18-12-2012 13:58:20 o'clock EET> <Warning> <Store> <WL-280101> <The persistent file store "_WLS_DefaultServer" is forced to use buffered I/O and so may have significantly degraded performance. Either the OS/hardware environment does not support the chosen write policy or the native wlfileio library is missing. See store open log messages for the requested and final write policies. See the documentation on store synchronous write policy configuration for advice.>
    <18-Dec-2012 13:58:20 o'clock EET> <Notice> <LoggingService> <BEA-320400> <The log file C:\Users\Dijitaluser\AppData\Roaming\JDeveloper\system11.1.1.6.38.61.92\DefaultDomain\servers\DefaultServer\logs\access.log will be rotated. Reopen the log file if tailing has stopped. This can happen on some platforms like Windows.>
    <18-Dec-2012 13:58:20 o'clock EET> <Notice> <LoggingService> <BEA-320401> <The log file has been rotated to C:\Users\Dijitaluser\AppData\Roaming\JDeveloper\system11.1.1.6.38.61.92\DefaultDomain\servers\DefaultServer\logs\access.log00001. Log messages will continue to be logged in C:\Users\Dijitaluser\AppData\Roaming\JDeveloper\system11.1.1.6.38.61.92\DefaultDomain\servers\DefaultServer\logs\access.log.>
    <18-12-2012 13:58:23 o'clock EET> <Notice> <StdErr> <BEA-000000> <java.util.logging.ErrorManager: 0: oracle.core.ojdl.weblogic.DomainLogHandler ERROR: unable to find instance of weblogic.logging.DomainLogBroadcastHandler>
    <18-12-2012 13:58:25 o'clock EET> <Notice> <WebLogicServer> <WL-000365> <Server state changed to STANDBY>
    <18-12-2012 13:58:25 o'clock EET> <Notice> <WebLogicServer> <WL-000365> <Server state changed to STARTING>
    <18-12-2012 13:58:29 o'clock EET> <Warning> <J2EE> <WL-160195> <The application version lifecycle event listener oracle.security.jps.wls.listeners.JpsAppVersionLifecycleListener is ignored because the application Roketsan is not versioned.>
    <18-Dec-2012 13:58:37 o'clock EET> <Notice> <LoggingService> <BEA-320400> <The log file C:\Users\Dijitaluser\AppData\Roaming\JDeveloper\system11.1.1.6.38.61.92\DefaultDomain\servers\DefaultServer\logs\DefaultDomain.log will be rotated. Reopen the log file if tailing has stopped. This can happen on some platforms like Windows.>
    <18-Dec-2012 13:58:37 o'clock EET> <Notice> <LoggingService> <BEA-320401> <The log file has been rotated to C:\Users\Dijitaluser\AppData\Roaming\JDeveloper\system11.1.1.6.38.61.92\DefaultDomain\servers\DefaultServer\logs\DefaultDomain.log00016. Log messages will continue to be logged in C:\Users\Dijitaluser\AppData\Roaming\JDeveloper\system11.1.1.6.38.61.92\DefaultDomain\servers\DefaultServer\logs\DefaultDomain.log.>
    <18-12-2012 13:58:37 o'clock EET> <Notice> <Log Management> <WL-170027> <The Server has established connection with the Domain level Diagnostic Service successfully.>
    <18-12-2012 13:58:37 o'clock EET> <Notice> <WebLogicServer> <WL-000365> <Server state changed to ADMIN>
    <18-12-2012 13:58:37 o'clock EET> <Notice> <WebLogicServer> <WL-000365> <Server state changed to RESUMING>
    <18-12-2012 13:58:38 o'clock EET> <Notice> <Server> <WL-002613> <Channel "Default[11]" is now listening on 0:0:0:0:0:0:0:1:7101 for protocols iiop, t3, ldap, snmp, http.>
    <18-12-2012 13:58:38 o'clock EET> <Warning> <Server> <WL-002611> <Hostname "AD190", maps to multiple IP addresses: 169.254.50.94, 192.168.26.212, fe80:0:0:0:a1be:61f:f156:325e%38>
    <18-12-2012 13:58:38 o'clock EET> <Notice> <Server> <WL-002613> <Channel "Default[3]" is now listening on fe80:0:0:0:a1be:61f:f156:325e:7101 for protocols iiop, t3, ldap, snmp, http.>
    <18-12-2012 13:58:38 o'clock EET> <Notice> <Server> <WL-002613> <Channel "Default[10]" is now listening on 127.0.0.1:7101 for protocols iiop, t3, ldap, snmp, http.>
    <18-12-2012 13:58:38 o'clock EET> <Notice> <Server> <WL-002613> <Channel "Default[1]" is now listening on fe80:0:0:0:0:5efe:a9fe:325e:7101 for protocols iiop, t3, ldap, snmp, http.>
    <18-12-2012 13:58:38 o'clock EET> <Notice> <Server> <WL-002613> <Channel "Default[7]" is now listening on fe80:0:0:0:a0d0:352d:6b23:d7dc:7101 for protocols iiop, t3, ldap, snmp, http.>
    <18-12-2012 13:58:38 o'clock EET> <Notice> <Server> <WL-002613> <Channel "Default[8]" is now listening on fe80:0:0:0:648c:26dc:32a5:1300:7101 for protocols iiop, t3, ldap, snmp, http.>
    <18-12-2012 13:58:38 o'clock EET> <Notice> <Server> <WL-002613> <Channel "Default[4]" is now listening on fe80:0:0:0:0:5efe:c0a8:1ad4:7101 for protocols iiop, t3, ldap, snmp, http.>
    <18-12-2012 13:58:38 o'clock EET> <Notice> <Server> <WL-002613> <Channel "Default[5]" is now listening on fe80:0:0:0:34a0:7762:7e2f:fca8:7101 for protocols iiop, t3, ldap, snmp, http.>
    <18-12-2012 13:58:38 o'clock EET> <Notice> <Server> <WL-002613> <Channel "Default[9]" is now listening on fe80:0:0:0:0:100:7f:fffe:7101 for protocols iiop, t3, ldap, snmp, http.>
    <18-12-2012 13:58:38 o'clock EET> <Notice> <Server> <WL-002613> <Channel "Default" is now listening on 192.168.26.212:7101 for protocols iiop, t3, ldap, snmp, http.>
    <18-12-2012 13:58:38 o'clock EET> <Notice> <Server> <WL-002613> <Channel "Default[2]" is now listening on 169.254.50.94:7101 for protocols iiop, t3, ldap, snmp, http.>
    <18-12-2012 13:58:38 o'clock EET> <Notice> <Server> <WL-002613> <Channel "Default[6]" is now listening on fe80:0:0:0:fdaf:7651:30df:acb6:7101 for protocols iiop, t3, ldap, snmp, http.>
    <18-12-2012 13:58:38 o'clock EET> <Notice> <WebLogicServer> <WL-000331> <Started WebLogic Admin Server "DefaultServer" for domain "DefaultDomain" running in Development Mode>
    <18-12-2012 13:58:38 o'clock EET> <Notice> <WebLogicServer> <WL-000365> <Server state changed to RUNNING>
    <18-12-2012 13:58:38 o'clock EET> <Notice> <WebLogicServer> <WL-000360> <Server started in RUNNING mode>
    IntegratedWebLogicServer startup time: 30110 ms.
    IntegratedWebLogicServer started.
    Edited by: webyildirim on 18.Ara.2012 04:17

  • Log4j-1.2.7 axis weblogic 6.1

    Hi,
    I'm trying to deploy a J2EE application composed by two stateless ejb
    (say A and B) in weblogic 6.1.
    The A ejb uses log4j as logging tool.
    The B ejb use axis for accessing remote web services and
    weblogic.logging.NonCatalogLogger as logging tool.
    There aren't errors when I deploy the ear, but when I try to access
    the B ejb I obtain the errors reported later (I can call the B ejb's
    method, but the method fails when it invokes the web service...).
    Note: If I **not** use log4j in the A ejb, the B ejb works fine!!!
    I suppose that log4j creates some conflicts when used in conjuction
    with axis in weblogic environment...
    If other informations are nedeed, please ask to me.
    Every comment is greatly appreciated.
    Thanx in advance,
    Simone
    ############################ logs from StartDefaultServer Window
    log4j: Threshold ="null".
    log4j: Level value for root is [debug].
    log4j: root level set to DEBUG
    log4j: Class name: [org.apache.log4j.ConsoleAppender]
    log4j: Setting property [threshold] to [FATAL].
    log4j: Setting property [target] to [System.out].
    log4j: Parsing layout of class: "org.apache.log4j.PatternLayout"
    log4j: Setting property [conversionPattern] to [%d{yyyy-MM-dd
    HH:mm:ss} [CNFG] %
    -5p %c{1}(%F:%L) - %m%n].
    log4j: Adding appender named [console] to category [root].
    log4j: Class name: [org.apache.log4j.DailyRollingFileAppender]
    log4j: Setting property [file] to [cnfg.log].
    log4j: Setting property [append] to [true].
    log4j: Setting property [datePattern] to ['.'yyyy-MM-dd'.log'].
    log4j: Parsing layout of class: "org.apache.log4j.PatternLayout"
    log4j: Setting property [conversionPattern] to [%d{yyyy-MM-dd
    HH:mm:ss} [CNFG] %
    -5p %c{1}(%F:%L) - %m%n].
    log4j: setFile called: cnfg.log, true
    log4j: setFile ended
    log4j: Appender [file] to be rolled at midnight.
    log4j: Adding appender named [file] to category [root].
    log4j: Class name: [org.apache.log4j.FileAppender]
    log4j: Setting property [threshold] to [FATAL].
    log4j: Setting property [file] to [fatal-wls.log].
    log4j: Parsing layout of class: "org.apache.log4j.PatternLayout"
    log4j: Setting property [conversionPattern] to [%d{yyyy-MM-dd
    HH:mm:ss} [CNFG] %
    -5p %c{1}(%F:%L) - %m%n].
    log4j: setFile called: fatal-wls.log, true
    log4j: setFile ended
    log4j: Adding appender named [fatalLog] to category [root].
    log4j: cnfg.log -> cnfg.log.2003-05-15.log
    log4j: setFile called: cnfg.log, false
    log4j: setFile ended
    <16-mag-03 10.12.14 CEST> <Error>
    <com.reply.trilogy.self.EAI_PublisherCOM.EAI_P
    ublisherEJBBean_9ox0hf_Impl> <; nested exception is:
    org.xml.sax.SAXParseException: The root element is required in
    a well-fo
    rmed document.
    org.xml.sax.SAXParseException: The root element is required in a
    well-formed doc
    ument.
    org.xml.sax.SAXParseException: The root element is required in a
    well-formed doc
    ument.
    at weblogic.apache.xerces.framework.XMLParser.reportError(XMLParser.java
    :1090)
    at weblogic.apache.xerces.framework.XMLDocumentScanner.reportFatalXMLErr
    or(XMLDocumentScanner.java:655)
    at weblogic.apache.xerces.framework.XMLDocumentScanner$XMLDeclDispatcher
    .endOfInput(XMLDocumentScanner.java:875)
    at weblogic.apache.xerces.framework.XMLDocumentScanner.endOfInput(XMLDoc
    umentScanner.java:447)
    at weblogic.apache.xerces.validators.common.XMLValidator.sendEndOfInputN
    otifications(XMLValidator.java:691)
    at weblogic.apache.xerces.readers.DefaultEntityHandler.changeReaders(Def
    aultEntityHandler.java:1036)
    at weblogic.apache.xerces.readers.XMLEntityReader.changeReaders(XMLEntit
    yReader.java:168)
    at weblogic.apache.xerces.readers.AbstractCharReader.changeReaders(Abstr
    actCharReader.java:150)
    at weblogic.apache.xerces.readers.AbstractCharReader.lookingAtChar(Abstr
    actCharReader.java:217)
    at weblogic.apache.xerces.framework.XMLDocumentScanner$XMLDeclDispatcher
    .dispatch(XMLDocumentScanner.java:771)
    at weblogic.apache.xerces.framework.XMLDocumentScanner.parseSome(XMLDocu
    mentScanner.java:396)
    at weblogic.apache.xerces.framework.XMLParser.parse(XMLParser.java:975)
    at weblogic.xml.jaxp.WebLogicXMLReader.parse(WebLogicXMLReader.java:123)
    at weblogic.xml.jaxp.RegistryXMLReader.parse(RegistryXMLReader.java:125)
    at javax.xml.parsers.SAXParser.parse(SAXParser.java:346)
    at org.apache.axis.encoding.DeserializationContextImpl.parse(Deserializa
    tionContextImpl.java:201)
    at org.apache.axis.SOAPPart.getAsSOAPEnvelope(SOAPPart.java:428)
    at org.apache.axis.client.Call.invoke(Call.java:1794)
    at org.apache.axis.client.Call.invoke(Call.java:1596)
    at org.apache.axis.client.Call.invoke(Call.java:1515)
    at org.apache.axis.client.Call.invoke(Call.java:1095)
    at com.reply.trilogy.self.EAI_PublisherCOM.IPublisherSoapBindingStub.get
    ComponentVersion(Unknown Source)
    at com.reply.trilogy.self.EAI_PublisherCOM.EAI_PublisherEJBBean.getCompo
    nentVersion(Unknown Source)
    at com.reply.trilogy.self.EAI_PublisherCOM.EAI_PublisherEJBBean_9ox0hf_E
    OImpl.getComponentVersion(EAI_PublisherEJBBean_9ox0hf_EOImpl.java:36)
    at com.reply.trilogy.self.EAI_PublisherCOM.EAI_PublisherEJBBean_9ox0hf_E
    OImpl_WLSkel.invoke(Unknown Source)
    at weblogic.rmi.internal.BasicServerRef.invoke(BasicServerRef.java:305)
    at weblogic.rmi.cluster.ReplicaAwareServerRef.invoke(ReplicaAwareServerR
    ef.java:93)
    at weblogic.rmi.internal.BasicServerRef.handleRequest(BasicServerRef.jav
    a:274)
    at weblogic.rmi.internal.BasicExecuteRequest.execute(BasicExecuteRequest
    .java:22)
    at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:139)
    at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)
    >
    ########################## logs from weblogic.log
    ####<16-mag-03 10.11.10 CEST> <Info> <EJB> <obi> <myserver>
    <ExecuteThread: '0' for queue: '__weblogic_admin_html_queue'> <system>
    <> <010008> <EJB Deploying file: cnfg-ejb.jar>
    ####<16-mag-03 10.11.10 CEST> <Info> <EJB> <obi> <myserver>
    <ExecuteThread: '0' for queue: '__weblogic_admin_html_queue'> <system>
    <> <010009> <EJB Deployed EJB with JNDI name
    com.etnoteam.trilogy.cnfg.ejb.CnfgDBAccessor.>
    ####<16-mag-03 10.11.10 CEST> <Info> <J2EE> <obi> <myserver>
    <ExecuteThread: '0' for queue: '__weblogic_admin_html_queue'> <system>
    <> <160003> <Deployed : cnfg-ejb>
    ####<16-mag-03 10.11.10 CEST> <Info> <EJB> <obi> <myserver>
    <ExecuteThread: '0' for queue: '__weblogic_admin_html_queue'> <system>
    <> <010008> <EJB Deploying file: self-ejb.jar>
    ####<16-mag-03 10.11.11 CEST> <Info> <EJB> <obi> <myserver>
    <ExecuteThread: '0' for queue: '__weblogic_admin_html_queue'> <system>
    <> <010009> <EJB Deployed EJB with JNDI name EAI_PublisherEJB.>
    ####<16-mag-03 10.11.11 CEST> <Info> <EJB> <obi> <myserver>
    <ExecuteThread: '0' for queue: '__weblogic_admin_html_queue'> <system>
    <> <010009> <EJB Deployed EJB with JNDI name WAPConfigEJB.>
    ####<16-mag-03 10.11.11 CEST> <Info> <EJB> <obi> <myserver>
    <ExecuteThread: '0' for queue: '__weblogic_admin_html_queue'> <system>
    <> <010009> <EJB Deployed EJB with JNDI name HandsetConfigEJB.>
    ####<16-mag-03 10.11.11 CEST> <Info> <J2EE> <obi> <myserver>
    <ExecuteThread: '0' for queue: '__weblogic_admin_html_queue'> <system>
    <> <160003> <Deployed : self-ejb>
    ####<16-mag-03 10.11.11 CEST> <Info> <HTTP> <obi> <myserver>
    <ExecuteThread: '0' for queue: '__weblogic_admin_html_queue'> <system>
    <> <101183> <[HTTP myserver] Unloading web app: certificate>
    ####<16-mag-03 10.11.11 CEST> <Info> <J2EE> <obi> <myserver>
    <ExecuteThread: '0' for queue: '__weblogic_admin_html_queue'> <system>
    <> <160004> <Undeployed : certificate>
    ####<16-mag-03 10.11.11 CEST> <Info> <HTTP> <obi> <myserver>
    <ExecuteThread: '0' for queue: '__weblogic_admin_html_queue'> <system>
    <> <101053> <[HTTP myserver] Loading web app: certificate>
    ####<16-mag-03 10.11.11 CEST> <Info> <HTTP> <obi> <myserver>
    <ExecuteThread: '0' for queue: '__weblogic_admin_html_queue'> <system>
    <> <101059> <[myserver] Loading certificate from WAR file:
    C:\bea\wlserver6.1\.\config\mydomain\applications\.wlnotdelete\wl_comp41793.war>
    ####<16-mag-03 10.11.11 CEST> <Info> <HTTP> <obi> <myserver>
    <ExecuteThread: '0' for queue: '__weblogic_admin_html_queue'> <system>
    <> <101031> <[WebAppServletContext(2620057,certificate,/certificate)]
    extracting classfiles to
    C:\bea\wlserver6.1\config\mydomain\applications\.wlnotdelete\WEB-INF\_tmp_war_certificate:>
    ####<16-mag-03 10.11.11 CEST> <Info> <HTTP> <obi> <myserver>
    <ExecuteThread: '0' for queue: '__weblogic_admin_html_queue'> <system>
    <> <101032> <[WebAppServletContext(2620057,certificate,/certificate)]
    extracted classfiles successfully...>
    ####<16-mag-03 10.11.11 CEST> <Info> <HTTP Session> <obi> <myserver>
    <ExecuteThread: '0' for queue: '__weblogic_admin_html_queue'> <system>
    <> <100037> <Creating SessionContext of type: memory for webapp:
    /certificate>
    ####<16-mag-03 10.11.11 CEST> <Info> <HTTP> <obi> <myserver>
    <ExecuteThread: '0' for queue: '__weblogic_admin_html_queue'> <system>
    <> <101047> <[WebAppServletContext(2620057,certificate,/certificate)]
    registering classpath servlet with initArgs 'null'>
    ####<16-mag-03 10.11.11 CEST> <Info> <HTTP> <obi> <myserver>
    <ExecuteThread: '0' for queue: '__weblogic_admin_html_queue'> <system>
    <> <101047> <[WebAppServletContext(2620057,certificate,/certificate)]
    registering getior servlet with initArgs 'null'>
    ####<16-mag-03 10.11.11 CEST> <Info> <HTTP> <obi> <myserver>
    <ExecuteThread: '0' for queue: '__weblogic_admin_html_queue'> <system>
    <> <101047> <[WebAppServletContext(2620057,certificate,/certificate)]
    registering tunneling servlets with initArgs
    'wl-dispatch-policy=direct'>
    ####<16-mag-03 10.11.11 CEST> <Info> <HTTP> <obi> <myserver>
    <ExecuteThread: '0' for queue: '__weblogic_admin_html_queue'> <system>
    <> <101047> <[WebAppServletContext(2620057,certificate,/certificate)]
    registering JSPServlet with initArgs '[JspConfig:
    verbose=true,packagePrefix=jsp_servlet,-compiler=javac,compileFlags=,workingDir=C:\bea\wlserver6.1\config\mydomain\applications\.wlnotdelete\WEB-INF\_tmp_war_certificate,pageCheckSeconds=1,superclass=null,keepgenerated=false,precompileContinue=false,compilerSupportsEncoding=true,encoding=null,defaultfilename=index.jsp,compilerclass=null,noTryBlocks=false]'>
    ####<16-mag-03 10.11.11 CEST> <Debug> <HTTP> <obi> <myserver>
    <ExecuteThread: '0' for queue: '__weblogic_admin_html_queue'> <system>
    <> <101097> <Registering ServletContext: "certificate:/certificate">
    ####<16-mag-03 10.11.11 CEST> <Info> <J2EE> <obi> <myserver>
    <ExecuteThread: '0' for queue: '__weblogic_admin_html_queue'> <system>
    <> <160003> <Deployed : certificate>
    ####<16-mag-03 10.12.14 CEST> <Error>
    <com.reply.trilogy.self.EAI_PublisherCOM.EAI_PublisherEJBBean_9ox0hf_Impl>
    <obi> <myserver> <ExecuteThread: '14' for queue: 'default'> <>
    <0:aa08131a7f28edb9> <000000> <; nested exception is:
         org.xml.sax.SAXParseException: The root element is required in a
    well-formed document.>
    org.xml.sax.SAXParseException: The root element is required in a
    well-formed document.
    org.xml.sax.SAXParseException: The root element is required in a
    well-formed document.
         at weblogic.apache.xerces.framework.XMLParser.reportError(XMLParser.java:1090)
         at weblogic.apache.xerces.framework.XMLDocumentScanner.reportFatalXMLError(XMLDocumentScanner.java:655)
         at weblogic.apache.xerces.framework.XMLDocumentScanner$XMLDeclDispatcher.endOfInput(XMLDocumentScanner.java:875)
         at weblogic.apache.xerces.framework.XMLDocumentScanner.endOfInput(XMLDocumentScanner.java:447)
         at weblogic.apache.xerces.validators.common.XMLValidator.sendEndOfInputNotifications(XMLValidator.java:691)
         at weblogic.apache.xerces.readers.DefaultEntityHandler.changeReaders(DefaultEntityHandler.java:1036)
         at weblogic.apache.xerces.readers.XMLEntityReader.changeReaders(XMLEntityReader.java:168)
         at weblogic.apache.xerces.readers.AbstractCharReader.changeReaders(AbstractCharReader.java:150)
         at weblogic.apache.xerces.readers.AbstractCharReader.lookingAtChar(AbstractCharReader.java:217)
         at weblogic.apache.xerces.framework.XMLDocumentScanner$XMLDeclDispatcher.dispatch(XMLDocumentScanner.java:771)
         at weblogic.apache.xerces.framework.XMLDocumentScanner.parseSome(XMLDocumentScanner.java:396)
         at weblogic.apache.xerces.framework.XMLParser.parse(XMLParser.java:975)
         at weblogic.xml.jaxp.WebLogicXMLReader.parse(WebLogicXMLReader.java:123)
         at weblogic.xml.jaxp.RegistryXMLReader.parse(RegistryXMLReader.java:125)
         at javax.xml.parsers.SAXParser.parse(SAXParser.java:346)
         at org.apache.axis.encoding.DeserializationContextImpl.parse(DeserializationContextImpl.java:201)
         at org.apache.axis.SOAPPart.getAsSOAPEnvelope(SOAPPart.java:428)
         at org.apache.axis.client.Call.invoke(Call.java:1794)
         at org.apache.axis.client.Call.invoke(Call.java:1596)
         at org.apache.axis.client.Call.invoke(Call.java:1515)
         at org.apache.axis.client.Call.invoke(Call.java:1095)
         at com.reply.trilogy.self.EAI_PublisherCOM.IPublisherSoapBindingStub.getComponentVersion(Unknown
    Source)
         at com.reply.trilogy.self.EAI_PublisherCOM.EAI_PublisherEJBBean.getComponentVersion(Unknown
    Source)
         at com.reply.trilogy.self.EAI_PublisherCOM.EAI_PublisherEJBBean_9ox0hf_EOImpl.getComponentVersion(EAI_PublisherEJBBean_9ox0hf_EOImpl.java:36)
         at com.reply.trilogy.self.EAI_PublisherCOM.EAI_PublisherEJBBean_9ox0hf_EOImpl_WLSkel.invoke(Unknown
    Source)
         at weblogic.rmi.internal.BasicServerRef.invoke(BasicServerRef.java:305)
         at weblogic.rmi.cluster.ReplicaAwareServerRef.invoke(ReplicaAwareServerRef.java:93)
         at weblogic.rmi.internal.BasicServerRef.handleRequest(BasicServerRef.java:274)
         at weblogic.rmi.internal.BasicExecuteRequest.execute(BasicExecuteRequest.java:22)
         at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:139)
         at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)
    ####<16-mag-03 10.15.32 CEST> <Info> <Management> <obi> <myserver>
    <ExecuteThread: '10' for queue: 'default'> <system> <> <140009>
    <Configuration changes for domain saved to the repository.>

    Hi Rob,
    thanks for the response.
    I'll report later the SOAP messages involved in web service
    invocation.
    Note the SOAP messages are the **same** in the case the A ejb dont't
    uses log4j (...and the B ejb works fine) and in the case the A ejb
    uses log4j (the B ejb report the error in invoking the web service).
    P.S. I obtain the same errors if I don't include the A ejb in the EAR
    and the B ejb use log4j instead of weblogic.logging.NonCatalogLogger.
    Any idea?
    This is the dump:
    ==== Request ====
    POST /app/EAI_Publisher.WSDL HTTP/1.0
    Content-Length: 487
    Host: 10.254.2.114
    Content-Type: text/xml; charset=utf-8
    SOAPAction: "http://10.254.2.114:3333/EAI_Publisher/action/iPublisher.GetComponentVersion"
    <?xml version="1.0" encoding="UTF-8"?>
    <SOAP-ENV:Envelope SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
    xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
    xmlns:xsd="http://www.w3.org/2001/XMLSchema"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/">
    <SOAP-ENV:Body>
    <ns1:GetComponentVersion
    xmlns:ns1="http://10.254.2.114:3333/EAI_Publisher/message/"/>
    </SOAP-ENV:Body>
    </SOAP-ENV:Envelope>
    ==== Response ====
    HTTP/1.1 200 OK
    Server: Microsoft-IIS/4.0
    Date: Thu, 22 May 2003 13:35:59 GMT
    Content-Type: text/xml; charset="UTF-16"
    Content-Length: 1168
    Expires: -1;
    ÿþ
    < ? x m l v e r s i o n = " 1 . 0 " e n c o d i n g = " U T F - 1
    6 " s t a n d a l o n e = " n o " ? >
    < S O A P - E N V : E n v e l o p e x m l n s : S O A P S D K 1 = "
    h t t p : / / w w w . w 3 . o r g / 2 0 0 1 / X M L S c h e m a " x
    m l n s : S O A P S D K 2 = " h t t p : / / w w w . w 3 . o r g / 2 0
    0 1 / X M L S c h e m a - i n s t a n c e " x m l n s : S O A P S D
    K 3 = " h t t p : / / s c h e m a s . x m l s o a p . o r g / s o a p
    / e n c o d i n g / " x m l n s : S O A P - E N V = " h t t p : / /
    s c h e m a s . x m l s o a p . o r g / s o a p / e n v e l o p e / "
    >
    < S O A P - E N V : B o d y S O A P - E N V : e n c o d i n g S t
    y l e = " h t t p : / / s c h e m a s . x m l s o a p . o r g / s o a
    p / e n c o d i n g / " >
    < S O A P S D K 4 : G e t C o m p o n e n t V e r s i o n R e s p o
    n s e x m l n s : S O A P S D K 4 = " h t t p : / / 1 0 . 2 5 4 . 2
    . 1 1 4 : 3 3 3 3 / E A I _ P u b l i s h e r / m e s s a g e / " >
    < R e s u l t > 1 . 0 . 8
    < / R e s u l t >
    < / S O A P S D K 4 : G e t C o m p o n e n t V e r s i o n R e
    s p o n s e >
    < / S O A P - E N V : B o d y >
    < / S O A P - E N V : E n v e l o p e >
    Rob Woollen <[email protected]> wrote in message news:<[email protected]>...
    I think you'll need to do some more debugging here before we can help
    you. It looks like AXIS is failing to parse an XML document it receives
    as a Web Service response. I would suggest printing out the XML
    document it receives. I suspect it is not XML.
    -- Rob
    Simone wrote:
    Hi,
    I'm trying to deploy a J2EE application composed by two stateless ejb
    (say A and B) in weblogic 6.1.
    The A ejb uses log4j as logging tool.
    The B ejb use axis for accessing remote web services and
    weblogic.logging.NonCatalogLogger as logging tool.
    There aren't errors when I deploy the ear, but when I try to access
    the B ejb I obtain the errors reported later (I can call the B ejb's
    method, but the method fails when it invokes the web service...).
    Note: If I **not** use log4j in the A ejb, the B ejb works fine!!!
    I suppose that log4j creates some conflicts when used in conjuction
    with axis in weblogic environment...
    If other informations are nedeed, please ask to me.
    Every comment is greatly appreciated.
    Thanx in advance,
    Simone
    ############################ logs from StartDefaultServer Window
    log4j: Threshold ="null".
    log4j: Level value for root is [debug].
    log4j: root level set to DEBUG
    log4j: Class name: [org.apache.log4j.ConsoleAppender]
    log4j: Setting property [threshold] to [FATAL].
    log4j: Setting property [target] to [System.out].
    log4j: Parsing layout of class: "org.apache.log4j.PatternLayout"
    log4j: Setting property [conversionPattern] to [%d{yyyy-MM-dd
    HH:mm:ss} [CNFG] %
    -5p %c{1}(%F:%L) - %m%n].
    log4j: Adding appender named [console] to category [root].
    log4j: Class name: [org.apache.log4j.DailyRollingFileAppender]
    log4j: Setting property [file] to [cnfg.log].
    log4j: Setting property [append] to [true].
    log4j: Setting property [datePattern] to ['.'yyyy-MM-dd'.log'].
    log4j: Parsing layout of class: "org.apache.log4j.PatternLayout"
    log4j: Setting property [conversionPattern] to [%d{yyyy-MM-dd
    HH:mm:ss} [CNFG] %
    -5p %c{1}(%F:%L) - %m%n].
    log4j: setFile called: cnfg.log, true
    log4j: setFile ended
    log4j: Appender [file] to be rolled at midnight.
    log4j: Adding appender named [file] to category [root].
    log4j: Class name: [org.apache.log4j.FileAppender]
    log4j: Setting property [threshold] to [FATAL].
    log4j: Setting property [file] to [fatal-wls.log].
    log4j: Parsing layout of class: "org.apache.log4j.PatternLayout"
    log4j: Setting property [conversionPattern] to [%d{yyyy-MM-dd
    HH:mm:ss} [CNFG] %
    -5p %c{1}(%F:%L) - %m%n].
    log4j: setFile called: fatal-wls.log, true
    log4j: setFile ended
    log4j: Adding appender named [fatalLog] to category [root].
    log4j: cnfg.log -> cnfg.log.2003-05-15.log
    log4j: setFile called: cnfg.log, false
    log4j: setFile ended
    <16-mag-03 10.12.14 CEST> <Error>
    <com.reply.trilogy.self.EAI_PublisherCOM.EAI_P
    ublisherEJBBean_9ox0hf_Impl> <; nested exception is:
    org.xml.sax.SAXParseException: The root element is required in
    a well-fo
    rmed document.
    org.xml.sax.SAXParseException: The root element is required in a
    well-formed doc
    ument.
    org.xml.sax.SAXParseException: The root element is required in a
    well-formed doc
    ument.
    at weblogic.apache.xerces.framework.XMLParser.reportError(XMLParser.java
    :1090)
    at weblogic.apache.xerces.framework.XMLDocumentScanner.reportFatalXMLErr
    or(XMLDocumentScanner.java:655)
    at weblogic.apache.xerces.framework.XMLDocumentScanner$XMLDeclDispatcher
    .endOfInput(XMLDocumentScanner.java:875)
    at weblogic.apache.xerces.framework.XMLDocumentScanner.endOfInput(XMLDoc
    umentScanner.java:447)
    at weblogic.apache.xerces.validators.common.XMLValidator.sendEndOfInputN
    otifications(XMLValidator.java:691)
    at weblogic.apache.xerces.readers.DefaultEntityHandler.changeReaders(Def
    aultEntityHandler.java:1036)
    at weblogic.apache.xerces.readers.XMLEntityReader.changeReaders(XMLEntit
    yReader.java:168)
    at weblogic.apache.xerces.readers.AbstractCharReader.changeReaders(Abstr
    actCharReader.java:150)
    at weblogic.apache.xerces.readers.AbstractCharReader.lookingAtChar(Abstr
    actCharReader.java:217)
    at weblogic.apache.xerces.framework.XMLDocumentScanner$XMLDeclDispatcher
    .dispatch(XMLDocumentScanner.java:771)
    at weblogic.apache.xerces.framework.XMLDocumentScanner.parseSome(XMLDocu
    mentScanner.java:396)
    at weblogic.apache.xerces.framework.XMLParser.parse(XMLParser.java:975)
    at weblogic.xml.jaxp.WebLogicXMLReader.parse(WebLogicXMLReader.java:123)
    at weblogic.xml.jaxp.RegistryXMLReader.parse(RegistryXMLReader.java:125)
    at javax.xml.parsers.SAXParser.parse(SAXParser.java:346)
    at org.apache.axis.encoding.DeserializationContextImpl.parse(Deserializa
    tionContextImpl.java:201)
    at org.apache.axis.SOAPPart.getAsSOAPEnvelope(SOAPPart.java:428)
    at org.apache.axis.client.Call.invoke(Call.java:1794)
    at org.apache.axis.client.Call.invoke(Call.java:1596)
    at org.apache.axis.client.Call.invoke(Call.java:1515)
    at org.apache.axis.client.Call.invoke(Call.java:1095)
    at com.reply.trilogy.self.EAI_PublisherCOM.IPublisherSoapBindingStub.get
    ComponentVersion(Unknown Source)
    at com.reply.trilogy.self.EAI_PublisherCOM.EAI_PublisherEJBBean.getCompo
    nentVersion(Unknown Source)
    at com.reply.trilogy.self.EAI_PublisherCOM.EAI_PublisherEJBBean_9ox0hf_E
    OImpl.getComponentVersion(EAI_PublisherEJBBean_9ox0hf_EOImpl.java:36)
    at com.reply.trilogy.self.EAI_PublisherCOM.EAI_PublisherEJBBean_9ox0hf_E
    OImpl_WLSkel.invoke(Unknown Source)
    at weblogic.rmi.internal.BasicServerRef.invoke(BasicServerRef.java:305)
    at weblogic.rmi.cluster.ReplicaAwareServerRef.invoke(ReplicaAwareServerR
    ef.java:93)
    at weblogic.rmi.internal.BasicServerRef.handleRequest(BasicServerRef.jav
    a:274)
    at weblogic.rmi.internal.BasicExecuteRequest.execute(BasicExecuteRequest
    .java:22)
    at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:139)
    at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)
    ########################## logs from weblogic.log
    ####<16-mag-03 10.11.10 CEST> <Info> <EJB> <obi> <myserver>
    <ExecuteThread: '0' for queue: '__weblogic_admin_html_queue'> <system>
    <> <010008> <EJB Deploying file: cnfg-ejb.jar>
    ####<16-mag-03 10.11.10 CEST> <Info> <EJB> <obi> <myserver>
    <ExecuteThread: '0' for queue: '__weblogic_admin_html_queue'> <system>
    <> <010009> <EJB Deployed EJB with JNDI name
    com.etnoteam.trilogy.cnfg.ejb.CnfgDBAccessor.>
    ####<16-mag-03 10.11.10 CEST> <Info> <J2EE> <obi> <myserver>
    <ExecuteThread: '0' for queue: '__weblogic_admin_html_queue'> <system>
    <> <160003> <Deployed : cnfg-ejb>
    ####<16-mag-03 10.11.10 CEST> <Info> <EJB> <obi> <myserver>
    <ExecuteThread: '0' for queue: '__weblogic_admin_html_queue'> <system>
    <> <010008> <EJB Deploying file: self-ejb.jar>
    ####<16-mag-03 10.11.11 CEST> <Info> <EJB> <obi> <myserver>
    <ExecuteThread: '0' for queue: '__weblogic_admin_html_queue'> <system>
    <> <010009> <EJB Deployed EJB with JNDI name EAI_PublisherEJB.>
    ####<16-mag-03 10.11.11 CEST> <Info> <EJB> <obi> <myserver>
    <ExecuteThread: '0' for queue: '__weblogic_admin_html_queue'> <system>
    <> <010009> <EJB Deployed EJB with JNDI name WAPConfigEJB.>
    ####<16-mag-03 10.11.11 CEST> <Info> <EJB> <obi> <myserver>
    <ExecuteThread: '0' for queue: '__weblogic_admin_html_queue'> <system>
    <> <010009> <EJB Deployed EJB with JNDI name HandsetConfigEJB.>
    ####<16-mag-03 10.11.11 CEST> <Info> <J2EE> <obi> <myserver>
    <ExecuteThread: '0' for queue: '__weblogic_admin_html_queue'> <system>
    <> <160003> <Deployed : self-ejb>
    ####<16-mag-03 10.11.11 CEST> <Info> <HTTP> <obi> <myserver>
    <ExecuteThread: '0' for queue: '__weblogic_admin_html_queue'> <system>
    <> <101183> <[HTTP myserver] Unloading web app: certificate>
    ####<16-mag-03 10.11.11 CEST> <Info> <J2EE> <obi> <myserver>
    <ExecuteThread: '0' for queue: '__weblogic_admin_html_queue'> <system>
    <> <160004> <Undeployed : certificate>
    ####<16-mag-03 10.11.11 CEST> <Info> <HTTP> <obi> <myserver>
    <ExecuteThread: '0' for queue: '__weblogic_admin_html_queue'> <system>
    <> <101053> <[HTTP myserver] Loading web app: certificate>
    ####<16-mag-03 10.11.11 CEST> <Info> <HTTP> <obi> <myserver>
    <ExecuteThread: '0' for queue: '__weblogic_admin_html_queue'> <system>
    <> <101059> <[myserver] Loading certificate from WAR file:
    C:\bea\wlserver6.1\.\config\mydomain\applications\.wlnotdelete\wl_comp41793.war>
    ####<16-mag-03 10.11.11 CEST> <Info> <HTTP> <obi> <myserver>
    <ExecuteThread: '0' for queue: '__weblogic_admin_html_queue'> <system>
    <> <101031> <[WebAppServletContext(2620057,certificate,/certificate)]
    extracting classfiles to
    C:\bea\wlserver6.1\config\mydomain\applications\.wlnotdelete\WEB-INF\_tmp_war_certificate:>
    ####<16-mag-03 10.11.11 CEST> <Info> <HTTP> <obi> <myserver>
    <ExecuteThread: '0' for queue: '__weblogic_admin_html_queue'> <system>
    <> <101032> <[WebAppServletContext(2620057,certificate,/certificate)]
    extracted classfiles successfully...>
    ####<16-mag-03 10.11.11 CEST> <Info> <HTTP Session> <obi> <myserver>
    <ExecuteThread: '0' for queue: '__weblogic_admin_html_queue'> <system>
    <> <100037> <Creating SessionContext of type: memory for webapp:
    /certificate>
    ####<16-mag-03 10.11.11 CEST> <Info> <HTTP> <obi> <myserver>
    <ExecuteThread: '0' for queue: '__weblogic_admin_html_queue'> <system>
    <> <101047> <[WebAppServletContext(2620057,certificate,/certificate)]
    registering classpath servlet with initArgs 'null'>
    ####<16-mag-03 10.11.11 CEST> <Info> <HTTP> <obi> <myserver>
    <ExecuteThread: '0' for queue: '__weblogic_admin_html_queue'> <system>
    <> <101047> <[WebAppServletContext(2620057,certificate,/certificate)]
    registering getior servlet with initArgs 'null'>
    ####<16-mag-03 10.11.11 CEST> <Info> <HTTP> <obi> <myserver>
    <ExecuteThread: '0' for queue: '__weblogic_admin_html_queue'> <system>
    <> <101047> <[WebAppServletContext(2620057,certificate,/certificate)]
    registering tunneling servlets with initArgs
    'wl-dispatch-policy=direct'>
    ####<16-mag-03 10.11.11 CEST> <Info> <HTTP> <obi> <myserver>
    <ExecuteThread: '0' for queue: '__weblogic_admin_html_queue'> <system>
    <> <101047> <[WebAppServletContext(2620057,certificate,/certificate)]
    registering JSPServlet with initArgs '[JspConfig:
    verbose=true,packagePrefix=jsp_servlet,-compiler=javac,compileFlags=,workingDir=C:\bea\wlserver6.1\config\mydomain\applications\.wlnotdelete\WEB-INF\_tmp_war_certificate,pageCheckSeconds=1,superclass=null,keepgenerated=false,precompileContinue=false,compilerSupportsEncoding=true,encoding=null,defaultfilename=index.jsp,compilerclass=null,noTryBlocks=false]'>
    ####<16-mag-03 10.11.11 CEST> <Debug> <HTTP> <obi> <myserver>
    <ExecuteThread: '0' for queue: '__weblogic_admin_html_queue'> <system>
    <> <101097> <Registering ServletContext: "certificate:/certificate">
    ####<16-mag-03 10.11.11 CEST> <Info> <J2EE> <obi> <myserver>
    <ExecuteThread: '0' for queue: '__weblogic_admin_html_queue'> <system>
    <> <160003> <Deployed : certificate>
    ####<16-mag-03 10.12.14 CEST> <Error>
    <com.reply.trilogy.self.EAI_PublisherCOM.EAI_PublisherEJBBean_9ox0hf_Impl>
    <obi> <myserver> <ExecuteThread: '14' for queue: 'default'> <>
    <0:aa08131a7f28edb9> <000000> <; nested exception is:
         org.xml.sax.SAXParseException: The root element is required in a
    well-formed document.>
    org.xml.sax.SAXParseException: The root element is required in a
    well-formed document.
    org.xml.sax.SAXParseException: The root element is required in a
    well-formed document.
         at weblogic.apache.xerces.framework.XMLParser.reportError(XMLParser.java:1090)
         at weblogic.apache.xerces.framework.XMLDocumentScanner.reportFatalXMLError(XMLDocumentScanner.java:655)
         at weblogic.apache.xerces.framework.XMLDocumentScanner$XMLDeclDispatcher.endOfInput(XMLDocumentScanner.java:875)
         at weblogic.apache.xerces.framework.XMLDocumentScanner.endOfInput(XMLDocumentScanner.java:447)
         at weblogic.apache.xerces.validators.common.XMLValidator.sendEndOfInputNotifications(XMLValidator.java:691)
         at weblogic.apache.xerces.readers.DefaultEntityHandler.changeReaders(DefaultEntityHandler.java:1036)
         at weblogic.apache.xerces.readers.XMLEntityReader.changeReaders(XMLEntityReader.java:168)
         at weblogic.apache.xerces.readers.AbstractCharReader.changeReaders(AbstractCharReader.java:150)
         at weblogic.apache.xerces.readers.AbstractCharReader.lookingAtChar(AbstractCharReader.java:217)
         at weblogic.apache.xerces.framework.XMLDocumentScanner$XMLDeclDispatcher.dispatch(XMLDocumentScanner.java:771)
         at weblogic.apache.xerces.framework.XMLDocumentScanner.parseSome(XMLDocumentScanner.java:396)
         at weblogic.apache.xerces.framework.XMLParser.parse(XMLParser.java:975)
         at weblogic.xml.jaxp.WebLogicXMLReader.parse(WebLogicXMLReader.java:123)
         at weblogic.xml.jaxp.RegistryXMLReader.parse(RegistryXMLReader.java:125)
         at javax.xml.parsers.SAXParser.parse(SAXParser.java:346)
         at org.apache.axis.encoding.DeserializationContextImpl.parse(DeserializationContextImpl.java:201)
         at org.apache.axis.SOAPPart.getAsSOAPEnvelope(SOAPPart.java:428)
         at org.apache.axis.client.Call.invoke(Call.java:1794)
         at org.apache.axis.client.Call.invoke(Call.java:1596)
         at org.apache.axis.client.Call.invoke(Call.java:1515)
         at org.apache.axis.client.Call.invoke(Call.java:1095)
         at com.reply.trilogy.self.EAI_PublisherCOM.IPublisherSoapBindingStub.getComponentVersion(Unknown
    Source)
         at com.reply.trilogy.self.EAI_PublisherCOM.EAI_PublisherEJBBean.getComponentVersion(Unknown
    Source)
         at com.reply.trilogy.self.EAI_PublisherCOM.EAI_PublisherEJBBean_9ox0hf_EOImpl.getComponentVersion(EAI_PublisherEJBBean_9ox0hf_EOImpl.java:36)
         at com.reply.trilogy.self.EAI_PublisherCOM.EAI_PublisherEJBBean_9ox0hf_EOImpl_WLSkel.invoke(Unknown
    Source)
         at weblogic.rmi.internal.BasicServerRef.invoke(BasicServerRef.java:305)
         at weblogic.rmi.cluster.ReplicaAwareServerRef.invoke(ReplicaAwareServerRef.java:93)
         at weblogic.rmi.internal.BasicServerRef.handleRequest(BasicServerRef.java:274)
         at weblogic.rmi.internal.BasicExecuteRequest.execute(BasicExecuteRequest.java:22)
         at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:139)
         at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)
    ####<16-mag-03 10.15.32 CEST> <Info> <Management> <obi> <myserver>
    <ExecuteThread: '10' for queue: 'default'> <system> <> <140009>
    <Configuration changes for domain saved to the repository.>

  • Commons logging and log4j

    Hi,
    When i start WL 9.1 server, i get the following error. My application uses log4j-1.2.8 and commons-logging-1.0.4.jar. I wasnt getting this in WL 8.1.4. is there any in-compatibilities(Looking at the error message, i looks like that).Is there anything that needs to be done for WL 9.1?
    <Mar 22, 2006 10:23:30 AM EST> <Notice> <Server> <BEA-002613> <Channel "Default[
    1]" is now listening on 127.0.0.1:7001 for protocols iiop, t3, ldap, http.>
    <Mar 22, 2006 10:23:30 AM EST> <Notice> <Server> <BEA-002613> <Channel "Default"
    is now listening on 10.173.194.102:7001 for protocols iiop, t3, ldap, http.>
    <Mar 22, 2006 10:23:30 AM EST> <Notice> <WebLogicServer> <BEA-000331> <Started W
    ebLogic Admin Server "AdminServer" for domain "coretest_oracle" running in Devel
    opment Mode>
    <Mar 22, 2006 10:23:30 AM EST> <Notice> <WebLogicServer> <BEA-000365> <Server st
    ate changed to RUNNING>
    <Mar 22, 2006 10:23:30 AM EST> <Notice> <WebLogicServer> <BEA-000360> <Server st
    arted in RUNNING mode>
    java.lang.NoSuchMethodError: org.apache.log4j.Category.log(Ljava/lang/String;Lor
    g/apache/log4j/Level;Ljava/lang/Object;Ljava/lang/Throwable;)V
    at org.apache.commons.logging.impl.Log4JCategoryLog.debug(Log4JCategoryL
    og.java:94)
    at com.bea.console.preferences.spi.FilePreferencesProvider.<init>(FilePr
    eferencesProvider.java:70)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstruct
    orAccessorImpl.java:39)
    at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingC
    onstructorAccessorImpl.java:27)
    at java.lang.reflect.Constructor.newInstance(Constructor.java:494)
    at java.lang.Class.newInstance0(Class.java:350)
    at java.lang.Class.newInstance(Class.java:303)
    at com.bea.portlet.prefs.spi.ProviderFactory.createInstance(ProviderFact
    ory.java:79)
    at com.bea.portlet.prefs.spi.ProviderFactory.setDefaultProviderClass(Pro
    viderFactory.java:47)
    at com.bea.portlet.prefs.spi.IPreferenceStore$Factory.registerDefaultPro
    vider(IPreferenceStore.java:128)
    at com.bea.netuix.servlets.manager.SingleFileServlet.init(SingleFileServ
    let.java:113)
    at javax.servlet.GenericServlet.init(GenericServlet.java:256)
    at weblogic.servlet.AsyncInitServlet.initDelegate(AsyncInitServlet.java:
    94)
    at weblogic.servlet.internal.WebAppServletContext$AsyncInitRequest.run(W
    ebAppServletContext.java:1641)
    at weblogic.work.ServerWorkManagerImpl$WorkAdapterImpl.run(ServerWorkMan
    agerImpl.java:518)
    at weblogic.work.ExecuteThread.execute(ExecuteThread.java:207)
    at weblogic.work.ExecuteThread.run(ExecuteThread.java:179)

    Hi,
    When i start WL 9.1 server, i get the following error. My application uses log4j-1.2.8 and commons-logging-1.0.4.jar. I wasnt getting this in WL 8.1.4. is there any in-compatibilities(Looking at the error message, i looks like that).Is there anything that needs to be done for WL 9.1?
    <Mar 22, 2006 10:23:30 AM EST> <Notice> <Server> <BEA-002613> <Channel "Default[
    1]" is now listening on 127.0.0.1:7001 for protocols iiop, t3, ldap, http.>
    <Mar 22, 2006 10:23:30 AM EST> <Notice> <Server> <BEA-002613> <Channel "Default"
    is now listening on 10.173.194.102:7001 for protocols iiop, t3, ldap, http.>
    <Mar 22, 2006 10:23:30 AM EST> <Notice> <WebLogicServer> <BEA-000331> <Started W
    ebLogic Admin Server "AdminServer" for domain "coretest_oracle" running in Devel
    opment Mode>
    <Mar 22, 2006 10:23:30 AM EST> <Notice> <WebLogicServer> <BEA-000365> <Server st
    ate changed to RUNNING>
    <Mar 22, 2006 10:23:30 AM EST> <Notice> <WebLogicServer> <BEA-000360> <Server st
    arted in RUNNING mode>
    java.lang.NoSuchMethodError: org.apache.log4j.Category.log(Ljava/lang/String;Lor
    g/apache/log4j/Level;Ljava/lang/Object;Ljava/lang/Throwable;)V
    at org.apache.commons.logging.impl.Log4JCategoryLog.debug(Log4JCategoryL
    og.java:94)
    at com.bea.console.preferences.spi.FilePreferencesProvider.<init>(FilePr
    eferencesProvider.java:70)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstruct
    orAccessorImpl.java:39)
    at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingC
    onstructorAccessorImpl.java:27)
    at java.lang.reflect.Constructor.newInstance(Constructor.java:494)
    at java.lang.Class.newInstance0(Class.java:350)
    at java.lang.Class.newInstance(Class.java:303)
    at com.bea.portlet.prefs.spi.ProviderFactory.createInstance(ProviderFact
    ory.java:79)
    at com.bea.portlet.prefs.spi.ProviderFactory.setDefaultProviderClass(Pro
    viderFactory.java:47)
    at com.bea.portlet.prefs.spi.IPreferenceStore$Factory.registerDefaultPro
    vider(IPreferenceStore.java:128)
    at com.bea.netuix.servlets.manager.SingleFileServlet.init(SingleFileServ
    let.java:113)
    at javax.servlet.GenericServlet.init(GenericServlet.java:256)
    at weblogic.servlet.AsyncInitServlet.initDelegate(AsyncInitServlet.java:
    94)
    at weblogic.servlet.internal.WebAppServletContext$AsyncInitRequest.run(W
    ebAppServletContext.java:1641)
    at weblogic.work.ServerWorkManagerImpl$WorkAdapterImpl.run(ServerWorkMan
    agerImpl.java:518)
    at weblogic.work.ExecuteThread.execute(ExecuteThread.java:207)
    at weblogic.work.ExecuteThread.run(ExecuteThread.java:179)

  • Log4j problems in WL 9.1

    Hi,
    I am trying to upgrade my application from 8.1.4 to 9.1 and when i start my WL server, it complains about log4j. I have log4j.jar in WL_HOME\server\lib and my start script has -Dweblogic.log.Log4jLoggingEnabled=true in weblogic.server command. I have also gone to the console and changed the logging from the default logging to use log4j. I am suppposed to do anything else? Here is the exception that is thrown
    <Mar 20, 2006 6:12:03 PM EST> <Error> <HTTP> <BEA-101359> <The servlet weblogic.
    servlet.AsyncInitServlet init method failed while it was run in the background.
    The exception was: java.lang.NoSuchMethodError: org.apache.log4j.Category.log(Lj
    ava/lang/String;Lorg/apache/log4j/Level;Ljava/lang/Object;Ljava/lang/Throwable;)
    V.
    java.lang.NoSuchMethodError: org.apache.log4j.Category.log(Ljava/lang/String;Lor
    g/apache/log4j/Level;Ljava/lang/Object;Ljava/lang/Throwable;)V
    at org.apache.commons.logging.impl.Log4JCategoryLog.error(Log4JCategoryL
    og.java:149)
    at org.apache.struts.util.MessageResourcesFactory.createFactory(MessageR
    esourcesFactory.java:197)
    at org.apache.struts.util.MessageResources.getMessageResources(MessageRe
    sources.java:576)
    at org.apache.struts.action.ActionServlet.initInternal(ActionServlet.jav
    a:1329)
    at org.apache.struts.action.ActionServlet.init(ActionServlet.java:464)
    Truncated. see log file for complete stacktrace
    >

    Yeah, Log4j is a pain in the ass in WL 9.1 imo. This is what I had to do to get it to work:
    - In the console or cmd line opt like you have, tell it to use Log4j (its jdk by default)
    - Copy wllog4j.jar, wlcommons-logging.jar, log4j.jar into your domain/lib directory
    - Create a file in your domain directory called commons-logging.properties with the contents:
    org.apache.commons.logging.Log=org.apache.commons.logging.impl.Log4JLogger
    - Put log4jConfig.xml in domain directory
    That worked for me. Hope this helps

  • Log4j directing log output to directory?

    Ok how do you direct the log output to a directory? Below is a small snippet that does some log4j stuff using a properties file. Please excuse the crudeness of my directory structure. This will not be the final structure.
    This is the logging app:package src.gov.osti.exceptions;
    import org.apache.log4j.Logger;
    import org.apache.log4j.Level;
    import org.apache.log4j.SimpleLayout;
    import org.apache.log4j.FileAppender;
    import org.apache.log4j.PropertyConfigurator;
    import java.io.IOException;
    import java.lang.Object;
    public class Log4JTest
       /** Creates a new instance of Log4JTest */
       public Log4JTest()
       public static void main(String[] args)
          //PropertyConfigurator.configure("log4j.properties");
          PropertyConfigurator.configure("/home/orozcom/proj/examples/WEB-INF/log4j.properties");
          Logger logger = Logger.getLogger("simple");
          logger.debug("A debug message");
          logger.info("A info message");
          logger.warn("A warn message");
          logger.error("A error message");
          logger.fatal("A fatal message");
    This is the log4j.properties file:
    # A simple logger
    log4j.logger.src.osti.gov.exceptions.simple=DEBUG, simple
    # This simple example will log to a file
    log4j.appender.simple=org.apache.log4j.FileAppender
    log4j.appender.simple.File=log4jsimple.log
    # We will use a simple layout for this example
    log4j.appender.simple.layout=org.apache.log4j.SimpleLayout
    This is the testing directory which is local:
    /home/orozcom/proj/examples/src/gov/osti/exceptions
    This is the final directory Structure.
    /app/tomcat/webapps/proj-name/logs
    The proj-name is of couse the name of the app, and inside each app will be logs directory to log to.
    How do I set up each app to log to its own logs directory?

    Just to close this out. I figured it out on my own through alot of trial and error. The problem was that for some dumb reason (My Own Dumb Reason), I was trying to write to a file in the class itself, instead of change the directory in the properties file. When I look back I realize how dumb that was? Why was I looking in the class to write to a log file? Any way you can specify anywhere you want the log to go:
    log4j.appender.simple.File=/home/orozcom/proj/examples/logs/log4jsimple.log
    log4j.appender.simple.File=/tomcat/logs/log4jsimple.log

  • Weblogic 8.1sp3 log4j-1.2.7 problem

    i am facing the below problem. I already set the classpath for log4j jar files. Please give the response as early as possible ?
    <Dec 22, 2005 10:25:07 AM GMT> <Error> <HTTP> <BEA-101125> <[ServletContext(id=17893531,name=Search,context-path=/Search)] Error occurred while instantiating servlet: "default".
    java.lang.NoSuchMethodError: org.apache.log4j.spi.RootCategory.<init>(Lorg/apache/log4j/Level;)V
    at org.apache.log4j.LogManager.<clinit>(LogManager.java:69)
    at org.apache.log4j.Logger.getLogger(Logger.java:85)
    at com.hutchison3g.search.servlet.DefaultServlet.init(DefaultServlet.java:35)
    at weblogic.servlet.internal.ServletStubImpl$ServletInitAction.run(ServletStubImpl.java:1018)
    at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
    at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:118)
    at weblogic.servlet.internal.ServletStubImpl.createServlet(ServletStubImpl.java:894)
    at weblogic.servlet.internal.ServletStubImpl.createInstances(ServletStubImpl.java:873)
    at weblogic.servlet.internal.ServletStubImpl.prepareServlet(ServletStubImpl.java:812)
    at weblogic.servlet.internal.WebAppServletContext.preloadServlet(WebAppServletContext.java:3281)
    at weblogic.servlet.internal.WebAppServletContext.preloadServlets(WebAppServletContext.java:3226)
    at weblogic.servlet.internal.WebAppServletContext.preloadResources(WebAppServletContext.java:3207)
    at weblogic.servlet.internal.HttpServer.preloadResources(HttpServer.java:694)
    at weblogic.servlet.internal.WebService.preloadResources(WebService.java:483)
    at weblogic.servlet.internal.ServletInitService.resume(ServletInitService.java:30)
    at weblogic.t3.srvr.SubsystemManager.resume(SubsystemManager.java:131)
    at weblogic.t3.srvr.T3Srvr.resume(T3Srvr.java:966)
    at weblogic.t3.srvr.T3Srvr.run(T3Srvr.java:361)
    at weblogic.Server.main(Server.java:32)

    i am facing the below problem. I already set the classpath for log4j jar files. Please give the response as early as possible ?
    <Dec 22, 2005 10:25:07 AM GMT> <Error> <HTTP> <BEA-101125> <[ServletContext(id=17893531,name=Search,context-path=/Search)] Error occurred while instantiating servlet: "default".
    java.lang.NoSuchMethodError: org.apache.log4j.spi.RootCategory.<init>(Lorg/apache/log4j/Level;)V
    at org.apache.log4j.LogManager.<clinit>(LogManager.java:69)
    at org.apache.log4j.Logger.getLogger(Logger.java:85)
    at com.hutchison3g.search.servlet.DefaultServlet.init(DefaultServlet.java:35)
    at weblogic.servlet.internal.ServletStubImpl$ServletInitAction.run(ServletStubImpl.java:1018)
    at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
    at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:118)
    at weblogic.servlet.internal.ServletStubImpl.createServlet(ServletStubImpl.java:894)
    at weblogic.servlet.internal.ServletStubImpl.createInstances(ServletStubImpl.java:873)
    at weblogic.servlet.internal.ServletStubImpl.prepareServlet(ServletStubImpl.java:812)
    at weblogic.servlet.internal.WebAppServletContext.preloadServlet(WebAppServletContext.java:3281)
    at weblogic.servlet.internal.WebAppServletContext.preloadServlets(WebAppServletContext.java:3226)
    at weblogic.servlet.internal.WebAppServletContext.preloadResources(WebAppServletContext.java:3207)
    at weblogic.servlet.internal.HttpServer.preloadResources(HttpServer.java:694)
    at weblogic.servlet.internal.WebService.preloadResources(WebService.java:483)
    at weblogic.servlet.internal.ServletInitService.resume(ServletInitService.java:30)
    at weblogic.t3.srvr.SubsystemManager.resume(SubsystemManager.java:131)
    at weblogic.t3.srvr.T3Srvr.resume(T3Srvr.java:966)
    at weblogic.t3.srvr.T3Srvr.run(T3Srvr.java:361)
    at weblogic.Server.main(Server.java:32)

  • Need help with log4j logging tool (org.apache.log4j.*) to log into database

    Hi,
    I need help with log4j logging tool (org.apache.log4j.*) to log into database using JDBCAppender. Have look at my logger code and corresponding log4j.properties file stated below. I'm running this program using Eclipse IDE and it's giving me the following error (highlighted in red) at the end:
    log4j: Parsing for [root] with value=[debug, stdout, Roll, CRSDBAPPENDER].
    log4j: Level token is [debug].
    log4j: Category root set to DEBUG
    log4j: Parsing appender named "stdout".
    log4j: Parsing layout options for "stdout".
    log4j: Setting property [conversionPattern] to [%x %d{HH:mm:ss,SSS} %5p [%t] (%c:%-4L %M) - %m%n].
    log4j: End of parsing for "stdout".
    log4j: Parsed "stdout" options.
    log4j: Parsing appender named "Roll".
    log4j: Parsing layout options for "Roll".
    log4j: Setting property [conversionPattern] to [%x %d{yyyy.MM.dd HH:mm:ss,SSS} %5p [%t] (%c:%-4L %M) - %m%n].
    log4j: End of parsing for "Roll".
    log4j: Setting property [file] to [HelloWorld.log].
    log4j: Setting property [maxBackupIndex] to [10].
    log4j: Setting property [maxFileSize] to [20KB].
    log4j: setFile called: HelloWorld.log, true
    log4j: setFile ended
    log4j: Parsed "Roll" options.
    log4j: Parsing appender named "CRSDBAPPENDER".
    {color:#ff0000}
    Can't find class HelloWorld{color}
    import org.apache.log4j.*;
    public class HelloWorld {
    static Logger log = Logger.getLogger(HelloWorld.class.getName());
    public static void main(String[] args) {
    try{
    // Now, try a few logging methods
    MDC.put("myComputerName", "Ravinder");
    MDC.put("crsServerName", "ARNDEV01");
    log.debug("Start of main()");
    log.info("Just testing a log message with priority set to INFO");
    log.warn("Just testing a log message with priority set to WARN");
    log.error("Just testing a log message with priority set to ERROR");
    log.fatal("Just testing a log message with priority set to FATAL");
    catch(Exception e){
    e.printStackTrace();
    ------------------------- log4j.properties file ------------------------------
    #### Use three appenders - log to console, file and database
    log4j.rootCategory=debug, stdout, Roll, CRSDBAPPENDER
    log4j.debug=true
    # Print only messages of priority WARN or higher for your category
    # log4j.category.your.category.name=WARN
    # Specifically inherit the priority level
    # log4j.category.your.category.name=INHERITED
    #### stdout - First appender writes to console
    log4j.appender.stdout=org.apache.log4j.ConsoleAppender
    log4j.appender.stdout.layout=org.apache.log4j.PatternLayout
    log4j.appender.stdout.layout.ConversionPattern=%x %d{HH:mm:ss,SSS} %5p [%t] (%c:%-4L %M) - %m%n
    #### Roll - Second appender writes to a file
    log4j.appender.Roll=org.apache.log4j.RollingFileAppender
    ##log4j.appender.Roll.File=${InstanceName}.log
    log4j.appender.Roll.File=HelloWorld.log
    log4j.appender.Roll.MaxFileSize=20KB
    log4j.appender.Roll.MaxBackupIndex=10
    log4j.appender.Roll.layout=org.apache.log4j.PatternLayout
    log4j.appender.Roll.layout.ConversionPattern=%x %d{yyyy.MM.dd HH:mm:ss,SSS} %5p [%t] (%c:%-4L %M) - %m%n
    #### CRSDBAPPENDER - third appender writes to the database
    log4j.appender.CRSDBAPPENDER=org.apache.log4j.jdbc.JDBCAppender
    log4j.appender.CRSDBAPPENDER.Driver=net.sourceforge.jtds.jdbc.Driver
    log4j.appender.CRSDBAPPENDER.URL=jdbc:jtds:sqlserver:/arncorp15:1433;DatabaseName=LOG
    log4j.appender.CRSDBAPPENDER.USER=sa
    log4j.appender.CRSDBAPPENDER.PASSWORD=p8ss3doff
    log4j.appender.CRSDBAPPENDER.layout=org.apache.log4j.PatternLayout
    log4j.appender.CRSDBAPPENDER.sql=INSERT INTO LOG (computername, crsservername, logtime, loglevel, threadname, filename, linenumber, logtext) VALUES ('%X{myComputerName}', '%X{crsServerName}', '%d{dd MMM yyyy HH:mm:ss,SSS}', '%p', '%t', '%F', '%L', '%m')
    #log4j.appender.CRSDBAPPENDER.sql=INSERT INTO LOG(COMPUTERNAME,CRSSERVERNAME,LOGTIME,LOGLEVEL,THREADNAME,FILENAME,LINENUMBER,LOGTEXT) select host_name(),'${CRSServerName}${InstanceName}','%d','%5p','%t','%F','%L','%m%n'
    #log4j.appender.CRSDBAPPENDER.sql=INSERT INTO LOG (computername, crsservername, logtime, loglevel, threadname, filename, linenumber, logtext) VALUES ("%X{myComputerName}", "%X{crsServerName}", "%d{dd MMM yyyy HH:mm:ss,SSS}", "%p", "%t", "%F", "%L", "%m")
    ------------------------------- end of log4j.properties file ------------------------------
    Here is the directory structure of my program. My log4j.properties file and HelloWorld.class file are residing in folder HelloWorld\bin.
    HelloWorld\bin
    HelloWorld\lib
    HelloWorld\src
    Please note - The same program works fine for console and file appender when I comment the database appender part in my properties file.
    Thanks
    Ravinder

    try this :
    log4j.appender.PROJECT.Append=false

  • Need help:  Problem with log4j

    Hi I am working on jsp ,ejb in my project, i am trying to run jsp file using oc4j , here below error is coming
    java.lang.nosuchmethoderror.org.apache.log4j.level org.apache.log4j.spi.loggingevent.getLevel()
    please give me sollution.

    Looks like you hav a jar loading issue.
    Look in the container directory for "log4j-*.jar" to see if there is use of multiple log4j instances

  • Duplicatated meaasges using Log4J

    All,
    I am getting duplicate log messages when I try to log messages using log4j. I am logging events within a Timer app that runs every minute.
    Every time I log a message, the messages keep multiplying.
    I found numerous posts on this issues but they all seem to be resolved by setting additivity to false or removed extra appenders. I don't have those conditions.
    Thanks in advance for you assistance.
    package com.Test.Util;
    import org.apache.log4j.ConsoleAppender;
    import org.apache.log4j.Level;
    import org.apache.log4j.Logger;
    import org.apache.log4j.PatternLayout;
    public class TestLogger {
         public static void logMessage(String pMessage, String pLevel)
              Logger myLogger = Logger.getLogger(TestLogger.class);
            PatternLayout myLayout = new PatternLayout("[%c][%l][%p][%thread]: %m%n");
            ConsoleAppender consoleAppender= new ConsoleAppender(myLayout);       
            myLogger.addAppender(consoleAppender);
            myLogger.setAdditivity(false);
            Logger.getRootLogger().setAdditivity(false);
            Logger.getLogger(TestLogger.class).setAdditivity(false);
            Logger.getLogger("com.Test.Util").setAdditivity(false);
            if (pLevel.toUpperCase().equals("WARN")){
                 myLogger.setLevel(Level.WARN);
                 myLogger.warn(pMessage);
            } else if (pLevel.toUpperCase().equals("FATAL")){
                 myLogger.setLevel(Level.FATAL);
                 myLogger.fatal(pMessage);
            } else if (pLevel.toUpperCase().equals("ERROR")){
                 myLogger.setLevel(Level.ERROR);
                myLogger.error(pMessage);
            } else {
                 myLogger.setLevel(Level.INFO);
                myLogger.info(pMessage);
    }Thanks!

    Quite right. Sorry about that.
    Log4j version 1.2.17
    Class with main
    package com.testco;
    import com.testco.TestLogger;
    public class Test {
         public static void main(String[] args) {
              int count = 0;
              while (count<= 5) {
                   try {
                        TestLogger.logMessage("Count:" + count, "INFO");
                        Thread.sleep(5000);
                        count++;
                   } catch (InterruptedException e) {
                        TestLogger.logMessage(e.getMessage(), "ERROR");
    Logging code
    package com.testco;
    import org.apache.log4j.ConsoleAppender;
    import org.apache.log4j.Level;
    import org.apache.log4j.Logger;
    import org.apache.log4j.PatternLayout;
    public class TestLogger {
         public static void logMessage(String pMessage, String pLevel)
            Logger myLogger = Logger.getLogger(TestLogger.class);
            PatternLayout myLayout = new PatternLayout("[%c][%l][%p][%thread]: %m%n");
            ConsoleAppender consoleAppender= new ConsoleAppender(myLayout);       
            myLogger.addAppender(consoleAppender);
            myLogger.setAdditivity(false);
            Logger.getRootLogger().setAdditivity(false);
            Logger.getLogger(TestLogger.class).setAdditivity(false);
            if (pLevel.toUpperCase().equals("WARN")){
                 myLogger.setLevel(Level.WARN);
                 myLogger.warn(pMessage);
            } else if (pLevel.toUpperCase().equals("FATAL")){
                 myLogger.setLevel(Level.FATAL);
                 myLogger.fatal(pMessage);
            } else if (pLevel.toUpperCase().equals("ERROR")){
                 myLogger.setLevel(Level.ERROR);
                myLogger.error(pMessage);
            } else {
                 myLogger.setLevel(Level.INFO);
                myLogger.info(pMessage);
    Output
    [com.testco.TestLogger][com.testco.TestLogger.logMessage(TestLogger.java:32)][INFO][mainhread]: Count:0
    [com.testco.TestLogger][com.testco.TestLogger.logMessage(TestLogger.java:32)][INFO][mainhread]: Count:1
    [com.testco.TestLogger][com.testco.TestLogger.logMessage(TestLogger.java:32)][INFO][mainhread]: Count:1
    [com.testco.TestLogger][com.testco.TestLogger.logMessage(TestLogger.java:32)][INFO][mainhread]: Count:2
    [com.testco.TestLogger][com.testco.TestLogger.logMessage(TestLogger.java:32)][INFO][mainhread]: Count:2
    [com.testco.TestLogger][com.testco.TestLogger.logMessage(TestLogger.java:32)][INFO][mainhread]: Count:2
    [com.testco.TestLogger][com.testco.TestLogger.logMessage(TestLogger.java:32)][INFO][mainhread]: Count:3
    [com.testco.TestLogger][com.testco.TestLogger.logMessage(TestLogger.java:32)][INFO][mainhread]: Count:3
    [com.testco.TestLogger][com.testco.TestLogger.logMessage(TestLogger.java:32)][INFO][mainhread]: Count:3
    [com.testco.TestLogger][com.testco.TestLogger.logMessage(TestLogger.java:32)][INFO][mainhread]: Count:3
    [com.testco.TestLogger][com.testco.TestLogger.logMessage(TestLogger.java:32)][INFO][mainhread]: Count:4
    [com.testco.TestLogger][com.testco.TestLogger.logMessage(TestLogger.java:32)][INFO][mainhread]: Count:4
    [com.testco.TestLogger][com.testco.TestLogger.logMessage(TestLogger.java:32)][INFO][mainhread]: Count:4
    [com.testco.TestLogger][com.testco.TestLogger.logMessage(TestLogger.java:32)][INFO][mainhread]: Count:4
    [com.testco.TestLogger][com.testco.TestLogger.logMessage(TestLogger.java:32)][INFO][mainhread]: Count:4
    [com.testco.TestLogger][com.testco.TestLogger.logMessage(TestLogger.java:32)][INFO][mainhread]: Count:5
    [com.testco.TestLogger][com.testco.TestLogger.logMessage(TestLogger.java:32)][INFO][mainhread]: Count:5
    [com.testco.TestLogger][com.testco.TestLogger.logMessage(TestLogger.java:32)][INFO][mainhread]: Count:5
    [com.testco.TestLogger][com.testco.TestLogger.logMessage(TestLogger.java:32)][INFO][mainhread]: Count:5
    [com.testco.TestLogger][com.testco.TestLogger.logMessage(TestLogger.java:32)][INFO][mainhread]: Count:5
    [com.testco.TestLogger][com.testco.TestLogger.logMessage(TestLogger.java:32)][INFO][mainhread]: Count:5
    Edited by: fatbat on Jun 5, 2013 10:17 PM

  • How do I use toplink with Spring 2.5 and oc4j 10.1.2?

    Our existing java server environment is limited to Oc4j 10.1.2 due to being tied to Oracle Forms.
    We've added a java 6 jdk to the machine and linked it to a specific container to examine some newer java features since this version of the application server only comes with java 1.4.2.
    Does anyone have some configuration steps for getting toplink essentials and spring to work with oc4j 10.1.2? Even with oc4j 10.1.3 in jdev 10.1.3.4 I'm having problems trying to figure out what needs placed in the persistence.xml file verses what needs placed in the spring-beans.xml file.
    I'm trying to either use the J2SE option of keeping the connection information in the persistence.xml file (which doesn't work) - it tries to connect to //localhost:1521/orcl. If I try to define a datasource within Spring's xml file, I'm not sure how to tie that into the persistence.xml file. Could I use the oc4j 10.1.2 container provided datasource?
    It seems like I'm at a loss as to how to get this working. If you'd like me to post some files, I can do that later on today when I get back to work.
    The configuration that I'm trying to do is based on a modified workspace from an ibm developerworks article with websphere, mixing in the ideas from a JPA with Spring 2.0 article from Mike Keith and Rod Johnson. (That article goes pretty far in the configuration information but never provided an example to download...)
    Any help appreciated.
    Eric (hbg, pa)

    I'm still at a loss with this. Rather than worry about the older version, for now, I just want to see JPA in action. So, I've decided on just running the Spring 2.5.6 petclinic example out of the samples folder. When I try to do this, after only tweaking the web.xml to use the applicationContext-jpa.xml file, the application does not initialize properly. Here's the stack trace I get:
    Target URL -- http://192.168.0.2:8988/petclinic/index.jsp
    09/05/11 23:26:05 Oracle Containers for J2EE 10g (10.1.3.4.0)  initialized
    WARNING: Code-source C:\javalib\spring-2.5.6\samples\petclinic\war\WEB-INF\lib\connector.jar (from WEB-INF/lib/ directory in C:\javalib\spring-2.5.6\samples\petclinic\war\WEB-INF\lib) has the same filename but is not identical to /C:/jdev10134/j2ee/home/lib/connector.jar (from <code-source> (ignore manifest Class-Path) in META-INF/boot.xml in C:\jdev10134\j2ee\home\oc4j.jar). If it contains different versions of the same classes, it will be masked as the latter is already visible in the search path of loader current-workspace-app.web.petclinic:0.0.0.
    WARNING: Code-source C:\javalib\spring-2.5.6\samples\petclinic\war\WEB-INF\lib\jta.jar (from WEB-INF/lib/ directory in C:\javalib\spring-2.5.6\samples\petclinic\war\WEB-INF\lib) has the same filename but is not identical to /C:/jdev10134/j2ee/home/lib/jta.jar (from <code-source> (ignore manifest Class-Path) in META-INF/boot.xml in C:\jdev10134\j2ee\home\oc4j.jar). If it contains different versions of the same classes, it will be masked as the latter is already visible in the search path of loader current-workspace-app.web.petclinic:0.0.0.
    WARNING: Code-source C:\javalib\spring-2.5.6\samples\petclinic\war\WEB-INF\lib\persistence.jar (from WEB-INF/lib/ directory in C:\javalib\spring-2.5.6\samples\petclinic\war\WEB-INF\lib) has the same filename but is not identical to /C:/jdev10134/j2ee/home/lib/persistence.jar (from <code-source> (ignore manifest Class-Path) in META-INF/boot.xml in C:\jdev10134\j2ee\home\oc4j.jar). If it contains different versions of the same classes, it will be masked as the latter is already visible in the search path of loader current-workspace-app.web.petclinic:0.0.0.
    WARNING: Code-source C:\javalib\spring-2.5.6\samples\petclinic\war\WEB-INF\lib\toplink-essentials.jar (from WEB-INF/lib/ directory in C:\javalib\spring-2.5.6\samples\petclinic\war\WEB-INF\lib) has the same filename but is not identical to /C:/jdev10134/toplink/jlib/toplink-essentials.jar (from <code-source> in /C:/jdev10134/jdev/system/oracle.j2ee.10.1.3.42.70/embedded-oc4j/config/server.xml). If it contains different versions of the same classes, it will be masked as the latter is already visible in the search path of loader current-workspace-app.web.petclinic:0.0.0.
    09/05/11 23:26:24 log4j: Parsing for [root] with value=[INFO, stdout].
    09/05/11 23:26:24 log4j: Level token is [INFO].
    09/05/11 23:26:24 log4j: Category root set to INFO
    09/05/11 23:26:24 log4j: Parsing appender named "stdout".
    09/05/11 23:26:24 log4j: Parsing layout options for "stdout".
    09/05/11 23:26:24 log4j: Setting property [conversionPattern] to [%d %p [%c] - <%m>%n].
    09/05/11 23:26:24 log4j: End of parsing for "stdout".
    09/05/11 23:26:24 log4j: Parsed "stdout" options.
    09/05/11 23:26:24 log4j: Parsing for [org.springframework.samples.petclinic.aspects] with value=[DEBUG].
    09/05/11 23:26:24 log4j: Level token is [DEBUG].
    09/05/11 23:26:24 log4j: Category org.springframework.samples.petclinic.aspects set to DEBUG
    09/05/11 23:26:24 log4j: Handling log4j.additivity.org.springframework.samples.petclinic.aspects=[null]
    09/05/11 23:26:24 log4j: Finished configuring.
    09/05/11 23:26:24 log4j: Reading configuration from URL file:/C:/javalib/spring-2.5.6/samples/petclinic/war/WEB-INF/classes/log4j.properties
    09/05/11 23:26:24 log4j: Parsing for [root] with value=[INFO, stdout].
    09/05/11 23:26:24 log4j: Level token is [INFO].
    09/05/11 23:26:24 log4j: Category root set to INFO
    09/05/11 23:26:24 log4j: Parsing appender named "stdout".
    09/05/11 23:26:24 log4j: Parsing layout options for "stdout".
    09/05/11 23:26:24 log4j: Setting property [conversionPattern] to [%d %p [%c] - <%m>%n].
    09/05/11 23:26:24 log4j: End of parsing for "stdout".
    09/05/11 23:26:24 log4j: Parsed "stdout" options.
    09/05/11 23:26:24 log4j: Parsing for [org.springframework.samples.petclinic.aspects] with value=[DEBUG].
    09/05/11 23:26:24 log4j: Level token is [DEBUG].
    09/05/11 23:26:24 log4j: Category org.springframework.samples.petclinic.aspects set to DEBUG
    09/05/11 23:26:24 log4j: Handling log4j.additivity.org.springframework.samples.petclinic.aspects=[null]
    09/05/11 23:26:24 log4j: Finished configuring.
    2009-05-11 23:26:24,593 INFO [org.springframework.web.context.ContextLoader] - <Root WebApplicationContext: initialization started>
    2009-05-11 23:26:24,687 INFO [org.springframework.web.context.support.XmlWebApplicationContext] - <Refreshing org.springframework.web.context.support.XmlWebApplicationContext@eeb406: display name [Root WebApplicationContext]; startup date [Mon May 11 23:26:24 EDT 2009]; root of context hierarchy>
    2009-05-11 23:26:24,828 INFO [org.springframework.beans.factory.xml.XmlBeanDefinitionReader] - <Loading XML bean definitions from ServletContext resource [WEB-INF/applicationContext-jpa.xml]>
    2009-05-11 23:26:25,281 INFO [org.springframework.web.context.support.XmlWebApplicationContext] - <Bean factory for application context [org.springframework.web.context.support.XmlWebApplicationContext@eeb406]: org.springframework.beans.factory.support.DefaultListableBeanFactory@1da817b>
    2009-05-11 23:26:25,734 INFO [org.springframework.beans.factory.config.PropertyPlaceholderConfigurer] - <Loading properties file from class path resource [jdbc.properties]>
    2009-05-11 23:26:25,796 INFO [org.springframework.context.weaving.DefaultContextLoadTimeWeaver] - <Determined server-specific load-time weaver: org.springframework.instrument.classloading.oc4j.OC4JLoadTimeWeaver>
    2009-05-11 23:26:28,296 INFO [org.springframework.web.context.support.XmlWebApplicationContext] - <Bean 'org.springframework.orm.jpa.vendor.TopLinkJpaVendorAdapter#c25ae3' is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)>
    2009-05-11 23:26:28,359 INFO [org.springframework.web.context.support.XmlWebApplicationContext] - <Bean 'dataSource' is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)>
    2009-05-11 23:26:28,437 INFO [org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean] - <Building JPA container EntityManagerFactory for persistence unit 'PetClinic'>
    2009-05-11 23:26:28,468 INFO [org.springframework.web.context.support.XmlWebApplicationContext] - <Bean 'entityManagerFactory' is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)>
    2009-05-11 23:26:28,562 INFO [org.springframework.beans.factory.support.DefaultListableBeanFactory] - <Pre-instantiating singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@1da817b: defining beans [org.springframework.context.weaving.AspectJWeavingEnabler#0,org.springframework.context.config.internalBeanConfigurerAspect,loadTimeWeaver,org.springframework.beans.factory.config.PropertyPlaceholderConfigurer#0,dataSource,entityManagerFactory,transactionManager,org.springframework.context.annotation.internalPersistenceAnnotationProcessor,org.springframework.context.annotation.internalCommonAnnotationProcessor,org.springframework.context.annotation.internalAutowiredAnnotationProcessor,org.springframework.context.annotation.internalRequiredAnnotationProcessor,org.springframework.transaction.config.internalTransactionAspect,org.springframework.samples.petclinic.aspects.UsageLogAspect#0,org.springframework.dao.annotation.PersistenceExceptionTranslationPostProcessor#0,clinic]; root of factory hierarchy>
    2009-05-11 23:26:29,671 INFO [org.springframework.web.context.ContextLoader] - <Root WebApplicationContext: initialization completed in 5078 ms>
    2009-05-11 23:26:29,734 INFO [org.springframework.web.servlet.DispatcherServlet] - <FrameworkServlet 'petclinic': initialization started>
    2009-05-11 23:26:29,734 INFO [org.springframework.web.context.support.XmlWebApplicationContext] - <Refreshing org.springframework.web.context.support.XmlWebApplicationContext@c00e55: display name [WebApplicationContext for namespace 'petclinic-servlet']; startup date [Mon May 11 23:26:29 EDT 2009]; parent: org.springframework.web.context.support.XmlWebApplicationContext@eeb406>
    2009-05-11 23:26:29,734 INFO [org.springframework.beans.factory.xml.XmlBeanDefinitionReader] - <Loading XML bean definitions from ServletContext resource [WEB-INF/petclinic-servlet.xml]>
    2009-05-11 23:26:30,171 INFO [org.springframework.web.context.support.XmlWebApplicationContext] - <Bean factory for application context [org.springframework.web.context.support.XmlWebApplicationContext@c00e55]: org.springframework.beans.factory.support.DefaultListableBeanFactory@1c5543b>
    2009-05-11 23:26:30,375 INFO [org.springframework.beans.factory.support.DefaultListableBeanFactory] - <Pre-instantiating singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@1c5543b: defining beans [addOwnerForm,addPetForm,addVisitForm,clinicController,editOwnerForm,editPetForm,findOwnersForm,org.springframework.context.annotation.internalPersistenceAnnotationProcessor,org.springframework.context.annotation.internalCommonAnnotationProcessor,org.springframework.context.annotation.internalAutowiredAnnotationProcessor,org.springframework.context.annotation.internalRequiredAnnotationProcessor,org.springframework.web.servlet.mvc.annotation.AnnotationMethodHandlerAdapter#0,org.springframework.web.servlet.handler.SimpleMappingExceptionResolver#0,org.springframework.web.servlet.view.InternalResourceViewResolver#0,messageSource]; parent: org.springframework.beans.factory.support.DefaultListableBeanFactory@1da817b>
    2009-05-11 23:26:31,828 INFO [org.springframework.web.servlet.DispatcherServlet] - <FrameworkServlet 'petclinic': initialization completed in 2094 ms>
    May 11, 2009 11:26:58 PM oracle.toplink.essentials.session.file:/C:/javalib/spring-2.5.6/samples/petclinic/war/WEB-INF/classes/-PetClinic.transaction
    WARNING: PersistenceUnitInfo PetClinic has transactionType RESOURCE_LOCAL and therefore jtaDataSource will be ignored
    May 11, 2009 11:26:58 PM oracle.toplink.essentials.session.file:/C:/javalib/spring-2.5.6/samples/petclinic/war/WEB-INF/classes/-PetClinic
    INFO: TopLink, version: Oracle TopLink Essentials - 2.0.1 (Build b09d-fcs (12/06/2007))
    May 11, 2009 11:26:58 PM oracle.toplink.essentials.session.file:/C:/javalib/spring-2.5.6/samples/petclinic/war/WEB-INF/classes/-PetClinic
    INFO: Server: unknown
    May 11, 2009 11:26:58 PM oracle.toplink.essentials.session.file:/C:/javalib/spring-2.5.6/samples/petclinic/war/WEB-INF/classes/-PetClinic.connection
    CONFIG: connecting(DatabaseLogin(
            platform=>EssentialsHSQLPlatformWithNativeSequence
            user name=> ""
            connector=>JNDIConnector datasource name=>null
    May 11, 2009 11:27:03 PM oracle.toplink.essentials.session.file:/C:/javalib/spring-2.5.6/samples/petclinic/war/WEB-INF/classes/-PetClinic
    SEVERE:
    Local Exception Stack:
    Exception [TOPLINK-4002] (Oracle TopLink Essentials - 2.0.1 (Build b09d-fcs (12/06/2007))): oracle.toplink.essentials.exceptions.DatabaseException
    Internal Exception: java.sql.SQLException: Io exception: The Network Adapter could not establish the connection
    Error Code: 17002
            at oracle.toplink.essentials.exceptions.DatabaseException.sqlException(DatabaseException.java:305)
            at oracle.toplink.essentials.jndi.JNDIConnector.connect(JNDIConnector.java:150)
            at oracle.toplink.essentials.sessions.DatasourceLogin.connectToDatasource(DatasourceLogin.java:184)
            at oracle.toplink.essentials.internal.databaseaccess.DatasourceAccessor.connect(DatasourceAccessor.java:233)
            at oracle.toplink.essentials.internal.databaseaccess.DatabaseAccessor.connect(DatabaseAccessor.java:242)
            at oracle.toplink.essentials.internal.databaseaccess.DatasourceAccessor.connect(DatasourceAccessor.java:309)
            at oracle.toplink.essentials.threetier.ConnectionPool.buildConnection(ConnectionPool.java:117)
            at oracle.toplink.essentials.threetier.ExternalConnectionPool.startUp(ExternalConnectionPool.java:135)
            at oracle.toplink.essentials.threetier.ServerSession.connect(ServerSession.java:451)
            at oracle.toplink.essentials.internal.sessions.DatabaseSessionImpl.login(DatabaseSessionImpl.java:616)
            at oracle.toplink.essentials.ejb.cmp3.EntityManagerFactoryProvider.login(EntityManagerFactoryProvider.java:282)
            at oracle.toplink.essentials.internal.ejb.cmp3.EntityManagerSetupImpl.deploy(EntityManagerSetupImpl.java:229)
            at oracle.toplink.essentials.internal.ejb.cmp3.base.EntityManagerFactoryImpl.getServerSession(EntityManagerFactoryImpl.java:93)
            at oracle.toplink.essentials.internal.ejb.cmp3.base.EntityManagerFactoryImpl.createEntityManagerImpl(EntityManagerFactoryImpl.java:126)
            at oracle.toplink.essentials.internal.ejb.cmp3.base.EntityManagerFactoryImpl.createEntityManagerImpl(EntityManagerFactoryImpl.java:120)
            at oracle.toplink.essentials.internal.ejb.cmp3.EntityManagerFactoryImpl.createEntityManager(EntityManagerFactoryImpl.java:91)
            at org.springframework.orm.jpa.JpaTransactionManager.createEntityManagerForTransaction(JpaTransactionManager.java:392)
            at org.springframework.orm.jpa.JpaTransactionManager.doBegin(JpaTransactionManager.java:320)
            at org.springframework.transaction.support.AbstractPlatformTransactionManager.getTransaction(AbstractPlatformTransactionManager.java:374)
            at org.springframework.transaction.interceptor.TransactionAspectSupport.createTransactionIfNecessary(TransactionAspectSupport.java:263)
            at org.springframework.transaction.interceptor.TransactionAspectSupport.createTransactionIfNecessary(TransactionAspectSupport.java:220)
            at org.springframework.transaction.aspectj.AbstractTransactionAspect.ajc$before$org_springframework_transaction_aspectj_AbstractTransactionAspect$1$2a73e96c(AbstractTransactionAspect.aj:63)
            at org.springframework.samples.petclinic.jpa.EntityManagerClinic.getVets(EntityManagerClinic.java:39)
            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.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:307)
            at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:182)
            at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:149)
            at org.springframework.dao.support.PersistenceExceptionTranslationInterceptor.invoke(PersistenceExceptionTranslationInterceptor.java:138)
            at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
            at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)
            at $Proxy19.getVets(Unknown Source)
            at org.springframework.samples.petclinic.web.ClinicController.vetsHandler(ClinicController.java:53)
            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.springframework.web.bind.annotation.support.HandlerMethodInvoker.doInvokeMethod(HandlerMethodInvoker.java:421)
            at org.springframework.web.bind.annotation.support.HandlerMethodInvoker.invokeHandlerMethod(HandlerMethodInvoker.java:136)
            at org.springframework.web.servlet.mvc.annotation.AnnotationMethodHandlerAdapter.invokeHandlerMethod(AnnotationMethodHandlerAdapter.java:326)
            at org.springframework.web.servlet.mvc.annotation.AnnotationMethodHandlerAdapter.handle(AnnotationMethodHandlerAdapter.java:313)
            at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:875)
            at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:807)
            at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:571)
            at org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:501)
            at javax.servlet.http.HttpServlet.service(HttpServlet.java:743)
            at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
            at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:713)
            at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:370)
            at com.evermind.server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:871)
            at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:453)
            at com.evermind.server.http.HttpRequestHandler.serveOneRequest(HttpRequestHandler.java:221)
            at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:122)
            at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:111)
            at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260)
            at oracle.oc4j.network.ServerSocketAcceptHandler.procClientSocket(ServerSocketAcceptHandler.java:234)
            at oracle.oc4j.network.ServerSocketAcceptHandler.access$700(ServerSocketAcceptHandler.java:29)
            at oracle.oc4j.network.ServerSocketAcceptHandler$AcceptHandlerHorse.run(ServerSocketAcceptHandler.java:879)
            at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303)
            at java.lang.Thread.run(Thread.java:595)
    Caused by: java.sql.SQLException: Io exception: The Network Adapter could not establish the connection
            at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:138)
            at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:175)
            at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:287)
            at oracle.jdbc.driver.T4CConnection.logon(T4CConnection.java:328)
            at oracle.jdbc.driver.PhysicalConnection.<init>(PhysicalConnection.java:430)
            at oracle.jdbc.driver.T4CConnection.<init>(T4CConnection.java:151)
            at oracle.jdbc.driver.T4CDriverExtension.getConnection(T4CDriverExtension.java:32)
            at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:608)
            at oracle.jdbc.pool.OracleDataSource.getConnection(OracleDataSource.java:218)
            at oracle.jdbc.pool.OracleConnectionPoolDataSource.getPhysicalConnection(OracleConnectionPoolDataSource.java:114)
            at oracle.jdbc.pool.OracleConnectionPoolDataSource.getPooledConnection(OracleConnectionPoolDataSource.java:77)
            at oracle.jdbc.pool.OracleImplicitConnectionCache.makeCacheConnection(OracleImplicitConnectionCache.java:1361)
            at oracle.jdbc.pool.OracleImplicitConnectionCache.getCacheConnection(OracleImplicitConnectionCache.java:441)
            at oracle.jdbc.pool.OracleImplicitConnectionCache.getConnection(OracleImplicitConnectionCache.java:336)
            at oracle.jdbc.pool.OracleDataSource.getConnection(OracleDataSource.java:286)
            at oracle.jdbc.pool.OracleDataSource.getConnection(OracleDataSource.java:179)
            at oracle.jdbc.pool.OracleDataSource.getConnection(OracleDataSource.java:159)
            at oracle.oc4j.sql.DataSourceConnectionPoolDataSource.getPooledConnection(DataSourceConnectionPoolDataSource.java:57)
            at oracle.oc4j.sql.xa.EmulatedXADataSource.getXAConnection(EmulatedXADataSource.java:92)
            at oracle.oc4j.sql.spi.ManagedConnectionFactoryImpl.createXAConnection(ManagedConnectionFactoryImpl.java:211)
            at oracle.oc4j.sql.spi.ManagedConnectionFactoryImpl.createManagedConnection(ManagedConnectionFactoryImpl.java:170)
            at com.evermind.server.connector.ApplicationConnectionManager.createManagedConnection(ApplicationConnectionManager.java:1398)
            at oracle.j2ee.connector.ConnectionPoolImpl.createManagedConnectionFromFactory(ConnectionPoolImpl.java:327)
            at oracle.j2ee.connector.ConnectionPoolImpl.access$800(ConnectionPoolImpl.java:98)
            at oracle.j2ee.connector.ConnectionPoolImpl$NonePoolingScheme.getManagedConnection(ConnectionPoolImpl.java:1211)
            at oracle.j2ee.connector.ConnectionPoolImpl.getManagedConnection(ConnectionPoolImpl.java:785)
            at oracle.oc4j.sql.ConnectionPoolImpl.getManagedConnection(ConnectionPoolImpl.java:45)
            at com.evermind.server.connector.ApplicationConnectionManager.getConnectionFromPool(ApplicationConnectionManager.java:1596)
            at com.evermind.server.connector.ApplicationConnectionManager.acquireConnectionContext(ApplicationConnectionManager.java:1541)
            at com.evermind.server.connector.ApplicationConnectionManager.allocateConnection(ApplicationConnectionManager.java:1486)
            at oracle.j2ee.connector.OracleConnectionManager.unprivileged_allocateConnection(OracleConnectionManager.java:238)
            at oracle.j2ee.connector.OracleConnectionManager.allocateConnection(OracleConnectionManager.java:192)
            at oracle.oc4j.sql.ManagedDataSource.getConnection(ManagedDataSource.java:272)
            at oracle.oc4j.sql.ManagedDataSource.getConnection(ManagedDataSource.java:200)
            at oracle.oc4j.sql.ManagedDataSource.getConnection(ManagedDataSource.java:142)
            at oracle.oc4j.sql.ManagedDataSource.getConnection(ManagedDataSource.java:127)
            at oracle.toplink.essentials.jndi.JNDIConnector.connect(JNDIConnector.java:145)
            ... 60 moreAny ideas? I'd really like to see JPA, Spring and oc4j working together?
    Thanks,
    Eric

Maybe you are looking for