Logger - Log4j in JDev 10.1.2
Hey, I want to use
Logger logger = Logger.getLogger(myaction.class).
I'm using JDev 10.1.2. I have added the log4j library in my project. But, I still not able to use getLogger(class).
It shows the following packages.
com.evermind.util.Logger;
com.evrmind.util.LoggerConfiguration;
com.evrmind.util.LoggerContext;
import com.sun.enterprise.iiop.security.Logger;
java.util.logging.Logger;
import org.apache.commons.el.Logger;
import org.apache.taglibs.standard.lang.jstl.Logger;
None these packages have getLogger(Class). Please help me what should I do.
Thanks.
You can't as Jdev 10.1.2 only supports JDK1.4.2
Timo
Similar Messages
-
Encapsulation of a logger (log4j ...)
Hi,
I want to encapsulate a logger , log4j for example. At first sigth, I wrote this :
public class MyObject
private Logger mylogger;
public MyObject(String myclass)
mylogger=Logger.getLogger(myclass);
public void debug(String message)
mylogger.debug(message);
The pb is : when you call debug, in the log file, I have the line in MyObject !!!!
Does anybody face this issue ?
thanks,
LudovicIf i get it right you wonder why the linenumber in the log output show the linenumbers of your logger class and not the business code that calls your logger. If that is really your problem: what do you expect? How should log4j know that the code that is calling it (in this case it is you logger class) is not the code it should determine the linenumbers for.? And if this is not your problem then i have no idea what you are talking about ;-)
-
Hello,
After looking at various forums, we want to use Log4J Logger. We added the following line in the properties of log4j:
log4j.category.uk.ltd.getahead.dwr=warn,my_appender
log4j.additivity.uk.ltd.getahead.dwr=false
We should add a parameter for more Logge Log4J with and not in the System.
Thank you.how can I log the traces from DWR into the filesystem of an application instead of SystemOut.log (WebSphere)?First Google result for "dwr logging" is this: [http://directwebremoting.org/dwr/server/servlet/logging]
And it says:
if DWR discovers commons-logging then it will use that in place of servlet logging.So, you need to verify whether [Commons Logging|http://commons.apache.org/logging/] is present in your server, and put it there if it is.
Then you need to determine the logging level of the DWR messages that you care about. It's probably "info" or "debug" rather than "warn". -
Problem while loading the log4j.xml in to the classpath
Hi,
I am working with a web application using tomcat5.0.I am using log4j for logging the information in my application.I am keeping log4j.xml out side of the application(Generally we will keep under WEB-INF/classes ).Now I want to load the log4j.xml from outside location in my ContextListner class.I am using the following code.
String cmd="java -cp -Dlog4j.configuration=C:/sample/log4j.xml";
Runtime runtime = Runtime.getRuntime();
Process process = null;
process = runtime.exec(cmd); but I am getting the following errors.
log4j:WARN File option not set for appender [stdout].
log4j:WARN Are you using FileAppender instead of ConsoleAppender?
log4j:WARN No appenders could be found for logger (org.apache.catalina.session.ManagerBase).
log4j:WARN Please initialize the log4j system properly.
log4j:ERROR No output stream or file set for the appender named [stdout].
Feb 26, 2009 7:48:28 PM org.apache.coyote.http11.Http11BaseProtocol startI am not getting where am I doing wrong.
Any Ideas please?
Regards
kondalMy log4j.xml looks like
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE log4j:configuration SYSTEM "log4j.dtd">
<log4j:configuration xmlns:log4j="http://jakarta.apache.org/log4j/">
<appender name="file" class="org.apache.log4j.RollingFileAppender">
<param name="File" value="C:\\niablogs\\niab3.log"/>
<param name="MaxFileSize" value="1MB"/>
<param name="append" value="true"/>
<param name="MaxBackupIndex" value="5"/>
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="(%-25.25F:%4L) %d{yyyy MM dd HH:mm:ss:SSS} [%-30.30t] %5p - %m %n" />
</layout>
</appender>
<logger name="in.co" additivity="false">
<level value="all" />
<appender-ref ref="file" />
</logger>
</log4j:configuration>It is working fine if I keep log4j.xml under WEB-INF/classes.If I keep my log4j.xml is outside of the application then it is not working.As per ApacheLog4j Specification we need to set the xml file path to the log4j.configuration system property.Even I tried putting like the following in my Listener class System.setProperty("log4j.configuration", "C:/kondal/log4j.xml");.
Any Ideas please?
Thanks
kondal -
Multiple log files using Log4j
Hello,
I want to generate log files based on package structure. Like com.temp.test in test.log ,also I am having a log file at application like app.log .
This is my requirement what has been logged in test.log should not be logged in app.log.This is my log4j.properties file.
# Log4j configuration file.
# Available levels are DEBUG, INFO, WARN, ERROR, FATAL
# Default logger
log4j.rootLogger=DEBUG, PFILE
log4j.logger.com.temp.test=DEBUG,TEST
# PFILE is the primary log file
log4j.appender.PFILE=org.apache.log4j.RollingFileAppender
log4j.appender.PFILE.File=./App.log
log4j.appender.PFILE.MaxFileSize=5120KB
log4j.appender.PFILE.MaxBackupIndex=10
#log4j.appender.PFILE.Threshold=DEBUG
log4j.appender.PFILE.layout=org.apache.log4j.PatternLayout
log4j.appender.PFILE.layout.ConversionPattern=%p %d[%l][%C] %m%n
#log4j.appender.PFILE.layout.ConversionPattern=%p %d %m%n
log4j.appender.TEST=org.apache.log4j.RollingFileAppender
log4j.appender.TEST.File=./test.log
log4j.appender.TEST.MaxFileSize=5120KB
log4j.appender.TEST.MaxBackupIndex=10
log4j.appender.TEST.layout=org.apache.log4j.PatternLayout
log4j.appender.TEST.layout.ConversionPattern=%p %d[%l][%C] %m%n
Can u help me!!!You have to configure the temp logger so that it does not send its info on to the root logger.
For this, you can use the additivity flag.
# Default logger
log4j.rootLogger=DEBUG, PFILE
log4j.additivity.com.temp.test=false
log4j.logger.com.temp.test=DEBUG,TESTThe rest of the file remains the same. -
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:45I 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 - logging to multiple files
Hi,
Is there a way to do this? I have a class in a shared package in which I want to log into a separate log file.
I'm using the text configuration file - not the xml one.
I tried this (a suggestion from google):
log4j.rootLogger = ERROR, WebLog
log4j.category.se.aftonbladet.elitserien=ERROR
log4j.category.org.apache.struts2=ERROR
log4j.category.org.apache=ERROR
log4j.category.catalia=ERROR
# An extra category to a log file
log4j.category.AlternativeLog=A3
log4j.appender.stdout = org.apache.log4j.ConsoleAppender
log4j.appender.stdout.Threshold = DEBUG
log4j.appender.stdout.Target = System.out
log4j.appender.stdout.layout = org.apache.log4j.PatternLayout
log4j.appender.stdout.layout.ConversionPattern = %d{ISO8601} %-5p [%F:%L] : %m%n
log4j.appender.WebLog = org.apache.log4j.RollingFileAppender
log4j.appender.WebLog.file = /opt/tomcat/logs/elitserienservice.log
log4j.appender.WebLog.MaxFileSize=2048KB
log4j.appender.WebLog.MaxBackupIndex = 5
log4j.appender.WebLog.layout = org.apache.log4j.PatternLayout
log4j.appender.WebLog.layout.ConversionPattern = %d{ISO8601} %-5p [%F:%L] : %m%n
# A3 is set to be a FileAppender which will log all actions in the application.
log4j.appender.A3=org.apache.log4j.RollingFileAppender
log4j.appender.A3.file=/opt/tomcat/logs/elitserienservice_alt.log
log4j.appender.A3.MaxFileSize=2048KB
log4j.appender.A3.MaxBackupIndex = 5
log4j.appender.A3.layout=org.apache.log4j.PatternLayout
log4j.appender.A3.layout.ConversionPattern=%d{ISO8601} %-5p [%F:%L] : %m%nAnd in my class I get my logger like this:
private static final Logger logger = Logger.getLogger("AlternativeLog");But it doesnt work. All logging still ends up in the 'elitserienservice.log'.
Any help much appreciated!
/best regards, Håkan Jacobssonlog4j loggers/categories are additive by default. If you write a message to the "AlternativeLog" logger, log4j will first pass that message to all appenders that are attached to the "AlternativeLog" appender. After that, log4j will pass that same message to all appenders that are attached to any 'parent' loggers/categories. In your example, the only 'parent' logger above the "AlternativeLog" is the root logger.
To alter this behavior, you'll need to set the additivity property to false on the "AlternativeLog" logger. Something like this should do the trick:
log4j.additivity.AlternativeLog=false
FYI... For better responses to log4j inquiries, you should post your questions to the log4j users mailing list ([email protected])
http://logging.apache.org/mail-lists.html -
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 -
Cisco ISE 1.2 Patch 6 -- 8 Update failed
Hi all,
I wanted to know if any bugs was registered for the cumulative patch 8 for Cisco ISE 1.2 and how to mitigate any patch failures.
Important notice : I though that this error could be an unlucky try but i've tested the update two time.
Indeed, i have three deployment : A Pre-production one, a 4 nodes distributed and a 2 nodes distributed.
The patch works fine on the pre-production one, on the 2 nodes too but fails on the 4 nodes one with a very anormal behaviour.
On the "show nodes status" in Maintenance - Patch manage, i can see that my both PAN are successfully patched and the first PSN too but when the "Patch in progress" appears on the second PSN, the "installed" status is cancelled in the first PSN and become "Patch in progress" so i've two "Patch in progress" in parallel, that is an anormal procedure not discribed by Cisco on the document "Installing a software Patch". (wich discribe a sequential update of all nodes)
The symptoms after this error are :
- Unable to process EAP-TLS authentications ! (CA are stored on the First PAN and seems to be unavailable from PSN to exchange the handshake)
- The Application server try to restart but fails indefinitly even if i try to restart the node (on both PSN)
- GUI Unavailable
- MAB Auth is working
- Endpoint and Endpoint Groups menus are missing on the GUI (I push the MAC Address through the ERS API but it is very strange)
- Logs indicates one first "Patch success" on PAN and a second "Patch failed" still on PAN :(
The task that resolves this issue is to launch the command "patch remove ise 8" on all nodes and everything come back functional.
My big interrogation is that on my two other deployment, the patch was successfull and quick to process.
Thanks for your help.This is that i did abviously... but the two PSN stay in status "Node down", the application service won't start correctly with these ADE-OS logs entries :
2014-05-28T10:26:30.023223+00:00 XXXXXXX logger: info:[application:operation:appservercontrol.sh] Starting ISE Application Server...
2014-05-28T10:26:30.311676+00:00 XXXXXXX logger: Loading PKCS11 ...
2014-05-28T10:26:30.978432+00:00 XXXXXXX logger: SLF4J: Class path contains multiple SLF4J bindings.
2014-05-28T10:26:30.978454+00:00 XXXXXXX logger: SLF4J: Found binding in [jar:file:/opt/CSCOcpm/appsrv/apache-tomcat-6.0.36/lib/slf4j-log4j12-1.5.8.jar!/org/slf4j/im
pl/StaticLoggerBinder.class]
2014-05-28T10:26:30.978502+00:00 XXXXXXX logger: SLF4J: Found binding in [jar:file:/opt/CSCOcpm/appsrv/apache-tomcat-6.0.36/lib/com.cisco.xmp.osgi.slf4j-log4j12-1.5.
8.PATCHED.jar!/org/slf4j/impl/StaticLoggerBinder.class]
2014-05-28T10:26:30.978509+00:00 XXXXXXX logger: SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation.
2014-05-28T10:26:31.638970+00:00 XXXXXXX logger: log4j:WARN No appenders could be found for logger (com.cisco.epm.config.cache.impl.ConfigCacheImpl).
2014-05-28T10:26:31.638992+00:00 XXXXXXX logger: log4j:WARN Please initialize the log4j system properly. -
Cisco ISE 1.2 Patch 8 with Roaming User Profiles
ISE 1.2 with patch 8 has been installed and Works fine.
Using AnyConnect Secure Mobility Client (NAM) 3.1.04072 and Cisco NAC Agent version 4.9.1013
Scenario is EAP Chaining which does machine authentication + User Authentication
After NAC Agent Pops up and Posture Assessment is successful, Users cannot see their Home drives and few other Network Drives.
Sometimes during login we get the Error Message "User Profile cannot be loaded" and "User cannot Logon"
Also while logging off We get the screen "Your Roaming Profile was not synchronized"
All the Home Drives and Network Shared drives IP addresses are already added in the Downloadable ACL's.
Any other Workaround to overcome these errors.
Regards,
Ramkumar.BThis is that i did abviously... but the two PSN stay in status "Node down", the application service won't start correctly with these ADE-OS logs entries :
2014-05-28T10:26:30.023223+00:00 XXXXXXX logger: info:[application:operation:appservercontrol.sh] Starting ISE Application Server...
2014-05-28T10:26:30.311676+00:00 XXXXXXX logger: Loading PKCS11 ...
2014-05-28T10:26:30.978432+00:00 XXXXXXX logger: SLF4J: Class path contains multiple SLF4J bindings.
2014-05-28T10:26:30.978454+00:00 XXXXXXX logger: SLF4J: Found binding in [jar:file:/opt/CSCOcpm/appsrv/apache-tomcat-6.0.36/lib/slf4j-log4j12-1.5.8.jar!/org/slf4j/im
pl/StaticLoggerBinder.class]
2014-05-28T10:26:30.978502+00:00 XXXXXXX logger: SLF4J: Found binding in [jar:file:/opt/CSCOcpm/appsrv/apache-tomcat-6.0.36/lib/com.cisco.xmp.osgi.slf4j-log4j12-1.5.
8.PATCHED.jar!/org/slf4j/impl/StaticLoggerBinder.class]
2014-05-28T10:26:30.978509+00:00 XXXXXXX logger: SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation.
2014-05-28T10:26:31.638970+00:00 XXXXXXX logger: log4j:WARN No appenders could be found for logger (com.cisco.epm.config.cache.impl.ConfigCacheImpl).
2014-05-28T10:26:31.638992+00:00 XXXXXXX logger: log4j:WARN Please initialize the log4j system properly. -
Problem with Embedded OC4J: Address already in use: JVM_Bind
When I try to run a Servlet in JDeveloper 10g it works fine. But when I stop the Embedded OC4J and try to run the Servlet again, the following message appears in the log:
[Starting OC4J using the following ports: HTTP=8988, RMI=23891, JMS=9227.]
C:\oracle\ora10g\jdev\jdk\bin\javaw.exe -hotspot -classpath C:\oracle\ora10g\jdev\j2ee\home\oc4j.jar;C:\oracle\ora10g\jdev\jdev\lib\jdev-oc4j.jar -Xverify:none -Ddisable.checkForUpdate=true -Doracle.j2ee.dont.use.memory.archive=true -Doracle.j2ee.http.socket.timeout=500 -Doracle.dms.sensors=NONE -Doc4j.jms.usePersistenceLockFiles=false com.evermind.server.OC4JServer -config C:\oracle\ora10g\jdev\jdev\system9.0.5.0.0.1375\oc4j-config\server.xml
[waiting for the server to complete its initialization...]
03/10/23 14:23:01 Error starting ORMI-Server. Unable to bind socket: Address already in use: JVM_Bind
Process exited with exit code 7.
What could be causing this problem?
Thanks in advance!Modify the config/rmi.xml file to have the host attribute in the tag as follows:
<rmi-server port="23791" host="server-ip-address">
</rmi-server>
After that, place the log4j-your-jdev-version.jar in appserverhome/j2ee/home/lib folder.
Restart the server. The bind problem would disappear.
Hope this solves your problem :-)
Ramesh -
Log messages from multiple instances in single file.
Hi!
I have a requirement that i need to log messages from muliple instances of the same object in a file. The new file will be created every day. Likewise, multiple objects might have various instances each.
One class
->multiple instances
-> log message stored in single file.
Note :
I am using the Message driven bean. I need to log from the bean class. JDK 1.3
If u could help me out that would be great.As long as they are all from the same OS program (a single Java VM), that's OK - you can use Log4j, and use a rotating file logger.
If you point two different virtual machine processes at the same file, one may have it open when the other is trying to rotate it, and your rotation may fail (at best) and/or you may lose the old log (the worst case).
If you need to collect log messages from multiple processes (or even multiple machines), use a syslog-based logger (Log4j has a SyslogAppender) or use Log4j's SocketAppender to write to a log4j-builtin log listener (SocketNode). -
Hi all,
I'm a new user and i need your help.
I made a web site that uses applet.
This web site is perfectly if i using it from a internet connection without a proxy.
With proxy, instead, i have a big problem: applet does not work.
This problem is present also with a correctly configurated java VM for proxy setting.
In java console i have this error (I submit the entire log), thanks to all:
Java Plug-in 1.5.0_11
Uso della versione JRE 1.5.0_11 Java HotSpot(TM) Client VM
Directory principale utente = D:\Documents and Settings\sergio.girardi
c: cancella finestra console
f: finalizza oggetti nella coda di finalizzazione
g: recupera spazio
h: visualizza questo messaggio di aiuto
l: esegui dump dell'elenco classloader
m: stampa utilizzo memoria
o: attiva registrazione eventi
p: ricarica configurazione proxy
q: nascondi console
r: ricarica configurazione criteri
s: esegui dump delle propriet� del sistema e dell'installazione
t: esegui dump dell'elenco thread
v: esegui dump dello stack del thread
x: cancella cache classloader
0-5: imposta livello di traccia su <n>
XML-RPC URL-:http://213.200.99.109/CIC/RPCServlet
setuser:girardis-admin
log4j:WARN No appenders could be found for logger (org.apache.commons.httpclient.HttpClient).
log4j:WARN Please initialize the log4j system properly.
java.net.ConnectException: Connection timed out: connect
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.PlainSocketImpl.doConnect(Unknown Source)
at java.net.PlainSocketImpl.connectToAddress(Unknown Source)
at java.net.PlainSocketImpl.connect(Unknown Source)
at java.net.SocksSocketImpl.connect(Unknown Source)
at java.net.Socket.connect(Unknown Source)
at java.net.Socket.connect(Unknown Source)
at java.net.Socket.<init>(Unknown Source)
at java.net.Socket.<init>(Unknown Source)
at org.apache.commons.httpclient.protocol.DefaultProtocolSocketFactory.createSocket(DefaultProtocolSocketFactory.java:86)
at org.apache.commons.httpclient.HttpConnection.open(HttpConnection.java:652)
at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:628)
at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:526)
at org.apache.xmlrpc.CommonsXmlRpcTransport.sendXmlRpc(CommonsXmlRpcTransport.java:111)
at org.apache.xmlrpc.XmlRpcClientWorker.execute(XmlRpcClientWorker.java:71)
at org.apache.xmlrpc.XmlRpcClient.execute(XmlRpcClient.java:193)
at org.apache.xmlrpc.XmlRpcClient.execute(XmlRpcClient.java:184)
at org.apache.xmlrpc.XmlRpcClient.execute(XmlRpcClient.java:177)
at amis.ui.rpc.XmlRpcLocalServer.executeCall(XmlRpcLocalServer.java:538)
at amis.ui.rpc.XmlRpcLocalServer.setUser(XmlRpcLocalServer.java:80)
at amis.ui.client.IdamApplet.initClient(IdamApplet.java:126)
at amis.ui.client.IdamApplet.initialize(IdamApplet.java:48)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at sun.plugin.javascript.invoke.JSInvoke.invoke(Unknown Source)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at sun.plugin.javascript.JSClassLoader.invoke(Unknown Source)
at sun.plugin.com.MethodDispatcher.invoke(Unknown Source)
at sun.plugin.com.DispatchImpl.invokeImpl(Unknown Source)
at sun.plugin.com.DispatchImpl$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at sun.plugin.com.DispatchImpl.invoke(Unknown Source)
java.lang.NullPointerException
at amis.ui.client.IdamApplet.initClient(IdamApplet.java:128)
at amis.ui.client.IdamApplet.initialize(IdamApplet.java:48)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at sun.plugin.javascript.invoke.JSInvoke.invoke(Unknown Source)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at sun.plugin.javascript.JSClassLoader.invoke(Unknown Source)
at sun.plugin.com.MethodDispatcher.invoke(Unknown Source)
at sun.plugin.com.DispatchImpl.invokeImpl(Unknown Source)
at sun.plugin.com.DispatchImpl$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at sun.plugin.com.DispatchImpl.invoke(Unknown Source)
java.net.ConnectException: Connection timed out: connect
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.PlainSocketImpl.doConnect(Unknown Source)
at java.net.PlainSocketImpl.connectToAddress(Unknown Source)
at java.net.PlainSocketImpl.connect(Unknown Source)
at java.net.SocksSocketImpl.connect(Unknown Source)
at java.net.Socket.connect(Unknown Source)
at java.net.Socket.connect(Unknown Source)
at java.net.Socket.<init>(Unknown Source)
at java.net.Socket.<init>(Unknown Source)
at org.apache.commons.httpclient.protocol.DefaultProtocolSocketFactory.createSocket(DefaultProtocolSocketFactory.java:86)
at org.apache.commons.httpclient.HttpConnection.open(HttpConnection.java:652)
at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:628)
at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:526)
at org.apache.xmlrpc.CommonsXmlRpcTransport.sendXmlRpc(CommonsXmlRpcTransport.java:111)
at org.apache.xmlrpc.XmlRpcClientWorker.execute(XmlRpcClientWorker.java:71)
at org.apache.xmlrpc.XmlRpcClient.execute(XmlRpcClient.java:193)
at org.apache.xmlrpc.XmlRpcClient.execute(XmlRpcClient.java:184)
at org.apache.xmlrpc.XmlRpcClient.execute(XmlRpcClient.java:177)
at amis.ui.rpc.XmlRpcLocalServer.executeCall(XmlRpcLocalServer.java:538)
at amis.ui.rpc.XmlRpcLocalServer.getAmisReportSectionXml(XmlRpcLocalServer.java:254)
at amis.ui.controller.IdamController.setCodSection(IdamController.java:219)
at amis.ui.client.IdamClient.setCodSection(IdamClient.java:291)
at amis.ui.client.IdamClient.pageLoad(IdamClient.java:300)
at amis.ui.client.IdamApplet.pageLoad(IdamApplet.java:172)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at sun.plugin.javascript.invoke.JSInvoke.invoke(Unknown Source)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at sun.plugin.javascript.JSClassLoader.invoke(Unknown Source)
at sun.plugin.com.MethodDispatcher.invoke(Unknown Source)
at sun.plugin.com.DispatchImpl.invokeImpl(Unknown Source)
at sun.plugin.com.DispatchImpl$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at sun.plugin.com.DispatchImpl.invoke(Unknown Source)
Starting configuring logger
log4j: Could not find root logger information. Is this OK?
log4j: Parsing for [amis] with value=[DEBUG, A1].
log4j: Level token is [DEBUG].
log4j: Category amis set to DEBUG
log4j: Parsing appender named "A1".
log4j: Parsing layout options for "A1".
log4j: Setting property [conversionPattern] to [%d{HH:mm:ss,SSS} %-4r [%t] %-5p %c{1} - %m%n].
log4j: End of parsing for "A1".
log4j: Setting property [threshold] to [DEBUG].
log4j: Parsed "A1" options.
log4j: Handling log4j.additivity.amis=[null]
log4j: Finished configuring.
End configuring logger
10:27:30,187 45703 [Thread-14] DEBUG amis - AmisReportSectionXml: null
java.lang.NullPointerException
at java.io.StringReader.<init>(Unknown Source)
at amis.ui.util.XmlUtility.getXmlDocumentFromString(XmlUtility.java:96)
at amis.ui.controller.IdamController.setCodSection(IdamController.java:222)
at amis.ui.client.IdamClient.setCodSection(IdamClient.java:291)
at amis.ui.client.IdamClient.pageLoad(IdamClient.java:300)
at amis.ui.client.IdamApplet.pageLoad(IdamApplet.java:172)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at sun.plugin.javascript.invoke.JSInvoke.invoke(Unknown Source)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at sun.plugin.javascript.JSClassLoader.invoke(Unknown Source)
at sun.plugin.com.MethodDispatcher.invoke(Unknown Source)
at sun.plugin.com.DispatchImpl.invokeImpl(Unknown Source)
at sun.plugin.com.DispatchImpl$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at sun.plugin.com.DispatchImpl.invoke(Unknown Source)
10:27:30,546 46062 [Thread-14] ERROR amis - CGeneric Exception : - getXmlDocumentFromString - null - XML data:null
java.lang.NullPointerException
at java.io.StringReader.<init>(Unknown Source)
at amis.ui.util.XmlUtility.getXmlDocumentFromString(XmlUtility.java:96)
at amis.ui.controller.IdamController.setCodSection(IdamController.java:222)
at amis.ui.client.IdamClient.setCodSection(IdamClient.java:291)
at amis.ui.client.IdamClient.pageLoad(IdamClient.java:300)
at amis.ui.client.IdamApplet.pageLoad(IdamApplet.java:172)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at sun.plugin.javascript.invoke.JSInvoke.invoke(Unknown Source)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at sun.plugin.javascript.JSClassLoader.invoke(Unknown Source)
at sun.plugin.com.MethodDispatcher.invoke(Unknown Source)
at sun.plugin.com.DispatchImpl.invokeImpl(Unknown Source)
at sun.plugin.com.DispatchImpl$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at sun.plugin.com.DispatchImpl.invoke(Unknown Source)
Generic Exception : null - XML data:null
java.net.ConnectException: Connection timed out: connect
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.PlainSocketImpl.doConnect(Unknown Source)
at java.net.PlainSocketImpl.connectToAddress(Unknown Source)
at java.net.PlainSocketImpl.connect(Unknown Source)
at java.net.SocksSocketImpl.connect(Unknown Source)
at java.net.Socket.connect(Unknown Source)
at java.net.Socket.connect(Unknown Source)
at java.net.Socket.<init>(Unknown Source)
at java.net.Socket.<init>(Unknown Source)
at org.apache.commons.httpclient.protocol.DefaultProtocolSocketFactory.createSocket(DefaultProtocolSocketFactory.java:86)
at org.apache.commons.httpclient.HttpConnection.open(HttpConnection.java:652)
at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:628)
at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:526)
at org.apache.xmlrpc.CommonsXmlRpcTransport.sendXmlRpc(CommonsXmlRpcTransport.java:111)
at org.apache.xmlrpc.XmlRpcClientWorker.execute(XmlRpcClientWorker.java:71)
at org.apache.xmlrpc.XmlRpcClient.execute(XmlRpcClient.java:193)
at org.apache.xmlrpc.XmlRpcClient.execute(XmlRpcClient.java:184)
at org.apache.xmlrpc.XmlRpcClient.execute(XmlRpcClient.java:177)
at amis.ui.rpc.XmlRpcLocalServer.executeCall(XmlRpcLocalServer.java:538)
at amis.ui.rpc.XmlRpcLocalServer.getAmisTagXml(XmlRpcLocalServer.java:271)
at amis.ui.controller.IdamController.setCodSection(IdamController.java:223)
at amis.ui.client.IdamClient.setCodSection(IdamClient.java:291)
at amis.ui.client.IdamClient.pageLoad(IdamClient.java:300)
at amis.ui.client.IdamApplet.pageLoad(IdamApplet.java:172)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at sun.plugin.javascript.invoke.JSInvoke.invoke(Unknown Source)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at sun.plugin.javascript.JSClassLoader.invoke(Unknown Source)
at sun.plugin.com.MethodDispatcher.invoke(Unknown Source)
at sun.plugin.com.DispatchImpl.invokeImpl(Unknown Source)
at sun.plugin.com.DispatchImpl$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at sun.plugin.com.DispatchImpl.invoke(Unknown Source)
10:27:51,531 67047 [Thread-14] DEBUG amis - AmisTagXml: null
java.lang.NullPointerException
at java.io.StringReader.<init>(Unknown Source)
at amis.ui.util.XmlUtility.getXmlDocumentFromString(XmlUtility.java:96)
at amis.ui.controller.IdamController.setCodSection(IdamController.java:225)
at amis.ui.client.IdamClient.setCodSection(IdamClient.java:291)
at amis.ui.client.IdamClient.pageLoad(IdamClient.java:300)
at amis.ui.client.IdamApplet.pageLoad(IdamApplet.java:172)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at sun.plugin.javascript.invoke.JSInvoke.invoke(Unknown Source)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at sun.plugin.javascript.JSClassLoader.invoke(Unknown Source)
at sun.plugin.com.MethodDispatcher.invoke(Unknown Source)
at sun.plugin.com.DispatchImpl.invokeImpl(Unknown Source)
at sun.plugin.com.DispatchImpl$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at sun.plugin.com.DispatchImpl.invoke(Unknown Source)
10:27:51,531 67047 [Thread-14] ERROR amis - CGeneric Exception : - getXmlDocumentFromString - null - XML data:null
java.lang.NullPointerException
at java.io.StringReader.<init>(Unknown Source)
at amis.ui.util.XmlUtility.getXmlDocumentFromString(XmlUtility.java:96)
at amis.ui.controller.IdamController.setCodSection(IdamController.java:225)
at amis.ui.client.IdamClient.setCodSection(IdamClient.java:291)
at amis.ui.client.IdamClient.pageLoad(IdamClient.java:300)
at amis.ui.client.IdamApplet.pageLoad(IdamApplet.java:172)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at sun.plugin.javascript.invoke.JSInvoke.invoke(Unknown Source)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at sun.plugin.javascript.JSClassLoader.invoke(Unknown Source)
at sun.plugin.com.MethodDispatcher.invoke(Unknown Source)
at sun.plugin.com.DispatchImpl.invokeImpl(Unknown Source)
at sun.plugin.com.DispatchImpl$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at sun.plugin.com.DispatchImpl.invoke(Unknown Source)
Generic Exception : null - XML data:null
10:27:51,531 67047 [Thread-14] DEBUG amis - IdamClient.pageLoad - start - CodSection: 1110
esecuzione query
java.lang.NullPointerException
at amis.ui.controller.IdamController.getTagAttributes(IdamController.java:845)
at amis.ui.client.IdamClient.pageLoad(IdamClient.java:328)
at amis.ui.client.IdamClient.pageLoad(IdamClient.java:301)
at amis.ui.client.IdamApplet.pageLoad(IdamApplet.java:172)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at sun.plugin.javascript.invoke.JSInvoke.invoke(Unknown Source)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at sun.plugin.javascript.JSClassLoader.invoke(Unknown Source)
at sun.plugin.com.MethodDispatcher.invoke(Unknown Source)
at sun.plugin.com.DispatchImpl.invokeImpl(Unknown Source)
at sun.plugin.com.DispatchImpl$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at sun.plugin.com.DispatchImpl.invoke(Unknown Source)
10:28:16,468 91984 [Thread-14] ERROR amis - Errore nel caricamento dei messaggi dal server per il repert: 1110
java.net.ConnectException: Connection timed out: connect
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.PlainSocketImpl.doConnect(Unknown Source)
at java.net.PlainSocketImpl.connectToAddress(Unknown Source)
at java.net.PlainSocketImpl.connect(Unknown Source)
at java.net.SocksSocketImpl.connect(Unknown Source)
at java.net.Socket.connect(Unknown Source)
at java.net.Socket.connect(Unknown Source)
at java.net.Socket.<init>(Unknown Source)
at java.net.Socket.<init>(Unknown Source)
at org.apache.commons.httpclient.protocol.DefaultProtocolSocketFactory.createSocket(DefaultProtocolSocketFactory.java:86)
at org.apache.commons.httpclient.HttpConnection.open(HttpConnection.java:652)
at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:628)
at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:526)
at org.apache.xmlrpc.CommonsXmlRpcTransport.sendXmlRpc(CommonsXmlRpcTransport.java:111)
at org.apache.xmlrpc.XmlRpcClientWorker.execute(XmlRpcClientWorker.java:71)
at org.apache.xmlrpc.XmlRpcClient.execute(XmlRpcClient.java:193)
at org.apache.xmlrpc.XmlRpcClient.execute(XmlRpcClient.java:184)
at org.apache.xmlrpc.XmlRpcClient.execute(XmlRpcClient.java:177)
at amis.ui.rpc.XmlRpcLocalServer.getIdamMessage(XmlRpcLocalServer.java:452)
at amis.ui.client.IdamClient.getServerIdamMessage(IdamClient.java:153)
at amis.ui.client.IdamClient.pageLoad(IdamClient.java:395)
at amis.ui.client.IdamClient.pageLoad(IdamClient.java:301)
at amis.ui.client.IdamApplet.pageLoad(IdamApplet.java:172)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at sun.plugin.javascript.invoke.JSInvoke.invoke(Unknown Source)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at sun.plugin.javascript.JSClassLoader.invoke(Unknown Source)
at sun.plugin.com.MethodDispatcher.invoke(Unknown Source)
at sun.plugin.com.DispatchImpl.invokeImpl(Unknown Source)
at sun.plugin.com.DispatchImpl$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at sun.plugin.com.DispatchImpl.invoke(Unknown Source)
java.lang.ClassCastException: javax.swing.table.DefaultTableModel
at amis.ui.client.IdamClient.pageLoad(IdamClient.java:401)
at amis.ui.client.IdamClient.pageLoad(IdamClient.java:301)
at amis.ui.client.IdamApplet.pageLoad(IdamApplet.java:172)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at sun.plugin.javascript.invoke.JSInvoke.invoke(Unknown Source)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at sun.plugin.javascript.JSClassLoader.invoke(Unknown Source)
at sun.plugin.com.MethodDispatcher.invoke(Unknown Source)
at sun.plugin.com.DispatchImpl.invokeImpl(Unknown Source)
at sun.plugin.com.DispatchImpl$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at sun.plugin.com.DispatchImpl.invoke(Unknown Source)
java.lang.Exception: java.lang.ClassCastException: javax.swing.table.DefaultTableModel
at sun.plugin.com.DispatchImpl.invokeImpl(Unknown Source)
at sun.plugin.com.DispatchImpl$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at sun.plugin.com.DispatchImpl.invoke(Unknown Source)I was googling around to find out more about this issue and I found this:
http://cxf.547215.n5.nabble.com/CXF-on-WebLogic-9-2-td554550.html
it might provide you with some clues....
in fact the weblogic.xml of the bea_wls_internal.war contains a reference to java.sun.com
xmlns:j2ee="http://java.sun.com/xml/ns/j2ee"
but I have no clue why it's actually trying all of a sudden to access the resource location indicated by the namespace... XML specifications are also very vague about the schemaLocation clause...
Sorry for not being able to help more. -
hello all,
iam working on jdbc
i have installed
mysql 4.1
eclipse 3.0
and started coding
after invoking getconnection() with url, i have printed the connection object con and iam using prpared statements in my program
and executed the code , i got errors,
errors:
con isnull
log4j:WARN No appenders could be found for logger .
log4j:WARN Please initialize the log4j system properly.
Exception in thread "main" java.sql.SQLException: Connection passed to StatementFactory is null
at com.javaunderground.jdbc.StatementFactory.getStatement(Unknown Source)
at com.javaunderground.jdbc.StatementFactory.getStatement(Unknown Source)
can any one suggest what might be the problem,
thanks in advance
haripriyaSounds like you are missing a bunch of important jars at runtime.
-
Oracle ADF viewScope causing session size bloat
As I'm sure you know, ADF introduces some additional scopes (pageFlowScope, viewScope and backingBeanScope) on top of the standard JSF ones. Our use of one of the ADF scopes, viewScope, appears to be causing our session size to bloat over time.
Objects that are view scoped (e.g. our Backing Beans) are managed by ADF and appear to be put into the session in a org.apache.myfaces.trinidadinternal.application.StateManagerImpl$PageState object. The number of these objects in the session is equal to the org.apache.myfaces.trinidad.CLIENT_STATE_MAX_TOKENS in our web.xml configuration file.
Once all of the tokens are ‘used up’, by navigating around the application, the oldest one of these objects is removed from the session and (should be) garbage collected at some point. However, the reclaim of this space is observed much later, after the session has expired. Because of this, when load testing the application we see the heap space usage gradually increasing, before causing the JVM to crash.
The monitoring of the creation and destruction of our objects is done by adding log statements in the default constructor and in the finalize method (Which overrides the finalize method on object). The logging statements on object creation are seen when we would expect them, but the logging statements from the finalize method are only seen after session expiry. When a garbage collection is triggered using Oracle JRocket Mission Control we see the heap usage drop significantly, but don’t observe any logging from the finalize method calls.
Does anyone have any thoughts on why the garbage collector might not be able to reclaim view scoped objects after they are removed from the session?
Thanks in advance.
P.S. I have already found VIEW SCOPE IS NOT RELEASING PROPERLY IN ADF which is a very closesly related thread, but unfortunately was not able to use the replies on there to resolve our issue. I've also posted this same question on Stack Overflow (http://stackoverflow.com/questions/13380151/lifetime-of-view-scoped-objects-oracle-adf). I'll try and update both threads if I find a solution.
Edited by: 971217 on 14-Nov-2012 07:08Hi Frank,
Thanks for your very useful reply. I've managed to recreate the problem today by doing the following.
1. Create pageOne.jspx and pageTwo.jspx
2. Create PageOneBB.java and PageTwoBB.java
3. Register PageOneBB.java and PageTwoBB.java in the adfc-config.xml as view scoped managed beans.
Then after building and deploying out to my Weblogic server I continue by doing the following:
4. Open pageOne.jspx in a browser. Observe the constructor of pageOneBB being called and the correct default text being shown in the box. [Optional] Set the text value to a new string and click on the button.
5. Get redirected to pageTwo.jspx. Observe the constructor of pageTwoBB being called and the correct default text being shown in the box. [Optional] Set the value to a new string and click on the button.
6. Monitor the Weblogic server using Oracle JRocket Mission Control. Observe the large lists of booleans being created as expected (5,000,000 per click!).
7. Note that this number is never reduced - even though the old view scoped beans should have been released for garbage collection.
8. Repeat steps 4 and 5 until I see the Weblogic server crash due to a java.lang.OutOfMemoryError.
9. Wait for all of the sessions to expire. I've set my session expiry to be 180s for the purpose of this test.
10. After 180s observe the finalize method being called on all of the backing bean objects and the heap usage drop significantly.
11. The server works again but the problem has been demonstrated in a reproducible way.
adfc-config.xml
<managed-bean>
<managed-bean-name>pageOneBB</managed-bean-name>
<managed-bean-class>presentation.adf.test.PageOneBB</managed-bean-class>
<managed-bean-scope>view</managed-bean-scope>
</managed-bean>
<managed-bean>
<managed-bean-name>pageTwoBB</managed-bean-name>
<managed-bean-class>presentation.adf.test.PageTwoBB</managed-bean-class>
<managed-bean-scope>view</managed-bean-scope>
</managed-bean>
pageOne.jspx
<?xml version='1.0' encoding='utf-8?>
<jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="2.1"
xlmns:f="http://java.sun.com/jsf/core"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:af="http://xmlns.oracle.com/adf/faces/rich"
xmlns:c="http://java.sun.com/jsp/jstl/core" >
<jsf:directive.page contentType="text/html;charset=UTF-8" />
<f:view>
<af:document id="t" title="Page One">
<af:form>
<af:inputText id="pgOneIn" value="#{viewScope.pageOneBB.testData}" />
<af:commandButton id="pgOneButton" partialSubmit="true"
blocking="true" action="#{viewScope.pageOneBB.goToPageTwo}"
text="Submit" />
</af:form>
<af:document>
</f:view>
</jsp:root> pageTwo.jspx
<?xml version='1.0' encoding='utf-8?>
<jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="2.1"
xlmns:f="http://java.sun.com/jsf/core"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:af="http://xmlns.oracle.com/adf/faces/rich"
xmlns:c="http://java.sun.com/jsp/jstl/core" >
<jsf:directive.page contentType="text/html;charset=UTF-8" />
<f:view>
<af:document id="t" title="Page Two">
<af:form>
<af:inputText id="pgTwoIn" value="#{viewScope.pageTwoBB.testData}" />
<af:commandButton id="pgTwoButton" partialSubmit="true"
blocking="true" action="#{viewScope.pageTwoBB.goToPageOne}"
text="Submit" />
</af:form>
<af:document>
</f:view>
</jsp:root> PageOneBB.java
package presentation.adf.test;
import java.io.IOException;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;
import javax.faces.context.FacesContext;
import org.apache.log4j.Logger;
import logger.log4j.RuntimeConfigurableLogger;
public class PageOneBB implements Serialiable
/** Default serial version UID. */
private static final long serialVersionUID = 1L;
/** Page one default text. */
private String pageOneData = "Page one default text";
/** A list of booleans that will become large. */
private List<Boolean> largeBooleanList = new ArrayList<Boolean>();
/** The logger */
private static final Logger LOG = RuntimeConfigurableLogger.gotLogger(PageOneBB.class);
/** Default constructor for PageOneBB. */
public PageOneBB()
for (int i = 0; i < 5000000; i++)
largeBooleanList.add(new Boolean(true));
if (LOG.isTraceEnabled())
LOG.trace("Constructor called on PageOneBB. This object has a hash code of " + this.hashCode());
/** Method for redirecting to page two. */
public void goToPageTwo()
try
FacesContext.getCurrentInstance().getExternalContext.redirect("pageTwo.jspx");
catch (IOException e)
e.printStackTrace();
* {@inheritDoc}
@Override
protected void finalize() throws Exception
if (LOG.isTraceEnabled())
LOG.trace("Finalize method called on PageOneBB. This object has a hash code of " + this.hashCode());
* Set the testData
* @param testData
* The testData to set.
public void setTestData(String testData)
if (LOG.isTraceEnabled())
LOG.trace("setTestData method called on PageOneBB with a parameter of " + testData);
this.pageOneData = testData;
* Get the testData
* @return The testData.
public String getTestData()
if (LOG.isTraceEnabled())
LOG.trace("getTestData method called on PageOneBB");
return pageOneData;
PageTwoBB.java
package presentation.adf.test;
import java.io.IOException;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;
import javax.faces.context.FacesContext;
import org.apache.log4j.Logger;
import logger.log4j.RuntimeConfigurableLogger;
public class PageTwoeBB implements Serialiable
/** Default serial version UID. */
private static final long serialVersionUID = 1L;
/** Page one default text. */
private String pageTwoData = "Page two default text";
/** A list of booleans that will become large. */
private List<Boolean> largeBooleanList = new ArrayList<Boolean>();
/** The logger */
private static final Logger LOG = RuntimeConfigurableLogger.gotLogger(PageTwoBB.class);
/** Default constructor for PageTwoBB. */
public PageTwoBB()
for (int i = 0; i < 5000000; i++)
largeBooleanList.add(new Boolean(true));
if (LOG.isTraceEnabled())
LOG.trace("Constructor called on PageTwoBB. This object has a hash code of " + this.hashCode());
/** Method for redirecting to page one. */
public void goToPageOne()
try
FacesContext.getCurrentInstance().getExternalContext.redirect("pageOne.jspx");
catch (IOException e)
e.printStackTrace();
* {@inheritDoc}
@Override
protected void finalize() throws Exception
if (LOG.isTraceEnabled())
LOG.trace("Finalize method called on PageTwoBB. This object has a hash code of " + this.hashCode());
* Set the testData
* @param testData
* The testData to set.
public void setTestData(String testData)
if (LOG.isTraceEnabled())
LOG.trace("setTestData method called on PageTwoBB with a parameter of " + testData);
this.pageTwoData = testData;
* Get the testData
* @return The testData.
public String getTestData()
if (LOG.isTraceEnabled())
LOG.trace("getTestData method called on PageTwoBB");
return pageTwoData;
}
Maybe you are looking for
-
Need Help Identifying Two HP ZD7000 Parts
Hi, The DC power jack on my Pavilion ZD7000 went bad, a common problem. I had never taken a laptop computer apart before but decided I would give it a try and replace the jack myself. If I failed in my effort, no great loss since the computer is an o
-
How to Get the sentitems count in exchange server 2010
hi, I want to take all users sent items count in exchange 2010
-
I don't know what I did but PS has downloaded in French. Is there any way I can change the language once it's installed?
-
IWeb 09 and E-Commerce for Music downloads
I'd like to build an iWeb site for music downloads. I create music for commercial use. I'd like to build a site and have the download come from the site or and email link. I would like to use Paypal, Visa, etc. Any ideas or information would be great
-
E-mail privacy options on the forum
How do I set my e-mail address to "private"? Should the default not be private? When I scroll accross my forum name, my e-mail address appears. I do not see any options in my profile options to change my e-mail to private. Thank you, Kind regards