Re: JAVA_OPTS vs CATALINA_OPTS

2014-01-27 Thread Арсений Зинченко
’re probably running as a service and that’s going to be a bit different No, Tomcat started via command line (rather - from .bat script wich call %catalina_home%/bin/startup.bat). 2014/1/27 Daniel Mikusa > On Jan 27, 2014, at 9:21 AM, Арсений Зинченко wrote: > > > Hi. > > > &

Re: JAVA_OPTS vs CATALINA_OPTS

2014-01-27 Thread Арсений Зинченко
be used JAVA_OPTS too? <https://plus.google.com/u/0/113253806461878935497?prsrc=4> 2014/1/27 Christopher Schultz > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA256 > > Арсений, > > On 1/27/14, 9:21 AM, Арсений Зинченко wrote: > > We have a little dispute with

JAVA_OPTS vs CATALINA_OPTS

2014-01-27 Thread Арсений Зинченко
Hi. I'm sorry for so kindly question - but needs experts advice... We have a little dispute with my colleague about using this variables. So: have Windows-box machine. On it - runing few different Java-application, including Tomcat. Needs to set memory for Tomcat other, than for all other Java-

Re: JAVA_OPTS vs CATALINA_OPTS

2014-01-27 Thread Арсений Зинченко
ash: SHA256 > > Арсений, > > On 1/27/14, 10:58 AM, Арсений Зинченко wrote: > > Thanks, Christopher. > > > > OK, what about next: > > > > Set JAVA_OPTS as system variable (for all other applications); and > > create setenv.bat in /bin/ directory with CAT

Re: JAVA_OPTS vs CATALINA_OPTS

2014-01-28 Thread Арсений Зинченко
cat - must use another memory perametrs. So, if I correctly understood - for me better solution will be: 1) set CATALINA_OPTS with Xmx4G etc - in /bin/setenv.bat; 2) set JAVA_OPTS with Xmx1G etc - as system variable. Yep? 2014/1/28 André Warnier > Арсений Зинченко wrote: > >> O

Re: JAVA_OPTS vs CATALINA_OPTS

2014-01-28 Thread Арсений Зинченко
Thanks for your replay, Neven. Eventually - I decided to heed advices and remove JAVA_OPTS at all. So - now using only CATALINA_OPTS in /bin/setenv.bat. 2014/1/28 Neven Cvetkovic > On Tue, Jan 28, 2014 at 4:00 AM, Арсений Зинченко >wrote: > > > > About point 4 - this is mai

Re: ssl without keystorePass in open text in server.xml

2014-01-30 Thread Арсений Зинченко
Why are plain text passwords in the config files? Because there is no good way to "secure" them. When Tomcat needs to connect to a database, it needs the original password. While the password could be encoded, there still needs to be a mechanism to decode it. And since the source to Tomcat is freel

Tomcat && SSL: two issues

2014-01-31 Thread Арсений Зинченко
Hi, people. We have Tomcat with two factor authentication when access to /some/pagerequested. Auth configured with JDBCRealm & Oracle database: Auth requring via web.xml: ^M ^M *^M /some/*^M ^M ^M cert^M ^M ^M CONFIDENTIAL^M ^M ^M ^M

Re: Tomcat && SSL: two issues

2014-01-31 Thread Арсений Зинченко
ing like this... After we re-generate cert exactly in .p12 - problem was solved. So for now only with Chrome browser. P.S. Sorry for errors\typos and thanks for tips :-) 2014-01-31 Christopher Schultz : > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA256 > > Арсений, > > On 1

Using different SSL-connector settings for various Context

2014-02-04 Thread Арсений Зинченко
Hi. Task is - have ability to use HTTP/HTTPS without clientAuth for ROOT, but enable two-factor auth (clientAuth="true" and using trustedstore.jks) for other Context. Can somebody please any tips?

Re: Using different SSL-connector settings for various Context

2014-02-04 Thread Арсений Зинченко
bout how to do it... And I don't see any possibility to make with any other Context options<http://tomcat.apache.org/tomcat-7.0-doc/config/context.html#Context_Parameters>... 2014-02-04 André Warnier : > Арсений Зинченко wrote: > >> Hi. >> >> Task is - ha

Re: Using different SSL-connector settings for various Context

2014-02-04 Thread Арсений Зинченко
which you are > responding. > It's easier to read that way. See below. > > > >> 2014-02-04 André Warnier : >> >> Арсений Зинченко wrote: >>> >>> Hi. >>>> >>>> Task is - have ability to use HTTP/HTTPS without clientAuth for

Add certificate without Tomcat restart

2014-03-03 Thread Арсений Зинченко
Hi. We have two-side authentification on our Tomcat: keystoreFile="/home/someuser/apache-tomcat-5.5.23/conf/.ssl/somealias.jks" keyAlias="somealias" keystorePass="somepass" truststoreFile="/home/someuser/apache-tomcat-5.5.23/conf/.ssl/trustcacerts.jks"

Tomcat && log4j vs MySQL

2014-04-07 Thread Арсений Зинченко
Hi. Question are not exactly about Tomcat - but I hope somebody can help with it. So - we have Tomcat running. Apllication in it use log4j to write logs. log4j configured to use syslogd daemon and syslogd uses MySQL to store logs. Problem is that when we have any error in log - it writes it wit

Re: How to monitor performance of tomcat

2014-04-08 Thread Арсений Зинченко
Hi. We use JavaMelody for "moment performance checks" on test box and Zabbix monitoring system to have whole history. Zabbix can use JMX connection to Tomcat instance and have set of included teamplates, for example - number of threads, current memory usage, gzip usage and so on. Main virtue of Za

Re: where find documentation

2014-05-16 Thread Арсений Зинченко
I used this one: http://wiki.metawerx.net/wiki/Web.xml 2014-05-15 16:05 GMT+03:00 Francesco Viscomi : > Hi all, > i'm try to find a documentation that describe every tag inside the web.xml > file, but i wasn't able to find anything about that on > http://tomcat.apache.org/tomcat-5.5-doc/config/

CATALINA_PID != real PID

2014-05-23 Thread Арсений Зинченко
Hi, guys. I set: $ export CATALINA_PID="$CATALINA_HOME/conf/catalina.pid" Started *Tomcat*: $ ./bin/startup.shUsing CATALINA_BASE: /home/tomcats/apache-tomcat-7.0.53Using CATALINA_HOME: /home/tomcats/apache-tomcat-7.0.53Using CATALINA_TMPDIR: /home/tomcats/apache-tomcat-7.0.53/tempUsing JRE_HOM

Re: CATALINA_PID != real PID

2014-05-23 Thread Арсений Зинченко
Hi, Leon. Thanks for replay. Don't know why - but now it works good :-)

Tomcat 5.5 vs 7.0 SSL

2014-06-02 Thread Арсений Зинченко
Hi. Faced with very odd behavior of Tomcat 7... Have two instances on same box - Tomcat 5.5 and Tomcat 7. Both have same configuration - first from 5.5: Next - from 7.0: Also - both configured for CLIENT-CERT authentification (same applicaion with same web.xml). In browser install

Tomcat autodeploy doesn't return actual files via HTTP

2014-06-03 Thread Арсений Зинченко
Hi. Faced with little bit odd behavior of Tomcat 7 && Java 1.6. Old file is: $ curl http://localhost:8084First file I mean - *war-file* contains only one index.jsp page with text "First page": $ jar tf ../app-application/APP.war META-INF/ META-INF/MANIFEST.MF index.jsp Tomcat's server.xml has

Tomcat JBDCRealm with Oracle DB

2013-12-16 Thread Арсений Зинченко
Hi. I configured two JDBCRealm's - for MySQL and Oracle databases. Both DB have same tables with same content: mysql> show tables; +--+ | Tables_in_tmc_access | +--+ | user_roles | | users| +--+ mysql> desc us

Re: Tomcat JBDCRealm with Oracle DB

2013-12-16 Thread Арсений Зинченко
No errors, but I already found problem cause - forgot run `commit` in SQLPLUS after added rows with username&role. :-( Thanks for replay. 2013/12/16 André Warnier > Арсений Зинченко wrote: > >> Hi. >> >> I configured two JDBCRealm's - for MySQL and Oracle d

Unexpanded WAR and FileNotFoundException: META-INF/MANIFEST.MF

2014-07-23 Thread Арсений Зинченко
Hi. We have Tomcat with: While startup I got ERROR in log: 14-07-22 15:13:01,551+0100 > 289 INFO [com.***.listener.PropertiesConfigListener] (main:) Adapter is a log4j adapter ?org.slf4j.impl.Log4jLoggerAdapter 14-07-22 15:13:01,552+0100 > 290 ERROR [com.***.listener.PropertiesCon

Re: Unexpanded WAR and FileNotFoundException: META-INF/MANIFEST.MF

2014-07-23 Thread Арсений Зинченко
Hi, Chris. Thanks for replay. Biggest problem is that I'm not our application developer >.< 2014-07-23 17:26 GMT+03:00 Christopher Schultz : > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA256 > > Арсений, > > On 7/23/14, 10:14 AM, Арсений Зинченко w