AW: Problems with graphics on Tomcat 5.5.9

2005-10-11 Thread Edao, Aliye
 
Hi Mauricio,

I had the same problem. The solution is as follows:

1. Download and install a virtual frame buffer
   Where to find and how to install:
   
http://testdrive.mapinfo.com/TECHSUPP/MIPROD.NSF/0/a832a07452b9a0e385256f8000760f68?OpenDocument

2. Do not forget to create a script to start xvfb - you will find the script 
under the link above

3. Edit the startup.sh or catalina.sh as follows:

#export DISPLAY 
export DISPLAY=IP_of_your_machine_where_Tomcat_is_running:0.0
export CATALINA_OPTS=-Djava.awt.headless=false 

4. Start xvfb

5. Restart Tomcat



Mit freundlichem Gruß / kind regards

Aliye Edao  
 




-Ursprüngliche Nachricht-
Von: Mauricio Fernandez A. [mailto:[EMAIL PROTECTED] 
Gesendet: Montag, 10. Oktober 2005 15:06
An: Tomcat Users List
Betreff: RE: Problems with graphics on Tomcat 5.5.9

You can see that here, after click on Graficar:

The web test app can be found here http://www.actesoft.com:8080/Prueba/jsp/
and the wanted result after click on Graficar is something like this
http://www.actesoft.com/ejGrafico/ (static page)

Mauricio Fernandez

-Mensaje original-
De: Viorel Dragomir [mailto:[EMAIL PROTECTED]
Enviado el: lunes, 10 octubre, 2005 15:53
Para: Tomcat Users List
Asunto: Re: Problems with graphics on Tomcat 5.5.9


What exception ?

[ If it's not confidential. :) ]



Viorel Dragomir

.
..
---



- Original Message -
From: Mauricio Fernandez A.
To: Tomcat Users List
Sent: Monday, October 10, 2005 14:42
Subject: RE: Problems with graphics on Tomcat 5.5.9



Trying again to make the graphics appear in my web app, I did a test web app
and I had been trying to start the Tomcat with -Djava.awt.headless=true
option as I read in some forums

#export CATALINA_OPTS=-Djava.awt.headless=true
#/usr/java/jakarta-tomcat/bin/startup.sh

But they do not appear either

The web test app can be found here http://www.actesoft.com:8080/Prueba/jsp/
and the wanted result after click on Graficar is something like this
http://www.actesoft.com/ejGrafico/ (static page)

Also I have try to insert in the Graficador.class constructor the next
System.set/getProperties lines


public Graficador(String Path){
super();
this.contexto = Path;
this.background = null;

//System.setProperty returns the current value before assignment
String vrPropiedad = System.setProperty(java.awt.headless, true);

// Log the before assignment value to a log file to debug
logger.debug(BEFORE = java.awt.headless =  + vrPropiedad);

//and log the after assignmet value to a log file too
vrPropiedad = System.getProperty(java.awt.headless);
logger.debug(NOW = java.awt.headless =  + vrPropiedad);
}


And these are the log file lines the app write

2005-10-10 11:18:15,996 [-t] INFO [index.jsp] - Loading form
2005-10-10 11:18:15,999 [-t] INFO [index.jsp] - Form OK !
2005-10-10 11:18:24,710 [-t] DEBUG [grafica.jsp] - loading page: grafica.jsp
2005-10-10 11:18:24,716 [-t] DEBUG [grafica.jsp] - Creating object:
Graficador
2005-10-10 11:18:24,746 [-t] DEBUG [Graficador] - BEFORE = java.awt.headless
= true -- It is True!
2005-10-10 11:18:24,746 [-t] DEBUG [Graficador] - NOW = java.awt.headless =
true -- It is True!
2005-10-10 11:18:24,747 [-t] DEBUG [grafica.jsp] - Creating Category 1 ...
OK
2005-10-10 11:18:24,747 [-t] DEBUG [grafica.jsp] - Creating Category 2 ...
OK
2005-10-10 11:18:24,748 [-t] DEBUG [grafica.jsp] - Creating Category 3 ...
OK
2005-10-10 11:18:24,748 [-t] DEBUG [grafica.jsp] - Giving the control to a
Graficador Object, it must make the chart
2005-10-10 11:18:24,769 [-t] DEBUG [Graficador] - Starting chart creation
...
2005-10-10 11:18:24,788 [-t] DEBUG [Graficador] - Data process  OK
2005-10-10 11:18:25,548 [-t] DEBUG [Graficador] - Creating Chart  OK
2005-10-10 11:18:25,549 [-t] DEBUG [Graficador] - Making a PNG image from
Chart

And here the app trhows an exception

Any idea is always welcome, thanks.

Mauricio Fernandez


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


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



AW: CATALINA_BASE

2005-07-13 Thread Edao, Aliye
Hi,

Sort of Files you need:

ls -l /usr/local/tomcat/tomcatinstances

drwxrwx---5 tomcat tomcat   4096 2005-06-24 07:59 instance1
drwxrwx---5 tomcat tomcat   4096 2005-06-24 08:07 instance2
drwxrwx---5 tomcat tomcat   4096 2005-06-24 09:50 instance3


ls -l /usr/local/tomcat/tomcatinstances/instance1

drwxrwx---2 tomcat tomcat   4096 2005-07-05 11:21 bin
drwxrwx---2 tomcat tomcat   4096 2005-07-05 13:11 conf
drwxrwx---1 tomcat tomcat 36 2005-06-24 07:58 logs
drwxrwx---2 tomcat tomcat   4096 2005-07-06 07:43 temp
drwxrwx---1 tomcat tomcat 25 2005-06-23 12:02 webapps
drwxrwx---1 tomcat tomcat 36 2005-06-24 07:59 work 

In bin Directory put your startup/shutdown scripts for the instance (eg. For 
instance1)
You have to put in conf the server.xml and if you need tomcat-users.xml file 
for instance1

Do not forget to coy form CATALINA_HOME/bin the Files catalina.policy, 
jk2.properties and web.xml into each instances.

That is about all and it works just fine. 



Mit freundlichem Gruß / kind regards

Dr. Aliye Edao  
 

-Ursprüngliche Nachricht-
Von: Kenneth B. Harwood [mailto:[EMAIL PROTECTED] 
Gesendet: Dienstag, 12. Juli 2005 23:51
An: Tomcat Users List
Betreff: Re: CATALINA_BASE


what is the minimum file configuration required to run multiple Tomcat
instances?
conceptually, i shouldn't need an ENTIRE Tomcat file installation in my
second
(third, fourth, whatever) directory;   Tomcat should only require a small
amount of
customizing  in the target directory(s).

for example, the secondary conf directory should only require a modified
server.xml file.  that way, when Tomcat is starting up and it detects that
CATALINA_BASE is defined, the program should know to gather it's
instance configuration information from the second server.xml file instead
of the primary one.

or, are there a whole bunch of files that would need to be brought over and
modified?  if that's the case then that would be a violation of good design
practice.
philosophically, all the localized stuff should be in a single file.

sorry to sound so academic-lite about the subject.

 - ken h.




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



AW: Tomcat Just Shuts down without reason (that i can see)

2005-06-28 Thread Edao, Aliye
Hi!
 
Have you got solution? If yes just ignore this mail.
 
If not and if you are using UNIX/Linux System try the following:
 
Start tomcat in CSH Shell and let it run in background. There was a similar 
problem discussed 
on this list and the solution was to start tomcat in CSH.
 
Cheers,
Aliye
 
 
Mit freundlichem Gruß / kind regards 

Dr. Aliye Edao  
  

 
 Von: Simon Taylor [mailto:[EMAIL PROTECTED] 
Gesendet: Montag, 27. Juni 2005 22:18
An: tomcat-user@jakarta.apache.org
Betreff: Tomcat Just Shuts down without reason (that i can see)



Tomcat 4.1.31 - Solaris 9 - Java 1.5
 
Currently Tomcat shuts down after what seems to be a variable amount of 
time.
All contexts within the host are shut down
 
And the following are evident in the logs:-
 
log1
2005-06-27 17:15:41 StandardHost[localhost]: Removing web application 
at context path /admin
2005-06-27 17:15:41 StandardHost[localhost]: Removing web application 
at context path /webdav
2005-06-27 17:15:41 StandardHost[localhost]: Removing web application 
at context path /examples
2005-06-27 17:15:41 StandardHost[localhost]: Removing web application 
at context path /tomcat-docs
2005-06-27 17:15:41 StandardHost[localhost]: Removing web application 
at context path /arsys
2005-06-27 17:15:41 StandardHost[localhost]: Removing web application 
at context path 
2005-06-27 17:15:41 StandardHost[localhost]: Removing web application 
at context path /manager

log2
2005-06-27 17:15:41 StandardContext[/arsys]: Stopping
2005-06-27 17:15:41 StandardContext[/arsys]: Stopping filters
2005-06-27 17:15:41 StandardContext[/arsys]: Sending application stop 
events
2005-06-27 17:15:41 StandardContext[/arsys]: Processing standard 
container shutdown
2005-06-27 17:15:41 ContextConfig[/arsys]: ContextConfig: Processing 
STOP
2005-06-27 17:15:41 StandardContext[/arsys]: Stopping complete

log3
2005-06-27 17:15:41 SessionListener: contextDestroyed()
2005-06-27 17:15:41 ContextListener: contextDestroyed()
 
 

Looks like its performing a normal shutdown to me - but why? is it an 
inactivity timeout - as i am not seeing any activity around the time of the 
shutdown.
 
This is the second server we have had this happen on and on two 
different versions of tomcat and two versions of Java.
 
Any ideas?

Simon Taylor (Engineer)
Service Tools Solutions (STS)
Nortel 
p - 01628 617291 (ESN 6 861 7291)
m - 07740 533743 (ESN 748 3743)
e - [EMAIL PROTECTED] mailto:[EMAIL PROTECTED]  



 



AW: Container Managed Security and mod_jk/Static Contents

2005-06-16 Thread Edao, Aliye
Hi,

Why don`t you use Apache to protect your static contents?? 
You might want to use .htaccess ??

http://www.csoft.net/docs/micro/htaccess.html.en



Mit freundlichem Gru / kind regards

Dr. Aliye Edao  
 

-Ursprngliche Nachricht-
Von: Torsten Rmer [mailto:[EMAIL PROTECTED] 
Gesendet: Freitag, 17. Juni 2005 00:42
An: Tomcat Users List
Betreff: Container Managed Security and mod_jk/Static Contents


Hello!

In order to improve performance for static contents I have setup Apache
with mod_jk. Now only Struts' *.do requests are served by Tomcat, the
rest is done by Apache. Works fine.

Now I want to restrict access to some resources using using container
managed security. That also works fine, but, and that is now my question:

I also want to protect static contents, but that won't work with
container managed security, because these requests are handled by Apache
and don't even make it to Tomcat. Of course I could just mount the
contents to be protected to Tomcat, but then I'll lose the performance
advantage of having them served by Apache.

Do I have to live with that or do I have a stupid setup?

Torsten


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



AW: Tomcat dying unexpectedly (Tomcat5.0.28, apache2.0.54 and mod_jk 1.2.5 on Solaris 8)

2005-06-02 Thread Edao, Aliye
Hi,

It seems that you are starting http on 2 Ports but you have just 1 instance of 
Tomcat??
Go to CATALINA_HOME/conf and edit server.xml -- comment out the block were you 
have Port 8082 and restart Tomcat.

Hope that helps...


Mit freundlichem Gru / kind regards

Dr. Aliye Edao  
 



-Ursprngliche Nachricht-
Von: M. Owais Ansari [mailto:[EMAIL PROTECTED] 
Gesendet: Donnerstag, 2. Juni 2005 11:58
An: tomcat-user@jakarta.apache.org
Betreff: Tomcat dying unexpectedly (Tomcat5.0.28, apache2.0.54 and mod_jk 1.2.5 
on Solaris 8)


Ive tried to configure tomcat 5.0.28 with apache 2.0.54 through mod_jk 
connector (mod_jk.so used from file 
jakarta-tomcat-connectors-jk-1.2.5-solaris8-sparc-apache-2.0.47.tar.gz at 
jakarta.apache.org) on Solaris 5.8 (Solaris 8) platform but tomcat is dieing 
after some time with java.net.SocketException exception. Please help me to get 
out from this issue

Following are the logs and configuration files.

---Tomcathome/logs/Catalina.out

[INFO] Http11Protocol - Initializing Coyote HTTP/1.1 on http-8080
[INFO] Http11Protocol - Initializing Coyote HTTP/1.1 on http-8082
[INFO] Catalina - Initialization processed in 10469 ms
[INFO] StandardService - Starting service Catalina
[INFO] StandardEngine - Starting Servlet Engine: Apache Tomcat/5.0.28
[INFO] StandardHost - XML validation disabled
[INFO] StandardHost - Create Host deployer for direct deployment ( non-jmx )
[INFO] StandardHostDeployer - Processing Context configuration file URL 
file:/export/home/tomcat5/conf/Catalina/localhost/balancer.xml
[INFO] StandardHostDeployer - Processing Context configuration file URL 
file:/export/home/tomcat5/conf/Catalina/localhost/admin.xml
[INFO] PropertyMessageResources - Initializing, 
config='org.apache.struts.util.LocalStrings', returnNull=true
[INFO] PropertyMessageResources - Initializing, 
config='org.apache.struts.action.ActionResources', returnNull=true
[INFO] PropertyMessageResources - Initializing, 
config='org.apache.webapp.admin.ApplicationResources', returnNull=true
[INFO] StandardHostDeployer - Processing Context configuration file URL 
file:/export/home/tomcat5/conf/Catalina/localhost/manager.xml
[INFO] StandardHostDeployer - Processing Context configuration file URL 
file:/export/home/tomcat5/conf/Catalina/localhost/wifi.xml
[INFO] WebappClassLoader - 
validateJarFile(/export/home/webapps/WiFi/WEB-INF/lib/servlet-api.jar) - jar 
not loaded. See Servlet Spec 2.3, section 9.7.2. Offending class: 
javax/servlet/Servlet.class
[INFO] StandardHostDeployer - Installing web application at context path 
/jsp-examples from URL file:/export/home/tomcat5/webapps/jsp-examples
[INFO] StandardHostDeployer - Installing web application at context path from 
URL file:/export/home/tomcat5/webapps/ROOT
[INFO] StandardHostDeployer - Installing web application at context path 
/servlets-examples from URL file:/export/home/tomcat5/webapps/servlets-examples
[INFO] StandardHostDeployer - Installing web application at context path 
/tomcat-docs from URL file:/export/home/tomcat5/webapps/tomcat-docs
[INFO] StandardHostDeployer - Installing web application at context path 
/webdav from URL file:/export/home/tomcat5/webapps/webdav
[INFO] Http11Protocol - Starting Coyote HTTP/1.1 on http-8080
[INFO] ChannelSocket - JK2: ajp13 listening on /0.0.0.0:8009
[INFO] JkMain - Jk running ID=0 time=4/190 
config=/export/home/tomcat5/conf/jk2.properties
[INFO] Http11Protocol - Starting Coyote HTTP/1.1 on http-8082
[INFO] Catalina - Server startup in 28234 ms
[INFO] Http11Protocol - Pausing Coyote HTTP/1.1 on http-8080
[WARN] ChannelSocket - Exception executing accept java.net.SocketException: 
Software caused connection abortjava.net.SocketException: Software
caused connection abort
at java.net.PlainSocketImpl.socketAccept(Native Method)
at java.net.PlainSocketImpl.accept(PlainSocketImpl.java:463)
at java.net.ServerSocket.implAccept(ServerSocket.java:238)
at java.net.ServerSocket.accept(ServerSocket.java:217)
at org.apache.jk.common.ChannelSocket.accept(ChannelSocket.java:295)
at org.apache.jk.common.ChannelSocket.acceptConnections(ChannelSocket.java:638)
at org.apache.jk.common.SocketAcceptor.runIt(ChannelSocket.java:847)
at 
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683)
at java.lang.Thread.run(Thread.java:479)

[INFO] StandardService - Stopping service Catalina
[INFO] StandardHostDeployer - Removing web application at context path 
/tomcat-docs
[INFO] StandardHostDeployer - Removing web application at context path /admin
[INFO] LoggerBase - unregistering logger 
Catalina:type=Logger,path=/admin,host=localhost
[INFO] StandardHostDeployer - Removing web application at context path 
/jsp-examples
[INFO] StandardHostDeployer - Removing web application at context path /billing
[INFO] StandardHostDeployer - Removing web application at context path /webdav
[INFO] 

AW: Tomcat dying unexpectedly (Tomcat5.0.28, apache2.0.54 and mod_jk 1.2.5 on Solaris 8)

2005-06-02 Thread Edao, Aliye
Hi,

Can it be, that something is wrong with your server.xml???

If you see the following in catalina.out:

[INFO] Http11Protocol - Initializing Coyote HTTP/1.1 on http-8080
[INFO] Http11Protocol - Initializing Coyote HTTP/1.1 on http-8082

It means some where in server.xml exists a block with port 8082. Is that the 
case??
If not remove that block completely from your server.xml and try again

Regards
Aliye

-Ursprngliche Nachricht-
Von: Muhammad Owais Ansari [mailto:[EMAIL PROTECTED] 
Gesendet: Donnerstag, 2. Juni 2005 12:39
An: Edao, Aliye
Cc: 'Tomcat Users List'
Betreff: RE: Tomcat dying unexpectedly (Tomcat5.0.28, apache2.0.54 and mod_jk 
1.2.5 on Solaris 8)


Thanks for the quick response!
The code snip 
!--
Connector port=8082
   maxThreads=150 minSpareThreads=25 maxSpareThreads=75
   enableLookups=false
   acceptCount=100 debug=0 connectionTimeout=2
   proxyPort=80 disableUploadTimeout=true /
--
is already commented.

Regards,
Muhammad Owais Ansari

-Original Message-
From: Edao, Aliye [mailto:[EMAIL PROTECTED] 
Sent: Thursday, June 02, 2005 3:32 PM
To: M. Owais Ansari
Cc: Tomcat Users List
Subject: AW: Tomcat dying unexpectedly (Tomcat5.0.28, apache2.0.54 and mod_jk 
1.2.5 on Solaris 8)

Hi,

It seems that you are starting http on 2 Ports but you have just 1 instance of 
Tomcat??
Go to CATALINA_HOME/conf and edit server.xml -- comment out the block were you 
have Port 8082 and restart Tomcat.

Hope that helps...


Mit freundlichem Gru / kind regards

Dr. Aliye Edao  
 



-Ursprngliche Nachricht-
Von: M. Owais Ansari [mailto:[EMAIL PROTECTED] 
Gesendet: Donnerstag, 2. Juni 2005 11:58
An: tomcat-user@jakarta.apache.org
Betreff: Tomcat dying unexpectedly (Tomcat5.0.28, apache2.0.54 and mod_jk 1.2.5 
on Solaris 8)


Ive tried to configure tomcat 5.0.28 with apache 2.0.54 through mod_jk 
connector (mod_jk.so used from file 
jakarta-tomcat-connectors-jk-1.2.5-solaris8-sparc-apache-2.0.47.tar.gz at 
jakarta.apache.org) on Solaris 5.8 (Solaris 8) platform but tomcat is dieing 
after some time with java.net.SocketException exception. Please help me to get 
out from this issue

Following are the logs and configuration files.

---Tomcathome/logs/Catalina.out

[INFO] Http11Protocol - Initializing Coyote HTTP/1.1 on http-8080
[INFO] Http11Protocol - Initializing Coyote HTTP/1.1 on http-8082
[INFO] Catalina - Initialization processed in 10469 ms
[INFO] StandardService - Starting service Catalina
[INFO] StandardEngine - Starting Servlet Engine: Apache Tomcat/5.0.28
[INFO] StandardHost - XML validation disabled
[INFO] StandardHost - Create Host deployer for direct deployment ( non-jmx )
[INFO] StandardHostDeployer - Processing Context configuration file URL 
file:/export/home/tomcat5/conf/Catalina/localhost/balancer.xml
[INFO] StandardHostDeployer - Processing Context configuration file URL 
file:/export/home/tomcat5/conf/Catalina/localhost/admin.xml
[INFO] PropertyMessageResources - Initializing, 
config='org.apache.struts.util.LocalStrings', returnNull=true
[INFO] PropertyMessageResources - Initializing, 
config='org.apache.struts.action.ActionResources', returnNull=true
[INFO] PropertyMessageResources - Initializing, 
config='org.apache.webapp.admin.ApplicationResources', returnNull=true
[INFO] StandardHostDeployer - Processing Context configuration file URL 
file:/export/home/tomcat5/conf/Catalina/localhost/manager.xml
[INFO] StandardHostDeployer - Processing Context configuration file URL 
file:/export/home/tomcat5/conf/Catalina/localhost/wifi.xml
[INFO] WebappClassLoader - 
validateJarFile(/export/home/webapps/WiFi/WEB-INF/lib/servlet-api.jar) - jar 
not loaded. See Servlet Spec 2.3, section 9.7.2. Offending class: 
javax/servlet/Servlet.class
[INFO] StandardHostDeployer - Installing web application at context path 
/jsp-examples from URL file:/export/home/tomcat5/webapps/jsp-examples
[INFO] StandardHostDeployer - Installing web application at context path from 
URL file:/export/home/tomcat5/webapps/ROOT
[INFO] StandardHostDeployer - Installing web application at context path 
/servlets-examples from URL file:/export/home/tomcat5/webapps/servlets-examples
[INFO] StandardHostDeployer - Installing web application at context path 
/tomcat-docs from URL file:/export/home/tomcat5/webapps/tomcat-docs
[INFO] StandardHostDeployer - Installing web application at context path 
/webdav from URL file:/export/home/tomcat5/webapps/webdav
[INFO] Http11Protocol - Starting Coyote HTTP/1.1 on http-8080
[INFO] ChannelSocket - JK2: ajp13 listening on /0.0.0.0:8009
[INFO] JkMain - Jk running ID=0 time=4/190 
config=/export/home/tomcat5/conf/jk2.properties
[INFO] Http11Protocol - Starting Coyote HTTP/1.1 on http-8082
[INFO] Catalina - Server startup in 28234 ms
[INFO] Http11Protocol - Pausing Coyote HTTP/1.1 on http-8080
[WARN

AW: Where do -Xms32m, -Xmx256m, and -Xrs go in the Tomcat 5.0.28 batch files?

2005-05-23 Thread Edao, Aliye
Hi Jack,

The answer is CATALINA_HOME/bin/catalina.sh

CATALINA_OPTS=-Xmx512m -Xss1024k  -XX:+PrintGCDetails -server ...



Mit freundlichem Gruß / kind regards

SBS ORS GD AHS OA42
Otto-Hahn-Ring 6 
D - 81739 München  
Tel. (089) 636-41024
Fax (089) 636-49347

Dr. Aliye Edao  
mailto:[EMAIL PROTECTED] 



-Ursprüngliche Nachricht-
Von: Dakota Jack [mailto:[EMAIL PROTECTED] 
Gesendet: Montag, 23. Mai 2005 08:48
An: Tomcat Users List
Betreff: Where do -Xms32m, -Xmx256m, and -Xrs go in the Tomcat 5.0.28 batch 
files?


I am running out of memory when running some imaging ops with Tomcat
5.0.28 and need to set the java command with the attributes -Xms32m,
-Xmx256m, and -Xrs.  However, danged if I can figure out how to do
that.  I am using the simple startup.bat and shutdown.bat.  Where is
the place I plugin with those values?  Thanks?
-- 
You can lead a horse to water but you cannot make it float on its back.
~Dakota Jack~

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



catalina.out

2005-01-28 Thread Edao Aliye
Hi all,

Is there any way i can tell tomcat to limit the file catalina.out 
in $CATALINA_HOME/logs to for example 2MB in Tomcat 5.5.4??

Please help!

Thanks in advance

 


AW: catalina.out

2005-01-28 Thread Edao Aliye
Hi Richared,

The problem I have ist not localhost_log
That works pretty good. Hier ist my configuration:

++ 
more log4j.properties
log4j.rootLogger=info, R
log4j.appender.R=org.apache.log4j.RollingFileAppender
log4j.appender.R.File=${CATALINA_HOME}/logs/tomcat.log
log4j.appender.R.MaxFileSize=2MB
log4j.appender.R.MaxBackupIndex=50
log4j.appender.R.layout=org.apache.log4j.PatternLayout
log4j.appender.R.layout.ConversionPattern=%p %t %c - %m%n
log4j.logger.org.apache.catalina.core.ContainerBase.[Catalina].[localhost]=INFO,
 R
++

My Problem is the file catalina.out which is defined in catalina.sh.

Any idea?

Thnak you very MUCH.

Regards,
Aliye

-Ursprüngliche Nachricht-
Von: Richard Mixon (qwest) [mailto:[EMAIL PROTECTED] 
Gesendet: Freitag, 28. Januar 2005 15:36
An: Tomcat Users List
Betreff: RE: catalina.out


Edao Aliye wrote:
 Hi all,
 
 Is there any way i can tell tomcat to limit the file catalina.out
 in $CATALINA_HOME/logs to for example 2MB in Tomcat 5.5.4??
 
 Please help!
 
 Thanks in advance

It's in the 5.5 documentation how to limit log size and to rotate:
  http://jakarta.apache.org/tomcat/tomcat-5.5-doc/logging.html

- Richard

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