log4j:ERROR Could not parse input stream

2002-07-08 Thread S Malleswara Sarma

Hi All
I am getting this error when i am starting weblogic
Please help me to resolve this.


log4j:ERROR Could not parse input stream
[weblogic.utils.zip.SafeZipFileInputStr
eam@38b810].
java.util.zip.ZipException: The system cannot find the
file specified
at java.util.zip.ZipFile.open(Native Method)
at
java.util.zip.ZipFile.(ZipFile.java:110)
at
java.util.zip.ZipFile.(ZipFile.java:125)
at
weblogic.utils.zip.ZipURLConnection.getInputStream(Handler.java:49)
at java.net.URL.openStream(URL.java:798)
at
weblogic.apache.xerces.readers.DefaultReaderFactory.createReader(Defa
ultReaderFactory.java:149)
at
weblogic.apache.xerces.readers.DefaultEntityHandler.startReadingFromE
xternalEntity(DefaultEntityHandler.java:769)
at
weblogic.apache.xerces.readers.DefaultEntityHandler.startReadingFromE
xternalSubset(DefaultEntityHandler.java:566)
at
weblogic.apache.xerces.framework.XMLDTDScanner.scanDoctypeDecl(XMLDTD
Scanner.java:1139)
at
weblogic.apache.xerces.framework.XMLDocumentScanner.scanDoctypeDecl(X
MLDocumentScanner.java:2215)
at
weblogic.apache.xerces.framework.XMLDocumentScanner.access$0(XMLDocum
entScanner.java:2170)
at
weblogic.apache.xerces.framework.XMLDocumentScanner$PrologDispatcher.
dispatch(XMLDocumentScanner.java:901)
at
weblogic.apache.xerces.framework.XMLDocumentScanner.parseSome(XMLDocu
mentScanner.java:381)
at
weblogic.apache.xerces.framework.XMLParser.parse(XMLParser.java:967)
at
weblogic.apache.xerces.jaxp.DocumentBuilderImpl.parse(DocumentBuilder
Impl.java:175)
at
weblogic.xml.jaxp.RegistryDocumentBuilder.parse(RegistryDocumentBuild
er.java:140)
at
org.apache.log4j.xml.DOMConfigurator.doConfigure(DOMConfigurator.java
:592)
at
org.apache.log4j.xml.DOMConfigurator.doConfigure(DOMConfigurator.java
:545)
at
org.apache.log4j.xml.DOMConfigurator.configure(DOMConfigurator.java:6
15)
at
com.lanchile.acs.logger.LoggerImpl.setConfiguration(LoggerImpl.java:8
8)
at
com.lanchile.acs.logger.LoggerImpl.(LoggerImpl.java:62)
at
com.lanchile.acs.logger.LoggerImpl.(LoggerImpl.java:72)
at
com.lanchile.acs.logger.LogHelper.getInstance(LogHelper.java:68)
at
com.lanchile.acs.logger.LogHelper.getInstance(LogHelper.java:88)
at
com.lanchile.acs.runtimeproperties.RunTimeProperties.recreate(RunTime
Properties.java:707)
at
com.lanchile.acs.runtimeproperties.RunTimeProperties.(RunTimePr
operties.java:91)
at
com.lanchile.acs.runtimeproperties.RunTimeProperties.getInstance(RunT
imeProperties.java:110)
at
com.lanchile.acs.scheduler.ScheduleMediator.(ScheduleMediator.j
ava:45)
at
com.lanchile.acs.util.StartUpServlet.init(StartUpServlet.java:34)
at
javax.servlet.GenericServlet.init(GenericServlet.java:258)
at
weblogic.servlet.internal.ServletStubImpl.createServlet(ServletStubIm
pl.java:698)
at
weblogic.servlet.internal.ServletStubImpl.createInstances(ServletStub
Impl.java:641)
at
weblogic.servlet.internal.ServletStubImpl.prepareServlet(ServletStubI
mpl.java:586)
at
weblogic.servlet.internal.WebAppServletContext.preloadServlet(WebAppS
ervletContext.java:2198)
at
weblogic.servlet.internal.WebAppServletContext.preloadServlets(WebApp
ServletContext.java:2142)
at
weblogic.servlet.internal.WebAppServletContext.init(WebAppServletCont
ext.java:883)
at
weblogic.servlet.internal.WebAppServletContext.(WebAppServletCo
ntext.java:806)
at
weblogic.servlet.internal.HttpServer.loadWebApp(HttpServer.java:413)
at
weblogic.j2ee.WebAppComponent.deploy(WebAppComponent.java:74)
at
weblogic.j2ee.Application.addComponent(Application.java:160)
at
weblogic.j2ee.J2EEService.addDeployment(J2EEService.java:117)
at
weblogic.management.mbeans.custom.DeploymentTarget.addDeployment(Depl
oymentTarget.java:329)
at
weblogic.management.mbeans.custom.DeploymentTarget.addDeployment(Depl
oymentTarget.java:144)
at
weblogic.management.mbeans.custom.WebServer.addWebDeployment(WebServe
r.java:76)
at java.lang.reflect.Method.invoke(Native
Method)
at
weblogic.management.internal.DynamicMBeanImpl.invokeLocally(DynamicMB
eanImpl.java:606)
at
weblogic.management.internal.DynamicMBeanImpl.invoke(DynamicMBeanImpl
.java:590)
at
weblogic.management.internal.ConfigurationMBeanImpl.invoke(Configurat
ionMBeanImpl.java:350)
at
com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:15
55)
at
com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:15
23)
at
weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:444)
at
weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:185)
at $Proxy32.addWebDeployment(Unknown Source)
at
weblogic.management.configuration.WebServerMBean_CachingStub.addWebDe
ployment(WebServerMBean_CachingStub

undeclared namespace prefix: 'log4j'

2002-07-08 Thread Lorinda Swick

Hi,

When I drop my log4j.xml file on IE 6.0 Explorer, I get the following error:

Reference to undeclared namespace prefix: 'log4j'. Error processing resource 




The first lines of my log4j.xml is:










Is this a bug? If not, how can I clean this up?

Thanks,
Lorinda





XML layout Help

2002-07-08 Thread Vullanki, Srividya


Hi,

I would like to use XML Layout for the output file. But i am getting an
error to view the XML.
Here is the error message.

Reference to undeclared namespace prefix: 'log4j'

Here is the XML file written to view the log file


]>
http://jakarta.apache.org/log4j/";>
  &data;



How can i solve this problem.

Thanks in advance
Srividya

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: using log4j in jsp

2002-07-08 Thread Mark Womack

Denis,

I make up logger names for the jsp pages, since you cannot predict what the
jsp java name will be (and you probably don't want to use it anyway since it
is so long).

Also, I use a mix of tags and direct java classes and use which ever one is
appropriate for the place I am logging a message.

hope it helps,
-Mark

> -Original Message-
> From: Denis McCarthy [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, July 04, 2002 8:55 AM
> To: Log4J Users List
> Subject: using log4j in jsp
> 
> 
> Hi,
> I'm using log4j as my logger in a web application. This is 
> all well and good
> for my back end (control  ,business and data access tiers) 
> but I'm stumped
> about what the best approach is to using log4j in my front 
> end (jsp pages).
> Has anyone out there used log4j in jsp pages, and if so what if any
> strategies have they implemented to deal with things like logger
> inheritance?
> Thanks
> Denis
> 
> 
> --
> To unsubscribe, e-mail:   
> 
> For additional commands, e-mail: 
> 
> 

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




SMTPAppender:505 Authentication required

2002-07-08 Thread Scherer Joachim, ITS-AKIS

Hi,

I am using SMTPAppender. The program compiles well and when running gives
me an error
"javax.mail.MessagingException: 505 Authentication required"

I am using log4j-1.2.4 on a Windows NT machine. The mailserver is Exchange.

This is my properties file:
**
log4j.rootCategory=DEBUG, dest3
log4j.appender.dest3=org.apache.log4j.net.SMTPAppender
log4j.appender.dest3.To=x
log4j.appender.dest3.From=x
log4j.appender.dest3.SMTPHost=y
log4j.appender.dest3.Subject=TEST-LOG4J
log4j.appender.dest3.LocationInfo=true
log4j.appender.dest3.layout=org.apache.log4j.PatternLayout
log4j.appender.dest3.layout.ConversionPattern=%p - %l %d{ISO8601} %n %m %n
**

Can anyone help me with "505: Authentication required"?


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: 3 basic questions

2002-07-08 Thread Ebersole, Steven


See inline...


|-Original Message-
|From: rayaku [mailto:[EMAIL PROTECTED]]
|Sent: Thursday, March 07, 2002 10:25 PM
|To: Log4J Users List
|Cc: [EMAIL PROTECTED]
|Subject: 3 basic questions
|
|
|
|Hi,
|I found info is very clear, But I would like to know
|1. where to find the keys and how to name them ( javadoc says 
|to find in
|propertyconfigurator
|class but i could not)? Or are these predifined if yes where 
|can i find ?
|

I am assuming by "keys" you mean the values to configure.  The various
pieces of log4j follow a JavaBeans property pattern.  Log4j then uses
standard JavaBean introspection for configuring each defined piece.  In you
example of "log4j.appender.A2.file", you have previously defined (in the
config) an Appender named A2 that is some type of FileAppender.
FileAppender has a property named "file" with appropriate accessors/mutators
(i.e., getFile()/setFile()) methods.  So really you just need to look at the
options available for each individual component you are trying to configure.


|2. I am using log4j in webapplication and configured log4j 
|properties file
|   in it under web-inf\classes dir. I have a statement in 
|mylog.props file
|   log4j.appender.A2.file=service.log
|  when i run the webapplication the service.log file is created under
|tomcat4\bin
|  directory default , Can I specify file in desired location 
|not under bin?
|

service.log is a relative path.  All OS are going to interpret that
particular relative path as ./service.log where "." represents the "current
working directory" which would be ${TOMCAT_HOME}/bin for processes running
inside the Tomcat VM.  But yes you can feed log4j an absolute path and have
it write to anywhere on the filesystem, provided the SecurityManager
currently in use allows it.  Say you want to write the log file to
${TOMCAT_HOME}/myWebApp then do the following (assuming Windows from your
use of the MS-directory seperator):
log4j.appender.A2.file=C:/tomcat4/myWebApp/service.log


|3. As log4j documents say to keep log4j.props file under 
|web-inf\classes
|directory
|   to be identified by servlet, but when the log4j.props file 
|is changed
|that changes
|will not be affected unless tomcat is restarted. Can i keep log4j.props
|under webapps/mywebapp
|directory if so how can i access it in servlet?
|

You can keep the property file somewhere else, but that in and of itself
will not solve your problem of having to restart to have changes recognized.
If it is placed somewhere other than a dir in the classpath, you will need
to tell log4j how to find it either through the log4j.configuration system
property or by programatically using the PropertyConfigurator.configure(...)
method.  In order to have changes to the prop file be automatically
recognized, you will programatically call
PropertyConfigurator.configureAndWatch(...) method.

HTH

|TIA
|
|
|-Original Message-
|From: Richard Doust [mailto:[EMAIL PROTECTED]]
|Sent: Monday, 8 July 2002 6:41 AM
|To: Log4J Users List
|Subject: RE: options and different loggers
|
|
|I would hazard a guess that you haven't read much of the 
|material available
|on how to use log4j. Loggers inherit their behavior from a 
|runtime hierarchy
|based on their names. java.util is the parent of java.util.foo 
|and java.util
|is an ancestor of java.util.foo.bar where those dot separated names are
|names of loggers, paramters passed to Logger.getLogger(). Each 
|logger can be
|configured with different appenders and all kinds of stuff. An appender
|knows where its output goes. If your client and your service reside in
|different packages, as one would hope they might, setting them 
|up to log to
|different log files is as simple as setting them up with different
|appenders. Say you have com.rob.client.foo and com.rob.service.bar. By
|establishing loggers in your properties file for com.rob.client and
|com.rob.service, classes from those two packages down to the 
|root (i.e.,
|com.rob.service.bar.ClassA and com.rob.client.ClassB) will log 
|to different
|logfiles if you configure them with different appenders.
|In your properties file, set up as follows:
|
|log4j.logger.com.rob.service=WARN, A2
|log4j.appender.A2=org.apache.log4j.RollingFileAppender
|log4j.appender.A2.file=log/service.log
|log4j.appender.A2.layout=org.apache.log4j.PatternLayout
|log4j.appender.A2.layout.ConversionPattern=%-4r [%t] %-5p %c %x - %m%n
|
|log4j.logger.com.rob.client=WARN, A3
|log4j.appender.A3=org.apache.log4j.RollingFileAppender
|log4j.appender.A3.file=log/client.log
|log4j.appender.A3.layout=org.apache.log4j.PatternLayout
|log4j.appender.A3.layout.ConversionPattern=%-4r [%t] %-5p %c %x - %m%n
|
|That's about it.
|Rich
|
|-Original Message-
|From: Robert Mark Bram [mailto:[EMAIL PROTECTED]]
|Sent: Sunday, July 07, 2002 6:29 AM
|To: Log4J Users List
|Subject: RE: options and different loggers
|
|
|Howdy Richard!
|
|> It means .. 
|> Does that help?
|
|Yes it does, thank you - may I press you for some further hel

RE: View log files

2002-07-08 Thread Shapira, Yoav

Howdy,
To view them, any text editor or browser will do.  If you specifically
want some prettier output, check out the HTMLAppender.  Or if you want
to get arbitrarily fancy, you can play with some XMLAppender type stuff
and write your own transformator.

I have a conceptual problem with the second part of your question: why
do you want to edit log files?  In general, I think log files should be
read-only to us humans ;)

Yoav Shapira
Millennium ChemInformatics


>-Original Message-
>From: Reddy Uma Shankar [mailto:[EMAIL PROTECTED]]
>Sent: Thursday, July 04, 2002 4:59 AM
>To: '[EMAIL PROTECTED]'
>Subject: View log files
>
>Hello all,
>
>   Am very new to Log4j. Trying to edit log files using
Log4j.
>I
>believe Log4j component creates logfiles. Can any body advice me how to
>view
>or edit existing log files using Log4j.
>
>Thanks in advance
>
>UmaSankar Narreddy
>
>
>
>=
>This electronic message contains information from the mmO2 plc Group
>which may be privileged or confidential. The information is intended to
be
>for the use of the individual(s) or entity named above. If you are not
the
>intended recipient be aware that any disclosure, copying, distribution
or
>use of the contents of this information is prohibited. If you have
received
>this electronic message in error, please notify us by telephone or
email
>(to the numbers or address above) immediately.
>=


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: Why Category.getRoot().getAllAppenders() always returns blank Enumeration?

2002-07-08 Thread joeblack

Hi, Gainty:

In fact I didn't write code to use log4j directly, Jakarta-turbine encapsulate all 
operation about logging and just exposed a commons-logging usage to developer. Using 
turbine, I met a problem that all logging message is jam to console, and the course is 
Category.getRoot().getAllAppenders() return blank, so commons-logging create a 
ConsoleAppender.

Turbine just configures Log4j in a single line of code: 
PropertyConfigurator.configure(p), p is a property file  which contains log4j 
settings. Do you mean appenders are not added in this method, I must add them myself, 
right?



Joe


-Original Message-
From: Martin Gainty [mailto:[EMAIL PROTECTED]] 
Sent: 2002年7月7日 13:50
To: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Subject: Re: Why Category.getRoot().getAllAppenders() always returns blank Enumeration?

Joe:

Forewarning: However, since log4j version 1.2, Logger class has replaced the Category 
class. For those familiar with earlier versions of log4j, the Logger class can be 
considered as a mere alias to the Category class. 

Take a peek at the  Javadoc found at 
http://jakarta.apache.org/log4j/docs/api/index.html

Did you do a addAppender(Appender appender) beforehand to the Category???

does getAllAppenders() return a Enumeration???

If you have a Enumeration object v which is returned by your getAllAppenders() try
 for (Enumeration e = v.elements() ; e.hasMoreElements() ;) {
 System.out.println(e.nextElement());

 }
Let me know how you make out with this...
Martin Gainty
__
Disclaimer and confidentiality note
Everything in this e-mail and any attachments relating to the official business of 
Laconia Data Systems (LDS) is proprietary to the company. It is confidential, legally 
privileged and protected by law. LDS does not own and endorse any other content. Views 
and opinions are those of the sender unless clearly stated as being that of LDS. 
The person addressed in the e-mail is the sole authorised recipient. Please notify the 
sender immediately if it has unintentionally reached you and do not read, disclose or 
use the content in any way.
LDS can not assure that the integrity of this communication has been maintained nor 
that it is free of errors, virus, interception or interference.
 ___
 
>From: "joeblack" 
>Reply-To: "Log4J Users List" 
>To: 
>Subject: Why Category.getRoot().getAllAppenders() always returns blank Enumeration? 
>Date: Sun, 7 Jul 2002 11:51:54 -0700 
>MIME-Version: 1.0 
>Received: from [192.18.49.131] by hotmail.com (3.2) with ESMTP id 
>MHotMailBEF1546D003940043218C0123183EC520; Sun, 07 Jul 2002 02:27:09 -0700 
>Received: (qmail 26069 invoked by uid 97); 7 Jul 2002 09:27:14 - 
>Received: (qmail 21628 invoked by uid 98); 7 Jul 2002 03:55:11 - 
>From log4j-user-return-6279-mgainty Sun, 07 Jul 2002 02:29:00 -0700 
>Mailing-List: contact [EMAIL PROTECTED]; run by ezmlm 
>Precedence: bulk 
>List-Unsubscribe: 
>List-Subscribe: 
>List-Help: 
>List-Post: 
>List-Id: "Log4J Users List" 
>Delivered-To: mailing list [EMAIL PROTECTED] 
>X-Antivirus: nagoya (v4198 created Apr 24 2002) 
>Message-ID: <000c01c225e7$5e04ef50$a14690d3@gjqlaptop> 
>X-Priority: 3 (Normal) 
>X-MSMail-Priority: Normal 
>X-Mailer: Microsoft Outlook, Build 10.0.2627 
>X-MIMEOLE: Produced By Microsoft MimeOLE V5.50.4910.0300 
>Importance: Normal 
>X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N 
> 
>My Log4j is correctly configured, because logging messages are written 
>to the correct files. But every time I call 
>Category.getRoot().getAllAppenders(), it return blank. How to make it 
>return something? 
> 
>Thanks a lot 
> 
> 
> 
>Joel 
> 
> 
>-- 
>To unsubscribe, e-mail: 
>For additional commands, e-mail: 
> 



Send and receive Hotmail on your mobile device: Click Here


--
To unsubscribe, e-mail:   
For additional commands, e-mail: