Error log

2005-08-18 Thread Tom Spence

Hi...

Any idea why I got error message while I go to ADMIN page?

Aug 18, 2005 8:52:39 AM org.apache.struts.action.RequestProcessor processMapping
SEVERE: Invalid path /login was requested

But while I am using ADMIN page which is no problem...  Any idea.

I appreciate your assist...

Tom


Tomcat Error Log

2005-04-05 Thread Vaneet Sharma

Hello all,

I am running centos 3.4

I am using Apacher Web Server 2.0.46 .. And running tomcat 5.5.4 with
jakarta-tomcat-connector-1.2.10

Well,   Apache and tomcat are communicating .. ... well. :)

But ... when I see the logs,

I see the this log generated in my custom log file (
mywebapps\logs\thesystemgui.log)

DEBUG JspRuntimeContext - Parent class loader is: WebappClassLoader
  delegate: false
  repositories:
/WEB-INF/classes/
-- Parent Classloader:
[EMAIL PROTECTED]

2005-04-05 15:24:07,758 [main] DEBUG JspServlet - Scratch dir for the
JSP engine is: /usr/local/jakarta-tomcat-5.5.4/work/Catalina/w
ww.therestaurant.name/therestaurant

Can some one tell me : why it is not loading the WebappClass loader. 

I commented out  connector element in server.xml. 
I am using AJP1.3 to handle servlet requests

!-- Define a non-SSL HTTP/1.1 Connector on port 8080 --
   !-- Connector port=80
   maxThreads=150 minSpareThreads=25
maxSpareThreads=75
   enableLookups=false redirectPort=8443
acceptCount=100
   connectionTimeout=2 disableUploadTimeout=true /
--


Well, basically, my application is connected to a GSM modem at
/dev/ttyS0

Before.. When tomcat was running standalone, GSM modem was connecting
well but now 
After Apache and Tomcat are runing using mod_jk.so. GSM modem is not
connecting.
IN my worker.properties file, I have commented out all directives
related to sockets.

#worker.ajp13Worker.cachesize=10
#worker.ajp13Worker.cache_timeout=600
#worker.ajp13Worker.socket_keepalive=1
#worker.ajp13Worker.socket_timeout=300 


Well, any help will be great. 

Kind Regards
Vaneet



Vaneet Sharma
executive manager   
iDeasTank Limited   
an iwg business
dolphins' court po 388
valletta, m-malta/europe
mobile:  +356 9943 8263
skype:   CALLVANEET
fax: +356 9952 
phone:   +356 9942 

[EMAIL PROTECTED]
call me on www.skype.com - my ID is CALLVANEET

Want a signature like this? - www.plaxo.com\signature

iwg is a global e-mobile company creating, building and growing new businesses. 
 iwg founders are pioneers in creating multi-billion dollar mobile and Internet 
businesses in Europe, Asia and the US.

www.iWG.info
www.countryprofiler.com/iWG
www.visitmalta.com
www.mfc.com.mt


Privileged/Confidential Information may be contained in this message.  If you 
are not the addressee indicated in this message (or responsible for delivery of 
the message to such person), you may not copy or deliver this message to 
anyone. In such case, you should destroy this message and kindly notify the 
sender by reply email.

RE: How to set Error Log for Unpacked Web Application in Tomcat 5.5

2004-11-23 Thread Allistair Crossley
INR,

I now count 4 posts from you on this same subject. I have replied to you 
already and so have others. 

Answer (again): you *cannot* configure logging per web-app in Tomcat 5.5. The 
Logger element has been *removed* as a valid child of Context.

For better or worse, all your runtime exception logging from all your web 
applications will go to stdout/console. The argument is that your web-apps 
should be catching all possible exceptions, or using a web.xml error-page 
directive correctly. So let's say a JSP throws a runtime error, your error-page 
might log to file or email someone.

However, you cannot rely on Tomcat 5.5 for logging. Only 5.0 and versions 
*less* than that provide Logger.

You should also look at log4j per web-app.

Allistair 

 -Original Message-
 From: inr [mailto:[EMAIL PROTECTED]
 Sent: 20 February 2002 16:17
 To: Tomcat Users List
 Subject: How to set Error Log for Unpacked Web Application in 
 Tomcat 5.5
 
 
 Hai all,
   I need the Configuration for setting 
 the error Log
 file for my  WebApplication running on Tomcat 5.5. How to set 
 the Error log
 file in the Server.xml file. [ In Tomcat 5.5 ]
 
 Thanks for ever,
 inr
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 


FONT SIZE=1 FACE=VERDANA,ARIAL COLOR=BLUE 
---
QAS Ltd.
Developers of QuickAddress Software
a href=http://www.qas.com;www.qas.com/a
Registered in England: No 2582055
Registered in Australia: No 082 851 474
---
/FONT


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



Re: How to set Error Log for Unpacked Web Application in Tomcat 5.5

2004-11-23 Thread Eric VERGNAUD
le 20/02/02 17:17, inr à [EMAIL PROTECTED] a écrit :

 Hai all,
 I need the Configuration for setting the error Log
 file for my  WebApplication running on Tomcat 5.5. How to set the Error log
 file in the Server.xml file. [ In Tomcat 5.5 ]
 
 Thanks for ever,
 inr
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 

Your clock is not set properly. A little annoying...

---
Eric VERGNAUD - JLynx Software
Cutting-edge technologies and
services for software companies
web: http://www.jlynx.com
---



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



How to set Error Log for Unpacked Web Application in Apache Tomcat 5.5.0 Server

2004-11-22 Thread inr
Hi,
  I need to set the Error log for the unpacked Web Application,for
which i used in Sun One Web server.Now i migrated to Tomcat 5.5, Here i am
using the Unpacked Web Application. HOw to set the Error Log,

Thanks in Advance,
inr


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



RE: How to set Error Log for Web Application in TOmcat 5.5

2004-11-22 Thread Shapira, Yoav

Hi,
Not only does this NOT help, it hurts ;)  Please be careful to not to
post Tomcat 5.0 (or 4.x, or 3.x) configuration files for a Tomcat 5.5
question, or the other way around.  We have enough confused newbies as
it is ;)

Yoav Shapira http://www.yoavshapira.com


-Original Message-
From: Sarath PS [mailto:[EMAIL PROTECTED]
Sent: Monday, November 22, 2004 2:52 AM
To: Tomcat Users List
Subject: Re: How to set Error Log for Web Application in TOmcat 5.5

hi,

   Here is a sample of my tomcat server.xml file. Hope it will be help
ful to you

 Host name=example.com debug=0 appBase=example.com
   unpackWARs=true
autoDeploy=true

Valve className=org.apache.catalina.valves.AccessLogValve
 directory=logs/www.example.com/access
prefix=example_com. suffix=.txt
 pattern=common
resolveHosts=false/

Logger className=org.apache.catalina.logger.FileLogger
 directory=logs/example.com/fileLogger
prefix=example_com. suffix=.txt
timestamp=true/


!-- Tomcat Root Context
--

  Context path= docBase=ROOT debug=0 reloadable=true
Resources
className=org.apache.naming.resources.FileDirContext
allowLinking=true docBase= /
  /Context
/Host

inr wrote:

Hai all,
  How to set the Error Log file for Our Own Web
Application
in Tomcat 5.5

Thanks
inr


-
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]



How to set Error Log for Unpacked Web Application in Tomcat 5.5

2004-11-22 Thread inr
Hai all,
  I need the Configuration for setting the error Log
file for my  WebApplication running on Tomcat 5.5. How to set the Error log
file in the Server.xml file. [ In Tomcat 5.5 ]

Thanks for ever,
inr


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



Re: How to set Error Log for Web Application in TOmcat 5.5

2004-11-21 Thread Sarath PS
hi,
  Here is a sample of my tomcat server.xml file. Hope it will be help 
ful to you

Host name=example.com debug=0 appBase=example.com
  unpackWARs=true 
autoDeploy=true

   Valve className=org.apache.catalina.valves.AccessLogValve
directory=logs/www.example.com/access  
prefix=example_com. suffix=.txt
pattern=common 
resolveHosts=false/

   Logger className=org.apache.catalina.logger.FileLogger
directory=logs/example.com/fileLogger  
prefix=example_com. suffix=.txt
   timestamp=true/  


   !-- Tomcat Root Context 
--   

 Context path= docBase=ROOT debug=0 reloadable=true
   Resources className=org.apache.naming.resources.FileDirContext
   allowLinking=true docBase= /
 /Context  
/Host

inr wrote:
Hai all,
 How to set the Error Log file for Our Own Web Application
in Tomcat 5.5
Thanks
inr
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
 


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

How to set Error Log for Web Application in TOmcat 5.5

2004-11-20 Thread inr
Hai all,
  How to set the Error Log file for Our Own Web Application
in Tomcat 5.5

Thanks
inr


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



How to set Seperate Error log file when using Multiple Web Applicationa

2004-11-20 Thread inr
Hai all,

  I am Using Multiple Web Application in TOmcat 5.5. How to set the
Seperate Error log file for each Web Application.

Thanks for ever,
inr


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



Re: How to set Error Log for Web Application in TOmcat 5.5

2004-11-20 Thread Quinton Delpeche
On Monday 18 February 2002 03:40, inr wrote:
 Hai all,
   How to set the Error Log file for Our Own Web Application
 in Tomcat 5.5

AFAIK you will add a logger entry to your contest entry in the server.xml 
file.

SERVER.XML EXTRACT
!-- Context for Internal Systems ROOT engine --
Context className=org.apache.catalina.core.StandardContext i 
 debug=99
 cachingAllowed=true cookies=true crossContext=false
 charsetMapperClass=org.apache.catalina.util.CharsetMapper
 displayName=VIP Internal Systems (Core Engine) path=
 docBase=/srv/www/tomcat5/base/webapps/ROOT   
 privileged=false
 mapperClass=org.apache.catalina.core.StandardContextMapper
 reloadable=false swallowOutput=false useNaming=true
 wrapperClass=org.apache.catalina.core.StandardWrapper
  Realm className=org.apache.catalina.realm.JDBCRealm   
connectionName=some_user
 connectionPassword=some_password debug=99 
 driverName=org.postgresql.Driver
 connectionURL=jdbc:postgresql://some.host.name:5432/database 
 roleNameCol=quot;_vipRoleNamequot;
 userCredCol=quot;_vipPasswordquot; 
 userNameCol=quot;cAgentNamequot; 
 userRoleTable=quot;_vipRolequot;
 userTable=quot;_rtblAgentsquot; validate=true/
  Logger className=org.apache.catalina.logger.FileLogger
  directory=logs  prefix=ROOT_localhost_log. suffix=.txt
  timestamp=true/
/Context
/SERVER.XML EXTRACT

Obviously changing the defaults where neceesary.

Hopefully this helps.

Q
-- 
Quinton Delpeche
Internal Systems Developer
Softline VIP

Telephone: +27 12 420 7000
Direct:+27 12 420 7007
Facsimile: +27 12 420 7344

http://www.vippayroll.co.za/

Cabbage, n.:
A familiar kitchen-garden vegetable about as large and wise as
a man's head.
-- Ambrose Bierce, The Devil's Dictionary


pgpYbHqVhARfQ.pgp
Description: PGP signature


RE: How to set Error Log for Web Application in TOmcat 5.5

2004-11-20 Thread Allistair Crossley
no you can't add a Logger to your Context in 5.5 they are removed. for per-web 
application logging you will need to use a log4j configuration in each of your 
web applications.
 
this information will become available on Tomcat 5.5's logging documentation 
page when the tomcat site is next built as I have submitted information about 
this (not sure when this will be though), but essentially you cannot rely on 
tomcat for per-web application logging assistance any longer.
 
cheers, Allistair.

-Original Message- 
From: Quinton Delpeche [mailto:[EMAIL PROTECTED] 
Sent: Sat 20/11/2004 13:43 
To: [EMAIL PROTECTED] 
Cc: 
Subject: Re: How to set Error Log for Web Application in TOmcat 5.5





FONT SIZE=1 FACE=VERDANA,ARIAL COLOR=BLUE 
---
QAS Ltd.
Developers of QuickAddress Software
a href=http://www.qas.com;www.qas.com/a
Registered in England: No 2582055
Registered in Australia: No 082 851 474
---
/FONT



Help: jk2_init() Can't find child in apache error log

2004-09-07 Thread nyhgan
 
Hi everyone!
 
My apache2.0.26 + Tomcat5.0.19 integration is almost done. Actually, the servlets and 
jsp pages are working properly. But there are some error messages in the apache's 
error log. I am wondering what causes these errors.  Maybe there is some configuration 
problems in my jk2.properties and workers2.properties. 
 
Below is the error message and the config files I used.
 
 

- apache error log 

[Mon Sep 06 23:52:11 2004] [notice] Digest: done
[Mon Sep 06 23:52:12 2004] [notice] httpdmon: httpdmon_init
[Mon Sep 06 23:52:12 2004] [notice] bandwidth monitoring enabled (mapping file: 
/etc/virtualhosting/mappings/apache.domainmap)
[Mon Sep 06 23:52:12 2004] [error] jk2_init() Can't find child 31533 in none of the 
256 scoreboard slots
[Mon Sep 06 23:52:12 2004] [error] jk2_init() Can't find child 31534 in none of the 
256 scoreboard slots
[Mon Sep 06 23:52:12 2004] [error] jk2_init() Can't find child 31536 in none of the 
256 scoreboard slots
[Mon Sep 06 23:52:12 2004] [error] jk2_init() Can't find child 31537 in none of the 
256 scoreboard slots
[Mon Sep 06 23:52:12 2004] [error] jk2_init() Can't find child 31538 in none of the 
256 scoreboard slots
[Mon Sep 06 23:52:12 2004] [error] jk2_init() Can't find child 31539 in none of the 
256 scoreboard slots
[Mon Sep 06 23:52:12 2004] [notice] Apache configured -- resuming normal operations

-- jk2 properties --
# list of needed handlers.
handler.list=channelSocket,request
# Override the default port for the channelSocket
channelSocket.port=8009
#Dynamic library
serverRoot=/etc/httpd
# This will enable the starting of the Tomcat from mod_jk2
apr.jniModeSo=/etc/httpd/modules/mod_jk2.so
 
- workers2.properties ---
# workers2.properties
# Shared memory handling. Needs to be set.
[shm]
info=Scoreboard. Required for reconfiguration and status with multiprocess servers
file=/var/tomcat5/logs/jk2.shm
size=1048576
debug=0
disabled=0

# Example socket channel, override port and host.
[channel.socket:localhost:8009]
tomcatId=localhost:8009
# define the worker
[ajp13:localhost:8009]
channel=channel.socket:localhost:8009
# Uri mapping
[uri:127.0.0.1/*.jsp]
worker=ajp13:localhost:8009

-- httpd.conf --
LoadModule jk2_module  modules/mod_jk2.so
JkSet config.file /etc/httpd/conf/workers2.properties

 
 

__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

mod_jk errors in Apache error log

2004-07-21 Thread Martens, Jason
Hey All,
   I googled for this problem, and found a few others asking the same
question, but no answers.  I think it has been asked here before, but I
couldn't find the replies to the question.

I'm getting the following in my apache error log:
[Wed Jul 21 02:36:42 2004] [error] mod_jk child workerEnv in error state
3

As far as I can tell, everything is working ok. Also, the number at the
end seems to change randomly.  One day it says error state 1, the next
it's error state 48, etc.   This wouldn't be a big deal, but I get this
message several hundred times a day.  Any help would be greatly
appreciated.

Jason Martens

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



Re: mod_jk errors in Apache error log

2004-07-21 Thread Martens, Jason
Sorry, forgot version information...
Apache 2.0.50
Tomcat 4.1.29
mod_jk2 (not sure of version)
RHEL 2.1

On Wed, 2004-07-21 at 09:16, Martens, Jason wrote:
 Hey All,
I googled for this problem, and found a few others asking the same
 question, but no answers.  I think it has been asked here before, but I
 couldn't find the replies to the question.
 
 I'm getting the following in my apache error log:
 [Wed Jul 21 02:36:42 2004] [error] mod_jk child workerEnv in error state
 3
 
 As far as I can tell, everything is working ok. Also, the number at the
 end seems to change randomly.  One day it says error state 1, the next
 it's error state 48, etc.   This wouldn't be a big deal, but I get this
 message several hundred times a day.  Any help would be greatly
 appreciated.
 
 Jason Martens
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 

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



disable Tomcat 4.1 error log

2004-02-12 Thread Lam Chee Choong
For some reason I need to disable tomcat 4.1 log service. Do everyone
out there try b 4??



How do you configure Standard Error Log?

2004-01-30 Thread tom ly
I've got this is my web.xml, but tomcat won't run with it:
  Logger className=org.apache.catalina.logger.SystemErrLogger


-
Do you Yahoo!?
Yahoo! SiteBuilder - Free web site building tool. Try it!

Re: How do you configure Standard Error Log?

2004-01-30 Thread tom ly
sorry, i meant in the server.xml file

tom ly [EMAIL PROTECTED] wrote:I've got this is my web.xml, but tomcat won't run 
with it:



-
Do you Yahoo!?
Yahoo! SiteBuilder - Free web site building tool. Try it!


-
Do you Yahoo!?
Yahoo! SiteBuilder - Free web site building tool. Try it!

RE: How do you configure Standard Error Log?

2004-01-30 Thread Shapira, Yoav

Howdy,

I've got this is my web.xml, but tomcat won't run with it:
  Logger className=org.apache.catalina.logger.SystemErrLogger

For starters, you need to enclose attributes in double quotes.  Then
System.err output will be redirected to $CATALINA_HOME/logs/catalina.out
by default.

Yoav Shapira



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: How do you configure Standard Error Log?

2004-01-30 Thread tom ly
I did that but I don't see catalina.out.  Do you have to do some extra configuration 
for 4.1.29 to have catalina.out?

Shapira, Yoav [EMAIL PROTECTED] wrote:
Howdy,

I've got this is my web.xml, but tomcat won't run with it:
 

For starters, you need to enclose attributes in double quotes. Then
System.err output will be redirected to $CATALINA_HOME/logs/catalina.out
by default.

Yoav Shapira



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]



-
Do you Yahoo!?
Yahoo! SiteBuilder - Free web site building tool. Try it!

RE: How do you configure Standard Error Log?

2004-01-30 Thread tom ly
On Redhat Linux machine I get the catalina.out.  But not on my windows computer.  On 
windows, it insteads prints out the out and err streams to the command window.

tom ly [EMAIL PROTECTED] wrote:I did that but I don't see catalina.out. Do you have 
to do some extra configuration for 4.1.29 to have catalina.out?

Shapira, Yoav wrote:
Howdy,

I've got this is my web.xml, but tomcat won't run with it:
 

For starters, you need to enclose attributes in double quotes. Then
System.err output will be redirected to $CATALINA_HOME/logs/catalina.out
by default.

Yoav Shapira



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]



-
Do you Yahoo!?
Yahoo! SiteBuilder - Free web site building tool. Try it!


-
Do you Yahoo!?
Yahoo! SiteBuilder - Free web site building tool. Try it!

Re: How do you configure Standard Error Log?

2004-01-30 Thread Josh Rehman
Tomcat logging is quite interesting once you get to know it. By default, 
all webapp logging goes to the same place, catalina.out (this is defined 
in server.xml/service/engine/logger). Of course, that file can get quite 
large, and you might want to seperate out certain webabbs from others.

You can define a logger per host and per context. I've only seen 
org.apache.catalina.logger.FileLogger used for this purpose.

I would make sure your app is logging at all into catalina.out first, 
then I would try overriding the log destination with a FileLogger, and 
then finally changing the Logger type.

tom ly wrote:
sorry, i meant in the server.xml file

tom ly [EMAIL PROTECTED] wrote:I've got this is my web.xml, but
tomcat won't run with it:


-
Do you Yahoo!?
Yahoo! SiteBuilder - Free web site building tool. Try it!
-
Do you Yahoo!?
Yahoo! SiteBuilder - Free web site building tool. Try it!
--
Thanks,
Josh Rehman
Citysearch Toolsdev, 3559
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: Modjk2 error log

2003-08-26 Thread Thébault, Médérick
To follow the thread,

It is not compulsory to set uri mapping in workers2.properties file. Just adding 
jkuriset in host section (virtual as well) of httpd.conf will do the job.

But one more thing please,

With httpd.conf having 
#
VirtualHost *
ServerName foo3.com

Location /TruckEnqui/
JkUriSet worker ajp13:foo3.com:8009
/Location
/VirtualHost

VirtualHost *
ServerName foo2.com

Location /TruckEnqui/
JkUriSet worker ajp13:foo2.com:8009
/Location
/VirtualHost

VirtualHost *
ServerName foo1.com

Location /unicorn2xml
JkUriSet worker ajp13:foo1.com:8009
/Location

Location /xml2unicorn
JkUriSet worker ajp13:foo1.com:8009
/Location

Location /xi
JkUriSet worker ajp13:foo1.com:8009
/Location
/VirtualHost
#

and workers2.properties having

#
[logger.apache2]
level=DEBUG

[shm]
file=c:/shm.file
size=1048576

# Example socket channel, override port and host.
[channel.socket:foo2.com:8009]
port=8009
host=127.0.0.1

# Example socket channel, override port and host.
[channel.socket:foo3.com:8009]
port=8009
host=127.0.0.1

# Example socket channel, override port and host.
[channel.socket:foo1.com:8009]
port=8009
host=127.0.0.1

# define the worker
[ajp13:foo2.com:8009]
channel=channel.socket:foo2.com:8009

# define the worker
[ajp13:foo3.com:8009]
channel=channel.socket:foo3.com:8009

# define the worker
[ajp13:foo1.com:8009]
channel=channel.socket:foo1.com:8009

[status:status]
[uri:/status/*]
group=status:status
#

http://localhost/Status gives 3 entries for ajp13 runtime info (which is correct or 
least what we want).

But for the uri runtime info section, there is no mention about the entry for the 
foo3.com host.

ID  namehosturi group  
 context 
0   nullnull   
 null
0   /TruckEnqui/*   /TruckEnqui/ajp13:foo2.com:8009 /
0   /unicorn2xml*   /unicorn2xmlajp13:foo1.com:8009 /
0   /xml2unicorn*   /xml2unicornajp13:foo1.com:8009 /
0   /xi *   /xi ajp13:foo1.com:8009
 /
0   /status/*   *   /status/*   status:status  
 /
0   *   *   nullnull   
 null
0   */  *   /   lb:lb  
 /



Does anyone see why there is no entry for this host?

If you have any other comments (Is it normal that in the array above the id is 
always the same although ajp13 runtime info section gives 3 ids (from 0 to 2)?

Regards

Mederick



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



Modjk2 error log

2003-08-25 Thread Thbault, Mdrick
Hello,

Tomcat 4.1.18/Apache 2.0.43/mod_jk2

3 virtual hosts in Apache, 3 virtual hosts in Tomcat


Apache virtual host section

NameVirtualHost *

#
# VirtualHost example:
# Almost any Apache directive may go into a VirtualHost container.
# The first VirtualHost section is used for requests without a known
# server name.
#
#VirtualHost *
#ServerAdmin [EMAIL PROTECTED]
#DocumentRoot /www/docs/dummy-host.example.com
#ServerName dummy-host.example.com
#ErrorLog logs/dummy-host.example.com-error_log
#CustomLog logs/dummy-host.example.com-access_log common
#/VirtualHost


#-#
VirtualHost *
ServerAdmin [EMAIL PROTECTED]
ServerName test1.com
DocumentRoot C:/WebDocs/RootServer

Directory C:/WebDocs/RootServer
Options Indexes FollowSymLinks MultiViews
AllowOverride None
Order allow,deny
Allow from all
deny from none
/Directory

CustomLog logs/test1.log common
ErrorLog logs/test1.log
/VirtualHost
#-#
VirtualHost *
ServerAdmin [EMAIL PROTECTED]
ServerName test2.com
DocumentRoot C:/WebDocs/TrackingSys/Test

Directory C:/WebDocs/TrackingSys/Test
Options Indexes FollowSymLinks MultiViews
AllowOverride None
Order allow,deny
Allow from all
deny from none
/Directory

CustomLog logs/test2.log common
ErrorLog logs/error_test2.log
Location /TruckEnqui/
JkUriSet worker ajp13:test2.com:8009
/Location
/VirtualHost
#-#
VirtualHost *
ServerAdmin [EMAIL PROTECTED]
ServerName test3.com
DocumentRoot C:/WebDocs/TrackingSys/Live
Directory C:/WebDocs/TrackingSys/Live

Options Indexes FollowSymLinks MultiViews

AllowOverride None
Order allow,deny
Allow from all
deny from none
/Directory

CustomLog logs/test3.log common
ErrorLog logs/error_test3.log
Location /TruckEnqui/
JkUriSet worker ajp13:test3.com:8009
/Location
/VirtualHost
#-#
VirtualHost *
ServerAdmin [EMAIL PROTECTED]
ServerName xi.com
DocumentRoot c:/Webdocs/IT/xi
Directory c:/Webdocs/IT/xi

DirectoryIndex index.html index.html.var
Options Indexes FollowSymLinks MultiViews

AllowOverride None
Order allow,deny
Allow from all

/Directory
CustomLog logs/xi-access.log common
ErrorLog logs/xi-error.log

Location /unicorn2xml
JkUriSet worker ajp13:xi.com:8009
/Location

Location /xml2unicorn
JkUriSet worker ajp13:xi.com:8009
/Location

Location /xi
JkUriSet worker ajp13:xi.com:8009
/Location

/VirtualHost

workers2.properties file :

[logger.apache2]
level=DEBUG

[shm]
file=c:/shm.file
size=1048576

# Example socket channel, override port and host.
[channel.socket:test3.com:8009]
port=8009
host=127.0.0.1

# Example socket channel, override port and host.
[channel.socket:test2.com:8009]
port=8009
host=127.0.0.1

# Example socket channel, override port and host.
[channel.socket:xi.com:8009]
port=8009
host=127.0.0.1

# define the worker
[ajp13:test3.com:8009]
channel=channel.socket:test3.com:8009

# define the worker
[ajp13:test2.com:8009]
channel=channel.socket:test2.com:8009

# define the worker
[ajp13:xi.com:8009]
channel=channel.socket:xi.com:8009

Do we need worker for each virtual host? (I had the idea that those notions were 
linked.)

Log file from apache

[Mon Aug 25 11:22:05 2003] [notice] Parent: Created child process 884
[Mon Aug 25 11:22:06 2003] [notice] Child 884: Child process is running
[Mon Aug 25 11:22:06 2003] [notice] jk2_init() Found child 884 in scoreboard slot 0
[Mon Aug 25 11:22:06 2003] [notice] workerEnv.init() ok 
C:/Apache2/conf/workers2.properties
[Mon Aug 25 11:22:06 2003] [error] mod_jk child init 1 0
[Mon Aug 25 11:22:06 2003] [notice] Child 884: Acquired the start mutex.
[Mon Aug 25 11:22:06 2003] [notice] Child 884: Starting 250 worker threads.
[Mon Aug 25 11:23:58 2003] [warn] (720064)The specified network name is no longer 
available.  : winnt_accept: Asynchronous AcceptEx failed.
[Mon Aug 25 11:24:30 2003] [notice] shm.createSlot() Create 1 0x52 0x522000
[Mon Aug 25 11:24:30 2003] [notice] workerEnv.init() create slot epStat.0
[Mon Aug 25 11:24:56 2003] [error] channelSocket.receive(): Error receiving message 
body -1 53
[Mon Aug 25 11:24:56 2003] [error] workerEnv.processCallbacks() Error reading reply
[Mon Aug 25 11:24:56 2003] [error] ajp13.service() ajpGetReply recoverable error 12
[Mon Aug 25 11:25:24 2003] [error] ajp13.service() Error sending initial post -1 0 0
[Mon Aug 25 11:26:45 2003] [error] channelSocket.receive(): Error receiving message 
body -1 53
[Mon Aug 25 11:26:45 2003] [error] workerEnv.processCallbacks() Error reading reply
[Mon Aug 25 11:26:45 2003] [error] ajp13.service() ajpGetReply recoverable error 12
[Mon Aug 25 11:27:08 2003] [error] ajp13.service() Error sending initial post 

Re: Modjk2 error log

2003-08-25 Thread Eric J. Pinnell
Hi,

It looks like you have a little confusion between JK and JK2.

 Location /TruckEnqui/
 JkUriSet worker ajp13:test2.com:8009
 /Location

Get rid of these in your httpd.conf.  The URIs are defined in
workers2.properties.


 workers2.properties file :

 [logger.apache2]
 level=DEBUG

 [shm]
 file=c:/shm.file
 size=1048576

 # Example socket channel, override port and host.
 [channel.socket:test3.com:8009]
 port=8009
 host=127.0.0.1

 # define the worker
 [ajp13:test3.com:8009]
 channel=channel.socket:test3.com:8009

In here you need to do the URI mapping.  So as an example:

# Uri Mapping
[uri:/TruckEnqui/*]
worker=ajp13:test3.com:8009

would map everything under /TruckEnqui/ to test3.com on port 8009.

-e

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



RE: Modjk2 error log

2003-08-25 Thread Thébault, Médérick
Thanx for this.

I thought it was the other way around. When looking to jk2 Source (mod_jk2.c), it does 
not matter.

See comments below :

/**
 * Set a property associated with a URI, using native Location 
 * directives.
 *
 * This is used if you want to use the native mapping and
 * integrate better into apache.
 *
 * Same behavior can be achieved by using uri.properties and/or JkSet.
 * 
 * Example:
 *   VirtualHost foo.com
 *  Location /examples
 * JkUriSet worker ajp13
 *  /Location
 *   /VirtualHost
 *
 * This is the best way to define a webapplication in apache. It is
 * scalable ( using apache native optimizations, you can have hundreds
 * of hosts and thousands of webapplications ), 'natural' to any
 * apache user.
 *
 * XXX This is a special configuration, for most users just use
 * the properties files.
 */

But I will try your tip?

By the way, could someone teach me something on the worker logic?

Thanx



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



jk2 - apache error log contains mod_jk child workerEnv in error state 1

2003-06-03 Thread Neil Aggarwal
Hello:

I am using mod_jk2 to integrate apache 2.0.45 and tomcat 4.1.24.

I am seeing this message many times in the apache error log:
[Mon Jun 02 13:49:07 2003] [error] mod_jk child workerEnv in error state 1

I search the list archives, but did not come up with any hits.

My apps seem to be working ok.

Does anyone know what this is and what causes it?

Thanks,
Neil

--
Neil Aggarwal
JAMM Consulting, Inc.(972) 612-6056, http://www.JAMMConsulting.com
Custom Internet DevelopmentWebsites, Ecommerce, Java, databases


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



Error Log watcher

2003-02-14 Thread Ben Ricker
I am wondering if anyone has found a good error log watcher for Tomcat?
Swatch does not work because it is made for syslog-type logs where an
error message occurs on one line. So, it views a java error as one line,
which really does not help.

Anyone try any other programs?

Ben Ricker

-- 
Ben Ricker [EMAIL PROTECTED]
Wellinx.com


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




RE: Error Log watcher

2003-02-14 Thread Shapira, Yoav

Howdy,
What would you require from this error log watcher ?


Yoav Shapira
Millennium ChemInformatics


-Original Message-
From: Ben Ricker [mailto:[EMAIL PROTECTED]]
Sent: Friday, February 14, 2003 9:58 AM
To: Tomcat Users List
Subject: Error Log watcher

I am wondering if anyone has found a good error log watcher for Tomcat?
Swatch does not work because it is made for syslog-type logs where an
error message occurs on one line. So, it views a java error as one
line,
which really does not help.

Anyone try any other programs?

Ben Ricker

--
Ben Ricker [EMAIL PROTECTED]
Wellinx.com


-
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: Error Log watcher

2003-02-14 Thread Ben Ricker
On Fri, 2003-02-14 at 09:16, Shapira, Yoav wrote:
 Howdy,
 What would you require from this error log watcher ?

Good question! Sorry I did not include it. I am looking for something
similar to swatch, but can handle the multiple-lined errors. I would
want the program to have some sort of rules setting functionality
(preferably regex) and that allows actions based upon the specified
rules.

The actions would basically be alpha pages which would include the error
message in the page. Some throttling would be nice, so multiple errors
would not flood my pager.

Ben Ricker


 -Original Message-
 From: Ben Ricker [mailto:[EMAIL PROTECTED]]
 Sent: Friday, February 14, 2003 9:58 AM
 To: Tomcat Users List
 Subject: Error Log watcher
 
 I am wondering if anyone has found a good error log watcher for Tomcat?
 Swatch does not work because it is made for syslog-type logs where an
 error message occurs on one line. So, it views a java error as one
 line,
 which really does not help.
 
 Anyone try any other programs?
 
 Ben Ricker
 
 --
 Ben Ricker [EMAIL PROTECTED]
 Wellinx.com
 
 
 -
 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]
 
-- 
Ben Ricker [EMAIL PROTECTED]
Wellinx.com


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




RE: Error Log watcher

2003-02-14 Thread Shapira, Yoav

Howdy,

Good question! Sorry I did not include it. I am looking for something
similar to swatch, but can handle the multiple-lined errors. I would
want the program to have some sort of rules setting functionality
(preferably regex) and that allows actions based upon the specified
rules.

OK.  I actually went and looked at the Swatch page out of interest.
Cool tool.

Here's an approach that may work for you: use log4j.  Implement a
TriggeringEventEvaluator
(http://jakarta.apache.org/log4j/docs/api/org/apache/log4j/spi/Triggerin
gEventEvaluator.html) to do the regex or whatever rules you want to
decide required a page from a log message.  The evaluator will get every
log message, including its complete stack trace and any details you want
to add.  You can use log4j's MDC
(http://jakarta.apache.org/log4j/docs/api/org/apache/log4j/MDC.html) to
provide any details needed in order to decide whether the event merits a
message to your page or not.

Log4j comes with an SMTP appender that sends email and has all the logic
you want: throttling and arbitrary rules for even evaluation.  See
http://jakarta.apache.org/log4j/docs/api/org/apache/log4j/net/SMTPAppend
er.html for details.

Log4j doesn't come with a pager appender right now.  You could use a JMS
appender to send events (that pass the triggering event evaluator's
criteria) to a JMS server somewhere, as there are J2EE servers that can
handle paging.  Alternatively, you can write the pager appender yourself
and maybe even donate it to us as a log4j contribution ;)

This may seem like a lot, but it's really more work explaining the
process than doing it ;)

Yoav Shapira
Millennium ChemInformatics



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: Error Log watcher

2003-02-14 Thread Ben Ricker
On Fri, 2003-02-14 at 09:57, Shapira, Yoav wrote:
 Howdy,
 
 OK.  I actually went and looked at the Swatch page out of interest.
 Cool tool.

Yes it is. I use it on my Apache error logs and to security checks on
the access_logs. Easy to setup to boot.

 Here's an approach that may work for you: use log4j.  Implement a
 TriggeringEventEvaluator
 (http://jakarta.apache.org/log4j/docs/api/org/apache/log4j/spi/Triggerin
 gEventEvaluator.html) to do the regex or whatever rules you want to
 decide required a page from a log message.  The evaluator will get every
 log message, including its complete stack trace and any details you want
 to add.  You can use log4j's MDC
 (http://jakarta.apache.org/log4j/docs/api/org/apache/log4j/MDC.html) to
 provide any details needed in order to decide whether the event merits a
 message to your page or not.
 
 Log4j comes with an SMTP appender that sends email and has all the logic
 you want: throttling and arbitrary rules for even evaluation.  See
 http://jakarta.apache.org/log4j/docs/api/org/apache/log4j/net/SMTPAppend
 er.html for details.

Some more information about myself: I am a system administrator. The
extent of my programmin g experience ends at Perl for System
Administrators. So I have a questions that may sound dumb:

Can you use these appenders as part of catching exceptions from within
the Code? That is, if you catch a certain exception that is going to be
logged, you set isTriggeringEvent on it and Log4J can then do what needs
to be done? 

 Log4j doesn't come with a pager appender right now.  You could use a JMS
 appender to send events (that pass the triggering event evaluator's
 criteria) to a JMS server somewhere, as there are J2EE servers that can
 handle paging.  Alternatively, you can write the pager appender yourself
 and maybe even donate it to us as a log4j contribution ;)  

Using the SMTPAppender to email it my pager would be plenty.

 This may seem like a lot, but it's really more work explaining the
 process than doing it ;)

If I understand it right, you are right. This would be easily added to
our existing exception handling.

Thanks for the info!

Ben Ricker

-- 
Ben Ricker [EMAIL PROTECTED]
Wellinx.com


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




RE: Error Log watcher

2003-02-14 Thread Shapira, Yoav
Howdy,

Can you use these appenders as part of catching exceptions from within
the Code? That is, if you catch a certain exception that is going to be
logged, you set isTriggeringEvent on it and Log4J can then do what
needs
to be done?

The way it works is like this:
- You define the appender (SMTP appender for emails)
- You define the class (a java class) of the TriggeringEventEvaluator
- The above two can be done in a configuration file, no coding needed
- You write the triggering event evaluator (have to write java for this)
- The application uses log4j to do its logging normally.  It doesn't
need to know about the triggering event evaluator at all.  Log4j will
automatically evaluate events sent to the mail appender and decide
whether to send emails or not.

Using the SMTPAppender to email it my pager would be plenty.

Then you're pretty much all set.  I'll even attach a simple string match
evaluator for use as an example.  (Yes, I'm bored today ;))

Yoav Shapira
Millennium ChemInformatics



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.


public class StringMatchEvaluator
  implements TriggeringEventEvaluator {
  /**
   * Interface method.
   * Returns true if the given
   * event should trigger 
   * the appender.
   *
   * This implementation checks for
   * the presence of the String blah.
   * Add a setter for blah to customize
   * the match string.
   *
   * @param event The logging event
   * @return boolean
   */
   public boolean isTriggeringEvent(LoggingEvent event) {
 if(event == null) {
   return false;
 }

 String eventMessage = event.getMessage();
 if((eventMessage != null) 
(eventMessage.indexOf(blah)  -1)) {
   return true;
 }

 ThrowableInformation ti = event.ThrowableInformation();
 if(ti != null) {
   String[] stackTrace = ti.getThrowableStrRep();
   if(stackTrace != null) {
 for(int i = 0; i  stackTrace.length; i++) {
   if(stackTrace[i].indexOf(blah)  -1) {
 return true;
   }
 }
   }
 }

 return false;
   }
}

// End of class: StringMatchEvaluator.java
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Tomcat / IIS 5.0 - isapi_redirect Error - log data included

2001-08-29 Thread SpuTTer

Hello, I am trying to install Tomcat on a Windows 2000 Advanced 
Server machine. I followed the instructions at 
http://jakarta.apache.org/tomcat/to...-iis-howto.html)
and I still havent gotten it to work. 

If I go to the examples/jsp/index.html I get a 404 

Not Found (404)  
Original request: /jakarta/isapi_redirect.dll 
Not found request: /jakarta/isapi_redirect.dll 

So it appears to be a problem with my virtual directory 

My log gives the following: 
#Software: Microsoft Internet Information Services 5.0 
#Version: 1.0 #Date: 2001-08-29 05:25:17 
#Fields: date time c-ip cs-username s-ip s-port cs-method cs-uri-
stem cs-uri-query sc-status cs(User-Agent) 
2001-08-29 05:25:17 127.0.0.1 - 127.0.0.1 80 GET 
 /jakarta/isapi_redirect.dll - 403 
 Mozilla/4.0+
(compatible;+MSIE+5.01;+Windows+NT+5.0) 


The doc states 

If the number following GET /... is 200 or 403, make sure you 
have checked Execute Access for the jakarta virtual directory in 
the Advanced Options of the Personal Web Manager.  

I checked and I have set that directory for execute. 

Any ideas?



RE: Tomcat / IIS 5.0 - isapi_redirect Error - log data included

2001-08-29 Thread rturner003

I recently installed tomcat on a Windows XP machine without much
problems. I would like to draw you attention to page 1 of another
document
http://Jakarta.apache.org/tomcat/tomcat-3.3-doc/NT-Service-howto.html
and special note 2 regarding the using of long filenames. I says don't
and use 8.3 format. For instance in my workers.propeerties file it says:

workers.tomcat_home=c:\progra~1\jakart~1.3

#
# workers.java_home should point to your Java installation. Normally
# you should have a bin and lib directories beneath it.
#
workers.java_home=c:\progra~1\jdk13~1.0_0

where progra~1 is normally known as 'program files'.

I hope this helps. You may email me direct if you wish

Robert T Turner
[EMAIL PROTECTED]

-Original Message-
From: SpuTTer [mailto:[EMAIL PROTECTED]] 
Sent: 29 August 2001 19:29
To: [EMAIL PROTECTED]
Subject: Tomcat / IIS 5.0 - isapi_redirect Error - log data included

Hello, I am trying to install Tomcat on a Windows 2000 Advanced 
Server machine. I followed the instructions at 
http://jakarta.apache.org/tomcat/to...-iis-howto.html)
and I still havent gotten it to work. 

If I go to the examples/jsp/index.html I get a 404 

Not Found (404)  
Original request: /jakarta/isapi_redirect.dll 
Not found request: /jakarta/isapi_redirect.dll 

So it appears to be a problem with my virtual directory 

My log gives the following: 
#Software: Microsoft Internet Information Services 5.0 
#Version: 1.0 #Date: 2001-08-29 05:25:17 
#Fields: date time c-ip cs-username s-ip s-port cs-method cs-uri-
stem cs-uri-query sc-status cs(User-Agent) 
2001-08-29 05:25:17 127.0.0.1 - 127.0.0.1 80 GET 
 /jakarta/isapi_redirect.dll - 403 
 Mozilla/4.0+
(compatible;+MSIE+5.01;+Windows+NT+5.0) 


The doc states 

If the number following GET /... is 200 or 403, make sure you 
have checked Execute Access for the jakarta virtual directory in 
the Advanced Options of the Personal Web Manager.  

I checked and I have set that directory for execute. 

Any ideas?


_
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com




RE: Error-Log file ?

2001-08-20 Thread Rob S.

The Unix command line allows for stderr redirection.  I'm sure there's a
command-line HOWTO somewhere that dishes out the details since I've since
forgotten =/

- r

 -Original Message-
 From: Kenny Ma [mailto:[EMAIL PROTECTED]]
 Sent: Sunday, August 19, 2001 11:49 PM
 To: [EMAIL PROTECTED]
 Subject: Error-Log file ?


 I am using Tomcat 3.2.3/Redhat 7.1

 I have a servlet program, the program line 1 is System.err.println(TEST)

 when i run the servlet, the output goes into console

 I want the err.println output to a file , what can I do ?
 or how to config Tomcat ?

 ps. I checked /usr/local/tomcat/logs/
 It havent output to those files.

 /* Kenny Ma
[EMAIL PROTECTED] */






Error-Log file ?

2001-08-19 Thread Kenny Ma

I am using Tomcat 3.2.3/Redhat 7.1

I have a servlet program, the program line 1 is System.err.println(TEST)

when i run the servlet, the output goes into console

I want the err.println output to a file , what can I do ?
or how to config Tomcat ?

ps. I checked /usr/local/tomcat/logs/
It havent output to those files.

/* Kenny Ma
   [EMAIL PROTECTED] */




Re: Error-Log file ?

2001-08-19 Thread Dmitri Colebatch

On Mon, 20 Aug 2001, Kenny Ma wrote:
 I have a servlet program, the program line 1 is System.err.println(TEST)
you would be better off using log(TEST);

 when i run the servlet, the output goes into console
stderr will... are you running linux or windows?  afaik tomcat doesn't do
anything to redirect the stdout/stderr streams.

 I want the err.println output to a file , what can I do ?
 or how to config Tomcat ?
again... I'd advise using servlet.log at least, or preferably some logging
packages like log4j (http://jakarta.apache.org/log4j).

you might also want to change your server.xml so that tc_log goes to
logs/tomcat.log if you haven't already.

 ps. I checked /usr/local/tomcat/logs/
 It havent output to those files.
servlet.log will go there (o:

hth,
cheesr
dim

 
 /* Kenny Ma
[EMAIL PROTECTED] */
 
 




Error Log

2001-08-15 Thread Barnabas Yohannes

Folks,

How are folks at your end doing?  The last time I asked you, you gave me
great ideas.  Folks at my end are pulling their hair tying to solve these
errors from apache server error_log.  After these errors are displayed, the
JSP a page at the tomecat server fails.

Tue Aug 14 16:52:26 2001] [error] [client 63.104.195.176] request failed:
error reading the headers

[Tue Aug 14 19:57:55 2001] [error] [client 63.104.195.182] request
failed:error reading the headers

[Tue Aug 14 22:02:10 2001] [error] [client 63.104.195.182] request
failed:error reading the headers

[Tue Aug 14 23:38:19 2001] [error] [client 63.104.195.182] request
failed:error reading the headers

[Wed Aug 15 00:17:57 2001] [error] [client 63.104.195.182] request
failed:error reading the headers

[Wed Aug 15 01:17:52 2001] [error] [client 210.220.132.95] Client sent
malformed Host header

[Wed Aug 15 02:51:43 2001] [error] [client 63.104.195.182] request failed:
error reading the headers

[Wed Aug 15 05:29:48 2001] [error] [client 63.104.195.182] request failed:
error reading the headers



What I am specially concerned is this error

[Wed Aug 15 01:17:52 2001] [error] [client 210.220.132.95] Client sent
malformed Host header

Do you think some hacker is sending malformed host header from a browser?

Any tip will be hightly apprecated,




Re: Error Log

2001-08-14 Thread Richard Draucker

We never get any of the 'cool' viruses. :-(


On Monday 13 August 2001 06:54 pm, you wrote:
 At 01:46 PM 8/13/2001, Jeff wrote:
 Nope.
 
  Jeff,
  
  This code_red virus seems a Microsoft IIS issue.  Do you think this
   virus also could attack an apache server?

 Well, yes, it can attack an Apache server all it wants,
 the good thing is that this vulnerability doesn't exist
 on Apache. The worst that happens is that your poor Apache
 server has to continually attempt to service requests
 for a resource it doesn't have.

-- 
Richard Draucker [EMAIL PROTECTED]
Protected-Data.Com www.protected-data.com
Remote Data Support For Web Developers




RE: Error Log

2001-08-13 Thread Randy Paries

This is an error from a user that bookmarks your site with an IE5 browser.
The browser looks by default for favicon.ico in the root directory.

/usr/local/apache/htdocs/favicon.ico

-Original Message-
From: Barnabas Yohannes [mailto:[EMAIL PROTECTED]]
Sent: Monday, August 13, 2001 2:56 PM
To: [EMAIL PROTECTED]
Subject: Error Log


Does any one has any idea what the following errors mean?

[Mon Aug 13 12:22:53 2001] [error] [client 204.30.247.252] File does not
exist:  /usr/local/apache/htdocs/favicon.ico

[Mon Aug 13 12:30:47 2001] [error] [client 217.128.68.93] File does not
exist: /usr/local/apache/htdocs/default.ida

[Mon Aug 13 12:52:13 2001] [error] [client 212.68.231.10] File does not
exist: /usr/local/apache/htdocs/default.ida

They are displayed at error_log of the apache server.  We looked those
files up the directory displayed, but they do not exist.  What is happening
is that after an applicatin at the tomcat server works for 10-12 hours, the
web crushes.  Folks here started male pattern baldness tying to solve this
error.

Any help will be highly appreciated.




Re: Error Log

2001-08-13 Thread Barnabas Yohannes

Thank you Randy,
This is very true.  In fact, I bookmarked the site and it did it again.
What do you think is the solution?  Is there any where that I can download
the favicon.ico and put it to the root directory?  We looked the file up in
all the directories, but non of the files are loaded in anywhere in the
apache server.  We even tried to find it at the apache server CDs, but the
files are not there.


- Original Message -
From: Randy Paries [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, August 13, 2001 3:00 PM
Subject: RE: Error Log


 This is an error from a user that bookmarks your site with an IE5 browser.
 The browser looks by default for favicon.ico in the root directory.

 /usr/local/apache/htdocs/favicon.ico

 -Original Message-
 From: Barnabas Yohannes [mailto:[EMAIL PROTECTED]]
 Sent: Monday, August 13, 2001 2:56 PM
 To: [EMAIL PROTECTED]
 Subject: Error Log


 Does any one has any idea what the following errors mean?

 [Mon Aug 13 12:22:53 2001] [error] [client 204.30.247.252] File does not
 exist:  /usr/local/apache/htdocs/favicon.ico

 [Mon Aug 13 12:30:47 2001] [error] [client 217.128.68.93] File does not
 exist: /usr/local/apache/htdocs/default.ida

 [Mon Aug 13 12:52:13 2001] [error] [client 212.68.231.10] File does not
 exist: /usr/local/apache/htdocs/default.ida

 They are displayed at error_log of the apache server.  We looked those
 files up the directory displayed, but they do not exist.  What is
happening
 is that after an applicatin at the tomcat server works for 10-12 hours,
the
 web crushes.  Folks here started male pattern baldness tying to solve this
 error.

 Any help will be highly appreciated.





RE: Error Log

2001-08-13 Thread Martin van den Bemt

Create an nice windows icon file yourself..

Mvgr,
martin

 -Original Message-
 From: Barnabas Yohannes [mailto:[EMAIL PROTECTED]]
 Sent: Monday, August 13, 2001 10:36 PM
 To: [EMAIL PROTECTED]
 Subject: Re: Error Log


 Thank you Randy,
 This is very true.  In fact, I bookmarked the site and it did it again.
 What do you think is the solution?  Is there any where that I can download
 the favicon.ico and put it to the root directory?  We looked the
 file up in
 all the directories, but non of the files are loaded in anywhere in the
 apache server.  We even tried to find it at the apache server CDs, but the
 files are not there.


 - Original Message -
 From: Randy Paries [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Monday, August 13, 2001 3:00 PM
 Subject: RE: Error Log


  This is an error from a user that bookmarks your site with an
 IE5 browser.
  The browser looks by default for favicon.ico in the root directory.
 
  /usr/local/apache/htdocs/favicon.ico
 
  -Original Message-
  From: Barnabas Yohannes [mailto:[EMAIL PROTECTED]]
  Sent: Monday, August 13, 2001 2:56 PM
  To: [EMAIL PROTECTED]
  Subject: Error Log
 
 
  Does any one has any idea what the following errors mean?
 
  [Mon Aug 13 12:22:53 2001] [error] [client 204.30.247.252] File does not
  exist:  /usr/local/apache/htdocs/favicon.ico
 
  [Mon Aug 13 12:30:47 2001] [error] [client 217.128.68.93] File does not
  exist: /usr/local/apache/htdocs/default.ida
 
  [Mon Aug 13 12:52:13 2001] [error] [client 212.68.231.10] File does not
  exist: /usr/local/apache/htdocs/default.ida
 
  They are displayed at error_log of the apache server.  We looked those
  files up the directory displayed, but they do not exist.  What is
 happening
  is that after an applicatin at the tomcat server works for 10-12 hours,
 the
  web crushes.  Folks here started male pattern baldness tying to
 solve this
  error.
 
  Any help will be highly appreciated.
 
 





Re: Error Log

2001-08-13 Thread Barnabas Yohannes

Jeff,

This code_red virus seems a Microsoft IIS issue.  Do you think this virus
also could attack an apache server?


- Original Message -
From: Jeff Rancier [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, August 13, 2001 3:06 PM
Subject: RE: Error Log


 You're server is receiving what appears to be the code_red virus stuff.
You
 must be connected to the outside? If so, I'd turn off, disconnect your
 connection, get the patch from Microsoft, follow the instructions.
Forget
 what I said, you're not running IIS.   But I think that's what they are
 though.

 -Original Message-
 From: Barnabas Yohannes [mailto:[EMAIL PROTECTED]]
 Sent: Monday, August 13, 2001 3:56 PM
 To: [EMAIL PROTECTED]
 Subject: Error Log


 Does any one has any idea what the following errors mean?

 [Mon Aug 13 12:22:53 2001] [error] [client 204.30.247.252] File does not
 exist:  /usr/local/apache/htdocs/favicon.ico

 [Mon Aug 13 12:30:47 2001] [error] [client 217.128.68.93] File does not
 exist: /usr/local/apache/htdocs/default.ida

 [Mon Aug 13 12:52:13 2001] [error] [client 212.68.231.10] File does not
 exist: /usr/local/apache/htdocs/default.ida

 They are displayed at error_log of the apache server.  We looked those
 files up the directory displayed, but they do not exist.  What is
happening
 is that after an applicatin at the tomcat server works for 10-12 hours,
the
 web crushes.  Folks here started male pattern baldness tying to solve this
 error.

 Any help will be highly appreciated.





RE: Error Log

2001-08-13 Thread Jeff Rancier

Nope.

-Original Message-
From: Barnabas Yohannes [mailto:[EMAIL PROTECTED]]
Sent: Monday, August 13, 2001 4:39 PM
To: [EMAIL PROTECTED]
Subject: Re: Error Log


Jeff,

This code_red virus seems a Microsoft IIS issue.  Do you think this virus
also could attack an apache server?


- Original Message -
From: Jeff Rancier [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, August 13, 2001 3:06 PM
Subject: RE: Error Log


 You're server is receiving what appears to be the code_red virus stuff.
You
 must be connected to the outside? If so, I'd turn off, disconnect your
 connection, get the patch from Microsoft, follow the instructions.
Forget
 what I said, you're not running IIS.   But I think that's what they are
 though.

 -Original Message-
 From: Barnabas Yohannes [mailto:[EMAIL PROTECTED]]
 Sent: Monday, August 13, 2001 3:56 PM
 To: [EMAIL PROTECTED]
 Subject: Error Log


 Does any one has any idea what the following errors mean?

 [Mon Aug 13 12:22:53 2001] [error] [client 204.30.247.252] File does not
 exist:  /usr/local/apache/htdocs/favicon.ico

 [Mon Aug 13 12:30:47 2001] [error] [client 217.128.68.93] File does not
 exist: /usr/local/apache/htdocs/default.ida

 [Mon Aug 13 12:52:13 2001] [error] [client 212.68.231.10] File does not
 exist: /usr/local/apache/htdocs/default.ida

 They are displayed at error_log of the apache server.  We looked those
 files up the directory displayed, but they do not exist.  What is
happening
 is that after an applicatin at the tomcat server works for 10-12 hours,
the
 web crushes.  Folks here started male pattern baldness tying to solve this
 error.

 Any help will be highly appreciated.






Re: Error Log

2001-08-13 Thread Pier P. Fumagalli

Barnabas Yohannes at [EMAIL PROTECTED] wrote:

 Jeff,
 
 This code_red virus seems a Microsoft IIS issue.  Do you think this virus
 also could attack an apache server?

It can NOT attack any other web server BUT Microsoft IIS... Apache, Tomcat
and all the others are NOT AFFECTED by code red... EVEN if you're running
them on Windows...

Pier




RE: Error Log

2001-08-13 Thread Martin van den Bemt

This is a specific thing to IIS so don't worry. Request can be done although
to see if it is infected. Check the ip addresses and see if they come from a
source likely to be a normal visitor, if not mail them that there is
something strange going on ;-))

Mvgr,
Martin

 -Original Message-
 From: Barnabas Yohannes [mailto:[EMAIL PROTECTED]]
 Sent: Monday, August 13, 2001 10:39 PM
 To: [EMAIL PROTECTED]
 Subject: Re: Error Log


 Jeff,

 This code_red virus seems a Microsoft IIS issue.  Do you think
 this virus
 also could attack an apache server?


 - Original Message -
 From: Jeff Rancier [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Monday, August 13, 2001 3:06 PM
 Subject: RE: Error Log


  You're server is receiving what appears to be the code_red virus stuff.
 You
  must be connected to the outside? If so, I'd turn off, disconnect your
  connection, get the patch from Microsoft, follow the instructions.
 Forget
  what I said, you're not running IIS.   But I think that's what they are
  though.
 
  -Original Message-
  From: Barnabas Yohannes [mailto:[EMAIL PROTECTED]]
  Sent: Monday, August 13, 2001 3:56 PM
  To: [EMAIL PROTECTED]
  Subject: Error Log
 
 
  Does any one has any idea what the following errors mean?
 
  [Mon Aug 13 12:22:53 2001] [error] [client 204.30.247.252] File does not
  exist:  /usr/local/apache/htdocs/favicon.ico
 
  [Mon Aug 13 12:30:47 2001] [error] [client 217.128.68.93] File does not
  exist: /usr/local/apache/htdocs/default.ida
 
  [Mon Aug 13 12:52:13 2001] [error] [client 212.68.231.10] File does not
  exist: /usr/local/apache/htdocs/default.ida
 
  They are displayed at error_log of the apache server.  We looked those
  files up the directory displayed, but they do not exist.  What is
 happening
  is that after an applicatin at the tomcat server works for 10-12 hours,
 the
  web crushes.  Folks here started male pattern baldness tying to
 solve this
  error.
 
  Any help will be highly appreciated.
 
 





RE: Error Log

2001-08-13 Thread Dmitri Colebatch

favicon.ico is a 16x16 icon that IE looks for if a user has bookmarked a
page.  If its present, IE puts it next to the address in the address bar.

cheers
dim

On Mon, 13 Aug 2001, Jeff Rancier wrote:

 You're server is receiving what appears to be the code_red virus stuff.  You
 must be connected to the outside? If so, I'd turn off, disconnect your
 connection, get the patch from Microsoft, follow the instructions.   Forget
 what I said, you're not running IIS.   But I think that's what they are
 though.
 
 -Original Message-
 From: Barnabas Yohannes [mailto:[EMAIL PROTECTED]]
 Sent: Monday, August 13, 2001 3:56 PM
 To: [EMAIL PROTECTED]
 Subject: Error Log
 
 
 Does any one has any idea what the following errors mean?
 
 [Mon Aug 13 12:22:53 2001] [error] [client 204.30.247.252] File does not
 exist:  /usr/local/apache/htdocs/favicon.ico
 
 [Mon Aug 13 12:30:47 2001] [error] [client 217.128.68.93] File does not
 exist: /usr/local/apache/htdocs/default.ida
 
 [Mon Aug 13 12:52:13 2001] [error] [client 212.68.231.10] File does not
 exist: /usr/local/apache/htdocs/default.ida
 
 They are displayed at error_log of the apache server.  We looked those
 files up the directory displayed, but they do not exist.  What is happening
 is that after an applicatin at the tomcat server works for 10-12 hours, the
 web crushes.  Folks here started male pattern baldness tying to solve this
 error.
 
 Any help will be highly appreciated.
 
 




RE: Error Log

2001-08-13 Thread Dmitri Colebatch

sorry - should read all my mail before replying (o:

On Tue, 14 Aug 2001, Dmitri Colebatch wrote:

 favicon.ico is a 16x16 icon that IE looks for if a user has bookmarked a
 page.  If its present, IE puts it next to the address in the address bar.
 
 cheers
 dim
 
 On Mon, 13 Aug 2001, Jeff Rancier wrote:
 
  You're server is receiving what appears to be the code_red virus stuff.  You
  must be connected to the outside? If so, I'd turn off, disconnect your
  connection, get the patch from Microsoft, follow the instructions.   Forget
  what I said, you're not running IIS.   But I think that's what they are
  though.
  
  -Original Message-
  From: Barnabas Yohannes [mailto:[EMAIL PROTECTED]]
  Sent: Monday, August 13, 2001 3:56 PM
  To: [EMAIL PROTECTED]
  Subject: Error Log
  
  
  Does any one has any idea what the following errors mean?
  
  [Mon Aug 13 12:22:53 2001] [error] [client 204.30.247.252] File does not
  exist:  /usr/local/apache/htdocs/favicon.ico
  
  [Mon Aug 13 12:30:47 2001] [error] [client 217.128.68.93] File does not
  exist: /usr/local/apache/htdocs/default.ida
  
  [Mon Aug 13 12:52:13 2001] [error] [client 212.68.231.10] File does not
  exist: /usr/local/apache/htdocs/default.ida
  
  They are displayed at error_log of the apache server.  We looked those
  files up the directory displayed, but they do not exist.  What is happening
  is that after an applicatin at the tomcat server works for 10-12 hours, the
  web crushes.  Folks here started male pattern baldness tying to solve this
  error.
  
  Any help will be highly appreciated.
  
  
 
 




RE: Error Log

2001-08-13 Thread Tim O'Neil

At 01:46 PM 8/13/2001, Jeff wrote:
Nope.


 Jeff,

 This code_red virus seems a Microsoft IIS issue.  Do you think this virus
 also could attack an apache server?

Well, yes, it can attack an Apache server all it wants,
the good thing is that this vulnerability doesn't exist
on Apache. The worst that happens is that your poor Apache
server has to continually attempt to service requests
for a resource it doesn't have.





How to set up an error log?

2001-03-27 Thread Kris Gonzalez

How do I get an error log set up for the Tomcat JSP server?  I added the
following line to my server.xml configuration file:

Logger name="error_log" path="logs/error.log" verbosityLevel = "ERROR"
/

and the file error.log exists at that path, but I cannot get anything to
report to that log...instead, errors are echoed to the terminal in which
the daemon was started if that terminal is still alive, and not echoed
at all except in the requesting browser if the terminal has been killed.

If it helps, I'm running Tomcat on a RedHat 6.2 Linux machine.




Error log file

2001-03-21 Thread venkatesan


Hi All,
 I am running tomcat servlet Enginee
under Apache in Linux machine. Everything is running fine and now i am
configured tomcat with Apache so that tomcat will be started automatically
while boot time before Apache..
 My problem is that earlier i used to
run tomcat in ../bin/startup.sh in command prompt so that
i will see all error log files in the command prompt itself where i am
giving ../bin/startup.sh. Since i put my automatic script which
is starting tomcat in /etc/rc.d/init.d/tomcatd then symbolic link
/etc/rc.d/rc5.d/S19tomcatd, i could not see error-logs of tomcat...Can
anybody tell where i will see error log files of tomcat..
Regards
Venkatesh