Re: On one particular box, Tomcat 7.0.25 runs just fine, but 7.0.47 crashes on takeoff -- some authority problem

2013-12-07 Thread Konstantin Kolinko
omcat directories, > on the corresponding objects within the two directories, and on the > corresponding objects within their respective bin directories. > Just wondering, what do you mean by "objects"? Files? Best regards, Konstantin Kolinko --

Re: Redirection of mycompany.com to www.mycompany.com

2013-12-16 Thread Konstantin Kolinko
2013/12/16 James H. H. Lampert : > On 12/16/13 9:37 AM, pierre posset wrote: My problem is that when in a browser I am writing mycompany.com I am redirected with to www.mycompany.com. > > > I could be way off-base here (it wouldn't be the first time!), but: > > It could also be that

Re: How to search SVN Log Messages for Apache Tomcat VCS Repository

2014-07-13 Thread Konstantin Kolinko
y question is How can I search (online, web-search) SVN Log Messages for > Apache Tomcat VCS Repository. > Who are you, and why do you want to do that? For every commit there is a commit e-mail sent to the developers' mailing list. Thus the easy way is to search the mailing list ar

Re: Tomcat 7.0.54 Slow Unpack and Deploy

2014-07-17 Thread Konstantin Kolinko
ad_a_Java_thread_dump_.3F > +1 How do you measure the timing? Do you have antivirus scanner on that machine? (They love to inspect zip files, and for a big file that may take notable time). Also, http://wiki.apache.org/tomcat/HowTo/FasterStartUp Best regards, Konstantin Kolinko - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org

Re: Conditional logging

2014-07-27 Thread Konstantin Kolinko
pecification is somewhat limited. The "*" has special meaning in two constructs only: a) when defining prefix mapping, as "/*" at the end, e.g. /foo/* b) when defining extension mapping, .e.g. *.foo In all other situations the "*" character is interpreted liter

Re: css files served as application/x-pointplus

2014-07-27 Thread Konstantin Kolinko
2014-07-10 10:26 GMT+04:00 Sergio Fernández : > Hi Konstantin, > > > On 08/07/14 09:45, Konstantin Kolinko wrote: >> >> There is no "application/x-pointplus" string in the default >> conf/web.xml of Tomcat. So first you have to find where the string >&

Re: 7.0.54 Startup Times - Going from 700 seconds to 39 seconds

2014-07-27 Thread Konstantin Kolinko
t; initializing the classes, connecting to the database, starting threads, etc. Starting the webapp loads only those classes that are actually used. Scanning for annotations has to unzip and parse every *.class file in all of your libraries. To get what actually happens, take several thread dumps

Re: Thread dumps using Apache Service manager!

2014-07-27 Thread Konstantin Kolinko
t/HowTo#How_do_I_obtain_a_thread_dump_of_my_running_webapp_.3F Best regards, Konstantin Kolinko - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org

Re: Security Manager Exception

2014-07-28 Thread Konstantin Kolinko
HOME/bin/tomcat-juli.jar > > $CATALINA_BASE/lib, has the grant for java.security.AllPermission; > Unless all classes in the call chain have the necessary permission ("java.lang.RuntimePermission" "getClassLoader") the call won't be allowed. A workaround is to gran

Re: configuring tomcat 7, modify juli default configuration, doesn't work as expected

2014-08-10 Thread Konstantin Kolinko
> > b) Here are the handler properties: > > 5serv1.org.apache.juli.FileHandler.level = FINE > 5serv1.apache.juli.FileHandler.directory = ${catalina.base}/logs 2. The above property name is mistyped. It misses "org." before "apache". Effectively it is ignore

Re: Configuring a 'JarScanner' excluding classpath scanning, the 'VirtualWebappLoader' doesn't get scanned

2014-08-10 Thread Konstantin Kolinko
ng Tomcat 7.0.54, Java 6, on a Windows machine. > I have an example webapp (deployable with Eclipse) which reproduces this > issue, which I can upload later. > Best regards, Konstantin Kolinko - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org

Re: ErrorReportValve(showReport,showServerInfo) at Engine-level working in 7.0.54, not anymore in 7.0.55

2014-08-10 Thread Konstantin Kolinko
ed twice (at Host and then at Engine). The relevant change log entry in 7.0.55 is "When an error occurs after the response has been committed close the connection immediately ..." https://svn.apache.org/r1602443 Best regards, Konstantin Kolinko - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org

Re: Context-specific log files getting deleted

2014-08-21 Thread Konstantin Kolinko
? Are daylight changes enabled? (I remember someone reporting that a daylight timezone change have triggered a redeployment. That matters only if automated deployments are enabled). Huh, it was your own thread... http://tomcat.markmail.o

Re: How to create an Oracle XA Datasource within Tomcat 7

2014-08-27 Thread Konstantin Kolinko
rg.apache.derby.jdbc.ClientXADataSource. The databaseName, serverName properties apparently are properties of that datasource implementation. I expect that the class has setters like org.apache.derby.jdbc.ClientXADataSource.setServerName(String). You are using Oracle datasource class. Good news are that exception actually originates from "oracle.jdbc.xa.client. OracleXADataSource" class, so the resource definition works. Bad news are that apparently it needs some different configuration properties such as URL to your server. Best regards, Konstantin Kolinko - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org

Re: Daily catalina.out has thousands of NPEs

2014-08-27 Thread Konstantin Kolinko
na.org.apache.juli.FileHandler.level = SEVERE Note that the above setting filters what log messages are being written out. If you want to filter what log messages are being generated (thus saving some time on processing them), you can set level for a logger, e.g. ".level = SEVERE" for the

Re: Client certificate keystore configuration

2014-08-28 Thread Konstantin Kolinko
configureClientSsl()), but passing those to your HTTP client depends on what client you are using and on API of that client. You are not saying what client implementation you are using. It may be better to ask on their mailing lists. Best regards, Konstantin Kolinko -

Re: Uploading Large Files in Tomcat 8.0.9+

2014-08-29 Thread Konstantin Kolinko
ess. > > There is absolutely no information in the Tomcat logs to indicate any > errors. Only the client message above indicates the error. However, the > Tomcat version is the only difference. > > Does anyone have any ideas?

Re: How do I call JspC manually?

2014-09-01 Thread Konstantin Kolinko
ly, bin/tool-wrapper.bat, bin/tool-wrapper.sh is designed as a wrapper for such command-line tools, but JspC depends on org.apache.tools.ant.Task, so you need to have Apache Ant libs on the classpath. 3) protected static final String SWITCH_HELP = "-help"; Best regar

Re: Class threw load exception

2014-09-03 Thread Konstantin Kolinko
2014-09-03 11:48 GMT+04:00 Kernel freak : > Hello guys, > > I am working on a maven project. I have already asked this question on > stackoverflow, but many believe it has something to do with Apache tomcat > giving a problem. Whenever I run the project, it says, project threw a > load() exception.

Re: java.lang.UnsatisfiedLinkError in Tomcat 8.0.11 and SPDY

2014-09-04 Thread Konstantin Kolinko
2014-09-04 20:06 GMT+04:00 : > Hello, I have this error configuring SPDY in Tomcat 8.0.11 in RHEL Linux 6.4 > (64bit). > > Everything works fine removing npnHandler attribute for SPDY. > > Sep 04, 2014 9:30:02 AM org.apache.catalina.core.AprLifecycleListener init > INFO: Loaded APR based Apache T

Re: New warning at Tomcat Startup

2014-09-04 Thread Konstantin Kolinko
n both your\n" + "manifest and in the META-INF/MANIFEST.MF " + "entry in the jar file."); } ]]] None of Tomcat jars have "Depends-On" entry in their manifests. Such an

Re: How a script can determine latest version of Tomcat

2014-09-05 Thread Konstantin Kolinko
n version, > attempting to download 7.0.x, until getting a 404 There have been several reports of mirrors that did not respond with proper 404, but instead produced a redirection to some advertisement page. Such behaviour is aga

Re: Context parameter override?

2014-09-10 Thread Konstantin Kolinko
2014-09-10 21:52 GMT+04:00 : > > (...) > > What puzzles me is the Context / Parameter feature of Tomcat. (context-param > from Java is clear.) There are at least 3 locations to define Tomcat level > parameters: > > - server.xml / Host (1) > - webapps / ... / context.xml (2) > - conf/.../myapp

Re: Deploy application as Root

2014-09-11 Thread Konstantin Kolinko
2014-09-11 7:52 GMT+04:00 Kiran Badi : > Hi, > > I am trying to deploy application as ROOT.war in tomcat 7.50 provided by > hosting service provider, but for some reasons I get below message > > FAIL - War file "ROOT.war" cannot be uploaded if context is defined in > server.xml > > > I have below

Re: stress testing tomcat applications

2014-09-12 Thread Konstantin Kolinko
2014-09-11 17:07 GMT+04:00 Elias Kopsiaftis : > ok Thanks, > > I am using Tomcat7. I dont know much about Tomcat application development, > so I will research these options you gave me before responding again. > > Thanks again As written here: http://tomcat.apache.org/lists.html#tomcat-users Imp

Re: Setting CacheTTL on Apache Tomcat 8

2014-09-14 Thread Konstantin Kolinko
but they > have disappeared in 8.0. > > > Or at least in the doc : > https://tomcat.apache.org/tomcat-8.0-doc/config/context.html#Attributes In Tomcat 8 it is http://tomcat.apache.org/tomcat-8.0-doc/config/resources.html http://tomcat.apache.org/migration-8.html#Web_application_resources >>> when I try to do this in BASEDIR/conf/context.xml by adding the >>> line 1. conf/context.xml is the default Context configuration file, shared by all web applications. You would better create a file for your own web application, instead of modifying the defaults. >>> >>> , the server won't start and spews out many lines of ... 2. The above line is not syntacticly valid to appear in an XML file. http://en.wikipedia.org/wiki/XML http://www.xmlnews.org/docs/xml-basics.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: Filter to change Content-Type of files without proper extensions.

2014-09-20 Thread Konstantin Kolinko
2014-09-20 6:32 GMT+04:00 John Polansky : > System: > Tomcat 5.5.15 Java 1.5 Solaris/SPARC Something old, with known issues and unsupported > Guys, new to the group, well new to tomcat completely I was hoping to get a > solution for our issue. We have a piece of software that is no longer > s

Re: [ANN] New committer: Felix Schumacher

2014-09-20 Thread Konstantin Kolinko
2014-09-19 11:49 GMT+04:00 Rainer Jung : > On behalf of the Tomcat committers I am pleased to announce that > Felix Schumacher (fschumacher) has been voted in as a new Tomcat committer. > Welcome, Felix! Best regards, Konstanti

Re: Tomcat JVM Crash

2014-09-20 Thread Konstantin Kolinko
2014-09-20 3:01 GMT+04:00 Chad Maniccia : > Enviroment > > > Windows 2008 R2 > > Tomcat 8.0.11 > > Java 1.8.0_20-b26 > > Sysco HTTPS Firewall (They have to authenticate through it first) > > HTTPS only > > Memory Pool=3072MB > > Thread Stack Size=384 > > > > Problem > > > We recently moved to a new

Re: Should logEffectiveWebXml=true log web fragments ? tomcat 7.0

2014-09-20 Thread Konstantin Kolinko
2014-09-19 22:15 GMT+04:00 Loïc Tregan : > Hi, > > Setting logEffectiveWebXml=true in context.xml does not log the web > fragments in the clause of the output web.xml; it is > not specified. > > Is it expected ? Should I file a bug ? > > I think it is a convenient feature to debug in which order t

Re: Should logEffectiveWebXml=true log web fragments ? tomcat 7.0

2014-09-22 Thread Konstantin Kolinko
t the full set of resourceJars) . It matches my experience. > > Do you think I should file a bug and log the merged Xml after resourceJars > is indeed complete ? > > Thanks, > > loïc > > > On Sat, Sep 20, 2014 at 1:09 PM, Konstantin Kolinko > wrote: > >>

Re: Help for configuration in App Manager in apache-tomcat-7.0.29

2014-09-25 Thread Konstantin Kolinko
2014-09-25 19:21 GMT+04:00 Rosario Marin : > Do you run one Tomcat, listening on 2 different ports ? Yes > What do you mean with "App Manager" ? For example : > http://164.152.40.70:7533/manager/html (GUI for deploy of applications). > > Ok, I have installed apache-tomcat-7.0.29 in the next add

Re: Tomcat Spnego against Active Directory does not work with Java 8

2014-09-25 Thread Konstantin Kolinko
nly log.txt and server.xml, so at least two other files are missing. Sending attachments to this mailing list is discouraged, as the mailing list software is configured to remove ones that it does not recognize. I acknowledge your report as well-written and valid one, so please file it into Bugzilla.

Re: Could not load com.sun.org.apache.xerces.internal.impl - exception happends randomly (not all the time)

2014-09-25 Thread Konstantin Kolinko
to JreMemoryLeakPreventionListener in r884341 [1] Mark has a presentation on Memory Leaks http://people.apache.org/~markt/presentations/2010-11-04-Memory-Leaks-60mins.pdf 3. Bundling a separate copy of Apache Xerces with the web application may help. It will not help if the root cause is your failur

Re: getDispatcherType is undefined

2014-09-27 Thread Konstantin Kolinko
=57020 Best regards, Konstantin Kolinko - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org

Re: tomcat7's welcome-file-list seems not to work fine on my server

2014-09-30 Thread Konstantin Kolinko
anism. > But why i get a 404? What do you get if you invoke the file explicitly, without relying on welcome files feature? http://127.0.0.1:8080/bar/index.jsp Best regards, Konstantin Kolinko - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org

Re: Connection reset error trying to deploy WAR file

2014-09-30 Thread Konstantin Kolinko
rseRequest(FileUploadBase.java:283) > at > org.apache.catalina.connector.Request.parseParts(Request.java:2737) > ... 27 more > > Is there a configuration parameter somewhere that allows me to increase > the al

Re: Tomcat returns Jsp source code as text/plain to the browser

2014-09-30 Thread Konstantin Kolinko
yed by Tomcat or by other web server? Is this request mentioned in Tomcat access log file? Best regards, Konstantin Kolinko - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org

Re: JNDIRealm doesn't work when binding as non-admin user

2014-10-01 Thread Konstantin Kolinko
.properties file in Tomcat sources. E.g. my build.properties file on a Windows 7 machine is essentially the following lines: base.path=../../libraries/tomcat7 java.7.home=C:/Program Files (x86)/Java/jdk1.7.0_67 "ant deploy" or just "ant" build a ready-to-use version of Tomcat in output directory. "ant release" build a release (with all release artifacts) in output/release Build instructions are in BUILDING.txt file. Best regards, Konstantin Kolinko - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org

Re: Open quote is expected for attribute "{1}" associated with an element type "username"

2014-10-02 Thread Konstantin Kolinko
2014-10-02 22:16 GMT+04:00 Gibran Castillo : > I installed Tomcat 8.0.12 in my MacBook OS X 10.9.5 > here /Library/Tomcat/Home. Home is a symbolic link that will always point > to the current version Tomcat directory, in this case > /Library/Tomcat/apache-tomcat-8.0.12 > > In the /Library/Tomcat/

Re: Maven Tomcat 6/7/8 plugin

2014-10-05 Thread Konstantin Kolinko
in/branches/tc8.x/ See archives of tomcat dev mailing list for discussions. Thus far, integration tests are failing, http://markmail.org/message/xc5r6yycrvmjh2vx Best regards, Konstantin Kolinko - To unsubscribe

Re: Issue when trying to move a webaplication from Websphere6/JDK6 to Tomcat8/JDK8

2014-10-08 Thread Konstantin Kolinko
2014-10-09 0:54 GMT+04:00 Deme Carv : > I have an application which runs perfectly in WebSphere 6.1 using JDK6 but > now I want to publish it to Tomcat8 using JDK8. It is a simple application > which is based on some JSP and some servlets. I was able to deploy it to > Tomcat8 eithier from my STS or

Re: Issue when trying to move a webaplication from Websphere6/JDK6 to Tomcat8/JDK8

2014-10-09 Thread Konstantin Kolinko
Any suggestion will very appreciated. The logs say that your application has started. Are you using correct URL in the web browser? Also see into log files. Some errors are logged into log files but not to the console. > On Wed, Oct 8, 2014 at 6:34 PM, Konstantin Kolinko > wrote: &

Re: Separation of CATALINA_HOME and CATALINA_BASE

2014-10-16 Thread Konstantin Kolinko
e.org/migration-8.html#Upgrading_8.0.x 3) Many 3rd parties (Linux vendors) redistribute Tomcat with separate home and base directories. 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.0: Unused primitive long or double variables prevent Tomcat from compiling JSP

2014-10-21 Thread Konstantin Kolinko
or.java:1145) > at > java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) > at > org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61) > at java.lang.Thread.run(Thread.java:745) > > Best Regards, > > Nasry Al-Haddad Hi! Thank you for detailed report. I was able to reproduce the issue. The crash happens not in our code, but in Eclipse Java compiler (ECJ), that Tomcat calls to compile the page. It is possible to replace the version of ecj.jar in Tomcat with a later one, but unfortunately, this issue is reproducible with the next available version (ecj-4.4.1) as well as with current nightly build of the compiler. I reported the issue to the Eclipse project: https://bugs.eclipse.org/bugs/show_bug.cgi?id=448112 Best regards, Konstantin Kolinko - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org

Re: connectionProperties is failing?

2014-10-23 Thread Konstantin Kolinko
that method is present both in current DBCP2 and in previous DBCP 1.4 used by Tomcat 7. If this implementation is of any use, it must be properly documented. As of now, it does not match its own javadoc which only says that format is "[propertyName=property;]*". Neither it is documente

Re: Tomcat 7 JDBC Connection Pool - question about usage from Java code

2014-10-25 Thread Konstantin Kolinko
constructor you need the keyword "new". > NamedParameterJdbcTemplate namedParameterJdbcTemplate = new > NamedParameterJdbcTemplate(dataSource); > > To restate: I am assuming the two database connections for two separate > calls of this above code wi

Re: Tomcat 7 JDBC Connection Pool - question about usage from Java code

2014-10-25 Thread Konstantin Kolinko
that single call, all those connections will come from the same pool. BTW, http://en.wikipedia.org/wiki/Design_Patterns#Structural 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 do you catch these exceptions

2014-11-01 Thread Konstantin Kolinko
rst one is used to launch an external script in case of OOM. Doing anything from Java rarely works in case of an OOM error, especially a "PermGen" OOM. (You have a bit more luck with your "Java heap space" one). See http://markmail.org/message/rr2

Re: jsp page on Tomcat non loading css

2014-11-08 Thread Konstantin Kolinko
2014-11-06 14:04 GMT+03:00 Alessandro Panzeri : > I deployed a war on Tomcat 7 to serve a jsp page. > > In the jsp page I put this css tag: > > > > Also, at the beginning of the jsp page I put this: > > <%@ page contentType="text/html;charset=utf-8" %> > > However when I contact via browser such j

Re: isELIgnored default is wrong

2014-11-08 Thread Konstantin Kolinko
lease candidate is currently in the voting process on dev@) e) simplify your web application until you have a reproducible test case that you can show others The examples webapp has EL on its pages and those are certainly working. f) update you web.xml to version 3.

Re: Spurious Problem starting Tomcat7 (garbled class names)

2014-11-08 Thread Konstantin Kolinko
code is responsible for that. Is your hardware OK? Is it a local harddrive, or a network one? > https://issues.apache.org/bugzilla/show_bug.cgi?id=57173 Bug 57173 is irrelevant here. (Bug 57173 occurs when parsing a class file. In this case the parsing has not been started yet. It failed w

Re: Problem when rebooting....

2014-11-08 Thread Konstantin Kolinko
2014-11-09 1:08 GMT+03:00 Bjørn T Johansen : > I have a init script I have been using now for severeal years that has been > working without any problems... > But since upgrading to Tomcat 8 (now 8.0.14), Tomcat is not coming up if I > boot the server.. > > Here is the output from catalina.out..:

Re: Problem when rebooting....

2014-11-09 Thread Konstantin Kolinko
viour is explained here: >> https://wiki.apache.org/tomcat/HowTo/FasterStartUp#General 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 Service won't start

2014-11-11 Thread Konstantin Kolinko
f Tomcat 7 had a bug that "service.bat install" had to be run from console window that itself is run with elevated privileges. https://issues.apache.org/bugzilla/show_bug.cgi?id=56143 Best regards, Konstantin Kolinko - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org

Re: Need help with Tomcat SSL setup

2014-11-11 Thread Konstantin Kolinko
2014-11-11 20:10 GMT+03:00 Gadhiraju, Satish : > Hi, I am new to tomcat. I have installed tomcat binaries and created one > stand alone instance. > Tomcat is working fine with http port, I get the message It works. > But when I try to access with https port I am getting page cannot be found. > Bel

Re: Trailing dot in hostname causes TLS handshake to fail

2014-11-11 Thread Konstantin Kolinko
2014-11-12 0:03 GMT+03:00 Peter Robbins : > Hi there, > I’m running into an issue with fully-qualified domain names and https > using Tomcat 8 and JDK 8. > Tomcat version: 8.0.14 > JDK Version: 1.8.0_25OS: Mac OS X 10.10 > > If you include the trailing dot in a request over https, the TLS handshake

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

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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: "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: 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: 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
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-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: [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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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
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: 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: 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

<    16   17   18   19   20   21   22   23   24   >