Kohinoor Lal Verma (EHS | 1 Oct 2002 07:24
Picon
Picon

RE: SocketAppender help required

But if I dont use a SocketAppender the log is fine.
ie. if I do :
$java examples.Sort examples/sort1.properties 10

I get the perfect log on the console !!!

So I dont think the JIT or no debug info is the problem.

-----Original Message-----
From: Ebersole, Steven [mailto:steven.ebersole <at> vignette.com]
Sent: Monday, September 30, 2002 5:40 PM
To: 'Log4J Users List'
Subject: RE: SocketAppender help required

This is generally caused by either compiling your source using the "no debug
info" option or are using a JIT-compiler.

If the first, then just omit the "-g:none" option from the javac command.
If the second, I am not sure if there is anything you can do.

    |-----Original Message-----
    |From: Kohinoor Lal Verma (EHS) 
    |[mailto:Kohinoor.Verma <at> ehs.ericsson.se]
    |Sent: Monday, September 30, 2002 3:41 AM
    |To: 'log4j-user <at> jakarta.apache.org'
    |Subject: SocketAppender help required
    |
    |
    |Hi,
    |
(Continue reading)

antoine.delaunay | 1 Oct 2002 12:32
Picon

NullPointerException when using log4j in an Jboss entity bean


here are all the informations I think should be needed for you, it's certainly my fault but since I read from the documentation than an exception in log4j wasn't normal I send you the stuff:


the log4j.xml comes from the conf directory of my Jboss server (C:\Program\_D\jboss-3.0.1RC1_tomcat-4.0.4\server\default\conf), the log is the copy of the console and the java file is the code which issued the error by using the logger. In a normal run there are 2 instances of the entity bean, and if I remove the logger everything runs without a problem.

This is purely for your information and I don't want you to think I may want you to correct my code or whatever, if I did something wrong a simple RTFM will do.
If you need any other information just ask,

        DELAUNAY Antoine
Attachment (AllocBean.java): application/octet-stream, 22 KiB
Attachment (jboss.log): application/octet-stream, 8 KiB
Attachment (log4j.xml): application/octet-stream, 6909 bytes
--
To unsubscribe, e-mail:   <mailto:log4j-user-unsubscribe <at> jakarta.apache.org>
For additional commands, e-mail: <mailto:log4j-user-help <at> jakarta.apache.org>
Sundararaman, Anand | 1 Oct 2002 14:50

XMLLayout

Hi,
         I have a problem in my XMLayout.  The log file which is formed does
not have a main tag. So it does not open in the internet explorer.  

Can anyone help me out on how to include the main tag?

I am attaching the relevant files I am using.

Thanks in advance
Anand

 <<BEMISXMLLayout.java>>  <<BEMISLog.xml>>  <<ClientLogger.java>> 
WARNING: The information in this message is confidential and may be legally
privileged. It is intended solely for the addressee.  Access to this message
by anyone else is unauthorised.  If you are not the intended recipient, any
disclosure, copying, or distribution of the message, or any action or
omission taken by you in reliance on it, is prohibited and may be unlawful.
Please immediately contact the sender if you have received this message in
error. Thank you.
Attachment (BEMISXMLLayout.java): application/octet-stream, 2991 bytes
Attachment (BEMISLog.xml): application/octet-stream, 12 KiB
Attachment (ClientLogger.java): application/octet-stream, 11 KiB
--
To unsubscribe, e-mail:   <mailto:log4j-user-unsubscribe <at> jakarta.apache.org>
For additional commands, e-mail: <mailto:log4j-user-help <at> jakarta.apache.org>
Sloan Seaman | 1 Oct 2002 14:42

JMSAppender in XML Conf file

I'm looking to use the JMSAppender and I have an XML configuration file but I have no idea what tags I should
setup to do so.
Can someone help me out or point me to a good reference?

Thanks!

--
Sloan 
FLYNN, Peter -Syntegra UK | 1 Oct 2002 14:51

RE: JMSAppender in XML Conf file

Hi Sloan,

I use File JNDI to access JMS in my application.  
You can use any sort of JNDI store to store your TopicConnectionFactory and
Topic, such as LDAP.

Regards,
Peter

PS - Here is my config for JMS.

<appender name="JMS" class="org.apache.log4j.net.JMSAppender">
	<param name="TopicConnectionFactoryBindingName"
value="file://C:/resource/TopicConnectionFactory.sjo"/>
	<param name="TopicBindingName"
value="file://C:/resource/Logging.Topic.sjo"/>
        	<param name="Threshold" value="WARN"/>
	<layout class="org.apache.log4j.PatternLayout">
  		<param name="ConversionPattern" value="[%-5p] [%d{DATE}]
[%C.%M] - %m%n"/>
	</layout>
</appender>

********************************************************************

This email may contain information which is privileged or confidential. If you are not the intended
recipient of this email, please notify the sender immediately and delete it without reading, copying,
storing, forwarding or disclosing its contents to any other person
Thank you

Check us out at http://www.syntegra.com

********************************************************************

MALLER Stijn (BMB | 1 Oct 2002 15:00
Favicon

Reopening files

Hi everyone,

I've written an alternative DailyRollingFileAppender which simulates the
behavior of an old logger used in our company. There's one last
functionality that is lacking and I was wondering if anyone could help
me out or at least point me in the right direction.

At the moment the applications are running fine logging statements to
logfiles. But, if someone just deletes the logfiles on the UNIX
filesystem the application keeps running without throwing any errors
(which you would expect). However, eventhough the logstatements are all
lost (because the application doesn't start a new file automatically) it
doesn't even show a warning.

I would like to change that behavior. The application should detect that
the file has disappeared and restart a new one automatically. Any idea
which method I have to override and what I have to change? This is quite
important...

Thanx in advance,
Stijn

**** DISCLAIMER ****

"This e-mail and any attachment thereto may contain information which is confidential and/or protected
by intellectual property rights and are intended for the sole use of the recipient(s) named above. 
Any use of the information contained herein (including, but not limited to, total or partial
reproduction, communication or distribution in any form) by other persons than the designated
recipient(s) is prohibited. 
If you have received this e-mail in error, please notify the sender either by telephone or by e-mail and
delete the material from any computer".

Thank you for your cooperation.

For further information about Proximus mobile phone services please see our website at
http://www.proximus.be or refer to any Proximus agent.
Sloan Seaman | 1 Oct 2002 15:06

Re: JMSAppender in XML Conf file

Peter,

So waht exactly would be in the .sjo files that you are pointing to?

Thanks!

----- Original Message -----
From: "FLYNN, Peter -Syntegra UK" <Peter.FLYNN <at> syntegra.com>
To: "'Log4J Users List'" <log4j-user <at> jakarta.apache.org>
Sent: Tuesday, October 01, 2002 8:51 AM
Subject: RE: JMSAppender in XML Conf file

> Hi Sloan,
>
> I use File JNDI to access JMS in my application.
> You can use any sort of JNDI store to store your TopicConnectionFactory
and
> Topic, such as LDAP.
>
> Regards,
> Peter
>
> PS - Here is my config for JMS.
>
> <appender name="JMS" class="org.apache.log4j.net.JMSAppender">
> <param name="TopicConnectionFactoryBindingName"
> value="file://C:/resource/TopicConnectionFactory.sjo"/>
> <param name="TopicBindingName"
> value="file://C:/resource/Logging.Topic.sjo"/>
>         <param name="Threshold" value="WARN"/>
> <layout class="org.apache.log4j.PatternLayout">
>   <param name="ConversionPattern" value="[%-5p] [%d{DATE}]
> [%C.%M] - %m%n"/>
> </layout>
> </appender>
>
>
> ********************************************************************
>
> This email may contain information which is privileged or confidential. If
you are not the intended recipient of this email, please notify the sender
immediately and delete it without reading, copying, storing, forwarding or
disclosing its contents to any other person
> Thank you
>
> Check us out at http://www.syntegra.com
>
> ********************************************************************
>
>
FLYNN, Peter -Syntegra UK | 1 Oct 2002 15:32

RE: JMSAppender in XML Conf file

> So waht exactly would be in the .sjo files that you are pointing to?

I use Progress Sonic MQ JMS.  In the explorer, you can save the
TopicConnectionFactory and Topic
objects out into files.  The .sjo stands for Serialised Java Object.

However, we have a custom converter which takes these serialised Java
objects and binds them
into the JNDI namespace using Sun's File JNDI library.  When this happens,
you also get a .binding 
file in the directory specified.  This allows you to use the File JNDI to
obtain these objects from 
the file system.

The package you want is fscontext-1_2-beta3.zip, and its
at http://java.sun.com/products/jndi/#download and click on 'Download JNDI
1.2.1 & More'

You an also use LDAP to store these objects, but I currently don't have any
directory configured, so
I downloaded the File JNDI from java.sun.com, and used that instead.  The
LDAP way is easier, in
my opinion, but if you can serialise the TopicConnectionFactory and Topic to
files, the File Context
can provide a quick way to test logging with JMS.

Regards,
Peter

********************************************************************

This email may contain information which is privileged or confidential. If you are not the intended
recipient of this email, please notify the sender immediately and delete it without reading, copying,
storing, forwarding or disclosing its contents to any other person
Thank you

Check us out at http://www.syntegra.com

********************************************************************

Qian Song | 1 Oct 2002 16:46

How to disable tomcat's default log and use log4j's?

I am using tomcat 1.3 and I am also using log4j to control my logs. But I got 2 logs at the same time. one is at
tomcat\logs\jvm.stdout which got set up at wrapper.properties(tomcat's log) and the other one is at
tomcat\mylog.log which is set up at log4j.properties(log4j's log). I want to use log4j's log and disable
tomcat's because tomcat's log doesn't have size control and backup control. But I couldn't do it. 
Anybody can tell me how to do this? Thanks a lot!
MALLER Stijn (BMB | 1 Oct 2002 16:52
Favicon

RE: How to disable tomcat's default log and use log4j's?

Can you send your log4j.properties and your wrapper.properties?
This looks like a simple case of removing the consoleappender

-----Original Message-----
From: Qian Song [mailto:Qian.Song <at> SIVACorp.com] 
Sent: Tuesday, October 01, 2002 4:47 PM
To: log4j-user <at> jakarta.apache.org
Subject: How to disable tomcat's default log and use log4j's?

I am using tomcat 1.3 and I am also using log4j to control my logs. But
I got 2 logs at the same time. one is at tomcat\logs\jvm.stdout which
got set up at wrapper.properties(tomcat's log) and the other one is at
tomcat\mylog.log which is set up at log4j.properties(log4j's log). I
want to use log4j's log and disable tomcat's because tomcat's log
doesn't have size control and backup control. But I couldn't do it. 
Anybody can tell me how to do this? Thanks a lot!

--
To unsubscribe, e-mail:
<mailto:log4j-user-unsubscribe <at> jakarta.apache.org>
For additional commands, e-mail:
<mailto:log4j-user-help <at> jakarta.apache.org>

**** DISCLAIMER ****

"This e-mail and any attachment thereto may contain information which is confidential and/or protected
by intellectual property rights and are intended for the sole use of the recipient(s) named above. 
Any use of the information contained herein (including, but not limited to, total or partial
reproduction, communication or distribution in any form) by other persons than the designated
recipient(s) is prohibited. 
If you have received this e-mail in error, please notify the sender either by telephone or by e-mail and
delete the material from any computer".

Thank you for your cooperation.

For further information about Proximus mobile phone services please see our website at
http://www.proximus.be or refer to any Proximus agent.

Gmane