Re: NullPointerException on statrup - possible bug in Tomcat

2020-06-24 Thread Konstantin Kolinko
ср, 24 июн. 2020 г. в 19:25, : > > I have a web application which is failing in RestEasy initialization with an > NPE. It worked for many years until I added a large number of jar > dependencies because of a new development effort. I've debugged the code by > stepping through the Tomcat source

Re: Reason for failed POST to .../api/tokens in Tomcat 8 and 9?

2020-06-23 Thread Konstantin Kolinko
вт, 23 июн. 2020 г. в 20:08, Victor Norman : > > Cookie: > JSESSIONID=F61EBB3764D21F4A6161304BB9D820EF; > JSESSIONID=BA81E2D37D390F411711FAB57F5B8DBF 1) Having two session cookies is not a crime, but why? (It is not a cause of this issue. Just an odd configuration.) I see that when I go to

Re: NullPointerException in CoyoteOutputStream

2020-06-12 Thread Konstantin Kolinko
> The version of Tomcat is 9.0.12 and we are using the openSSL underneath all > this. Why not the current version (9.0.36)? Also https://cwiki.apache.org/confluence/display/TOMCAT/Troubleshooting+and+Diagnostics#TroubleshootingandDiagnostics-TroubleshootingunexpectedResponsestatepro

Re: Warning "AJP13 protocol: Reuse is set to false" written logs every second of every day. Please help.

2020-06-12 Thread Konstantin Kolinko
te/ajp/AjpProcessor.java#L1049. If there is a severe error that does not allow reuse of the connection, the "no reuse" packet is sent. I wonder how you encounter such an error. Do you have an access log configured in Tomcat and what does it show? Best regards, Konstantin Kolinko

Re: Tomcat shutdown password complexity

2020-05-10 Thread Konstantin Kolinko
shutdown command: https://github.com/apache/tomcat/blob/master/java/org/apache/catalina/core/StandardServer.java#L596 Note lines 546-548: if (ch < 32 || ch == 127) { break; } command.append((char) ch); The code that sends the command: https://github.com/apache/tomcat/blob/master/java/org/apache

Re: Catalina PID file

2020-04-24 Thread Konstantin Kolinko
be configured as a service (daemon) and started with Apache Commons Daemon executable (jsvc). jsvc knows how to manage a PID file. See daemon.sh for an example. > and getting the PID from Java isn't super-straightforward until Java 9. :( 4. With our own cat's food: Tomcat-Native has the method: o

Re: 10.0.0-M4 missing PGP signatures?

2020-04-23 Thread Konstantin Kolinko
e a copy of Maven staging repository from the time of release vote. So I verified that those signatures match the files in the release and uploaded them to dist.a.o. Best regards, Konstantin Kolinko - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org

Re: Practical multipart handling

2020-03-26 Thread Konstantin Kolinko
ntil the request processing ends. > When I'm done with a part, must I explicitly call Part.delete()? Tomcat deletes the files automatically (I implemented this feature in Tomcat 7.0.30 - see changelog). In my own web applications I delete the files explicitly (calling part.delete() in a cycle

Re: Tomcat Wiki Source Code Download

2020-03-24 Thread Konstantin Kolinko
d, a copy of its documentation is published under "tomcat-X.Y-doc" onto tomcat.apache.org web site. E.g. https://tomcat.apache.org/tomcat-9.0-doc/logging.html https://github.com/apache/tomcat/blob/9.0.x/webapps/docs/logging.xml Best regards, Konstantin Kolinko

Re: /META-INF/resources/ and Chrome's DevTools

2020-03-15 Thread Konstantin Kolinko
t as a war file. 1) Copy your META-INF/context.xml file as $CATALINA_BASE/conf/Catalina/localhost/yourwebappname.xml 2) Add docBase attribute to the element in it. See http://tomcat.apache.org/tomcat-9.0-doc/config/context.html#Defining_a_context Best re

Re: Host based logging

2020-02-29 Thread Konstantin Kolinko
сб, 29 февр. 2020 г. в 15:33, Alexander Curvers : > > Note the "". Those are comment wrappers in XML. The above definition is commented-out and thus is ignored. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For

Re: Question on HttpSession investigation

2020-02-12 Thread Konstantin Kolinko
ist of all attributes for that session. You may look into the source code for HTMLManagerServlet to see how "sessionDetail" command is implemented. Best regards, Konstantin Kolinko - To unsubscribe, e-mail: users-unsubscr...@t

Re: Installing a program designed for Tomcat 5.5 on Tomcat 9

2020-02-09 Thread Konstantin Kolinko
[3]. [3] https://tomcat.apache.org/migration.html [4] https://tomcat.apache.org/migration-6.html#Modified_directory_structure 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] HttpServletRequest.getRemoteAddr() sometimes returns NULL on Tomcat 9.0.30 and HTTP/2 secure requests

2020-02-06 Thread Konstantin Kolinko
figuration setting turned on? org.apache.catalina.connector.RECYCLE_FACADES=true See https://cwiki.apache.org/confluence/x/yColBg#TroubleshootingandDiagnostics-TroubleshootingunexpectedResponsestateproblems Best regards, Konstantin Kolinko - To unsubscrib

Re: Expected behavior of calling javax.servlet.ServletRequest#getInputStream after javax.servlet.http.HttpServletRequest#getPart

2019-12-13 Thread Konstantin Kolinko
lf. Though personally my first reaction to any e-mail that resembles spam is to ignore 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: Not able to generate thread dump in windows

2019-12-12 Thread Konstantin Kolinko
чт, 12 дек. 2019 г. в 12:43, thulasiram k : > > Hi, > > I tried to generate thread dump for tomcat 7.0.94 in windows 2016. it > writes in logs "[10340] Console CTRL+BREAK event signaled" but no dump has > generated. Can you please guide on this how to generate the thread dump / > heap dump here.

Re: Expected behavior of calling javax.servlet.ServletRequest#getInputStream after javax.servlet.http.HttpServletRequest#getPart

2019-12-11 Thread Konstantin Kolinko
s that it does not break any real 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: ServletRequest Obj Randomly not Processing x-www-form-urlencoded parms

2019-12-09 Thread Konstantin Kolinko
9.0.30 - release candidate is available and is currently being voted - see dev@ mailing list. 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 is throwing an error Invalid byte tag in constant pool:19

2019-12-09 Thread Konstantin Kolinko
пн, 9 дек. 2019 г. в 03:58, Nelligan, Steven M : > > > I am trying to rebuild my applications and all of a sudden, I am getting the > following error: > > Our backend application (from third party has been updated) It is using Java > 11. > > My tomcat servers are running version 7.34 of tomcat

Re: override context path for manager application

2019-12-04 Thread Konstantin Kolinko
чт, 5 дек. 2019 г. в 01:20, Guild, Jason A (DOT) : > > Hi all: > > The context path of the Tomcat manager application is "/manager" by default > [0]. > I am trying to change this context path from the default using an override > configuration. > > I am doing the typical creation of a container

Re: Unknown protocol: e on Windows

2019-12-04 Thread Konstantin Kolinko
ср, 4 дек. 2019 г. в 22:38, Christopher Schultz : > Konstantin, > > On 12/4/19 13:33, Konstantin Kolinko wrote: > > ср, 4 дек. 2019 г. в 20:28, Christopher Schultz > > : > >> > >> All, > >> > >> I feel like I should be able to figure this o

Re: Unknown protocol: e on Windows

2019-12-04 Thread Konstantin Kolinko
ng is broken. > I'm using Oracle Java 1.8.0 build 161. FYI, an up-to-date version of Java 8 for Windows is available from AdoptOpenJDK. https://adoptopenjdk.net/ It is 8u232 now. Best regards, Konstantin Kolinko - To u

Re: Support for JDK only by Windows Installer?

2019-11-16 Thread Konstantin Kolinko
s with elevated privileges. That is why service.bat was changed to pass all settings as command line arguments when installing a service (calling tomcat9[w].exe). You may find a reference to Bugzilla issue in the commit history of the s

Re: Getting Tomcat internal logging working

2019-11-07 Thread Konstantin Kolinko
echnology is to place your configuration into WEB-INF/classes/logging.properties file of your 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: Getting Tomcat internal logging working

2019-11-06 Thread Konstantin Kolinko
INER or FINEST. https://docs.oracle.com/javase/7/docs/api/java/util/logging/Level.html#ALL > When running, I see no logging when I'm expecting to see things in > catalina.out. I changed these lines from log.trace() to > System.err.println() and they do indeed show up. &

Re: Any tutorials or hints about JSP using javax.script engines instead of Java?

2019-10-09 Thread Konstantin Kolinko
uot;Jasper" component of Tomcat and its org.apache.jasper.servlet.JspServlet Technically, it should not rely on Tomcat internals and could be swapped with some other implementation. (Not tested). Best regards, Konstantin Kolinko

Re: Bug in org.apache.tomcat.util.codec.binary.Base64.decodeBase64 ?

2019-10-08 Thread Konstantin Kolinko
ists.html And do not forget to follow the rules. They are the same as for the users list: http://tomcat.apache.org/lists.html#tomcat-users 6. Top-posting is bad. Best regards, Konstantin Kolinko - To unsubscribe, e-mail: users

Re: Bug in org.apache.tomcat.util.codec.binary.Base64.decodeBase64 ?

2019-10-08 Thread Konstantin Kolinko
ist for links). There have been changes in the decoding code between 8.5.46 and .47. c8fcc65e74d43b8201a50a30f88836264e565f79 709b45b42020d6cbc59940ab04380f5b0134b946 (on 17 and 18 of September) Best regards, Konstantin Kolinko

Re: Acessing static content - Tomcat 7 vs. Tomcat9

2019-10-07 Thread Konstantin Kolinko
пн, 7 окт. 2019 г. в 15:44, Martin Knoblauch : > > Hi Konstantin, > > On Mon, Oct 7, 2019 at 2:36 PM Konstantin Kolinko > wrote: > > > 2. For Tomcat to issue a redirect, the "docs" directory must be > > present in your web application. It

Re: Acessing static content - Tomcat 7 vs. Tomcat9

2019-10-07 Thread Konstantin Kolinko
present. (If there is none, Tomcat does not know that the requested resource is a directory). 3. Starting with some version (January 2016) the default place where the redirect is issued by Tomcat was moved from Mapper (in earlier stages of request processing) to the DefaultServlet. This behaviour

Re: Invalid HTTP Header - attack?

2019-08-01 Thread Konstantin Kolinko
ity-howto.html#System_Properties [2] https://tomcat.apache.org/security.html [3] https://tomcat.apache.org/tomcat-9.0-doc/config/systemprops.html#Logging Best regards, Konstantin Kolinko - To unsubscribe, e-mail:

Re: Can Tomcat ignore overridden jar

2019-07-29 Thread Konstantin Kolinko
hink you should consider using the "parallel deployment" feature. You can deploy a new version of your application in parallel with the old one. http://tomcat.apache.org/tomcat-8.5-doc/config/context.html#Parallel_deployment Best re

Re: Password is not working properly

2019-07-29 Thread Konstantin Kolinko
чт, 25 июл. 2019 г. в 17:23, Support : > > Hi Sir, > > I am using tomcat 9 for my application. For my admin page, I have a > username and password in conf/tomcat-user.xml. > Using digest.sh, I encrypted my password(sha-256). > > password: Password > encrypted: 5er5akakfkd556546adnfjbkklndkfgbjdb

Re: Re: HTTP to HTTPS redirect not happening

2019-07-22 Thread Konstantin Kolinko
Apache HTTPD Server administrators around you, the rewrite syntax will be more familiar to them). Best regards, Konstantin Kolinko - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org

Re: WAR file not deploying correctly

2019-07-22 Thread Konstantin Kolinko
pp-0.3.0\config] > could not be completely deleted. The presence of the remaining files may > cause problems As you can see from the above log message, Tomcat was unable to delete the "config" directory. Thus your stopping and undeploying a web application was not completed. B

Re: Tomcat 9.0.20 : send email on errors

2019-07-22 Thread Konstantin Kolinko
atch (Exception ex) { reportError(null, ex, ErrorManager.WRITE_FAILURE); } ]]] The actual processing of the error is delegated to a java.util.logging.ErrorManager. The default implementation just prints to System.err once and ignores further errors, but I think it is configurable. I hope this helps. Best r

Re: [EXTERNAL] Re: cglib jars always give errors with different versions when start Tomcat 9.0.13

2019-07-22 Thread Konstantin Kolinko
пн, 22 июл. 2019 г. в 23:15, Hua, Gary - Saint Louis, MO - Contractor : > > Chris: > > We inherited this web application from previous vendor IBM.The original > version of hibernate related jars are: cglib-2.1.jar, ehcache-1.1.jar, > hibernate3.jar(3.1.0) > > This web application was

Re: WAR file not deploying correctly

2019-07-20 Thread Konstantin Kolinko
that all its files (in webapps and in work directory) are removed. The "config" directory may remain from an incomplete undeployment. E.g. if the files in the config directory are owned by root user and cannot be deleted by the user running Apache Tomcat. 3. I hope that you do not run two cop

Re: HTTP to HTTPS redirect not happening

2019-07-20 Thread Konstantin Kolinko
ally, I usually run with org.apache.catalina.STRICT_SERVLET_COMPLIANCE=true and that turns "xmlValidation" on as well). 4. Top-posting is bad. [1] http://tomcat.apache.org/tomcat-9.0-doc/config/context.html Best regards, Konstantin Kolinko

Re: tomcat and openjdk as windows service

2019-07-19 Thread Konstantin Kolinko
roved, it is an issue with Apache Commons Daemon project. If some documentation is lacking, it could be improved in Apache Tomcat project. 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 not responding (in browser) after undeploying docs and examples application.

2019-06-16 Thread Konstantin Kolinko
ith downloading a binary release (zip or tar.gz file) from tomcat.apache.org we site. Is this what you did? Why aren't you using the current version (8.5.42)? 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 stop trailing slash redirects?

2019-06-06 Thread Konstantin Kolinko
ffix). In general, disabling the redirect is a bad idea and should be avoided. Best regards, Konstantin Kolinko - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org

Re: programmatically setting MIME mappings for static-only site

2019-04-19 Thread Konstantin Kolinko
tpd/httpd/trunk/docs/conf/mime.types > So I've probably answered my own question; this is an old TODO that > needs to be done, I suppose? > Best regards, Konstantin Kolinko - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org

Re: Is there a problem with the digest?

2019-04-12 Thread Konstantin Kolinko
tried sending a blank email to > users-digest-h...@tomcat.apache.org yesterday and no reply from that either. I never tried sending a "blank" email. Those may be rejected by spam filer (as well as e-mails using HTML formatting). I usually add a few lines of

Re: ecj-4.6.3 no longer required?

2019-03-26 Thread Konstantin Kolinko
sion (ecj-4.6.3.jar) is the latest one that can run on Java 7, thus it is bundled with the official release of Tomcat 8.5. Best regards, Konstantin Kolinko - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For addition

Re: Documentation difference between Apache Tomcat 8.0 and 8.5

2019-02-12 Thread Konstantin Kolinko
not used it yet though. https://stackoverflow.com/questions/2311697/is-there-a-robust-java-util-logging-handler-implementation-of-syslog http://rusv.github.io/agafua-syslog/ Best regards, Konstantin Kolinko - To unsubscribe, e-mail:

Re: tomcat 8.5.38 change to catalina.sh

2019-02-11 Thread Konstantin Kolinko
ral thoughts here. I think Bug 63041 is the place to discuss a solution to this issue. https://bz.apache.org/bugzilla/show_bug.cgi?id=63041 Best regards, Konstantin Kolinko - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For

Re: Tomcat occasionally returns a response without HTTP headers

2018-12-01 Thread Konstantin Kolinko
aviour. (But your client should see the headers. It shouldn't report that headers are missing). Best regards, Konstantin Kolinko - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org

Re: RSS Feed for Markmail

2018-10-17 Thread Konstantin Kolinko
; Sent: 17 October 2018 12:18 > To: Tomcat Users List > Subject: RE: RSS Feed for Markmail > > That is what I have been trying to do the last three days, with no response!! > > -Original Message- > From: Konstantin Kolinko > Sent: 17 October 2018 12:15 > To

Re: RSS Feed for Markmail

2018-10-17 Thread Konstantin Kolinko
ср, 17 окт. 2018 г. в 14:37, Konstantin Kolinko : > > ср, 17 окт. 2018 г. в 14:31, Robert Shipway : > > > > Unfortunately, I am not allowed to be sending e-mails that are not HTML > > e-mails from the company I work for and even if I try to send a non HTML > >

Re: RSS Feed for Markmail

2018-10-17 Thread Konstantin Kolinko
URL as well as [2] with a web browser. It displays correctly. [2] https://tomcat.markmail.org/atom/+list:org%2Eapache%2Etomcat%2Eusers Maybe your RSS Client has trouble establishing an HTTPS connection to that site? Be

Re: RSS Feed for Markmail

2018-10-17 Thread Konstantin Kolinko
cs/faq.xqy Best regards, Konstantin Kolinko - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org

Re: help with org.apache.jasper.compiler.JDTCompiler issue?

2018-09-20 Thread Konstantin Kolinko
why newer library is not shipped with old versions of Tomcat is because it requires Java 8 to run (and Tomcat 6.0 must be able to run on Java 5). Option 2: Upgrade!! Tomcat 6 has reached end of life. See https://tomcat.apache.org/security-6.ht

Re: 21 second pause that randomly happens

2018-07-16 Thread Konstantin Kolinko
2018-07-16 15:55 GMT+03:00 David Cleary : > We have a customer who is experiencing a random, 21 second pause when using > out Tomcat based application server. We believe this may be during a TCP > connect and timeout. Logging indicates the pause happens before the request > makes it to our back

Re: Can't start Tomcat in debug mode

2018-07-16 Thread Konstantin Kolinko
output from VersionLoggerListener. http://tomcat.apache.org/tomcat-9.0-doc/config/listeners.html#Version_Logging_Lifecycle_Listener_-_org.apache.catalina.startup.VersionLoggerListener Best regards, Konstantin Kolinko - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org

Re: Getting the Manager app running on localhost.. Please help

2018-07-12 Thread Konstantin Kolinko
g "manager-script" and "manager-gui" to the same user means that CSRF protection (in the Manager web application) for that user will be ineffective. Best regards, Konstantin Kolinko - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org

Re: Working dir incorrect tomcat 9.10?

2018-06-30 Thread Konstantin Kolinko
ration supports substitution of environment variables, use one of those variables explicitly, e.g. as "${catalina.base}/logs" (see the default conf/logging.properties in Tomcat for an example). Best regards, Konstantin Kolinko ---

Re: test email

2018-06-27 Thread Konstantin Kolinko
sts.html#tomcat-users See #7. in that list (no HTML, no attachments). Usually attachments are silently stripped. HTML formatting may cause the message to be treated as spam and be bounced. Best regards, Konstantin Kolinko - To

Re: Question regarding running Tomcat 7.0.57 offline

2018-04-20 Thread Konstantin Kolinko
0.0.1" in your JDBC url? Is the database OK and running? Can you connect to the database with a standalone Java client (not Tomcat)? I wonder whether using an IPv6 address will make any difference. ::1 0:0:0:0:0:0:0:1 Best

Re: [ANN] Apache Tomcat 7.0.86 released

2018-04-20 Thread Konstantin Kolinko
There is a regression in handling of DataSource resources that do not specify a factory. http://bz.apache.org/bugzilla/show_bug.cgi?id=62316 Even though there is a simple workaround, I think that we need to roll 7.0.87 release rather soon. K.Kolinko 2018-04-16 16:32 GMT+03:00 Violeta

Re: ClassNotFoundException: org.apache.tomcat.dbcp.dbcp2.BasicDataSourceFactory starting in 7.0.86

2018-04-20 Thread Konstantin Kolinko
a entry, to better document the issue and the workaround: https://bz.apache.org/bugzilla/show_bug.cgi?id=62316 Best regards, Konstantin Kolinko - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org

Re: Can you access my Manager App? http://24.0.5.14:8081/manager/html Tomcat/8.5.29, CentOS

2018-04-05 Thread Konstantin Kolinko
n your CATALINA_BASE/conf/ directory > > 2. Your CATALINA_BASE/conf/server.xml does not have a in it > for MemoryUserDatabaseFactory > > 3. Your Manager application doesn't have a configured > > Can you confirm all of the above? 4. You did not restart your Tomcat after editing

Re: on getting started contributing doc improvements (was RE: On Tomcat 8.5.16, RemoteHostFilter ...)

2018-03-30 Thread Konstantin Kolinko
wed and updated many of them several years ago, but a lot of those are rather old. I reorganized HowTo page several years ago by grouping them into topics. Best regards, Konstantin Kolinko - To unsubscribe, e-mail: users-unsubscr...@t

Re: on getting started contributing doc improvements (was RE: On Tomcat 8.5.16, RemoteHostFilter ...)

2018-03-30 Thread Konstantin Kolinko
"diff -u" can be used to create a patch. The source code for "tomcat.apache.org" site is only in SVN. SVN commands can be used to checkout only relevant portion of the site (skipping megabytes of documentaion/Javadoc for all release

Re: Tomcat stopped and Debug can't be done in Eclipse

2018-03-24 Thread Konstantin Kolinko
ed in any other situation. It is not used when starting Tomcat from within Eclipse IDE. It is not used when running Tomcat as a Windows service. The system variables used by catalina.bat can be set globally, but the recommended way is to create a file setenv.bat - a

Re: Granting permission to a single application-supplied JAR

2018-03-22 Thread Konstantin Kolinko
2018-03-23 1:32 GMT+03:00 Christopher Schultz <ch...@christopherschultz.net>: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA256 > > Konstantin, > > Thanks for the reply. > > On 3/22/18 6:12 PM, Konstantin Kolinko wrote: >> 2018-03-23 0:39

Re: Granting permission to a single application-supplied JAR

2018-03-22 Thread Konstantin Kolinko
shooting You need to know the actual permission that failed. You need to know java.security.CodeSource.getLocation() for all classes in stacktrace up to the failing point (starting from the nearest AccessController.doPrivileged()). All those CodeSources should have that permission. If you missed one, you will fail. 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 stopped and Debug can't be done in Eclipse

2018-03-17 Thread Konstantin Kolinko
2:type=/Hi5S,component=ContextSelector > 2018-03-17 14:33:47,291 localhost-startStop-1 DEBUG Registering MBean > org.apache.logging.log4j2:type=/Hi5S,component=Loggers,name= > 2018-03-17 14:33:47,307 localhost-startStop-1 DEBUG Registering MBean > org.apache.logging.log4

Re: ClassNotFoundException when calling custom MBean operation

2018-03-06 Thread Konstantin Kolinko
legedActions, etc. but is this the right approach for what I'm > trying to do, here? Or am I missing something? > >From those error messages, it looks like your code does a JNDI lookup. And the lookup fails with a NamingException (a javax.naming.NoInitialContextException to be

Re: Error parsing HTTP request header, HTTP method names must be tokens

2018-02-21 Thread Konstantin Kolinko
do i have to edit to reveal what the root cause is? http://tomcat.apache.org/tomcat-8.5-doc/logging.html and also official Java documentation on java.util.logging. >From the log message cited by Coty, I think you need to add org

Re: Tomcat stopped and Debug can't be done in Eclipse

2018-02-20 Thread Konstantin Kolinko
> in as below : > > > org.apache.maven.plugins > maven-war-plugin > 3.2.0 > > > It used to be very easy for me to do debugging and now things are so much > complicated 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 stopped and Debug can't be done in Eclipse

2018-02-20 Thread Konstantin Kolinko
after JVM launch. I think that in Eclipse you can look into "threads" view, find a running (stopped) "main" thread there and hit a green button to resume 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: Tomcat7 with jre 1.7 error during starting

2018-01-26 Thread Konstantin Kolinko
ences between JAR files format and plain ZIP format: its file names are encoded in UTF-8. The ZIP format uses OS locale for filenames. If a JAR file was packed with a ZIP tool, the filenames in it might be broken. The exception apparently tells that a file name is not a valid UTF-8 string. Best regards, Konst

Re: tomcat version question

2018-01-25 Thread Konstantin Kolinko
ng something? Have you seen the Specifications page in the Wiki? https://wiki.apache.org/tomcat/Specifications I updated the whichversion page with a link to there (r1822243). Best regards, Konstantin Kolinko - To unsubscribe, e-mail

Re: roles stripped when using login() in tomcat 8.5 but not 8.0

2018-01-23 Thread Konstantin Kolinko
in web.xml and repacked). I hope that you do not mind. Best regards, Konstantin Kolinko - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org

Re: Using Environment variables instead of Java -D properties for context.xml substitution

2018-01-23 Thread Konstantin Kolinko
f, even the java opts >> of the process will be invisible. >> >> Just my 2cts. >> >> Peter > > the commandline parameters (-D) are also in the tomcat logs, thus probably in > your backups and archives. > VersionLoggerListener can also be configured to log the environment variables with logEnv="true". It is not the default setting though. > ad nauseum. The FAQ page: https://wiki.apache.org/tomcat/FAQ/Password Best regards, Konstantin Kolinko - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org

Re: Thread-safety with sessions

2018-01-17 Thread Konstantin Kolinko
lock object for the cache (e.g. an AtomicReference), See also other HttpSession* listeners in that package, https://docs.oracle.com/javaee/7/api/javax/servlet/http/package-summary.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: urgent problems with tomcat release 8.5.4

2017-12-22 Thread Konstantin Kolinko
2017-12-22 5:28 GMT+03:00 CYAG (Johnny Chao Yang) : > Hello team, > > > Due to the tomcat 8.0 will closed to its support deadline, so we are going to > upgrade our tomcat version from 8.0 to 8.5.4, as Apache tomcat official > website announced 8.5.x will not stop support so far,

Re: internalProxies regex

2017-12-20 Thread Konstantin Kolinko
bleshooting_Scenario AFAIK, '\|' in a regular expression will be interpreted as expecting literal '|' character in the matched string. No IP address has this character so none will match. Best regards, Konstantin Kolinko - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org

Re: Moving a web application from tomcat6 to tomcat9

2017-12-18 Thread Konstantin Kolinko
dClass(WebappClassLoaderBase.java:1104) ... 51 more The above means that Log4J library is missing in your web application. (Log4j 1.2.x, I guess) https://logging.apache.org/log4j/1.2/ https://logging.apache.org/log4j/2.x/manual/migration.html 4) What is in local

Re: Logging framework

2017-12-07 Thread Konstantin Kolinko
ler. The stdout and stderr of the java process are redirected to "catalina.out" file by catalina.sh script. It is not a proper log file. Best regards, Konstantin Kolinko - To unsubscribe, e-mail: users-unsubscr...@tomcat.

Re: Are Symbol files of Tomcat DLLs publicly available?

2017-12-05 Thread Konstantin Kolinko
y contain debug symbols or not. tomcat7.exe, tomcat7w.exe are renamed Prunsrv.exe and Prunmgr.exe from http://commons.apache.org/proper/commons-daemon/procrun.html http://commons.apache.org/proper/commons-daemon/download_daemon.cgi -> Browse native binaries download area... -> windows/ There are

Re: File and directory permissions on Tomcat 8.5 tar archive

2017-11-24 Thread Konstantin Kolinko
sions in 'work' are likely to contain confidential data and should not be world-readable. http://tomcat.apache.org/tomcat-8.5-doc/security-howto.html#Non-Tomcat_settings Best regards, Konstantin Kolinko - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org

Re: Service killed by signal 9

2017-11-10 Thread Konstantin Kolinko
cat Manager web application there is "Server Status" page. It has a table that shows current memory consumption, as reported by Java. The values can also be queried via JMX (e.g. with jconsole application). Best regards, Konstantin Kolinko --

Re: Start embedded Tomcat 9.0.1 server from java code

2017-11-08 Thread Konstantin Kolinko
sed as web applications in Tomcat? I guess that you do not want that, so set those flags to false. Tomcat.addWebapp explicitly configures a web application. Auto-deployment is not needed. > I just placed in a Servlet into my classpath and applied the mapping in the > web.xml -

Re: Logging framework !

2017-11-01 Thread Konstantin Kolinko
(and there is a comment at that top of that 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: TLD startup issues

2017-10-23 Thread Konstantin Kolinko
ing used. Tomcat can be run with CATALINE_BASE != CATALINA_HOME, and some OS vendors place Tomcat configuration files into a different place. Print the values of system properties catalina.home catalina.base tomcat.util.scan.Standa

Re: Checksum fail for apache-tomcat-8.5.23-windows-x86.zip

2017-10-23 Thread Konstantin Kolinko
B2 1E89 33C6 0243 The footprint is the same as of this key in https://www.apache.org/dist/tomcat/tomcat-8/KEYS For ages I used md5sum.exe and sha1sum.exe from GNU CoreUtils package for Windows, http://gnuwin32.sourceforge.net/ http://gnuwin32.source

Re: classloader issue with bouncycastle

2017-10-18 Thread Konstantin Kolinko
ease see "Memory Leaks" presentation (2010) by markt here: http://tomcat.apache.org/presentations.html and http://tomcat.apache.org/tomcat-8.5-doc/class-loader-howto.html (Maybe moving the BC.jar and its dependencies to ${catalina.home}/lib is sufficient to fix your issue. A more robust solutio

Re: Enforcing server preference for cipher suites

2017-10-10 Thread Konstantin Kolinko
ki.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 unstable after updating apache http client

2017-10-05 Thread Konstantin Kolinko
ly going on should be visible there, https://wiki.apache.org/tomcat/FAQ/Troubleshooting_and_Diagnostics#Common_Troubleshooting_Scenario 2. Tomcat 7.0.82 was released a few days ago. Best regards, Konstantin Kolinko - To unsubscribe, e

Re: migration from tomcat 7.0 to 8.5

2017-10-04 Thread Konstantin Kolinko
quot;) as a resource and reports "true, it is a package" if the class resource is not found. > I think I'm up to 12 hours messing with this and reading everything I can get > my hands on. > Something that was so simple in tomcat 7 has turned out to be a nightmare in

Re: Java 9 support + HSTS for tomcat.apache.org

2017-10-04 Thread Konstantin Kolinko
2017-09-28 19:56 GMT+03:00 Konstantin Kolinko <knst.koli...@gmail.com>: > 2017-09-26 11:57 GMT+03:00 Oliver Heister <oliverheis...@gmail.com>: >> 2. Currently MITM attacks by evil ISPs or WiFi networks are possible >> against people downloading tomcat from >> htt

Re: Help needed - JPA probem - No connection specified with project

2017-09-29 Thread Konstantin Kolinko
> > And my web.xml ; > > > http://www.w3.org/2001/XMLSchema-instance; > xmlns="http://xmlns.jcp.org/xml/ns/javaee; > xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/javaee > http://xmlns.jcp.org/xml/ns/javaee/web-app_3_1.xsd; version="3.1"> > Hi5S >

Re: Java 9 support + HSTS for tomcat.apache.org

2017-09-28 Thread Konstantin Kolinko
e releases it to check the PGP signature, not the checksums. It is not so easy to compromise a PGP signature. You cannot generate a new signature without having a key. I think that HSTS is an overkill. Maybe update links to *.cgi pages (in menu and on the site) to use https: Be

Re: tomcat ssl setup

2017-09-26 Thread Konstantin Kolinko
es, "TLS key/certificate generation" Also available here: http://tomcat.apache.org/presentations.html > > https://youtu.be/I6TbMqH9WFg > > Mark > Best regards, Konstantin Kolinko - To unsubscribe, e-mail

Re: Help needed - JPA probem - No connection specified with project

2017-09-25 Thread Konstantin Kolinko
le="30" maxWait="-1" username="root" singleton="true" override="true" factory="org.apache.tomcat.jdbc.pool.DataSourceFactory" password="password" alternateUsernameAllowed="true" driverClassName="com.mysql.jdbc.Driver" url="jdbc:mysql://localhost:3306/hi5" /> // You either use /> or , not both. ]]] Best regards, Konstantin Kolinko - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org

Re: unable to configure logging

2017-09-25 Thread Konstantin Kolinko
na.org.apache.juli.AsyncFileHandler.level = FINE so you should have seen your messages 3. Beware of typos. Your configuration looks sane. I do not see any obvious errors in it. 4. If nothing else helps, run Tomcat with a debugger https://wiki.apache.org/tomcat/FAQ/Developing#Debugging Best r

Re: Help needed - JPA probem - No connection specified with project

2017-09-22 Thread Konstantin Kolinko
ne of <Resource, ResourceLink> elements with the same value of "name" attribute. If you have a ResourceLink in context.xml, it means that your Resource element must go into GlobalNamingResources element of conf/server.xml file. http://tomcat.apache.org/tomcat-8.5-doc

Re: Where Tomcat webapp contexts live on Debian (NOT off-topic; A LEGITIMATE TECHNICAL QUESTION)

2017-08-16 Thread Konstantin Kolinko
ost.html#Automatic_Application_Deployment [4] http://tomcat.apache.org/tomcat-7.0-doc/config/listeners.html#UserConfig_-_org.apache.catalina.startup.UserConfig Best regards, Konstantin Kolinko - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org

  1   2   3   4   5   6   7   8   9   10   >