Re: BufferOverflowException in AjpNioProcessor

2011-10-31 Thread Konstantin Kolinko
(e.g. I think it applies to the background tasks thread) where thread death can be more fatal. Best regards, Konstantin Kolinko - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org

Re: Filter by HTTP_REFERER

2011-10-31 Thread Konstantin Kolinko
2011/10/31 Ricardo Bayley : > Hi folks, > > I am trying to filter access to my webapp by the HTTP_REFERER > I thought this could be achieved with the Valve Componenent using the > Remote Host Filter such as No. This filter has different purpose (you have read the docs?). You can always write your

Re: Rollback in Tomcat7 under parallel deployment

2011-10-31 Thread Konstantin Kolinko
ndeployment here. Best regards, Konstantin Kolinko - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org

Re: cannot read complete HTTP request body. It reads only 8192 characters

2011-11-01 Thread Konstantin Kolinko
lla/show_bug.cgi?id=42727 "CoyoteReader readLine returns null for some post request bodies that are a multiple of MAX_LINE_LENGTH in size" but it should have been fixed in 5.5.27 and thus in 5.5.28 if that is the version that your customer is using. Best regards, Konstant

Re: Tomcat 5.5.26 running 'select_user' for every transaction

2011-11-02 Thread Konstantin Kolinko
d of life in less than a year from now. Best regards, Konstantin Kolinko - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org

Re: Tomcat OOM errors..

2011-11-03 Thread Konstantin Kolinko
t; XX:MaxPermsize=512m  ?? >> > > -Xmx only affects the heap, and here you have an OOM at the permgen > level, so yes you need to use -XX:MaxPermSize. Also consider fixing whatever leaks your PermGen memory Some information is here: http://wiki.apache.org/tomcat/MemoryLeakProtection Be

Re: Vulnerability Remediation

2011-11-04 Thread Konstantin Kolinko
is "ViewVC" program that displays Subversion repository that contains the source code. That page shows what files were changed in revision #1162959 and what the differences were. Best regards, Konstantin Kolinko

Re: o Tomcat alter the page encoding for JSP file created via Netbeans 7.01

2011-11-05 Thread Konstantin Kolinko
your HTML tag below. > > > > I'd recommend to use so that Content-Type HTTP header and the above tag always have the same value. Best regards, Konstantin Kolinko - To unsubscribe, e-mail: users-unsub

Re: SSL connect to APR fails - "bad version"

2011-11-06 Thread Konstantin Kolinko
pported. Note that - There were several security fixes in OpenSSL since that version that you are using. - You may try googling for your error message. It is mentioned a lot of times. - You are not mentioning what version of Tomcat x.y.z you are using. - There might be some messages in

Re: making security constraints configureable

2011-11-06 Thread Konstantin Kolinko
amp; authorization instead of Tomcat. I'd advise against using BASIC auth in public internet, unless the channel is protected with HTTPS. > What we did so far was, that we excluded everyone via web.xml: > You can automate the above. If you pack your war file using Ant, you can use ta

Re: Catalina logs error

2011-11-07 Thread Konstantin Kolinko
2011/11/7 celtic man : > > 12:09:50,399 ERROR [ThreadLocalFilter] Error with web > request.org.apache.jasper.JasperException: javax.servlet.ServletException: > javax.servlet.jsp.JspException: Wildcard term count limit exceeded > > > What needs to be done ?? There is no such message in Tomcat code.

Re: Trouble running TC8 trunk

2011-11-08 Thread Konstantin Kolinko
running the startup scripts? (catalina.sh should print their values when starting). Maybe try good old "rm -rf output" instead of Ant clean? Last time I cleanly recompiled it was yesterday (to confirm brokenness in the manager webapp - see elsethread), and all was fine. Best regards,

Re: Trouble running TC8 trunk

2011-11-09 Thread Konstantin Kolinko
CC'ing you to be sure of delivery. There are public searchable archives on the web if you are wondering whether the mail reached the list. Maybe there was some trouble at apache.org with delivering users@ emails to your subscription address? Best regards,

Re: Programmatically updating the keystore Tomcat uses

2011-11-10 Thread Konstantin Kolinko
ming. (I do not remember whether they are restartable, but it is worth trying). JMX support is better in Tomcat 7, up to allowing you to create and configure Tomcat components through JMX. Also IIRC there might be some hooks in the connector, like using cus

Re: Log exception logging

2011-11-11 Thread Konstantin Kolinko
2011/11/11 Ilya Kazakevich : > > Does there is a way to make tomcat log exception (with stacktrace) thrown by > servlet? > I do not want my app to do that because I like the way tomcat handles > exceptions: 500 error and error page is ok, but I need exception stacktrace > to be logged so I would be

Re: Log exception logging

2011-11-11 Thread Konstantin Kolinko
2011/11/11 Ilya Kazakevich : > I am running tomcat 6.0 Do you know there are ~30 different versions of 6.0.x ? > Docs say it should log them into stdout but it does not. My stdout starts > with: What docs? > .. > INFO: Initializing Coyote HTTP/1.1 on http-8080 > 11.11.2011 20:18:36 org.apache.c

Re: Log exception logging

2011-11-11 Thread Konstantin Kolinko
aces printed by servlets). It does not prevent Servlet form using proper logging framework, or those old log() methods in Servlet API. Best regards, Konstantin Kolinko - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org F

Re: build.xml:2313: Compile failed; see the compiler error output for details

2011-11-12 Thread Konstantin Kolinko
ANT_HOME variables before running it. To compile Tomcat 7 you need Java 6 SDK. 2. Do not forget to create build.properties file and redefine base.path property there. That is mentioned in RUNNING.txt. 3. If you just need to run Tomcat, download a binary version of it + see RUNNING.txt. Compil

Re: Apache Tomcat 6.0.34

2011-11-15 Thread Konstantin Kolinko
OTE]" thread on dev@. Best regards, Konstantin Kolinko - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org

Re: Apache Tomcat 6.0.34

2011-11-16 Thread Konstantin Kolinko
2011/11/16 Konstantin Kolinko : > 2011/11/16 Angus Yiu : >> >> >> Hello, >> >> We hit Authentication bypass and information disclosure CVE-2011-3190   >> <http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2011-3190> in tomcat >> 6.0.32 >>

Re: Tomcat 7, JAX-WS 2.2.5

2011-11-17 Thread Konstantin Kolinko
case there is nowhere to start. 4. Consider running with org.apache.catalina.connector.RECYCLE_FACADES=true http://tomcat.apache.org/tomcat-7.0-doc/config/systemprops.html That option will make your configuration more secure and can reveal seve

Re: Adding SSL information into access log

2011-11-17 Thread Konstantin Kolinko
e minor concerns. > If you want, you can contribute it to the FAQ, http://wiki.apache.org/tomcat/FAQ/Logging That code does not need to be production quality. Best regards, Konstantin Kolinko - To unsubscribe, e-mail: u

Re: Problem with wmv file in tomcat 7

2011-11-18 Thread Konstantin Kolinko
gin form page as the response. I think AccessLog will show how many bytes were transferred. Best regards, Konstantin Kolinko - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org

Re: APR SSL error: "Socket bind failed: [98] Address already in use"

2011-11-19 Thread Konstantin Kolinko
up.Bootstrap.start(Bootstrap.java:289) >        at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414) What INFO messages are before this one? Maybe you can post your entire server.xml (without comments and passwords)? Best regards, Konstantin Kolinko -

Re: APR SSL error: "Socket bind failed: [98] Address already in use"

2011-11-21 Thread Konstantin Kolinko
2011/11/21 Eric Kemp : > Below is my entire server.xml (minus commented lines) > Good to know. Can you post the logs? (catalina..log file). Clear them first then try starting Tomcat. Best regards, Konstantin Kolinko --

Re: How to get the tomcat internal log out?

2011-11-21 Thread Konstantin Kolinko
ou have to remove log4.jar from Tomcat if you want JULI to work). 2. Why are you trying to start Catalina? The entry point is "org.apache.catalina.startup.Bootstrap". 3. You need to use -Djava.util.logging.manager= and -Djava.util.logging.config.file= vm options to configure JULI, like catalina.sh/catalina.bat

Re: RemoveIpValve and valve execution order

2011-11-21 Thread Konstantin Kolinko
      prefix="${instanceId}_access." suffix=".log" >               pattern="%h %{Host}i %t "%r" %s %b > %{klm_tracking_id}c %S %D" /> > Best regards, Konstantin Kolinko - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org

Re: Tomcat 7 not working with javax.net.ssl.keyStorePassword property

2011-11-23 Thread Konstantin Kolinko
2011/11/23 Satish Mittal : > > This used to work in tomcat 5. However in tomcat 7, the same > webapp/keystore throws the following error: You must always mention the full version number. There are ~20 different versions of Tomcat 7.0.x, and even more of 5.0.x/5.5.y ---

Re: Babysitting ThreadLocals

2011-11-23 Thread Konstantin Kolinko
or logging purposes (e.g. in org.apache.juli.OneLineFormatter), but that looks like an overkill for your use case. Best regards, Konstantin Kolinko - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org

Re: Patching a jar in a wepabb

2011-11-23 Thread Konstantin Kolinko
rtualWebappLoader class that can be used to inject additional jars into webapp, but note that is an advanced tool and it is specific to Tomcat. Best regards, Konstantin Kolinko - To unsubscribe, e-mail: users-unsubscr...@tomcat.ap

Re: How to get the tomcat internal log out?

2011-11-24 Thread Konstantin Kolinko
omewhere, there would not be much effort in improving 5.5 documentation, because Tomcat 5.5 is near its end of life. Best regards, Konstantin Kolinko - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For add

Re: Mysterious request edirect with value exchange

2011-11-25 Thread Konstantin Kolinko
hould log what redirect URL is actually sent to the client in Location response header. Best regards, Konstantin Kolinko - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org

Re: Tomcat 7 not working with javax.net.ssl.keyStorePassword property

2011-11-25 Thread Konstantin Kolinko
avax.net.ssl.keyStorePassword}" That will work in all current Tomcat versions, including 5.5 as well. Best regards, Konstantin Kolinko - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org

Re: Minimal persistent storage for a webapp

2011-11-25 Thread Konstantin Kolinko
is cleared on redeployments (work/appname in Tomcat), (b) java.io.tmpdir as well as user home directory. (a) is required by Servlet spec and there is standard ServletContext attribute that provides path of that directory. See ServletContext.TEMPDIR constant. > Snoracle thinking J

Re: Minimal persistent storage for a webapp

2011-11-26 Thread Konstantin Kolinko
2011/11/26 Benson Margulies : > On Fri, Nov 25, 2011 at 4:36 PM, Konstantin Kolinko > wrote: >> 2011/11/26 Benson Margulies : >>> >>> In a web application, I'd like to store a bit of data without >>> configuring a database, or, indeed anything that ha

Re: System.out is not going to catalina.out

2011-11-27 Thread Konstantin Kolinko
e rest out. > Just guessing: a) you are not using the configuration that you are think that you are using b) you do not have enough rights or disk space to write to catalina.out file You apparently are using 3-rd party repackaged and outdated distribution of Tomcat. I'd be better to download proper 6.0.33 from tomcat.apache.org and install it. Best regards, Konstantin Kolinko - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org

Re: Problem starting Tomcat + APR on port 80 using jsvc with setuid

2011-11-28 Thread Konstantin Kolinko
may have better luck with 7.0.x. Lifecycle handling was improved in 7.0. In 7.0.x there is explicit "bindOnInit" attribute in connectors. Best regards, Konstantin Kolinko - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org

Re: timeout exception is ignored?

2011-12-01 Thread Konstantin Kolinko
ervlet 3.0 spec) In latest 7.0 release I added indication of such failures using a custom request attribute - see changelog. This feature will be in upcoming 6.0.35 as well. Best regards, Konstantin Kolinko - To unsubscribe,

Re: Character set issue

2011-12-04 Thread Konstantin Kolinko
pe HTTP header sent by server and b) in META tag in HTML text have _literally_ the same value. If they both are present and they do not match, odd things may happen in "non-compliant" browsers. 3. A servlet or JSP page called as "include" cannot change the content type (and thus the charset). The <%@page contentType=".."%> directive will be ignored. Best regards, Konstantin Kolinko - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org

Re: Name comp is not bound in this Context

2011-12-04 Thread Konstantin Kolinko
y errors or warnings logged during Tomcat startup and webapp startup? Best regards, Konstantin Kolinko - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org

Re: Tomcat 7 Valve not logging correct response size

2011-12-04 Thread Konstantin Kolinko
hat happens with 7.0.23? 2. Are you sure that the file was delivered to the client? Was the time taken to process the request greater than zero? Was ir response 200 OK, or 304 Not modified? In the latter case the file is not se

Re: Character set issue

2011-12-05 Thread Konstantin Kolinko
ings happens and the request encoding must already be set. It is application's responsibility to set the request encoding. It defaults to ISO-8859-1 if not set explicitly. (Maybe it will parse charset value if that is specified in Content-Type header of request, but most browsers do not include charset in their request, so that is irrelevant). Note, that there is standard "SetCharacterEncodingFilter" in Tomcat 7. (In 7.0 it is in o.a.c.filters package, in 6.0 and 5.5 it is examples webapp). Once again, http://wiki.apache.org/tomcat/FAQ/CharacterEncoding Best regards, Konstantin Kolinko - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org

Re: Character set issue

2011-12-06 Thread Konstantin Kolinko
2011/12/6 Christopher Schultz : > On 12/4/11 8:02 PM, Konstantin Kolinko wrote: >> Make sure that content type and charset value in a) Content-Type >> HTTP header sent by server and b) in META tag in HTML text have >> _literally_ the same value. If they both are present and

Re: Character set issue

2011-12-06 Thread Konstantin Kolinko
2011/12/6 Christopher Schultz : > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > Konstantin, > > On 12/6/11 11:15 AM, Konstantin Kolinko wrote: >> 1. I do not use valves that call getParameter(), so I have not >> seen the need, but the FormAuthe

Re: unpackWARs and antiResourceLocking

2011-12-06 Thread Konstantin Kolinko
ploy the manager webapp). 4. The anti* flags are needed on Windows only. On unixes you can delete files that are kept open so this problem does not exist. Best regards, Konstantin Kolinko - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org

Re: Form Authentication vs. Tomcat Restart

2011-12-07 Thread Konstantin Kolinko
2011/12/7 Jess Holle : > I should have noted that this is with Tomcat 7.0.23, but it seemed unlikely > to be JVM (Java 6 Update 29) or OS (Windows 7) specific. > > Of course given that I found that the documentation clearly states this > behavior, I suspect this is longstanding Tomcat behavior. > >

Re: Form Authentication vs. Tomcat Restart

2011-12-07 Thread Konstantin Kolinko
2011/12/7 Mohammad M. AbuZer : > It should serialize User and Principles nothing more, no need for password. > > On Wed, Dec 7, 2011 at 4:12 PM, Konstantin Kolinko > wrote: > >> 2011/12/7 Jess Holle : >> > I should have noted that this is with Tomcat 7.0.23, but it

Re: Tomcat 7 Valve not logging correct response size

2011-12-09 Thread Konstantin Kolinko
2011/12/9 Antonios Kogias : > On 12/5/2011 9:29 AM, Konstantin Kolinko wrote: >> >> 2011/12/5 Antonios Kogias: >>> >>> Good morning, >>> >>>  I'm using Tomcat 7.0.16 and a Valve in the server.xml file that uses the >>> %B >

Re: LAMP + Tomcat Configuration

2011-12-11 Thread Konstantin Kolinko
;ROOT" webapp. > > I am really confused as what I should be doing next, or even if what I've > done so far was "correct". > > > > The goal is to have "regular" apache answer port 80, and call upon "tomcat" > on port 8080 (or 8009 ajp) as r

Re: Tomcat xerces conflicts and Endorsed,Standards Override Mechanism

2011-12-12 Thread Konstantin Kolinko
t; update of 2.5.6. Best regards, Konstantin Kolinko - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org

Re: dbcp is mixing up connections

2011-12-15 Thread Konstantin Kolinko
2011/12/15 Aitor Garcia | Tempel.es > > I had read all the JNDI & JDBC Official & Unofficial documentation but & only > found than you MUST close the connections. That is why you have to read the Servlet specification, JSP specification, etc. > There insn't references to where to declare var

Re: Logging per webapp per instance

2011-12-20 Thread Konstantin Kolinko
>   separate instance of your webapp if you want to be able to >   sort-out which log came from which source. So, you still >   have to somehow identify these webapps uniquely. > 5. Configure it to write ${catalina.base}/logs. (That is if all we

Re: Tomcat 7.0.23 windows zip CRC failure

2011-12-21 Thread Konstantin Kolinko
file downloads and unpacks OK and matches the MD5 signature. Its size is 8383736 bytes. Its MD5: acd7300e52e567d5fe547a22b451 *apache-tomcat-7.0.23-windows-x86.zip Best regards, Konstantin Kolinko - To unsub

Re: Security Constraints With URL Rewrite filter

2011-12-21 Thread Konstantin Kolinko
ossible to use 3-rd party filters (or a custom filter) as a replacement to container-manager security. Note that you have to explicitly configure filter-mapping to match forwarded or included requests (see the spec). Best regards, Konstantin Kolinko -

Re: [Discussion]Problem passing parameters to a Method ( Looking for incorrect argument Type )

2011-12-21 Thread Konstantin Kolinko
If there are more than one such method, the method selection process is undefined. (...) [/quote] So the method name and the count of parameters is what matters. Best regards, Konstantin Kolinko - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org

Re: [OT] Displaying Time Zones for user preferences

2011-12-21 Thread Konstantin Kolinko
inent (that user types in). The time zone selection is tricky because you select not only current time shift value, but all previous time shift rules for this territory. So if small city was in Area A but in year xx it was administratively moved to Area B with different time shift rules, i

Re: MBean InitialContext() Tomcat query- pls help

2011-12-22 Thread Konstantin Kolinko
r webapp's classloader. When it is invoked from jconsole it might be a separate Thread, not related to your web application. Best regards, Konstantin Kolinko - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org

Re: Servlet Filter Examples

2011-12-23 Thread Konstantin Kolinko
e of wrapping. Is that buffering something special? I do not understand "massive" adjective here. > > I'd also be happy to try my hand at other filters the community thinks > would be generally useful as well as educational. > As a start I'd suggest to file them

Re: response.isCommited() returns false after sendRedirect is called?

2011-12-23 Thread Konstantin Kolinko
redirects to index.jsp). > The spec says about HttpServletResponse.isCommitted(), but your valve is calling org.apache.catalina.connector.Response.isCommitted(). Those are different methods. See o.a.c.connector.ResponseFacade#isCommitted() and Response.isAppCo

Re: Odd NIO connector behavior

2011-12-25 Thread Konstantin Kolinko
d any light?  If not, I can try the JAR or the git >> branch. >> >> >>> Mark >>> >>> - >>> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org >>> For add

Re: java.sql.SQLException: No suitable driver found for in tomcat 6.0.35, is the class loading changed?

2011-12-25 Thread Konstantin Kolinko
t.ComponentLocator.getComponent(ComponentLocator.java:376) >     [java]     at > com.cloud.servlet.CloudStartupServlet.init(CloudStartupServlet.java:46) >     [java]     at javax.servlet.GenericServlet.init(GenericServlet.java:212) > There was 51640: Improve the memory leak prevention for leaks

Re: Security Constraints With URL Rewrite filter

2011-12-25 Thread Konstantin Kolinko
ite. I think that is the easiest. 2) Use client-side redirects, as Chris mentioned. The downside is that it exposes "internal" URLs to clients. 3) Write a Valve that has access to Tomcat internals. YMMV. I think that with a Valve there might be two

Re: Security Constraints With URL Rewrite filter

2011-12-25 Thread Konstantin Kolinko
2011/12/26 Jerry Malcolm <2ndgenfi...@gmail.com>: > Konstantin, > > Thanks for the info.  I think I'm getting close.  As a test, I have created > a valve that just forces a redirect.  It compiled fine.  I registered it > under the 'host' tag next to the other valves in server.xml.  When I send a >

Re: Multiple contexts within a single host not being loaded correctly upon Tomcat restart.?

2011-12-27 Thread Konstantin Kolinko
2011/12/27 Edwards, Dominic : > > > Platform Details: > - > Tomcat 5.5.28 Old.. And 5.5.x branch as a whole is EOL in less than a year. > Operating System: RedHat Enterprise 5 > > > Problem > --- > > Tomcat appears to be mismanaging my web contexts after a restart. It happens

Re: MBean InitialContext() Tomcat query- pls help

2011-12-27 Thread Konstantin Kolinko
gt; On Mon, Dec 26, 2011 at 3:28 PM, Pid * wrote: >> >>> >> >>>> On 26 Dec 2011, at 09:50, S B wrote: >> >>>> >> >>>>> On Sat, Dec 24, 2011 at 6:29 PM, Pid wrote: >> >>>>> >> >>>>&g

Re: 404 Errors for all apps in Tomcat 7.0.23

2011-12-27 Thread Konstantin Kolinko
here. What Java version are you using? (It is a bit odd that the path shown in the log is "C:\Windows\Sun\Java\bin"). Best regards, Konstantin Kolinko - To unsubscribe, e-mail: users-unsubscr...@tomcat.apa

Re: POST form parameter parsing order

2011-12-30 Thread Konstantin Kolinko
gt; 5.5.x does not yet have a release version that includes the fix. > > Something you can do in the meantime is to limit the max POST size to > something less than the default (which is 2MiB)... maybe 100KiB or > whatever will meet y

Re: Question about Tomcat Windows service configuration

2011-12-31 Thread Konstantin Kolinko
ki.apache.org/tomcat/FAQ/Windows > > I tried giving security manager options in the registry but still it doesnt > work. Pls help me out. Cant understand why it works for standalone or not > as a windows service. What do you mean b

Re: Servlet Mapping w/ Error Page

2011-12-31 Thread Konstantin Kolinko
2011/12/31 George Sexton : > I have a servlet mapping for a page named > > /403.html > > I can invoke that URL and get a page as expected. > > In my deployment descriptor, I have an error mapping: > > > 403 > /403.html > > > in my code I have > > if (someCondition) { >    res.sendError(HttpServle

Re: File leak in 7.0.23?

2012-01-02 Thread Konstantin Kolinko
; when ulimit is reached: I wonder whether there were some thread deaths. If that happens the ThreadGroup.uncaughtException() method will print the stacktrace directly into System.err. That is it will be written to catalina.out file (and it wouldn't be written to catalina.log). Best regards,

Re: 7.0.22+ fd leak with APR/native

2012-01-04 Thread Konstantin Kolinko
ar leaks: SocketStatus.ERROR. The if() was added in http://svn.apache.org/viewvc?view=revision&revision=944518 I do not see a reason for this if(). The r944518 says about "running with a SecurityManager" so it should have just added a PrivilegedAction there. Best regards, Konstantin Kolinko - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org

Re: 7.0.22+ fd leak with APR/native

2012-01-04 Thread Konstantin Kolinko
2012/1/4 Konstantin Kolinko : > > 2. The > processSocket(desc[n*2+1], SocketStatus.DISCONNECT); > call just above the fixed line. > > It looks like a NOOP, because processSocket(long,SocketStatus) has an > if() that does not mention SocketStatus.DISCONNECT. > > I think

Re: clarification on how data is streamed and handled by tomcat

2012-01-04 Thread Konstantin Kolinko
2012/1/4 S Ahmed : > Say I have a simple servlet or spring mvc application running on tomcat. > > Tomcat is running as a webserver on port 80. > > A client makes a http POST request to my page www.example.com/submit > > If the client adds a very large file with the POST, does this mean that > when

Re: Tomcat multiple instances runs as service from same exe file

2012-01-06 Thread Konstantin Kolinko
2012/1/6 Khailovsky, Igor : > P- > I investigated these documents before asked the question, but did not find > relevant answer. If you really know answer for my question, please specify it. You cannot run multiple services from the same exe. Moreover, the exe file name is used as a key to look u

Re: Tomcat and LDAP (handling password expiration)

2012-01-06 Thread Konstantin Kolinko
nent that uses the password can be restarted separately or can be managed through JMX). You may want to look here for options of moving the password outside the file: https://wiki.apache.org/tomcat/FAQ/Password Best regards, Konstantin Kolinko -

Re: mod_jk linux binaries

2012-01-06 Thread Konstantin Kolinko
93% full". It will be 100% on January 9th. Best regards, Konstantin Kolinko - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org

Re: 7.0.22+ fd leak with APR/native

2012-01-06 Thread Konstantin Kolinko
hance to run, but because the END event was received by servlet I think that it did run. Best regards, Konstantin Kolinko - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org

Re: 7.0.22+ fd leak with APR/native

2012-01-06 Thread Konstantin Kolinko
2012/1/7 Mark Thomas : > On 06/01/2012 20:13, Konstantin Kolinko wrote: >> 2012/1/6 Mark Thomas : >>>> So it looks that not only the if(), but the whole r944518 change in >>>> AprEndpoint has to be reverted. >>> >>> That looks OK to me. I'll

Re: Tomcat Shutdown

2012-01-06 Thread Konstantin Kolinko
quot;build" date. There were a lot of important fixes since then, including some fixes to the startup scripts as well. > Server number:  ...0 > OS Name:        Linux > OS Version:     2.6.32-32-server > Architecture:   amd64 > JVM Versio

Re: Problem running my webapp with Tomcat 7.0.22.0 Security Manager enabled (Windows Vista)

2012-01-09 Thread Konstantin Kolinko
2012/1/9 : > Hiya, > > I've just turned on Tomcat's Security Manager and (not surprisingly) I'm now > having a problem running my webapp. I know I probably need to specify some > security privileges somewhere, Have you read the docs? > but not sure where - possibly catalina.policy? That file

Re: DB Connection error

2012-01-09 Thread Konstantin Kolinko
2012/1/9 Propes, Barry L : > I think some Oracle desktop installations, like Oracle XE, come with 8080 as > the out-of-the-box default port. AFAIK 8080 was used by Oracle XE for its web-based management console. Using it as a database URL is something new. I'd expect 1521 there. By the way, usin

Re: Tomcat 7 service not starting

2012-01-09 Thread Konstantin Kolinko
also replace tomcat7.exe and tomcat7w.exe, review configuration changes [1] and clear all files from work directory. Do you use tc-native DLL? What OS it is? [1] http://tomcat.apache.org/migration.html Best regards, Konstantin Kolinko --

Re: POST data (single character) cleared when using tomcat 6.0.33 and Character Encoding Filter

2012-01-15 Thread Konstantin Kolinko
ilter makes Tomcat expect that the data (sent by web browser) use certain character encoding. But the web browser does not know that you configured the filter. See FAQ for how to do it properly. Best regards, Konstantin Kolinko - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org

Re: [OT] TC7 + AntCompiler problems with whitespace in pathname

2012-01-17 Thread Konstantin Kolinko
ace for CATALINA_HOME, but bad one for CATALINA_BASE. It is good if you are just using Tomcat installed there with Eclipse IDE (which creates its own CATALINA_BASE), but bad if you are really going to run Tomcat from there. Best regards, Konstantin Kolinko - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org

Re: Tomcat upgradation from 5.5.20 to 5.5.34

2012-01-17 Thread Konstantin Kolinko
2012/1/16 Deepak Mishra : > Dear Sir/Ma'am, > > We are planning to upgrade tomcat from 5.5.20 to 5.5.34. As I have > never done this up-gradation was wondering if we can directly upgrade > from 5.5.20 to 5.5.34 or we need to go step by step. Also can you > please provide me the link to download the

Re: Tomcat 7 & JDK 7 access permissions: error or bug?

2012-01-18 Thread Konstantin Kolinko
e access log (%I) Maybe you can find what requests were handled by those threads before the failure starts to occurs. Thus far I do not observe any issues with Tomcat 7.0.25, JDK 1.7.0. Best regards, Konstantin Kolinko - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org

Re: Multiple Comet Requests to the Same Server, from the Same Client

2012-01-18 Thread Konstantin Kolinko
2012/1/18 William Speirs : > I have a basic CometProcessor servlet implemented, and everything appears > to work as expected, except for one small issue: I cannot make multiple > requests from the same client to the same server. > > My servlet simply sends messages to the client as they come in (th

Re: Tomcat 7 - java.lang.NoClassDefFoundError: Could not initialize class javax.servlet.http.Cookie

2012-01-20 Thread Konstantin Kolinko
its initialization failed. I wonder though why it is not an instance of ExceptionInInitializerError. [1] http://tomcat.apache.org/tomcat-7.0-doc/security-manager-howto.html Best regards, Konstantin Kolinko - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org

Re: CVE-2012-0022 details

2012-01-21 Thread Konstantin Kolinko
ustom attribute in a Request and can be dealt with in an application. A new standard filter was added that uses this new feature: FailedRequestFilter. Best regards, Konstantin Kolinko - To unsubscribe, e-mail: users-unsubscr

Re: Upgrading Tomcat need some info

2012-01-25 Thread Konstantin Kolinko
ty pool implementation). >  Is there a place that I can go to > look through the changes?  I implemented TC6 with 7's connection pool a few > years back, and I cannot remember the reason why or if there were > improvements.Any information would

Re: Tomcat memory requirements

2012-01-25 Thread Konstantin Kolinko
nnectors are configured to have? Note that each system Thread needs some memory for its stack. Best regards, Konstantin Kolinko - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org

Re: Tomcat 7 documentation weaknesses

2012-01-26 Thread Konstantin Kolinko
le who use Tomcat occasionally, or > for beginners.  Maybe this explains why a lot of people come to this list > with questions which are already answered somewhere in the on-line > documentation, but on pages which they were not able to find. > > And I believe that a search box on the

Re: servers @apache.org down ?

2012-01-26 Thread Konstantin Kolinko
nows about it but there is very little > we can do apart from wait for the problems to be fixed. > One more link: http://twitter.com/infrabot Best regards, Konstantin Kolinko - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org

Re: Upgrading Tomcat need some info

2012-01-26 Thread Konstantin Kolinko
eak ciphers. Whether or not this attribute is applicable depends on HTTPS connector implementation (Java vs. APR). What the value should be depends on your requirements. Docs (for HTTP connectors): http://tomcat.apache.org/tomcat-6.0-doc/conf

Re: getServerName returns 'localhost'

2010-03-03 Thread Konstantin Kolinko
org.apache.coyote.http11.Http11BaseProtocol init 4. Whether Tomcat-Native (tcnative-1.dll, tcnative-1.so) is used? 5. Operating system. 6. Are the clients using HTTP/1.1 or HTTP/1.0 Best regards, Konstantin Kolinko - To

Re: Creating a directory from a webapp

2010-03-04 Thread Konstantin Kolinko
t regards, Konstantin Kolinko - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org

Re: java.util.logging - help needed with configuration and problem determination

2010-03-04 Thread Konstantin Kolinko
" with anything else. And that category is just where the output from the javax.servlet.ServletContext.log() calls goes. Nothing more that that. Not very useful. That is unless you ask for that log category explicitly, as a String. Best regards, Konstantin Kolinko

Re: Creating a directory from a webapp

2010-03-04 Thread Konstantin Kolinko
ou can replace your catalina.policy with grant { permission java.security.AllPermission; }; Best regards, Konstantin Kolinko - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: u

Re: [6.0.20] Using -Dcatalina.config breaks our databases resources

2010-03-04 Thread Konstantin Kolinko
*"s in your value. You can look at org.apache.catalina.startup.Bootstrap.createClassLoader(...) where it is implemented. Best regards, Konstantin Kolinko - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For addi

Re: Tomcat Crash

2010-03-05 Thread Konstantin Kolinko
) on a server that is several years younger (2008) than that. Isn't it the time to upgrade? Best regards, Konstantin Kolinko - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org

<    2   3   4   5   6   7   8   9   10   11   >