RE: Tomcat and IP transparency

2013-07-31 Thread Ilya Kazakevich
Hello, They may use RemoteIpValve to fetch "real" ip from "x-forwarded-for" and set it to "remote_addr" where getRemoteAddr will get it. Ilya Kazakevich, Developer JetBrains Inc http://www.jetbrains.com "Develop with pleasure!" >-Original Mess

RE: forward request by changing the port in request url

2013-06-13 Thread Ilya Kazakevich
Hello, I do not think destination NAT is good solution because it works on TCP layer and knows nothing about domain names and URLs (both are application level (http) knowledge). So you would need to use separate IP/port for that and in case you have it you can bind tomcat there directly) So appl

RE: forward request by changing the port in request url

2013-06-13 Thread Ilya Kazakevich
t answers to nginx and it forwards it to you. That is pretty common solution. Ilya Kazakevich, Developer JetBrains Inc http://www.jetbrains.com "Develop with pleasure!" >-Original Message- >From: Anil Goyal -X (anigoyal - Aricent Technologies at Cisco) >[mailto:anig

RE: Tomcat and PostgreeSQL

2013-06-06 Thread Ilya Kazakevich
I've never heard about it but looks like JDBC PostgreSQL driver has memory leak. What version of driver do you use? Try to google "postgre SQL JDBC memory leak" Actually any memory leak should be investigated using profiler tool. Google for "java profile memory leaks" Ilya. >-Original Messag

RE: Keystore error trying to use SSL JSSE

2013-06-06 Thread Ilya Kazakevich
>-Original Message- >From: Tim Colletto [mailto:tcolle...@cra.com] >Sent: Thursday, June 06, 2013 9:36 PM >To: Tomcat Users List >Subject: RE: Keystore error trying to use SSL JSSE >>${user.home} I think is for linux? I tried quickly %USERPROFILE%/keystore No, this is for Java: http://do

RE: Keystore error trying to use SSL JSSE

2013-06-06 Thread Ilya Kazakevich
Hello, 1) keystoreFile (letter F should be in upper case) 2) Use / instead of \ 3) Use ${user.home} instead path (and I am not sure c:\ works, you probably need file:///c:/ but ${user.home} is better anyway) Ilya Kazakevich, >-Original Message- >From: Tim Colletto [mailto:

Mapping security role outside of servlet specification

2013-06-05 Thread Ilya Kazakevich
Hello, I use "probe" app for several tomcats. It's security model is based on servlet API security: security roles and constraints are provided in web.xml and mapped for each servlet it has. I use JNDIRealm to authenticate users via LDAP (actually AD is used). I want to grant access to Probe on "T

RE: running separate isolated jvm's for each web app

2012-01-16 Thread Ilya Kazakevich
Tomcat itself runs inside JVM, so you need 2 JVMs each with tomcat and your app. Separating apps is a good practice because of classpath issues Ilya Kazakevich, Developer JetBrains Inc http://www.jetbrains.com "Develop with pleasure!" >-Original Message- >From: S Ahmed

Tomcat JMX/RMI: How server interface is choosen?

2011-12-08 Thread Ilya Kazakevich
to the client? Is it possible to use JMX directly over the one TCP port with out of all that RMI stuff? Ilya Kazakevich, Developer JetBrains Inc http://www.jetbrains.com "Develop with pleasure!" - To unsubscribe, e-m

RE: hi

2011-12-05 Thread Ilya Kazakevich
>>Don't use it. Why build applications on a platform you have doubts >>about? I think you should build all of your applications using snobol. >>See http://en.wikipedia.org/wiki/SNOBOL for websites. I do prefer Ook, but not sure if there are good web frameworks for it: http://www.dangermouse.net/eso

RE: hi

2011-12-02 Thread Ilya Kazakevich
Navigate to "Windows Service Installer" link and click it. Ilya Kazakevich, Developer JetBrains Inc http://www.jetbrains.com "Develop with pleasure!" -Original Message- From: srilaxmi deevela [mailto:deevelasrila...@gmail.com] Sent: Friday, December 02, 2011 10:00

RE: hi

2011-12-02 Thread Ilya Kazakevich
http://tomcat.apache.org/download-55.cgi Ilya Kazakevich, Developer JetBrains Inc http://www.jetbrains.com "Develop with pleasure!" -Original Message- From: srilaxmi deevela [mailto:deevelasrila...@gmail.com] Sent: Friday, December 02, 2011 9:56 PM To: users@tomcat.apache.o

RE: [OT] Re: Maximum memory that can be assigned to Tomcat on windows platform

2011-11-30 Thread Ilya Kazakevich
>>Does the fact of having a system with a 64-bit CPU (and OS) necessarily (or usually) imply >>that data transfers between CPU and RAM happen also 64-bit in parallel ? That depends on front bus width. Modern PCs has 64-bit bus AFAIK. In "64-bit CPU" 64 is register size and nothing else (although

RE: block direct tomcat

2011-11-30 Thread Ilya Kazakevich
Just disable HTTP connector (comment it in server.xml). You can use firewall to protect AJP port from remote clients too. Ilya Kazakevich, Developer JetBrains Inc http://www.jetbrains.com "Develop with pleasure!" -Original Message- From: cpanon [mailto:cpa...@yahoo.com] Sent:

RE: Maximum memory that can be assigned to Tomcat on windows platform

2011-11-30 Thread Ilya Kazakevich
esses, there's no need for >the overhead of 64-bit even if you have 16GiB or more. You can run 32bit apps on 64bit windows (that's called WoW64). Processor and Windows support it and it works pretty well. Ilya Kazakevich, Develope

RE: Grabbing the user's info

2011-11-16 Thread Ilya Kazakevich
Hello, >As Ilya hints, you'll have to use NTLM to get this to work. IIRC, this >requires that you use IIS with mod_jk to capture the authentication >information and forward it over to Tomcat. If you want to be able to >use NTLM for authentication into your webapp, you'll need to use a >specific ty

RE: Trying to get Tomcat 6 running as a Windows service

2011-11-16 Thread Ilya Kazakevich
http://www.coderanch.com/t/450781/Tomcat/Tomcat-Windows-Server-Permissions Ilya Kazakevich, Developer JetBrains Inc http://www.jetbrains.com "Develop with pleasure!" -Original Message- From: Martin O'Shea [mailto:app...@dsl.pipex.com] Sent: Wednesday, November 16,

RE: Trying to get Tomcat 6 running as a Windows service

2011-11-16 Thread Ilya Kazakevich
Which file do you run? "service.bat" ? What do you have in your event logs? Which account do you use for service? Does it have requried rights? Ilya Kazakevich, Developer JetBrains Inc http://www.jetbrains.com "Develop with pleasure!" -Original Message- From:

RE: Include NEtwork path into Tomcat - urgent

2011-11-15 Thread Ilya Kazakevich
should log any unsuccessful authentication). Use tools like "wireshark / winpcap " to sniff tomcat-to-remote-machine conversation to see what has happened Ilya Kazakevich, Developer JetBrains Inc http://www.jetbrains.com "Develop with pleasure!" -Original Message- From: A

RE: Include NEtwork path into Tomcat - urgent

2011-11-15 Thread Ilya Kazakevich
You need user ssesion to access windows station via SMB anyway. You can set this script as "log in script" using group policies in windows for the user your tomcat runs as. Ilya Kazakevich, Developer JetBrains Inc http://www.jetbrains.com "Develop with pleasure!" -

RE: Include NEtwork path into Tomcat - urgent

2011-11-15 Thread Ilya Kazakevich
Not sure Java IO supports windows UNC. Try to do the following: 1) mount this share as disk: (in cmd type "net use z: \\storage\share\pictures") 2) configure tomcat to work with "z:\" Ilya Kazakevich, Developer JetBrains Inc http://www.jetbrains.com <http://www.jetbrai

RE: Grabbing the user's info

2011-11-14 Thread Ilya Kazakevich
i.org/wiki/ActiveDirectoryIntegration Ilya Kazakevich, Developer JetBrains Inc http://www.jetbrains.com "Develop with pleasure!" -Original Message- From: Josh Gooding [mailto:josh.good...@gmail.com] Sent: Monday, November 14, 2011 10:19 PM To: Tomcat Users List Subject: Grabbing

RE: SSL Tomcat 6 & 7

2011-11-13 Thread Ilya Kazakevich
implementation) Servlet does not have to care about SSL/TLS. Tomcat's connector implements it. Please read http://tomcat.apache.org/tomcat-6.0-doc/ssl-howto.html to configure it. Ilya Kazakevich, Developer JetBrains Inc http://www.jetbrains.com "Develop with pleasure!" -Original Message

RE: Log exception logging

2011-11-11 Thread Ilya Kazakevich
>>A Servlet itself is always executed by >>Tomcat (if you have ever seen the stacktraces printed by servlets). I understand that servlet runs in tomcat's thread-pool. >>It does not prevent Servlet form using proper logging framework, or >>those old log() methods in Servlet API. But when my servl

RE: Log exception logging

2011-11-11 Thread Ilya Kazakevich
>Do you know there are ~30 different versions of 6.0.x ? 6.0.32 >What docs? http://tomcat.apache.org/tomcat-6.0-doc/logging.html#Console I believe uncought exception should be printed to stderr as it does by java.lang.ThreadGroup.uncaughtException. That is my tomcat misconfiguration not a tom

RE: Log exception logging

2011-11-11 Thread Ilya Kazakevich
. Ilya Kazakevich, Developer JetBrains Inc http://www.jetbrains.com "Develop with pleasure!" -Original Message- From: Konstantin Kolinko [mailto:knst.koli...@gmail.com] Sent: Friday, November 11, 2011 8:17 PM To: Tomcat Users List Subject: Re: Log exception logging 2011/

Log exception logging

2011-11-11 Thread Ilya Kazakevich
engine to send me emails and save trace to files and so on. Thanks. Ilya Kazakevich, Developer JetBrains Inc http://www.jetbrains.com "Develop with pleasure!" - To unsubscribe, e-mail: users-unsubscr...@tomcat.apac

Log4j per context admin managable configs?

2011-10-06 Thread Ilya Kazakevich
/log4j.properties I can't put log4j directly in tomcat so all apps would use one config (and it is not what I want). I can't put a copy to the each .war file too because admin would not be able to reconfigure them. Does there is a nice solution (with out of custom code)? Thank you. Ilya Kazakevich,

GZIP: pjl-comp-filter vs build-in compression engine

2009-04-24 Thread Ilya Kazakevich
Hello. Http connector is able to compress data ("compress" param), right? So, why filters like pjl-comp-filter exist? Did anybody compare them? Any benchmarks or pitfalls? I am asking because some people in our company uses pjl, and I do not understand why do I need some third-party solution

RE: Which user executes JSP in Tomcat?

2009-04-03 Thread Ilya Kazakevich
Which code exactly you use to create directory? -Original Message- From: raga2 [mailto:ragabo...@gmail.com] Sent: Friday, April 03, 2009 2:44 PM To: users@tomcat.apache.org Subject: Re: Which user executes JSP in Tomcat? Thanks guys for the reply. ps -aef tells me it's root running to

RE: Which user executes JSP in Tomcat?

2009-04-03 Thread Ilya Kazakevich
Which user tomcat runs at? BTW, you do not need JSP to create directory and file. JSP is for template tasks only. Use simple servlet instead. -Original Message- From: raga2 [mailto:ragabo...@gmail.com] Sent: Friday, April 03, 2009 2:11 PM To: users@tomcat.apache.org Subject: Which user

RE: redirection

2009-03-31 Thread Ilya Kazakevich
You need some front-end proxy. Apache web-server could do it. Squid could (AFAIK). Nginx could do it also. -Original Message- From: Melanie Pfefer [mailto:melanie_pfe...@yahoo.co.uk] Sent: Tuesday, March 31, 2009 8:59 PM To: users@tomcat.apache.org Subject: redirection Hello I have

RE: WebApp configuration best practice?

2009-03-31 Thread Ilya Kazakevich
Use context, and IT would be able to configure your app outside of war file. http://tomcat.apache.org/tomcat-6.0-doc/config/context.html -Original Message- From: Pid [mailto:p...@pidster.com] Sent: Tuesday, March 31, 2009 2:58 PM To: Tomcat Users List Subject: Re: WebApp configuration

RE: very off topic marketing question

2009-03-20 Thread Ilya Kazakevich
> For starters, I'd point out the jsp page compiler does this as well... 1) BTW, you do not have to use JSP. I have a very big app, which gives XML as output. I do not need JSP to generate XML, so I use sevlet output directly. 2) You can precompile JSP (well, you can precompile PHP too, see Zend

FW: very off topic marketing question

2009-03-20 Thread Ilya Kazakevich
Number of users is not the only one thing, you need to think about, when you are choosing technology. PHP is a _scripting_ language with out of _static typization_, multi-threading, full OOP support and its API is pretty weak too. Also it is _not_ designed for servlet ideology: each request runs s

RE: Newline doesn't work

2009-03-18 Thread Ilya Kazakevich
Mighty, Here is good and small HTML tutorial, which I advice you to read: http://www.w3schools.com/html/default.asp -Original Message- From: Caldarale, Charles R [mailto:chuck.caldar...@unisys.com] Sent: Wednesday, March 18, 2009 7:41 PM To: Tomcat Users List Subject: RE: Newline doesn

RE: Installing Tomcat on Windows

2009-03-17 Thread Ilya Kazakevich
Install it as windows service and make sure you set it to "automatic" start mode. http://tomcat.apache.org/tomcat-6.0-doc/windows-service-howto.html You should also check logs (catalina.out). Maybe it starts, but stops because of errors. -Original Message- From: Dharani [mailto:vishgnan

RE: Tomcat 6 multiple hosts howto

2009-03-16 Thread Ilya Kazakevich
>>I used Tomcat 5.5 with multiple elements in the server.xml Now I read that this has to be done differently in Tomcat No, it is not. You should have one element for every virtual host you need. http://tomcat.apache.org/tomcat-6.0-doc/config/host.html -Original Message- From: Jeroen K

RE: tcnative-1.dll

2009-03-13 Thread Ilya Kazakevich
Check your stdout (or catalina.out), it should have something like org.apache.coyote.http11.Http11AprProtocol init. Http11AprProtocol means you use APR, Http11Protocol -- no. -Original Message- From: markov.ya...@neftochim.bg [mailto:markov.ya...@neftochim.bg] Sent: Friday, March

RE: request.getRemoteAddr() vs. request.getHeader("REMOTE_ADDR")

2009-03-10 Thread Ilya Kazakevich
Some proxies send client IP as "X-FORWARDER-FOR" header. I am not sure, but probably tomcat uses it instead of REMOTE_ADDR in getRemoteAddr()? That is just a guess. Kazakevich Ilya, MCP, SCJP -Original Message- From: Christopher Schultz [mailt

RE: Tomcat Memory Leaks

2009-03-06 Thread Ilya Kazakevich
Use profiler. Take a look at: http://www.yourkit.com/overview/index.jsp It is a good profiler with manual which will teach you how to use yourkit to find memory leaks. Kazakevich Ilya, MCP, SCJP -Original Message- From: Black Friday [mailto:bf

RE: tomcat restart remotely

2009-02-26 Thread Ilya Kazakevich
You can use VPN than:) But RDP (remote desktop) is better, because RPC calls used in all MMC (management consoles) are designed for local network and work pretty slow on the Internet. Remote desktop connection (mstsc) is the best solution, I think. -Original Message- From: Laura Bartolo

RE: Question

2009-02-25 Thread Ilya Kazakevich
Hello. Give us: 1) Tomcat versions 2) log files (catalina and localhost) 3) URLs of these links How do you run tomcat? What command do you use? -Original Message- From: koppisetty bhavani naga satish [mailto:kbnsat...@gmail.com] Sent: Wednesday, February 25, 2009 9:46 PM To: users@to

Context in [engine]/[host]/[app].xml and .war deployment

2009-02-18 Thread Ilya Kazakevich
Hello, I want to implement the following scenario: Developer creates .war file, which expects all config to be in context. He sends this file to IT guy who should create [engine]/[host]/[app].xml with all config he need, and copy .war file to webapps. Tomcat then should depoly this app (or re

RE: Tomcat--> Web Server or Web Container?

2008-12-10 Thread Ilya Kazakevich
Hi, Web-server is a tool, which handles HTTP requests. Apache is web-server. Microsoft IIS is web-server. Thttpd is web-server too. Servlet-container (according to specification of servlets) is something, that runs servlets in special environment. Web-server may work with CGI or static pages or