Log4j - configuration file
where can I find a guide on log4j?
I need to configure the logger, in a configuration file.
I've done it by a init servlet and a configuration file,but tomcat write this message
log4j:WARN No appenders could be found for logger (org.apache.commons.digester.Digester).
log4j:WARN Please initialize the log4j system properly.
the servlet is this:
package fromBegin.controller;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import org.apache.log4j.PropertyConfigurator;
public class StartUpServlet extends HttpServlet
public void init() {
String prefix = getServletContext().getRealPath("/");
String file = getInitParameter("log4j-init-file");
// if the log4j-init-file is not set, then no point in trying
if(file != null) {
PropertyConfigurator.configure(prefix+file);
public
void doGet(HttpServletRequest req, HttpServletResponse res) {
the web.xml fragment is this
<servlet>
<servlet-name>startUp</servlet-name>
<servlet-class>fromBegin.controller.StartUpServlet</servlet-class>
<init-param>
<param-name>log4j-init-file</param-name>
<param-value>WEB-INF/log4j.lcf</param-value>
</init-param>
<load-on-startup>1</load-on-startup>
</servlet>
and the configuration file is this:
# file di configurazione per la registrazione dei log
# mediante log4j
log4j.rootLogger=DEBUG, R
log4j.appender.R=org.apache.log4j.RollingFileAppender
log4j.appender.R.File=C:\\Documents and Settings\\Romeo\\Desktop\\Raccolta log\\log4j-track.log
log4j.appender.R.layout=org.apache.log4j.PatternLayout
log4j.appender.R.layout.ConversionPattern=%-4r [%t] %-5p %c %x - %m%n
finally,
anybody knows a online guide for log4j?
why tomcat give me that warning message?
thanks
The error message is coming because some other classes that use log4j debugging can't find your properties file.
In this case the org.apache.commons.digester.Digester.
It knows nothing about your personal log4j file for your app - you passed that in as a servlet ini parameter.
That will set up log4j to work for your code, but probably not for others.
Quick and dirty fix: put another log4j.properties file in your web-inf/classes directory. This will be found by all other applications wanting to use log4j. You can then set their logging levels in this file, seperate from your own.
Re online log4j documentation- http://logging.apache.org/log4j/docs/documentation.html
You most probably found that already though :-)
Good luck,
evnafets
Similar Messages
-
Could not read Log4j configuration file when I run jar file
Hi,
I'm using Log4J in my application..
I configure the log4j, as follows;
PropertyConfigurator.configure("properties/logging.properties");and then go on to use it.
The .properties is in the root when I jar my source. I use Ant to Jar the file. It all works good when I run the jar file from ant.
The problem is when I run the jar file by double clicking on it, I get an error
" Could not read configuration file [properties/logging.properties]."
I tried the following options;
PropertyConfigurator.configure("/logging.properties");
PropertyConfigurator.configure("./logging.properties");
PropertyConfigurator.configure("../logging.properties");But in all cases, I get corresponding errors on running the jar file through Ant:
log4j:ERROR Could not read configuration file [logging.properties].
log4j:ERROR Could not read configuration file [./logging.properties].
log4j:ERROR Could not read configuration file [../logging.properties].
I want to be able to run the Jar by double clicking on it or through Ant.. Would any one know how to fix this issue so that I can use both methods..Keep your properties file inside the root folder of your application.It is working fine
-
How to pass parameters to configuration files
Hello,
I have an application which uses several libraries and frameworks like log4j and hibernate.
Each library/framework is configured via its own configuration file, some configuration files are in xml format and others are in properties format.
Each configuration file has lots of specialized parameters that should not be exposed to the user but there are also one or two parameters that must be configured by the end user.
For example:
The log4j configuration file has lots of specialized parameters that the user should not see, but there is one parameter that the user must configure: the path for the application log file.
Another example:
The hibernate configuration file has lots of specialized parameters that the user should not see, but there is one parameter that the user musr configure: the path to the application database.
It would be great if we can have an user-configuration-file that contains only the parameters that should be configured by the user and leave the complicated and specialized parameters in their corresponding files.
I want to pass the properties defined in the user-configuration-file to the specialized configuration files.
Any ideas to achieve this?
ThanxThank you very much to all for the replies.
Ok, I can read the specialized-configuration-file into a Properties object, then read the user-configuration-file and merge the appropriate properties to get a complete Properties object.
If the library/framework can't be configured with the Properties object, then I will need to write down the properties into a new file and tell the library/framework to load that file.
I have used Properties objects and files before, but I don't have experience with xml configuration files.
Is the same applicable to xml files?
How can I load a XML files to an object and then update/add a particular property?.
If that's possible, then: how can I write down the XML object to a new file?
thanx
Edited by: JoseLuis on Oct 23, 2008 11:28 AM -
Can anyone explain why every line in the log file is printed twice - this is my log4j configuration file.
thanks...
Liat
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE log4j:configuration SYSTEM "log4j.dtd">
<!-- ===================================================================== -->
<!-- -->
<!-- Log4j Configuration -->
<!-- -->
<!-- ===================================================================== -->
<!-- $Id: log4j.xml,v 1.1 2003/10/29 11:00:45 avir Exp $ -->
<!--
| For more configuration infromation and examples see the Jakarta Log4j
| owebsite: http://jakarta.apache.org/log4j
-->
<log4j:configuration xmlns:log4j="http://jakarta.apache.org/log4j/" debug="false">
<appender name="FILE" class="org.apache.log4j.DailyRollingFileAppender">
<param name="File" value="./BitbandClient.log"/>
<param name="Append" value="true"/>
<!-- 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"/>
<!-- %-4r [%t] %-5p %c %x - %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>
<!-- ============================== -->
<!-- Append messages to the console -->
<!-- ============================== -->
<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>
<appender name="BITBAND-CONSOLE" class="org.apache.log4j.ConsoleAppender">
<param name="Target" value="System.out"/>
<param name="Threshold" value="DEBUG"/>
<layout class="org.apache.log4j.PatternLayout">
<!-- The default pattern: Date Priority [Category] Message\n -->
<param name="ConversionPattern" value="%d{ABSOLUTE} %-5p [%c] - %m%n "/>
</layout>
</appender>
<category name="com.bitband.maestro">
<priority value="DEBUG"/>
<appender-ref ref="BITBAND-CONSOLE"/>
<appender-ref ref="FILE"/>
</category>
<!-- ======================= -->
<!-- Setup the Root category -->
<!-- ======================= -->
<root>
<priority value="INFO"/>
<appender-ref ref="CONSOLE"/>
<appender-ref ref="FILE"/>
</root>
</log4j:configuration>You're just begging for a [url http://en.wikipedia.org/wiki/RTFM]four-letter response :-)
http://logging.apache.org/log4j/docs/manual.html
The addAppender method adds an appender to a given logger. Each enabled logging request for a given logger will be forwarded to all the appenders in that logger as well as the appenders higher in the hierarchy. In other words, appenders are inherited additively from the logger hierarchy. For example, if a console appender is added to the root logger, then all enabled logging requests will at least print on the console. If in addition a file appender is added to a logger, say C, then enabled logging requests for C and C's children will print on a file and on the console. It is possible to override this default behavior so that appender accumulation is no longer additive by setting the additivity flag to false. -
I am using apache log4j. It is working fine as per my log4j configuration file.
Recently log4j configuration getting changed dynamically by some other application. So my application is not logging as per my configuration.
I want to dynamically retrieve the log4j configuration.
Is it possible to do it programmatically.
Thanks,
GovindDo you have to retrieve this configuration or do you simply want to override it?
Anyway, depending on your application type, have a look at DOMConfigurator and BasicConfigurator
Another tangent is to go the JMX route. Log4j exposes some MBeans that you can query and manipulate. -
How can i wrote configuration file in Log4j
iam new log4j .i have seen one small programme in log4j examples folder ..i e. shown below
Sort.java
=====
package examples;
import org.apache.log4j.PropertyConfigurator;
import org.apache.log4j.Logger;
import org.apache.log4j.Priority;
Example code for log4j to viewed in conjunction with the {@link
examples.SortAlgo SortAlgo} class.
<p>This program expects a configuration file name as its first
argument, and the size of the array to sort as the second and last
argument. See its <b>source
code</b> for more details.
<p>Play around with different values in the configuration file and
watch the changing behavior.
<p>Example configuration files can be found in <a
href="doc-files/sort1.properties">sort1.properties</a>, <a
href="doc-files/sort2.properties">sort2.properties</a>, <a
href="doc-files/sort3.properties">sort3.properties</a> and <a
href="doc-files/sort4.properties">sort4.properties</a> are supplied with the
package.
<p>If you are also interested in logging performance, then have
look at the {@link org.apache.log4j.performance.Logging} class.
@author Ceki Gülcü */
public class Sort {
static Logger logger = Logger.getLogger(Sort.class.getName());
public static void main(String[] args) {
if(args.length != 2) {
usage("Incorrect number of parameters.");
int arraySize = -1;
try {
arraySize = Integer.valueOf(args[1]).intValue();
if(arraySize <= 0)
usage("Negative array size.");
catch(java.lang.NumberFormatException e) {
usage("Could not number format ["+args[1]+"].");
PropertyConfigurator.configure(args[0]);
int[] intArray = new int[arraySize];
logger.info("Populating an array of " + arraySize + " elements in" +" reverse order.");
for(int i = arraySize -1 ; i >= 0; i--) {
intArray[i] = arraySize - i - 1;
SortAlgo sa1 = new SortAlgo(intArray);
sa1.bubbleSort();
sa1.dump();
// We intentionally initilize sa2 with null.
SortAlgo sa2 = new SortAlgo(null);
logger.info("The next log statement should be an error message.");
sa2.dump();
logger.info("Exiting main method.");
static void usage(String errMsg) {
System.err.println(errMsg);
System.err.println("\nUsage: java org.apache.examples.Sort " + "configFile ARRAY_SIZE\n"+
"where configFile is a configuration file\n"+" ARRAY_SIZE is a positive integer.\n");
System.exit(1);
and
SortAlgo.java
==========
package examples;
import org.apache.log4j.Category;
import org.apache.log4j.NDC;
Example code for log4j to viewed in conjunction with the {@link
examples.Sort Sort} class.
<p>SortAlgo uses the bubble sort algorithm to sort an integer
array. See also its <b>source
code</b>.
@author Ceki Gülcü */
public class SortAlgo {
final static String className = SortAlgo.class.getName();
final static Category CAT = Category.getInstance(className);
final static Category OUTER = Category.getInstance(className + ".OUTER");
final static Category INNER = Category.getInstance(className + ".INNER");
final static Category DUMP = Category.getInstance(className + ".DUMP");
final static Category SWAP = Category.getInstance(className + ".SWAP");
int[] intArray;
SortAlgo(int[] intArray) {
this.intArray = intArray;
void bubbleSort() {
CAT.info( "Entered the sort method.");
for(int i = intArray.length -1; i >= 0 ; i--) {
NDC.push("i=" + i);
OUTER.debug("in outer loop.");
for(int j = 0; j < i; j++) {
NDC.push("j=" + j);
// It is poor practice to ship code with log staments in tight loops.
// We do it anyway in this example.
INNER.debug( "in inner loop.");
if(intArray[j] > intArray[j+1])
swap(j, j+1);
NDC.pop();
NDC.pop();
void dump() {
if(! (this.intArray instanceof int[])) {
DUMP.error("Tried to dump an uninitialized array.");
return;
DUMP.info("Dump of integer array:");
for(int i = 0; i < this.intArray.length; i++) {
DUMP.info("Element [" + i + "]=" + this.intArray);
void swap(int l, int r) {
// It is poor practice to ship code with log staments in tight
// loops or code called potentially millions of times.
SWAP.debug( "Swapping intArray["+l+"]=" + intArray[l] +
" and intArray["+r+"]=" + intArray[r]);
int temp = this.intArray[l];
this.intArray[l] = this.intArray[r];
this.intArray[r] = temp;
This program expects a configuration file name as its first
argument, and the size of the array to sort as the second and last
argument. See its <b>source
code</b> for more details.
please help me how can write that configuration file
thanksHi bala,
check that log4j manual I pointed to in yer previous thread.
This is a pot-boiler config file... Copy it into some file say "props.conf" and use it.
# Set root logger level to DEBUG and its only appender to A1.
log4j.rootLogger=DEBUG, A1
# A1 is set to be a ConsoleAppender.
log4j.appender.A1=org.apache.log4j.ConsoleAppender
# A1 uses PatternLayout.
log4j.appender.A1.layout=org.apache.log4j.PatternLayout
log4j.appender.A1.layout.ConversionPattern=%-4r [%t] %-5p %c %x - %m%nCheers, -
Log4j: XML configuration file problem
Hello,
I set up some logging in my existing application with log4j and an xml configuration file. Now I made some changes to my package structure, and some problems occured. So I thougt of setting the logging level of one of my loggers (named myapp.iointerface.DBAccess in the config file). So the only change I did was adding a <param name="Level" value="TRACE"/> to my logger. Now, log4j complains when it reads the configruation file:
log4j:WARN Continuable parsing error 36 and column 11
log4j:WARN The content of element type "logger" must match "(level?,appender-ref*)".My config file:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE log4j:configuration SYSTEM "log4j.dtd">
<log4j:configuration debug="false" xmlns:log4j="http://jakarta.apache.org/log4j/">
<appender name="RootConsole" class="org.apache.log4j.ConsoleAppender">
<param name="Threshold" value="DEBUG"/>
<param name="Target" value="System.err"/>
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="%d{dd MM yyyy HH:mm:ss} %p %C %nIn Zeile Nummer: %L %m %n%n"/>
</layout>
</appender>
<appender name="LoginInfo" class="org.apache.log4j.FileAppender">
<param name="Threshold" value="TRACE"/>
<param name="File" value="${user.dir}/login_info.log"/>
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="%d{dd MM yyyy HH:mm:ss} %p %C %nIn Zeile Nummer: %L %m %n%n"/>
</layout>
</appender>
<appender name="DBConnectionInfo" class="org.apache.log4j.FileAppender">
<param name="Threshold" value="TRACE"/>
<param name="File" value="${user.dir}/db_connection.log"/>
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="%d{dd MM yyyy HH:mm:ss} %p %C %n%m %n%n"/>
</layout>
</appender>
<logger name="myapp.windows.MainFrameController" additivity="false">
<appender-ref ref="LoginInfo"/>
</logger>
<logger name="myapp.iointerface.DBAccess" additivity="false">
<param name="Level" value="TRACE"/>
<appender-ref ref="DBConnectionInfo"/>
</logger>
<root>
<param name="Level" value="DEBUG"/>
<appender-ref ref="RootConsole"/>
</root>
</log4j:configuration>Does anybody know what's wrong with that? I don't understand and found nothing googling it netiher. The strange thing is, that logging messages with level TRACE are recorded in the destination file, but the level id DEBUG.
Thx,
JulienIf you look at the error, the parser expects level and not Level
So :
<param name="Level" value="TRACE"/>should be :
<param name="level" value="TRACE"/>Same goes for :
<param name="Level" value="DEBUG"/>That will solve the problem (even though it is not a critical error)! -
Configure the log4j.xml file
Hello All,
I am trying to configure the log4j.xml file, so that i can get differnet logging messages based on the level to different log files. for ex: info messages in info.log, debug messages in debug.log and so on...i tried using the below...but, no luck.
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE log4j:configuration SYSTEM "log4j.dtd">
<log4j:configuration xmlns:log4j='http://jakarta.apache.org/log4j/'>
<appender name="UCF_Exception" class="org.apache.log4j.RollingFileAppender">
<param name="File" value="UCF_Exception.log"/>
<param name="Append" value="false"/>
<param name="MaxFileSize" value="1000KB"/>
<param name="MaxBackupIndex" value="2"/>
<layout class="org.apache.log4j.xml.XMLLayout">
<param name="LocationInfo" value="true"/>
</layout>
</appender>
<log4j.logger.UCFExceptionLogger>
<level value ="debug"/>
<appender-ref ref="UCF_Exception" />
</log4j.logger.UCFExceptionLogger>
</log4j:configuration>
getting exception
log4j:WARN No appenders could be found for logger (UCFExceptionLogger).
log4j:WARN Please initialize the log4j system properly.
Can someone help me...I'm not 100% sure this is possible with log4j, but if it is then you've still got some errors in your log4j.xml file
Change
<log4j.logger.UCFExceptionLogger>
<level value ="debug"/>
<appender-ref ref="UCF_Exception" />
</log4j.logger.UCFExceptionLogger>to
<logger name="UCFExceptionLogger>
<level value="debug"/>
<appender-ref ref="UCF_Exception" />
</logger>
The log4j jar includes a DTD. You can use the free version of XMLSpy to validate your log4j.xml file against it.
Steve -
How to disable log4j via configuration file
Howdy,
I am using the quartz library which uses log4j, how can I disable log4j in my release version? where can I find a sample configuration file to disable log4j?
TBH i am not sure if its actually running as i am not pointing it to config, i get these warnings:
log4j:WARN No appenders could be found for logger (org.quartz.simpl.SimpleThreadPool).
log4j:WARN Please initialize the log4j system properly.
But I would prefer to just disable it all together (or initialize it correctly and make it do nothing)...so I am looking for how I can accomplish this. I've read over the docs here:
http://logging.apache.org/log4j/1.2/manual.html
They are a bit long winded for what I need to do so I might have missed it, but i am just looking for how to structure a minimal con fig file to properly initialize log4j and prevent it from logging anythingtiburblium wrote:
Now quick question, how can I modify this to prevent logging from occuring? It seems as if I set log4j.debug=FALSE nothing is logged, is that all thats required? set rootLogger to OFF if you intend to turn off logging, something like this.
log4j.rootLogger=OFF, R
Also how can i specify a null appender? I dont want log4j to attempt to log to a file on an end users systemlog file is not created on the end users system. It is created in the app server where the application is running. Setting rootLogger to OFF should take care of your problem as nothing will be logged. -
Very weird issue with server logging when using log4j.properties file
I'm using log4j logging. In log4j.properties the root logger is set up to use the ServerLoggingAppender class so that all our application logs go to the main server logfile. In addition, there are several appenders defined for specific components, with output going to specific per-component log files. Everything is going fine until I launch the server console. At this point all of those per-component log files get wiped out (zero length) and some non-ASCII lines are written to at least one of these files, after which the logs appear to be fine. The main server log file does not appear to be affected (because the root logger is set to "warn" level, while component-specific loggers are set to trace, the contents in these files is different; however I tried disabling all the other appenders and turning the root logger up to trace, and that still did not re-create the problem in the main server log file.
And here's the really weird part -- if I use the same configuration, but in a log4j.xml file, the problem does not happen.Figured it out.
We were passing in the configuration for log4j as -Dlog4j.configuration=file:/<properties file> and this was added to the command line for both the managed and admin servers. Problem is that the console app starts its own instance of log4j, and when it reads the configuration for the appenders it initializes or rolls over the files. At some point we have two JVMs accessing the same files, so some corruption is bound to happen.
I'm not clear why the .xml file made a difference, but earlier we had been passing the log4j configuration as a jar file placed in the domain/lib folder, so perhaps the designer reverted to that (placed the log4j.xml file in a jar in lib, and not simply changed the -Dlog4j.configuration=file:/ option. -
Log4j log file not being created
Using websphere for a web app. At first I was getting the error log4j:WARN No appenders could be found for logger....
So I created the property file and I assume correctly referenced it. The error went away and my logging messages are showing up in the websphere console, but the .log file specified in my log4j.properties file is not being written to... it is only writing to my systemOut.log.
If I remove the ROOT.File line it still does not create the file (I've done a search on the IBM directory
#Default log level to ERROR. Other levels are INFO and DEBUG.
log4j.rootLogger=INFO,ROOT
log4j.appender.ROOT=org.apache.log4j.RollingFileAppender
log4j.appender.ROOT.File=c:\myapplication.log
log4j.appender.ROOT.MaxFileSize=1000KB
#Keep 5 old files around.
log4j.appender.ROOT.MaxBackupIndex=5
log4j.appender.ROOT.layout=org.apache.log4j.PatternLayout
#Format almost same as WebSphere's common log format.
log4j.appender.ROOT.layout.ConversionPattern=[%d] %t %c %-5p - %m%n
#Optionally override log level of individual packages or classes
log4j.logger.com.webage.ejbs=INFO
private static final Logger logger = Logger.getLogger(LoginAction.class);
public ActionForward execute(ActionMapping mapping, ActionForm form,
HttpServletRequest request, HttpServletResponse response)
throws IOException, ServletException {
initializeLogger();
private void initializeLogger() {
org.apache.log4j.BasicConfigurator.configure();
//trying the above just to get it to work.. because by default this
//should look in WEB-INF/classes/log4j.properties... I thought
/*try {
String log4jUrl = servlet.getServletContext().getInitParameter(
"LOG4J_XML");
if (!(log4jUrl == null || log4jUrl.equals("")))
DOMConfigurator.configure(servlet.getServletContext()
.getResource(log4jUrl));
} catch (MalformedURLException e) {
e.printStackTrace();
} catch (FactoryConfigurationError e) {
e.printStackTrace();
} Edited by: gmachamer on Nov 30, 2007 6:37 AMok changed to xml file and found a few things out.
now when I debug though the logger that was created has an empty level... but if I look at the parent logger it is correctly pulling the root logger from my xml (if I change the priority attribute then it changes when debugging the code)
<log4j:configuration xmlns:log4j="http://jakarta.apache.org/log4j/" debug="true">
<!-- this appender would be the same as having a System.out -->
<appender name="console" class="org.apache.log4j.ConsoleAppender">
<param name="Target" value="System.out"/>
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="%-5p %c{1} - %m%n"/>
</layout>
</appender>
<appender name="rollingFileAppender" class="org.apache.log4j.RollingFileAppender">
<!-- name and location of the file to log to -->
<param name="File" value="c:/appLog.log"/>
<!-- the maximum size the file will be before it rolls the file -->
<param name="MaxFileSize" value="1000kb"/>
<!-- the number of backups you want to maintain -->
<param name="MaxBackupIndex" value="5"/>
<!--
This is the layout of your messages, you can do alot with this.
See the java docs for the class PatternLayout for an explanation of
the different values you can have.
-->
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="%t %-5p %c{2} - %m%n"/>
</layout>
</appender>
<root>
<priority value ="error" />
<appender-ref ref="rollingFileAppender" />
<appender-ref ref="console" />
</root>
</log4j:configuration> -
Log4j configuration on WAS6.1 Server
Can any please let us know how to configure log4j.xml file or properties file externally from was server administration. I have deployed an application and have set log4j properties for that applications.
Please help us
Thanks in advance.I fear you are in the wrong forum... :-D
-
Hello,
I am trying to bring out the log4j logs generated by enterprise application that I deployed. The log4j logs that I want to display are different from the system logs. The Servers -> Admin Server-> Logging defines a log file. This is system log. The application logs are the ones generated by the application I have deployed. I have a log4j.properties that contains the logfile name, location and other details. I would not prefer to drop the log4j.properties inside the weblogic directory because it is not a good practice.
I shall list down the attempts I had made. But, all of them did not yield results.
I tried to use from this link http://ananthkannan.blogspot.in/2009/09/how-to-configure-log4j-in-weblogic.html . That was not useful because I can't copy the log4j.properties inside weblogic directory and am not permitted to confuse the application & system logs.
I tried to add parameters in the Servers -> Admin Server-> SeverStart -> Arguments
-DSTP_CONFIG_PATH=C:/TEMP/install_websphere11565/STPConfig/STPSpringConfig.xml -Dlog4j.configuration=C:/TEMP/install_websphere11565/STPConfig/log4j.properties
Both the above attempts did not generate the log file.
May I request you where to tell weblogic to please use the log4j.configuration and what else to do.
Thanks,
RajHi people,
I have got it working.
Servers -> Your Server-> SeverStart -> Arguments
-Dlog4j.configuration=file:C:/TEMP/install_websphere11565/STPConfig/log4j.properties
What made the difference was I had to prefix 'file' for the log4j.properties location. I don't know its significance because springConfig is located without 'file', but it worked.
Regards,
Raj -
Imac is no longer able to open the Configuration file
Hi ,
I have an imac ( ilamp) 20' connected to ADSL, via Netopia Router which is connected to the Airport extreme connected to imac, for the PB Aluminum Tiger 10.4.5. we both can connect. PB can print via imac/printer.
The imac is no longer able to open the Configuration file, when i enter the pswd which is correct, i get the message "The Airport Admin. Utility was unable to read the configuration of the selected base station an error occurred while reading the configuration "
My Beau updated Airport to V5.7, this is the first time since the update I've tried to access the conf. file for the imac which i have done numerous times prior.
I have a new base station Ip address 254.128.0 in Airport Utility Admin, on the imac which does not reflect my network settings anywhere, and is not what it use to be, i think, it was one value different than the PB.Base station IP. I do not know how it changed neither one of us changed it.
I tried using the Airport Setup assistant (imac), I received this message:
"Appropriate Airport hardware was bot found on this computer,if you recently
Installed, an Airport card,please shut down your computer$ make sure the card is properly istalled."
The imac does not have a card, nor do i think it needs one.
I would like to be able to at least open the configuration file.
Thank you for reading my post.
Eme
Power PC G4 (3.3) iMac♥ Flat Panel 10.3.9 & 15 Alum.PowerBook Tiger Mac OS X (10.4.4)Hi Kes, a star for the company !
I made an error on my first post I have a Netopia modem, Airport router.
And so it remains, i guess that there must be an easy answer somewhere
that I am missing that I/we should read, some direction to that would be helpful, and I would be very appreciative.
As I said the password had been set, and it is not an issue of that being forgotten, i wondered if it was changed back to "public" tried, not it.
particular because everytime the imac wakes one of the folders on ( no one else in office just me and boyfriend and it is his work folder he has a copy on the PB.( the folder on desk top has been clicked on, the one with sensitve info, i have backed the folder up and secure trashed it, just in case some security issue hacking has taken place, thats closing the barn door after the fact.
Good luck,w/ this Q.
regards Eme
Power PC G4 (3.3) iMac ♥ Flat Panel 10.3.9 & 15 Alum.PowerBook Tiger Mac OS X (10.4.5) -
No dsn is present in the configuration file in the reporting services 2008
HI i have found this error in the log file of my reporting services ,
when i comes to the Configuration file in that
my DSN path is empty no input code is there in that DSN tags
<DSN>
<DSN/>
it shows the empty tags,
and my Current Report Server Report Credentials are Windows,Service account credentails
will it take the problem or what
We have repair the BIDS setup also still not able to solve my issue.
once this is resolved now able to send the emails using subscriptions.
pls infom abut this , i have sufferd this problem last 20 days.
Please update the above query with high priority
TanQHi Ychinnari,
According to your description, you found error in log file of reporting services, when you come to rsreportserver.config file, the DSN tag is empty.
DSN specify the database server that hosts the report server database connection string. The report server database is created, this value will be encrypted and added to the configuration file. To solve the problem, we need to connect to either an
existing report server database or create a new one for this instance. For detail information, please refer to the following steps:
Start the Reporting Services Configuration Manager and connect to the report server instance for which you are creating the database.
On the Database page, click Change Database.
We can create a new report server database or select an existing database, then click Next.
Connect to the instance of the Database Engine that you will use to create and host the report server database.
Specify properties used to create the database.
Specify the credentials used by the report server to connect to the report server database.
Review the information on the Summary page to verify the settings are correct, and then click Next.
Verify the connection by clicking a URL on the Report Server URL page or Report Manager URL page.
For detail information about Configure a Report Server Database Connection, please refer to the following document:
https://msdn.microsoft.com/en-us/library/ms159133.aspx
If you have any more questions, please feel free to ask.
Thanks,
Wendy Fu
Wendy Fu
TechNet Community Support
Maybe you are looking for
-
Error in checking a primary file
Hi , I am trying to use the CHECKIN_UNIVERSAL idcservice froma standalone java class. I have appeneded the following xml string in my request and trying to use a primary file from my local m/c. <code> requestString = "<?xml version='1.0' ?><SOAP-ENV:
-
I recently changed my Email address which required me to change my username for my Apple ID and my password. The changed has been successful, but each time that I open my iPad, I get a message that I need to enter my Apple ID to continue to receive d
-
Loss of thumbnails of RAW images in Photoshop prior to opening them in Camera Raw
I recently purchased and started using a Canon EOS 7D Mark II. I found that with my Photoshop CS6 I was unable to open my RAW files in Camera Raw, so I downloaded an update of Camera Raw, viz. version 8.7.1 from the Adobe website. Now I can open th
-
DOC. NO. DOES NOT EXIST
Hi, I created three RFQ (me41). When I going to change or display these Rfq NO. the system gives error message the document does not exsit. message no- 06019,but i checked from no.range status(omh6). THE THREE NO. RANGE HAS ALEADY BEEN CREATED BY SY
-
How service order and sales order are linked to Service notification
Hi I want to link a specific service order type and a specific sales order type to a service notification how to do that. Please help me out