Re: Tomcat losing request parameters

2015-06-09 Thread Konstantin Kolinko
2015-06-04 18:40 GMT+03:00 Ravi Kiran : > Hi, > > I am writing to get some pointers on a strange issue which are facing in > tomcat in one of our client environments. > > Setup: 4 Webservers connecting to 2 tomcat using mod_jk (load balanced) > > Issue: Request parameters GET/POST are coming as nul

Re: Tomcat DBCP 8.0.18 issue

2015-06-02 Thread Konstantin Kolinko
and Tomcat 8 uses DBCP 2, where some attributes have different names. As mentioned in migration guide: http://tomcat.apache.org/migration-8.html#Database_Connection_Pooling Best regards, Konstantin Kolinko - To unsubscribe, e-mail:

Re: Problem specifying cipher suites in tomcat6

2015-06-01 Thread Konstantin Kolinko
tation. The online documentation is for the current version (6.0.44). Best regards, Konstantin Kolinko - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org

Re: org.apache.catalina.connector.CoyoteAdapter.checkRecycled Encountered a non-recycled request and recycled it forcedly

2015-05-26 Thread Konstantin Kolinko
let > Engine: Apache Tomcat/8.0.22 The "forced recycling" message is not a problem per se, but an indicator of a problem. In the same way as "or even on one virtual host appeared a page from another virtual host" that you. It signals that a request/response object was not em

Re: OpenSSL, Cipher-Suites, and Tomcat standalone vs. native vs. Tomcat behind apache-httpd

2015-05-21 Thread Konstantin Kolinko
e.http11.Http11AprProtocol) See "protocol" attribute in http://tomcat.apache.org/tomcat-8.0-doc/config/http.html Also http://tomcat.apache.org/tomcat-8.0-doc/apr.html http://tomcat.apache.org/native-doc/ All pure-java connectors (BIO, NIO, NIO2) do not use OpenSSL library. 2) Recommend

Re: Problrm with resources added using DirResourceSet

2015-05-20 Thread Konstantin Kolinko
oot.addPostResources(drs); > } > catch(Exception e) > { > log.log(Level.SEVERE, "Error setting up class path", e); > } > } > > And here is the catalina.out log pertaining to this section of code. > (...) https://wiki.apache.org/tomcat/FAQ/Developing#Debugging 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 upgrade from 7 to latest 8

2015-05-14 Thread Konstantin Kolinko
rg/migration.html What changes do you mean when you are talking about "web dav"? Best regards, Konstantin Kolinko - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org

Re: How to know aliases defined in container in server.xml of Tomcat 7.0.61

2015-05-07 Thread Konstantin Kolinko
2015-05-07 19:29 GMT+03:00 Mariano López : > Hi all, I want to know all the aliases defined in container in > server.xml of Tomcat 7.0.61 > > My server.xml has the following configuration: > > .. > > > .. > > .. >unpackWARs="true"> > > alias1.server > alias2.server >

Re: typesafe-config reference.conf file not found in a .jar in WEB_INF/lib

2015-05-06 Thread Konstantin Kolinko
uot; in your jar file? E.g. "%JAVA_HOME%\bin\jar" -tf catalina.jar lists directories: META-INF/ META-INF/MANIFEST.MF org/ org/apache/ org/apache/catalina/ org/apache/catalina/authenticator/ Usually there exists an option to jar tool whether to create those directory entries. Best re

Re: ant test on Tomcat 7.0.59 is failing due to exceptions

2015-05-06 Thread Konstantin Kolinko
gt; > Is there any reason not to auto-generate test certs at the beginning > of the "ant test" target? > > Also, it's possible to disable certain portions of the > certificate-checking algorithm. Would it be worth it

Re: startStopThreads=2 lets Tomcat kill my threads

2015-05-04 Thread Konstantin Kolinko
f Tomcat 8 is 8.0.21. Whatever your several-years-old 8.0.5 does -- hardly anyone remembers now. You may read the mailing list archives from several years ago. Best regards, Konstantin Kolinko - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org

Re: Debugging Tomcat Running in Vagrant using Port Forwarding

2015-04-30 Thread Konstantin Kolinko
2015-05-01 3:29 GMT+03:00 David Landis : > On Thu, Apr 30, 2015 at 5:24 PM, Konstantin Kolinko > wrote: > >> >> Have you started Tomcat in debug mode? >> E.g. "./catalina.sh jpda start" >> >> See JPDA_ADDRESS option in catalina.sh source code. &g

Re: Trouble separating catalina_base and catalina_home in TC 8

2015-04-30 Thread Konstantin Kolinko
nf\logging.properties > -DWebSira.configFileName="F:\tomcat8_clients\PelicanWebSIRA.properties" > 4) When installing 8.0.21, did Windows prompt you for permissions (aka UAC)? (I mean, was it permitted to modify C:\Program Files and did it successfully wrote the files there?) 5) FAR Manager is a good tool to work with files on Windows. It may be useful for you to look at the files. http://tomcat.apache.org/tools.html#Open_Source_Tools Best regards, Konstantin Kolinko - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org

Re: Debugging Tomcat Running in Vagrant using Port Forwarding

2015-04-30 Thread Konstantin Kolinko
tional configuration I need > to do in Tomcat in order to debug while it is running in a Vagrant box > using port forwarding. Have you started Tomcat in debug mode? E.g. "./catalina.sh jpda start" See JPDA_ADDRESS option in catalina.sh source code. Best regards, Konstantin Kolin

Re: Tomcat 6.0.37 on As400 don't work more

2015-04-23 Thread Konstantin Kolinko
wed to load the SSIServlet class unless the site administrator explicitly allowed it by marking that application as "privileged". (Manager and Host-Manager are privileged, as thus they did not fail at 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: Configuring Tomcat manager application upload limit

2015-04-17 Thread Konstantin Kolinko
mcat.apache.org/tomcat-8.0-doc/security-howto.html#Securing_Management_Applications 2) It should be possible to shadow (override) WEB-INF/web.xml of an application by configuring a element in its context file, http://tomcat.apache.org/tomcat-8.0-doc/config/resources.html 3) You can rename the application, configure it, pack into a war and upload via the default manager app. The name of the manager application does not matter. It can be renamed. (If you are running with java SecurityManager enabled, it will require additional configuration in policy file, and to configure context file for the application). Best regards, Konstantin Kolinko - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org

Re: RFE: read keystorePass from file

2015-04-14 Thread Konstantin Kolinko
> server.xml that pulls the password value in from another place. > Examples include an ant-based build with filtering or external XML > entities. https://wiki.apache.org/tomcat/FAQ/Password > If you'd still like this feature, please open a Bugzilla enhancement > r

Re: Removing ThreadLocal variables

2015-04-13 Thread Konstantin Kolinko
of the filters on the request's way back out the chain(s). > > I think I prefer the Listener approach better. Filters are better. With Filter there is a guarantee that finally block is executed in the same thread. With RequestListener there is no guarantee that "requestDestroyed()&qu

Re: Apache 8.0.21 log in to admin pages

2015-04-07 Thread Konstantin Kolinko
tion including the following and none work: > > > Look into startup logs (was the file read correctly? has the manager app started successfully?), access logs. Best regards, Konstantin Kolinko - To unsubscribe, e-m

Re: After parsing the custom server.xml file, catalinaBase is set to null

2015-04-06 Thread Konstantin Kolinko
2015-04-02 14:01 GMT+03:00 Thusitha Thilina Dayaratne : > Hi, > > I'm using embedded-tomcat 8.0.20 in my project. In that I'm parsing a > custom server.xml file. After the parsing CatalinaBase value of the Server > is set to null. > Could someone tell me why would be the reason? > Before parsing th

Re: org.apache.commons.codec.binary.Base64 question

2015-04-06 Thread Konstantin Kolinko
2015-04-06 21:19 GMT+03:00 Prathyusha Kanala : > Hi, > > My web application was initially running on tomcat 7.0.53 and I > use org.apache.commons.codec.binary.Base64 for encryption and decryption. > > Now the server has been updated to tomcat 7.0.57 and I get a java > Nullpointer error at c.doFinal

Re: resources not more available after setting RemoteAddrValve

2015-04-06 Thread Konstantin Kolinko
1992 ?S01:20 0:02 > /usr/sbin/apach > > Directories: > drwxrwxrwx 12 tomcat7 staff 4096 Jan 13 15:37 artist > drwxrwxrwx 2 tomcat7 staff 4096 Sep 24 2014 company > drwxrwxrwx 12 tomcat7 staff 4096 Dec 20 02:15 psnt > drwxrwxrwx 9 tomcat7 staff 4096 Jan 27 16:

Re: Excessive number of blank lines being logged in blocks by org.apache.tomcat.util.digester.Digester

2015-04-01 Thread Konstantin Kolinko
pace. Are element bodies also logged elsewhere? 2) Sometimes people make a mistake misplacing ">" or forgetting ">" and what they expect to be attributes actually happens to be in body of an XML element. http://markmail.org/message/uvdwl5dm3rwhyyt5 3) If s

Re: Tomcat server Performance imporvement required

2015-03-29 Thread Konstantin Kolinko
ALINA_OPTS} -Xms1024M -Xmx1024M" Memory options should go into CATALINA_OPTS only, not both. If you are using a 64-bit JVM, it needs more memory than a 32-bit JVM would need, as object pointers require more memory. <...> Best regards, Konstantin Kolinko -

Re: Container Provided ServletFilters

2015-03-28 Thread Konstantin Kolinko
due to lack of attention and is removed from the current trunk. Best regards, Konstantin Kolinko - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org

Re: JSP compilation fails with Tomcat 8.0.20. Works with 8.0.11

2015-03-23 Thread Konstantin Kolinko
changed from 8.0.11 to 8.0.20 that affects JSP > compilation? Majority of changes listed in "Jasper" section of changelog affect JSP compilation. Best regards, Konstantin Kolinko - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org

Re: CGIServlet - Disregarding 404 error-page

2015-03-16 Thread Konstantin Kolinko
ion error. I mean that you would not see that with a properly configured CGIServlet. If my guess is wrong, you need to provide a specific use case that demonstrates otherwise. Best regards, Konstantin Kolinko - To

Re: Tomcat7: debugging realms - a howto?

2015-03-13 Thread Konstantin Kolinko
va:356) > at java.util.logging.LogManager$3.run(LogManager.java:418) You are using JRE's default java.util.logging.LogManager. You need to configure JRE to use the Tomcat JULI implementation of log manager with -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager The JRE c

Re: Tomcat7: debugging realms - a howto?

2015-03-13 Thread Konstantin Kolinko
cator class. An authenticator is essentially a Valve. Its entry point is invoke() method. Best regards, Konstantin Kolinko - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org

Re: Windows authentication : outdated link

2015-03-13 Thread Konstantin Kolinko
2015-03-13 15:13 GMT+03:00 Konstantin Kolinko : > 2015-03-13 15:04 GMT+03:00 André Warnier : >> Hi. >> >> Errata : >> >> In the page >> http://tomcat.apache.org/tomcat-8.0-doc/windows-auth-howto.html#References >> (and also in the correspondi

Re: Windows authentication : outdated link

2015-03-13 Thread Konstantin Kolinko
t; this server. > > (neither does it work if one replaces the "spengo" parts by "spnego"..) > Apparently they replaced '-' with '+' and have lost the ".html" suffix. https://cwiki.apache.org/confluence/display/GMOxDOC21/

Re: Tomcats warning message about APR library

2015-03-06 Thread Konstantin Kolinko
2015-03-06 13:41 GMT+03:00 Neven Cvetkovic : > Hey Emir, > > On Thu, Mar 5, 2015 at 2:18 PM, Emir Ibrahimbegovic > wrote: > >> I've got this message when starting a tomcat server : >> >> org.apache.catalina.core.AprLifecycleListener.lifecycleEvent The APR >> based Apache Tomcat Native library whic

Re: Long start-up time of Tomcat 8.0.20

2015-03-04 Thread Konstantin Kolinko
2015-03-04 15:41 GMT+03:00 Geo Wulf : > Hi everyone, > > I'm trying to switch from Tomcat 7 to 8 (8.0.20). > > Starting Tomcat 8 takes about 20 minutes (about 100 seconds for Tomcat 7). > According to log, there is a delay of about 18 minutes between the log > message "Starting Servlet Engine" and

Re: Changing Tomcat's SSL ciphers

2015-03-02 Thread Konstantin Kolinko
2015-03-03 1:45 GMT+03:00 Eric : > I am trying to change the ciphers that my Tomcat 7 server supports. I am > using the APR connector. Here's the connector information in server.xml > with the line saying which ciphers to support: > > enableLookups="false" disableUploadTimeout="

Re: tomcat 8.0.20 can't make manager run HTTP Status 404 - /manager/status etc

2015-02-26 Thread Konstantin Kolinko
webapp has its own configuration of AccessLogValve). Do you have the files in /home/apache-tomcat-8.0.20/webapps/manager ? Any chance that you are starting with Java Security Manager being enabled? In this case you should see error messages in the logs. Best regards, Konstantin Kolinko

Re: Connection leak Tomcat7 and Oracle

2015-02-26 Thread Konstantin Kolinko
connections are gone. Now, above context > setting (except factory=... which I just added) works fine in tomcat6, > java6 environment, target database is the same. > > Could anyone sent me working pool definition for: Ubunutu 14, tomcat7, > java

Re: undefined method

2015-02-20 Thread Konstantin Kolinko
2015-02-21 1:00 GMT+03:00 Sean Dawson : > On Fri, Feb 20, 2015 at 4:41 PM, Konstantin Kolinko > wrote: > >> 2015-02-21 0:10 GMT+03:00 Sean Dawson : >> > >> > ... >> > "undefinedPOST /gwtRequest HTTP/1.1" 501 1136 >> > >>

Re: undefined method

2015-02-20 Thread Konstantin Kolinko
itle: “undefined” randomly appended in 1% of requested urls on my website since 12 june 2012 One of theories there is that some browser addon was malfunctioning. If nothing else helps, it should be easy to implement a Valve for Tomcat that will fix the wrong request.getMethod() value before passing it to a web application. Best regards, Konstantin Kolinko - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org

Re: Issue with RewriteValve and folders (tomcat 8.0.15)

2015-02-20 Thread Konstantin Kolinko
format. Documentation: http://tomcat.apache.org/bugreport.html#How_to_submit_patches_and_enhancement_requests Best regards, Konstantin Kolinko - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org

Re: Apparent Bug Introduced between 8.0.15 & 8.0.17

2015-02-18 Thread Konstantin Kolinko
2015-02-18 18:22 GMT+03:00 배효진(Ken) : > Hello! > > Im not sure, whether this error is related or not. > I test 8.0.18, and similar exception occured. > > In my case, there was no problem in JSP, with <%@ page import="static > test.Test.*" %> > but, exception was occured in tag file, with <%@ tag im

Re: Our tomcat just crashed due to classnotfound, not sure how to investigate

2015-02-16 Thread Konstantin Kolinko
on of Apache Struts (earlier than 2.3.16.2). If so, your server may have been hacked. http://struts.apache.org/announce.html The above stacktrace is an attempt to run a Java program. You may try searching for "aasxknsakadskdskdskdsakxxmads" string across your Tomcat installation. If there is

Re: [OT] Java client using Expect: 100-continue

2015-02-12 Thread Konstantin Kolinko
us setting of the HTTP header. > Is this something that HttpURLConnection does not expose to the > programmer? Does it simply handle the situation on its own? > See the following recent BZ issue for a link https://issues.apache.org/bugzilla/show_bug.cgi?id=57530 Best regards, Konstant

Re: tomcat severe error when shutting down service but startup is clean

2015-02-12 Thread Konstantin Kolinko
You need to move, not copy. Copying is not enough, as webapp jars are preferred over Tomcat ones. Also having the same class in two places may result in a behaviour that you do not expect. http://tomcat.apache.org/tomcat-7.0-doc/class-loader-howto.html 2015-02-12 17:33 GMT+03:00 Wirth, Kevin : >

Re: tomcat errors

2015-02-11 Thread Konstantin Kolinko
2015-02-10 22:45 GMT+03:00 Wirth, Kevin : > Yes, that is the log I am looking at and it is blank. > What about the other log files? > > Look for anything in the logs/ directory. In a default configuration, the > logs for your application would probably have gone to localhost-*.log. > Are logs b

Re: FileNotFoundException for existing JAR files

2015-02-10 Thread Konstantin Kolinko
2015-02-11 4:48 GMT+03:00 Alexander Johnson : > Thanks for the suggestions. I don't have access to the server where this > is happening, but I did get a script to run there: > > echo Displaying JAR files with current permissions... > ls -la ./target/MyProject/WEB-INF/lib/ > >

Re: tomcat errors

2015-02-10 Thread Konstantin Kolinko
ither an error in your web application or a misconfiguration. http://wiki.apache.org/tomcat/MemoryLeakProtection If java process has run out of memory (an OutOfMemoryError happened), you have to kill and restart it. Best regards, Konstantin Kolinko

Re: Tomcat 8 SQL Connection Problems

2015-02-10 Thread Konstantin Kolinko
is > there a way to monitor TC's connection pool stats and figure this out? Note that there are configuration differences between DBCP 1.x pool (in Tomcat 7) and DBCP 2.x (in Tomcat 8). It is mentioned in the Tomcat Migration Guide.

Re: ant task throws NoClassDefFoundError - Tomcat 8.0.18

2015-02-10 Thread Konstantin Kolinko
mentation for task for Tomcat 8. Is > there any additional configuration necessary (in contrast to Tomcat > 5.5/6/7)? Thank you for the report, I filed this into Bugzilla https://issues.apache.org/bugzilla/show_bug.cgi?id=57558 1. What is the full stacktrace of that NoClassDefFoundError? 2. Yo

Re: Reg. getRealPath("/") _ How does the result of this method differ in Tomcat 7 and Tomcat 8

2015-02-10 Thread Konstantin Kolinko
an perform path arithmetics regardless of terminating '/' in parent path, new File(parent, child) 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 8 - session replication DeltaManager not working

2015-02-06 Thread Konstantin Kolinko
lements into server.xml. That is a really bad practice. See Context element in Configuration Reference Guide, webapps/docs/config/context.html Be careful with typos. XML files are case-sensitive. There is no such attribute as "docbase". Best regards, Konstantin Kolinko - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org

Re: TomcatSasJAASRealm issue while Tomcat6 to Tomcat7 migration

2015-02-06 Thread Konstantin Kolinko
.realm.TomcatSasJAASRealm.(TomcatSasJAASRealm.java:212) The someone's TomcatSasJAASRealm is not designed for Tomcat 7. It depends on an internal API that was changed / moved. As Mark mentioned, the Migration guide is a must-read. Best regards, Konstantin Kolinko

Re: IIS 6.0 isapi_redirect 1.2.40 Tomcat 7.0 403 Forbidden

2015-02-06 Thread Konstantin Kolinko
ion of Tomcat 7.0.x you are using. 2. If you are debugging it, put a breakpoint on org.apache.catalina.connector.Response.sendError() and look what calls the sendError() method. As a reminder (maybe you already know that), http://wiki.apache.org/tomcat/FAQ/Developing#Debugging 3. There current

Re: HttpSessionBindingListener details

2015-02-05 Thread Konstantin Kolinko
urrent session. No. invalidate() only destroys the current session. It does not create any new sessions. A new session can be created by a HttpServletRequest.getSession() / getSession(true) call. Best regards, Konstantin Kolinko ---

Re: Session being dropped in Virtual Host in 8.0.9

2015-02-03 Thread Konstantin Kolinko
t-Encoding: gzip, deflate > Referer: http://boyle.fern.io/login/challenge 5) Leaking a site name > Cookie: ib=f7e8f6d4823853063b94e16a1f5252b06b62de621361f67ac6fdeca7259c0ec3 > Connection: keep-alive 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 8

2015-02-03 Thread Konstantin Kolinko
2015-02-03 14:13 GMT+03:00 Vadzim Radchykau : > > 1. Attached file stack.txt > 2. version 8.0.18 > > 2015-02-03 14:01 GMT+03:00 Konstantin Kolinko : >> >> 2015-02-03 12:44 GMT+03:00 Vadzim Radchykau : >> > Hello, everybody! I have a question about context

Re: JDBC authentication problem

2015-02-03 Thread Konstantin Kolinko
tionQuery configured? testOnBorrow, testWhileIdle do not work without 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: Tomcat 8

2015-02-03 Thread Konstantin Kolinko
ituation is happend? I coudn't find any > information of this change in documentation. And I'm interesting what is > better: create single datasource (I think so) or create several by factory. > Thanks a lot for help! 1. Full stacktrace of javax.management.InstanceAlreadyExistsExce

Re: JDBC authentication problem

2015-01-30 Thread Konstantin Kolinko
2015-01-30 16:45 GMT+03:00 Luc DALLEMANE : > Hi, > > > I'm facing a problem with my web application. > > > I'm using Tomcat 7.0.56, Java 1.8, Postgres 9.4 and Debian 7. > > The application is configured as followed : > > > The web server is located in a DMZ. > > The database server is located in ou

Re: Tomcat sending 411 "Length Required" due to Chunked Transfer Encoding

2015-01-29 Thread Konstantin Kolinko
kpoint on sendError(int,String), setStatus(int) methods of org.apache.catalina.connector.Response. It should be possible to implement a javax.servlet.Filter to cache a request and feed it to the web application for further processing, but it would be better to fix the web application itself. Best regards, Konstantin Kolinko - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org

Re: request.getUserPrincipal() is null but StandardSession.principal is set

2015-01-26 Thread Konstantin Kolinko
2015-01-26 15:10 GMT+03:00 Thomas Strauß : > > -Ursprüngliche Nachricht- >> Von: Konstantin Kolinko [mailto:knst.koli...@gmail.com] >> Gesendet: Montag, 26. Januar 2015 13:01 >> An: Tomcat Users List >> Betreff: Re: request.getUserPrincipal() is null but &

Re: request.getUserPrincipal() is null but StandardSession.principal is set

2015-01-26 Thread Konstantin Kolinko
that request has not been authenticated yet. There is the following change for 7.0.22 in the changelog file: [quote] Correct a regression with the fix for 51653 that broke custom error pages for 4xx responses from the Authenticators. Error handling and request listeners are now hand

Re: request.getUserPrincipal() is null but StandardSession.principal is set

2015-01-26 Thread Konstantin Kolinko
age in examples webapp that uses FORM authentication. http://localhost:8080/examples/jsp/security/protected/index.jsp If you look into index.jsp it will display "No user principal could be identified." when request.getUserPrincipla() is null. It displays the correct principal na

Re: Which context.xml have higher priority?

2015-01-25 Thread Konstantin Kolinko
2015-01-25 7:39 GMT+03:00 杨华杰 : > Now I have context.xml in three locations: > > A: in app: meta-info/context.xml > B: in conf: context.xml > C: in conf/Catalina/**.xml --->> seems like no longer copied to here. > > > If I am going to define the same resources in these context.xml, which one >

Re: Newbie Question - Topic: Accessing Tomcat Manager

2015-01-25 Thread Konstantin Kolinko
XML. 3. Read Tomcat log files for any unexpected messages. 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 8.0.17 output buffer issues

2015-01-21 Thread Konstantin Kolinko
. Result: all downloads are OK. I am using 32-bit JDK 7u72 on Windows 7. I tested HTTP+(BIO,NIO,APR), HTTPS+(BIO,NIO). I have not tested HTTPS+APR and AJP+anything. Best regards, Konstantin Kolinko - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org

Re: FarmWarDeployer not checking watchDir

2015-01-20 Thread Konstantin Kolinko
ore information from the logs… > Could the mount options of the file system influence the result? My partition > is mounted with > rw,nosuid,nodev,noexec,noatime,nodiratime,data=ordered. > 19-Jan-2015 12:04:27.956 FINE [ContainerBackgroundProcessor[ StandardEngine[Catalina]]] org.apache.catalina.ha.deploy.WarWatcher.check check cluster wars at /my/watch/dir Note that message says "/my/watch/dir", but the configuration above uses "/my/listen/dir/". What are access permissions for the directory and for the file. Is there search permission on the directory, is the file readable? E.g. if the directory is not readable File.listFiles() returns null, but the code interprets it as an empty list, silently proceeding further. Best regards, Konstantin Kolinko - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org

Re: unpackWARs, and annotation exceptions

2015-01-20 Thread Konstantin Kolinko
2015-01-20 17:33 GMT+03:00 Sean Dawson : > On Tue, Jan 20, 2015 at 8:41 AM, Konstantin Kolinko > wrote: > >> 2015-01-18 2:00 GMT+03:00 Sean Dawson : >> > Hello, >> > >> > I mentioned in an previous question that newer releases of tomcat7 >> &g

Re: unpackWARs, and annotation exceptions

2015-01-20 Thread Konstantin Kolinko
2015-01-18 2:00 GMT+03:00 Sean Dawson : > Hello, > > I mentioned in an previous question that newer releases of tomcat7 > (Windows) seems to be unpacking our war files to webapps when it wasn't > doing that previously. We were running fine prior to this and have > encountered some issues replacing

Re: Mod_jk Configuration

2015-01-16 Thread Konstantin Kolinko
2015-01-17 2:31 GMT+03:00 Chris Arnold : > Current working setup: > > apache 2.2 using mod_jk to pass 443 requests to tomcat on 8443. > > > We are migrating from SLES 11 SP3 to SLEs 12. On SLES 11 we use alfresco > 5.0.c which includes tomact 7.x i believe. SLES 11 has apache 2.2.10. SLES 12 > ha

Re: Broken Mirror

2015-01-15 Thread Konstantin Kolinko
tting us know. I cannot reproduce any issues there. The file from your link downloads correctly for me, and its checksum is correct. If I remove filename from the URL, a directory listing is correctly displayed. I used both Firefox 34.0.5 and recently released Firefox 35.0 (on Windows 7). Best reg

Re: Delay when: Deploying web application

2015-01-14 Thread Konstantin Kolinko
delay is when the application is deploying to DIR from WAR. > Running on VM/newest RedHat, patches are up to date https://wiki.apache.org/tomcat/HowTo/FasterStartUp Best regards, Konstantin Kolinko - To unsubscribe, e-mail: use

Re: Memory shortage appears as missing pulse-java.jar file error with Java 7

2015-01-14 Thread Konstantin Kolinko
ms2048m > -XX:MaxPermSize=512m -Dcom.sun.management.jmxremote" > > My question... pulse-java.jar does not exist in Java 7 although it did in > Java 6. In Java 7, it is provided by a different file. It appears that the > shortage of allocated memory manifests itself as a missing file. Ha

Re: Is there a way to abruptly force a connection closed without returning anything?

2015-01-13 Thread Konstantin Kolinko
specific status code on the response. b) a valve detects presence of the attribute or status code and closes the connection. You have not mentioned your version of Tomcat. For a pointer, note the following enum value in the source code (ava

Re: question on EL Lambda expression in a JSP on Tomcat 8_0_15

2015-01-13 Thread Konstantin Kolinko
t; The function incr must be used with a prefix when a default namespace is > not specified > > org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:42) > An invalid EL. The '(' in '${(' has no pair. Best regards, Konstantin Kolinko ---

Re: [OT] REST call failure on newer tomcat version/update

2014-12-23 Thread Konstantin Kolinko
2014-12-23 22:06 GMT+03:00 Christopher Schultz > > Konstantin, > > On 12/23/14 11:12 AM, Konstantin Kolinko wrote: >> >> 2) I think that if getHeaders().get(header) returns a single >> element, it would be better to use setHeader() method instead of >> addH

Re: REST call failure on newer tomcat version/update

2014-12-23 Thread Konstantin Kolinko
rly on and that was the one change I found in 53 > that I thought might have affected us ("The response should be closed (i.e. > no further output is permitted) when a call to AsyncContext.complete() > takes effect"). But I don't know what we are doing/not-doing or how to fi

Re: REST call failure on newer tomcat version/update

2014-12-22 Thread Konstantin Kolinko
h header must not be present if Transfer-Encoding: chunked is used. If it is in a request, Tomcat 7.0.47 and later shall reject such requests per CVE-2013-4286, http://tomcat.apache.org/security-7.html#Fixed_in_Apache_Tomcat_7.0.47 If it is in

Re: REST call failure on newer tomcat version/update

2014-12-22 Thread Konstantin Kolinko
the configurations (browser-clients/etc) that I got the other messages > mentioned. > > > > On Mon, Dec 22, 2014 at 7:02 AM, Konstantin Kolinko > wrote: > >> 2014-12-19 20:49 GMT+03:00 Sean Dawson : >> > Hello, >> > >> > We had a gwt app deployed a

Re: REST call failure on newer tomcat version/update

2014-12-22 Thread Konstantin Kolinko
t those 500 and 415 responses are not from Tomcat. Are they from IIS? Is that one up-to-date? Do you have access log configured in Tomcat? Are those requests mentioned in Tomcat access log? Does the issue happen randomly? Can you reproduce it? Best regards, Konstantin Kolinko -

Re: "Invalid Server SSL Protocol" on Tomcat 8.0.15 with Tomcat Native library 1.1.32 and APR 1.5.1

2014-12-17 Thread Konstantin Kolinko
l/cert.key" > > SSLCertificateChainFile="/home/scuser/ssl/intermediateCA.cer" > clientAuth="false" sslProtocol="TLS"/> > > Can anyone see what might be going wrong? The correct property name for APR connector is "SSLProt

Re: Help! Tomcat crashing on takeoff

2014-12-12 Thread Konstantin Kolinko
operties" warning), but maybe it has trouble parsing it as a "properties" file. Maybe the whole contents is interpreted as one line and provides no value for "common.loader". The *.loader properties are allowed to be empty, so there wi

Re: My problem: I cannot successfully get or set a session attribute from a JSP file.

2014-12-06 Thread Konstantin Kolinko
re general. My code is not working and there are no > error messages. Can anyone speculate why this would be the case? Is there > any place else I should be looking for error messages? > 1. Is this reproducible if you restart T

Re: Receiving HTTP 505 on Expect: 100-continue

2014-12-06 Thread Konstantin Kolinko
> to wait before sending the body if it doesn't get a response. > > Given the timing issues, the only thing the server can safely do for > non-200 responses is send the response, close the connection and > optionally swallow any request body (some clients don't

Re: How can code in a Realm gain access to a Globally Named Resource

2014-11-26 Thread Konstantin Kolinko
2014-11-27 0:26 GMT+03:00 : > > Initially I had difficulty with getServer() giving me null. > To fix it I stopped calling this method from within the Realm's constructor, > instead I get the DataSource the first time it's needed. Learn about org.apache.catalina.Lifecycle interface that is impleme

Re: URL Mapping for filter not the same on tomcat as it is on TomEE?

2014-11-26 Thread Konstantin Kolinko
2014-11-24 23:05 GMT+03:00 zack6849 : > Hello, i've found some strange issue with the url mapping with tomcat, i've > tested this on tomcat8 and TomEE, it seems easily reproducable. > > I have a Filter listening to requests matching "/uploads/*" (all files > inside of my uploads directory" > > On T

Re: Problem with base directory in Resource

2014-11-21 Thread Konstantin Kolinko
That IllegalStateException means that (new File("/mnt/mynfsserver_img", "/img")).isDirectory() returned false. In other words, the likely cause is that the path was not readable at the time of the check. Replacing PostResources by PreResources and vise versa will have no effect on this. 2014-

Re: server-status in text format

2014-11-21 Thread Konstantin Kolinko
ager-status, manager-jmx Source code: o.a.c.manager.StatusManagerServlet. Best regards, Konstantin Kolinko - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org

Re: catalina.properties and system properties

2014-11-21 Thread Konstantin Kolinko
2014-11-19 20:44 GMT+03:00 Igal @ getRailo.org : > hi, > > I don't have use for scanning the jars for tld files etc., so usually, > in catalina.properties, I skip all jars by setting > > tomcat.util.scan.StandardJarScanFilter.jarsToSkip=*.jar > > I just noticed that I can set it via a system pr

Re: Debugging a Webapp in Eclipse running Tomcat as a stand-alone JVM process

2014-11-20 Thread Konstantin Kolinko
2014-11-20 13:56 GMT+03:00 Léa Massiot : > Thank you for your answer. > >> Konstantin Kolinko wrote: >> Deployment can be done from Ant or from Maven. There exists tools for >> that. > > Ok, I understand. > >> Konstantin Kolinko wrote: >> If you ar

Re: Running Manager App with Security Manager turned on - Tomcat 8.0.15

2014-11-20 Thread Konstantin Kolinko
2014-11-20 14:00 GMT+03:00 Luka Pavlič : > Hi, > > I am running tomcat 8.0.15, win64 ZIP, on Windows 2008R2, Oracle JRE 8.0.20. > > Running with "catalina start", /manager app works perfectly. > > Running "catalina start -security" will result in not deployed manager app. > > I would *definitely ne

Re: Tomcat 8.0.14 - Host appBase not defaulting to "webapps" in $CATALINA_HOME ???

2014-11-19 Thread Konstantin Kolinko
2014-11-20 3:49 GMT+03:00 Barnes, Mark (CORP) : > Hi, everyone - > > Could someone please help me to get Tomcat 8.0.14 to find my web apps??? > > I am trying to upgrade a server from Tomcat 6.x to Tomcat 8.0.14 on Linux. > Tomcat does not seem to build the path to the directory containing my web

Re: Debugging a Webapp in Eclipse running Tomcat as a stand-alone JVM process

2014-11-19 Thread Konstantin Kolinko
uestion is clear enough. The proper temp is not "exporting", but "deployment". Deployment can be done from Ant or from Maven. There exists tools for that. If you are developing your web application, is there a reason why you run Tomcat standalone and not from withi

Re: mod_jk failed to map shared memory with errno=5

2014-11-19 Thread Konstantin Kolinko
. [1] http://tomcat.apache.org/connectors-doc/reference/apache.html [2] MSDN - CreateFileMapping function http://msdn.microsoft.com/en-us/library/windows/desktop/aa366537%28v=vs.85%29.aspx [3] MSDN - System Error Codes http://msdn.microsoft.com/en-us/library/windows/desktop/ms681381%28v=vs.85%29.aspx Best regards, Konstantin Kolinko - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org

Re: Session Config => Tracking Mode not working

2014-11-18 Thread Konstantin Kolinko
2014-11-19 0:53 GMT+03:00 Konstantin Kolinko : > 2014-11-19 0:21 GMT+03:00 Stephen McCants : >> Hello Konstantin Kolinko, >> >> I fixed my dumb web.xml schema declaration. Thanks for pointing that out. >> >> I also added the COOKIE tracking mode to the example ser

Re: Session Config => Tracking Mode not working

2014-11-18 Thread Konstantin Kolinko
2014-11-19 0:21 GMT+03:00 Stephen McCants : > Hello Konstantin Kolinko, > > I fixed my dumb web.xml schema declaration. Thanks for pointing that out. > > I also added the COOKIE tracking mode to the example servlet and it worked > there (the URL encoded link did not cont

Re: Websocket @OnMessage is never firing for binary messages only text

2014-11-18 Thread Konstantin Kolinko
endBinary(bbuf); > System.out.println("sent"); > } > 2. There are tests for receiving binary messages in Tomcat, e.g. test/org.apache.tomcat.websocket.TesterEchoServer class. 3. BTW, there is a typo in method name. s/recieved/received/ Best regards, Konstantin Kolinko ---

Re: java.protocol.handler.pkgs does not work with Tomcat 7

2014-11-18 Thread Konstantin Kolinko
2014-11-18 22:35 GMT+03:00 Konstantin Kolinko : > 2014-11-18 11:29 GMT+03:00 Mark Thomas : >> On 17/11/2014 22:47, Ignacio Ocampo wrote: >>> Hi all, >>> >>> I'm using a third part library for NTLM authentication, one of their >&

Re: java.protocol.handler.pkgs does not work with Tomcat 7

2014-11-18 Thread Konstantin Kolinko
into a "$CATALINA_BASE/bin/setenv.sh" file. > and put my jars in jdk/lib, jdk/jre/lib, 5. Are those the Java version that you are using? Are they visible to the class loader (e.g can you load the class in any test JSP page?) > tomcat/lib, tomcat/webapps/ROOT/WEB-INF/lib, bu

Re: Session Config => Tracking Mode not working

2014-11-17 Thread Konstantin Kolinko
COOKIE > If I add the above three lines to the web.xml of examples webapp, it works for me. http://localhost:8080/examples/servlets/servlet/SessionExample On the first visit to that example page look at "URL encoded" link at the bottom of the page, whether it conta

Re: WebappClassLoader and MANIFEST.MF in WARs

2014-11-14 Thread Konstantin Kolinko
to some global space. > Properties, maybe? Ugly. But, ya do what ya gotta. 1. What if the web application does not have a war file, but is deployed as an expanded directory? 2. Please find some specification references. 3. If there were a manifest for the WEB-INF/classes/ I would wonder whether

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