Re: Parameters and where is log

2004-06-16 Thread Asim Ghosh
hello,
 
 this is reply to your second query. U have to use Logger tag in server.xml and in 
code
 
ServletContext context;
 context.log(); 

Asim Ghosh

Gabi [EMAIL PROTECTED] wrote:
Trying to pass from resin to apache, in resin Coonection='jdbc:bla bla...'/ I've put 
the equivalent in /WEB-INF/web-xml
as:


Connection


jdbc:bla bla...


But the servlet response is a NullPointer, I think it's not taking the value
from the session (HttpSession object). What am I doing wrong?

The second question is that in the servlet I put a
System.err.println(), I've the same server.xml like the default
/examples but using my webapp in change of /examples, so I've search in
catalina.out and all the localhost_admin... local_host_examples, I think
I've search in all the defined logs files but I don't find the line I've
print with System.err, do I've to put something more specific in web.xml or
something similar?


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



-
 ALL-NEW Yahoo! Messenger - so many all-new ways to express yourself 

RE: Parameters and where is log

2004-06-16 Thread Gabi
I've put the context with his own Logger, I can see all the info of this
host here, and in the JavaBean code I've put
   ServletContext context;
   context=session.getServletContext();
   context.log(test message!!!);
But I don't see this message in the log.

And, there is a global way I can define that all the System.err. output has
to be printed in a text file? How?


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Parameters and where is log

2004-06-16 Thread Asim Ghosh
http://jakarta.apache.org/tomcat/faq/misc.html#catalina.out
 
Where does System.out go? 
How do I rotate catalina.out? 

Gabi [EMAIL PROTECTED] wrote:I've put the context with his own Logger, I can see all 
the info of this
host here, and in the JavaBean code I've put
ServletContext context;
context=session.getServletContext();
context.log(test message!!!);
But I don't see this message in the log.

And, there is a global way I can define that all the System.err. output has
to be printed in a text file? How?


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-
 ALL-NEW Yahoo! Messenger - so many all-new ways to express yourself 

RE: Parameters and where is log

2004-06-16 Thread Gabi
That's what I've done, I've created a Context path=... docBase=...
Logger className=org.apache.catalina.logger.FileLogger prefix=web_log.
suffix=.txt timestamp=true/

I see all the webapp output in web_log file, but not the message from the
applicacion, where I use the lines:
ServletContext context;
context=session.getServletContext();
context.log(test message!!!);

Perhaps the application does not have the correct HttpSession? (It works on
Resin, I've make the .war and deploy in tomcat, configure the Context in
server.xml and put all the resin.conf values of context-param inside web.xml
in the tomcat context-param format.
Am I missing something?



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Parameters and where is log

2004-06-16 Thread Shapira, Yoav

Hi,
If you can't see System.out/System.err output anywhere, something
serious is wrong, such as the server not starting properly: kill it,
clean out your logs, start it again and watch the logs carefully.

BTW, you don't have to quote anything in web.xml and we generally
recommend that you don't.  (Your original post that started this thread
had some JNDI configuration parameters quoted, like Connection).

Yoav Shapira
Millennium Research Informatics


-Original Message-
From: Gabi [mailto:[EMAIL PROTECTED]
Sent: Wednesday, June 16, 2004 7:51 AM
To: Tomcat Users List
Subject: RE: Parameters and where is log

That's what I've done, I've created a Context path=... docBase=...
Logger className=org.apache.catalina.logger.FileLogger
prefix=web_log.
suffix=.txt timestamp=true/

I see all the webapp output in web_log file, but not the message from
the
applicacion, where I use the lines:
ServletContext context;
context=session.getServletContext();
context.log(test message!!!);

Perhaps the application does not have the correct HttpSession? (It
works on
Resin, I've make the .war and deploy in tomcat, configure the Context
in
server.xml and put all the resin.conf values of context-param inside
web.xml
in the tomcat context-param format.
Am I missing something?



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




This e-mail, including any attachments, is a confidential business communication, and 
may contain information that is confidential, proprietary and/or privileged.  This 
e-mail is intended only for the individual(s) to whom it is addressed, and may not be 
saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please immediately delete this e-mail from your computer system 
and notify the sender.  Thank you.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Parameters and where is log

2004-06-16 Thread Jérôme Duval
Don't know if this will be of any use to you, but if you are using Tomcat
5.0.24, you can define where System.out and System.err are redirected by
Configuring Tomcat under the Logging tab.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Parameters and where is log

2004-06-16 Thread Gabi
With the first solution commented:
ServletContext context;
context=session.getServletContext();
context.log(test message!!!);
I can`t read anything but it's solved, because if i try the original
System.out and .err it outputs in catalina.out. Thanks to everubody.
Now I've to configure parameters correctly, (the first part of my email), in
resin where context-param tags and I'm translating it to
context-param
param-name.../param-name
param-value.../param-value
/context-param
I suppose it's the correct way, but my servlet does not work, but it could
be another thing so (now) with the logs help I'll try to solve.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]