Title: Message
Hi Russell,
Even though you have Log4J in your
classpath, you still have to configure it properly.
Attached is a very basic log4j.xml
you can use. In your client main() (or anywhere before the first call to
Axis), you need to have the following lines
Hi Russell,
Check the log4j. properties file in axis classpath. It should be there with proper settings.
Thanks,
MohitRussell Lane <[EMAIL PROTECTED]> wrote:
I'm running Java Axis v.1.2 RC 2 on Tomcat v.4.1.31. I followed the install instructions correctly (I think), and am now dep
ll classes. Things in general are
fine, however I consistenly get the following warning message:
log4j:WARN No appenders could be found for logger
(org.apache.axis.i28n.ProjectResourceBundle).
log4j:WARN Please initialize the log4j system properly.
I have log4j-1.2.8.jar installed in .\axis\WIN-IN
Hi,
I tried following steps:
I wrote a web service named "Login"
in which I want to use log4j
Thus I wrote following lines in LoginImpl.java:
import org.apache.log4j.Logger;
import org.apache.log4j.PropertyConfigurator;
...
private static Logger loginServiceLogger
= Logger
What is the best practice to use log4j
with axis?
Thanks.
==
Metin ZAVRAK
Yazılım Geliştirme Mühendisi
Oksijen Teknoloji
0 543 502 03 63
[EMAIL PROTECTED]
==
Verba volent, scripta manent.
(Söz uçar, yazı kalır).
\\log4j.config.xml
Do I make something wrong?
Some Idea???
See the output of tomcat:
Thanks Thomas
Starting service Tomcat-Standalone
Apache Tomcat/4.1.24
log4j: Trying to find
[C:\\projects\\sources\\PDMWebConnector\\WebContent\\WEB-INF\\log4j.config.x
ml] using context classloader
My example was based on a properties file, but I think that should work equally well
for an XML based log4j configuration.
Java doesn't have the concept of environment variables as they are platform dependent.
System property is always set using the -D command line option for "j
OTECTED]
> Gesendet: Mittwoch, 3. November 2004 14:19
> An: [EMAIL PROTECTED]
> Betreff: Re: AW: log4j help pls
>
> Hi Thomas,
>
>
> Your log4j properties file only needs to be located via the class path so in
>
> your case it should be put in the WEB-INF/classes
nks Thomas
-Ursprüngliche Nachricht-
Von: Wagle, Shriniwas [mailto:[EMAIL PROTECTED]
Gesendet: Mittwoch, 3. November 2004 14:58
An: [EMAIL PROTECTED]
Betreff: RE: log4j help pls
The log4j properties file can handle system properties. So you can use
something like below to specify a
I don't think you need the \\ escape syntax in an XML file. One backslash at a time
should work.
Keith
-Original Message-
From: Dorner, Thomas [mailto:[EMAIL PROTECTED]
Sent: 03 November 2004 13:58
To: '[EMAIL PROTECTED]'
Subject: AW: AW: log4j help pls
Hi Steve,
! :(
Thanks Thomas
PS: Thank you for your tip with config, you are right!
-Ursprüngliche Nachricht-
Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Gesendet: Mittwoch, 3. November 2004 14:19
An: [EMAIL PROTECTED]
Betreff: Re: AW: log4j help pls
Hi Thomas,
Your log4j properties file
The log4j properties file can handle system properties. So you can use something like
below to specify a path name.
log4j.appender.A2.File=${catalina.home}/logs/SystemSigner.log
-Original Message-
From: Dorner, Thomas [mailto:[EMAIL PROTECTED]
Sent: Wednesday, November 03, 2004 8:14
Hi Thomas,
Your log4j properties file only needs to be located via the class path so in
your case it should be put in the WEB-INF/classes directoy. Else you have
specified a path somewhere (probably in a servlet property in your web.xml file)
You should not be putting your context logging
ml was placed?
Thanks
Thomas
-Ursprüngliche Nachricht-
Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Gesendet: Mittwoch, 3. November 2004 13:50
An: [EMAIL PROTECTED]
Betreff: Re: log4j help pls
The short answer is yes.
Don't put the absolute path name just a relative path name
will be a relative path from the WEB-
INF/ directory of your web context
Regards
Steve
Quoting "Dorner, Thomas" <[EMAIL PROTECTED]>:
> Hi all,
>
>
>
> I am sorry for asking this non axis question, but I cant find a solution
> whenn googling.
>
>
Hi all,
I am sorry for asking this non axis question, but I
cant find a solution whenn googling.
I use log4j in my project and so I have the
log4j.config.xml and therefore the appenders.
The appender do have a attribute name="File"
and a value="C:\\..\\..\\" wi
you must have the wsdl4j.jar in your path.
So add wsdl4j.jar to your /webapps//lib directory
Also if you add a log4j.properties file you will not get the message
log4j:WARN Please initialize the log4j system properly.
Regards
Steve
Quoting Florian Theurich <[EMAIL PROTECTED]>:
>
> This is what the console outputs:
>
> C:\>java -Dlog4j.debug -cp %AXISCLASSPATH% org.apache.axis.wsdl.WSDL2Java -s
> -d application c:\tools\test.wsdl
> log4j: Trying to find [log4j.xml] using context classloader
> sun.misc.Launcher$Ap
> [EMAIL PROTECTED]
> log4j
This is what the console outputs:
C:\>java -Dlog4j.debug -cp %AXISCLASSPATH% org.apache.axis.wsdl.WSDL2Java -s
-d application c:\tools\test.wsdl
log4j: Trying to find [log4j.xml] using context classloader
sun.misc.Launcher$Ap
[EMAIL PROTECTED]
log4j: Trying to find [log4j.xml] using
[EM
. /webapps//WEB-INF/classes
thirdly ensure you have log4j jar file in the lib directory of your context
i.e. /webapps//lib
Lastly here is an example of the contents for your log4j.properties
# Set root category priority to INFO and its only appender to CONSOLE.
log4j.rootCategory=DEBUG, LOGFILE
Please ignore the previous one:
When entering
java -cp %AXISCLASSPATH% org.apache.axis.wsdl.WSDL2Java -s -d application -o
c:\tools\test c:\tools\test.wsdl -Dlog4j.debug
nothing changes. Log4j ist just not properly configured, but I did not
change anything since downloading Axis 1.1. As I am
When entering
-Ursprüngliche Nachricht-
Von: Enric Jaen [mailto:[EMAIL PROTECTED]
Gesendet: Donnerstag, 21. Oktober 2004 19:07
An: [EMAIL PROTECTED]
Betreff: Re: AW: AW: Log4j - Problems
plz post the log4j messages you get with the -Dlog4j.debug flag..
You can also try to copy the
plz post the log4j messages you get with the -Dlog4j.debug flag..
You can also try to copy the log4j.properties file in your working
directory and add the flag -Dlog4.configuration=file:./log4j.properties
Try that together with the -Dlog4j.debug flag and post which
messages you get..
Check
PROTECTED]
Betreff: Re: AW: Log4j - Problems
Can u plz post the command you try to run? Also, use -Dlog4j.debug to see
in the stdout detailed info about your log4j configuration. You should see
sthing like this (but not exactly the same):
log4j: Using URL [file:log4j.properties] for automatic log4j
Can u plz post the command you try to run? Also, use -Dlog4j.debug to see
in the stdout detailed info about your log4j configuration. You should see
sthing like this (but not exactly the same):
log4j: Using URL [file:log4j.properties] for automatic log4j
configuration.
log4j: Reading
tober 2004 17:34
An: [EMAIL PROTECTED]
Betreff: Re: AW: Log4j - Problems
<>Try to put the log4j.properties file into WEB-INF/classes repository
and it'll works I think.
<>Try to put the log4j.properties file into WEB-INF/classes repository
and it'll works I think.
Title: Message
Pls correct me if I am wrong, but doesn't the
log4j.properties go into WEB-INF/classes? Or should it just be anywhere on the
classpath?
Arijit
From: Florian Theurich
[mailto:[EMAIL PROTECTED] Sent: 21 October 2004
16:25To: [EMAIL PROTECTED]Subject: AW:
: Log4j - Problems
Based on the warning, I would think that
you have a logger org.apache.axis.i18n.ProjectResourceBundle declared in your
log4j.xml, but it does not have any appenders associated with it.
you need to have
smth like this:
org.apache.axis.i18n.ProjectResourceBundle
ivity="false">
Post your log4j.xml if you still have problems.
Regards.
Oleg
-Original Message-From: Florian Theurich
[mailto:[EMAIL PROTECTED] Sent: Thursday, October 21,
2004 8:45 AMTo: [EMAIL PROTECTED]Subject: Log4j -
Problems
Is there anybody
Is there anybody out there who can tell me why I get
following exception when either running Java2WSDL or WSDL2Java:
log4j: WARN No appenders
could be found for logger (org.apache.axis.i18n.ProjectResourceBundle)
log4j: WARN Please
initialize the log4j system properly
I have a
Sorry!
2004 08:49
An: [EMAIL PROTECTED]
Betreff: Re: AXIS log4j
This is not actually an error, it just means that the logging system cannot
be
initiated because it has not been told what to do.
Add a log4j.properties file directly to your classes directory or anywhere
on
your classpath.
Use the
;
>
>
>
> --- [EMAIL PROTECTED] wrote:
>
> > You do not have a log4j properties file in your
> > class path.
> >
> > Regards
> >
> >
> > Quoting yssr <[EMAIL PROTECTED]>:
> >
> > > Hi
> > >
> > >
i am using axis on tomcat
i simply copied the axis directory of
axis1xxx/.../webaps to tomcat/.../webapps
but can i do to remove the following error
--- [EMAIL PROTECTED] wrote:
> You do not have a log4j properties file in your
> class path.
>
> Regards
>
>
>
You do not have a log4j properties file in your class path.
Regards
Quoting yssr <[EMAIL PROTECTED]>:
> Hi
>
>java samples.userguide.example3.Client
> -lhttp://localhost:8080/axiso/services/MyService "test
> me ok"
> log4j:WARN No a
Hi
java samples.userguide.example3.Client
-lhttp://localhost:8080/axiso/services/MyService "test
me ok"
log4j:WARN No appenders could be found for logger
(org.apache.axis.i18n.ProjectResourceBundle).
log4j:WARN Please initialize the log4j system
properly.
You typed :
side servlet containers in different ways depending on how the
container does its own class loading and how the container uses or
doesn't use commons-logging itself.
The trick for me was to add commons-logging.jar (impl not api jar) and
log4j-1.2.x.jar to $TOMCAT_HOME/common/lib . I also made
Title: Message
Wow... three days doesn't seem to be worth
it.
I
would agree with a previous poster. The JDK 1.4 logging package is really
easy to use, don't have to
worry
about what jar file is where, and it can be easily configured to produce the
same output. I know
that
---Original Message-
> From: Galbreath, Mark A [mailto:[EMAIL PROTECTED]
> Sent: 27 July 2004 18:57
> To: '[EMAIL PROTECTED]'
> Subject: RE: Help with Log4j
>
>
> You could also just use JDK 1.4 logging and discard all that crap.
>
> -Original Message-
&g
You could also just use JDK 1.4 logging and discard all that crap.
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Tuesday, July 27, 2004 1:49 PM
To: '[EMAIL PROTECTED]'
Subject: Re: Help with Log4j
You could check that log4j is in the AXISCLASSPAT
You could check that log4j is in the AXISCLASSPATH.
-Enric
On Tue, 27 Jul 2004, Keir Bowden wrote:
> Hi,
>
> I'm having trouble getting log4j to work in conjunction with commons
> logging, Axis 1.0 and Tomcat 5.0.19. I've tried altering the
> log4j.properties in
Title: Message
Hi,
I'm having trouble
getting log4j to work in conjunction with commons logging, Axis 1.0 and Tomcat
5.0.19. I've tried altering the log4j.properties in the axis.jar file,
adding the log4j jar file to the tomcat shared\lib, common\lib and server\lib
directori
s.client.Service service = new
org.apache.axis.client.Service();
The following 2 msgs are written to console:
log4j:WARN No appenders could be found for logger
(org.apache.axis.i18n.ProjectResourceBundle).
log4j:WARN Please initialize the log4j system properly.
I have in the same di
-
Von: Baiss Eric Magnusson [mailto:[EMAIL PROTECTED]
Gesendet: Dienstag, 6. Juli 2004 18:52
An: AxisUser
Betreff: Please initialize the log4j system properly
In the first encounter of this line, which is the first use of Axis:
org.apache.axis.client.Service service = new
e's a
link to the log4j manual that talks about configuration. hope this
helps.http://logging.apache.org/log4j/docs/manual.html-Original
Message-From: Baiss Eric Magnusson [mailto:[EMAIL PROTECTED]Sent:
Tuesday, July 06, 2004 12:52 PMTo: AxisUserSubject: Please initialize
PMTo: AxisUserSubject: Please initialize
the log4j system properlyIn the first encounter of this line,
which is the first use of Axis: org.apache.axis.client.Service
service = new org.apache.axis.client.Service();The following 2
msgs are written to console: log4j:WARN No appenders
Move it to a 'classes' dir. tomcat does not
put lib dirs into the classpath, it only puts the jars in the lib dirs into the
path.
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Tuesday, July 06, 2004 1:09 PMTo:
[EMAIL PROTECTED]Subject: Re: Please initialize
i have the same problem but i'm ignoring it for the meantime. here's a link to the
log4j manual that talks about configuration. hope this helps.
http://logging.apache.org/log4j/docs/manual.html
-Original Message-
From: Baiss Eric Magnusson [mailto:[EMAIL PROTECTED]
Sen
I thought the file was supposed to be log4j.xml.
Jan
-Original Message-
From: Baiss Eric Magnusson [mailto:[EMAIL PROTECTED]
Sent: Tuesday, July 06, 2004 12:52 PM
To: AxisUser
Subject: Please initialize the log4j system properly
In the first encounter of this line, which is the first
There are two things you could do, you could mull around in the log4j
properties file and try and get it to be specialized and working properly.
However I believe you can just delete the file as well, which will make it
default, and will work properly without changing anything!
Try that
).
log4j:WARN Please initialize the log4j system properly.
I have in the same directory as the axis jars.
What else needs to be done?
Baiss Eric Magnusson
<http://www.Track-Your-Finances.com>
<http://www.CascadeWebDesign.com>
nt in using log4j.
Thanks again for your advice.
John Langan
On Mon, 2004-04-12 at 02:55, Nelson Minar wrote:
> >log4j:WARN Please initialize the log4j system properly.
>
> You have many options:
> Ignore the warning
> Put the log4j.properties that comes with Axis in your CLASS
>log4j:WARN Please initialize the log4j system properly.
One minor change in Axis 1.2beta is it no longer includes a
log4j.properties in the jar file. This is a good thing - it means that
you have an easier time configuring log4j yourself. But it also means
you have to configure it!
You h
I'd be very surprised if Axis was using Log4j directly. It is probably
using commons-logging. The issue is probably not matter of Axis versions,
but a matter of having Log4j.jar somewhere in the classpath for
commons-logging to find. If commons-logging finds Log4j, it will use it to
Hi,
I am using Axis 1.2beta and the examples in the Installation
Instructions and the User Guide work OK but I get these warnings every
time.
log4j:WARN No appenders could be found for logger
(org.apache.axis.i18n.ProjectResourceBundle).
log4j:WARN Please initialize the log4j system properly.
I
On Fri, Dec 19, 2003 at 09:43:45PM -0800, Pete Haidinyak wrote:
> I know this subject has been beaten to death, but I will ask again.
> I am running Axis 1.1 with Tomcat 5.0 and I am trying to modify the
> log4j.properties file. I have tried most of the methods mentioned in the
> lis
Hi,
I know this subject has been beaten to death, but I will ask again. I am
running Axis 1.1 with Tomcat 5.0 and I am trying to modify the
log4j.properties file. I have tried most of the methods mentioned in the
list archive (put the properties file in the WEB-INF/classes directory,
removing
Hi,
Search in archives did not reveal anything on the issue.
in my case log4j is configured with XMLLayout and Debug level. i have a
service implementation that throws an exception. test case could be as
simple as
public String[] getItems() throws RemoteException {
logger.info
Title: RE: Urgent :Help needed for Logging by Log4J
Could you post your log4j.properties file.
Where is your log4j.properties file located and what kind
of environment is axis running in?
Without such information it will be difficult to help you.
Christof
-Original Message
Hi !!
I'm new to Axis and facing some Problem for logging with
log4J. Can you please send an example for doing so. I'm not using
The latest release1.1/version rather using the old version.
THANX IN ADVANCE.
Thanx and regards
Sidd
Hi,
I've developed an application with Axis and
Trying to log with inbuilt log4J. I've modified
The log4j.properties and also the deploy.wsdd file
For the handler.But I'm not getting anything in the
Logging-Target file. Can you please help me in sorting
This out.
If you please send
Title: Message
Hello,
As far as I can tell the log4j
library that is shipped with the currently nightly builds of Axis is critically
different to the official release version of log4j. As I mentioned earlier when
I call the PropertyConfigurator.configure method inside the web-service
. It breaks the whole contract with log4j.
I can submit a build.xml patch if there is a consensus that this is a
but an not a feature.
Ben
On Sun, 2003-06-08 at 23:51, Stephen Graham wrote:
> Yes it's in there. I assume, I get rid of it and all will be fine?
> I'll see if I c
June 2003 11:11 AM
> To: [EMAIL PROTECTED]
> Subject: Re: Logger seems broken or how to configure Log4J in
> my service.
>
>
> Open up axis.jar and see if log4.properties is in the jar.
>
> This is an open (and very annoying) bug.
>
> Please post back if it is
bout the 5th June I've had a
> problem with configuring log4j in my service.
>
> The class that implements my web service calls
>
> public DataFacade() {
> System.out.println("Constructing 'DataFacade' server interface...");
>
I've been using the nightly builds and as of about the 5th June I've had a
problem with configuring log4j in my service.
The class that implements my web service calls
public DataFacade() {
System.out.println("Constructing 'DataFacade' server interface...");
Hi,
are there any issues with using log4j inside my deployed service
that I should be aware of?
I do not want to log soap messages.
Ciao
Sonja
--
[EMAIL PROTECTED], Tel: 91374-370
Always do sober what you said you'd do drunk. That will teach you to
keep your mouth shut. --Ernest Hemingway
cc:
|
| Subject: Re: log4j - separation of axis logs and own application logs [with
You would need to create different appenders in your log4j.properties,
based on the package name of your application. Here is an example of
two appenders writing to the console. The "additiviy" property prevents
duplicate logging.
# Root logger
log4j.rootCategory=ERROR, R
log4j.appender.R.layou
Hi,
how can I separate the log out put from axis and my own application classes?
The log4j.properties for my app is located in /WEB-INF/classes/.
Any suggestions? Thanks,
Kristian
Ignatia sent me a question about classloaders (at the end of this), but
after writing a long response I thought it was worth mailing to the list
too so folk can comment/critique. The issue is the common one of not
getting log4j to initialise properly after creating your own
log4j.properties
used the TOMCAT_OPTS environment variable...
where is the problem? is there an order in the CLASSPATH for the
log4j, commons-logging and axis libraries?
thanx for your help
Walter
Dipl. Inform. (FH) Walter Stocker
T-Sy
Stocker, Walter wrote:
> Hello *,
>
> after two days of research i found a suitable solution. It seems,
> there are several problems with the commons-logging and log4j integration.
> The only way to solve my problem, was to replace the log4j.properties file
> in axis.jar. All t
Hello *,
after two days of research i found a suitable solution. It seems,
there are several problems with the commons-logging and log4j integration.
The only way to solve my problem, was to replace the log4j.properties file
in axis.jar. All the other tips from the community failed. Sorry, folks
You *might* need to programmatically set the configuration options within
your webapp, and reach through the webapp's ClassLoader
(this.getClass().getClassLoader().getResourceAsStream(...) returns an
InputStream) to do it. Stting Log4j configuration TOMCAT_OPTS may do it for
the server as a
Hello *,
i've tried to setup logging with Log4j using Axis beta2 on
Tomcat 3.3a with log4j 1.2.3. What i've done:
- installing a log4j.properties file in the web-inf/classes
directory. the file looks like:
# Set root category priority to ERROR and its only appe
Actually this problem is for bea support and not for axis mail list:
Workaround: to rename this file to log4j.jar.
<24.06.2002 15:59:43 CEST>
<24.06.2002 15:59:43 CEST> (WebAppServletContext.java:815)
at
weblogic.servlet.internal.HttpServer.loadWebApp(HttpServer.java:428)
at
Hi,
I installed Axis Beta2 on Weblogic 5.1 successfully, but have some
problems when running the samples(calculator, attachments), as follow:
log4j: ERROR Could not instantiate class [log4j.properties].
java.lang.ClassNotFoundException: log4j.properties
log4j: ERROR No appenders could be found
Environment : Win2000Server,Tomcat-3.3a,AXIS and all the stuff for Axis(commons-logging,xerces,log4j, etc.)
What should I do for enabling output axis activity into log file?
My log4j.properties file looks like
Title: Official name of the log4j jar file?
HI!
What is the official name of the log4f jar file? In alpha3, it's log4j-core.jar and in the nightly builds, it's log4j plus the current date.
Regards,
Thomas
81 matches
Mail list logo