Re: ApacheCon NA is in just under 3 weeks
On 9/11/2018 2:30 PM, Mark Thomas wrote: On 05/09/18 20:52, Igal Sapir wrote: On 9/5/2018 8:22 AM, Christopher Schultz wrote: On 9/5/18 06:40, Mark Thomas wrote: All, ApacheCon North America starts in Montréal in just under three weeks. There are 2 days of Tomcat content starting on the Monday. If you haven't registered, now would be a good time to do so ;) The evening schedule is already looking pretty packed but Monday evening has been set aside for project gatherings and there are still rooms available. Thoughts on booking a room for a Tomcat related session? +1 +1 Booked. Monday evening 19.00 local time. Viger B. Mark Awesome! I'm looking forward to it. Igal - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: ApacheCon NA is in just under 3 weeks
On 05/09/18 20:52, Igal Sapir wrote: > On 9/5/2018 8:22 AM, Christopher Schultz wrote: >> On 9/5/18 06:40, Mark Thomas wrote: >>> All, >>> >>> ApacheCon North America starts in Montréal in just under three >>> weeks. There are 2 days of Tomcat content starting on the Monday. >>> If you haven't registered, now would be a good time to do so ;) >>> >>> The evening schedule is already looking pretty packed but Monday >>> evening has been set aside for project gatherings and there are >>> still rooms available. >>> >>> Thoughts on booking a room for a Tomcat related session? >> +1 > > +1 Booked. Monday evening 19.00 local time. Viger B. Mark - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Warnings when stopping Tomcat
On 11/09/18 18:32, Asire, Scott wrote: > I’m sure this has been asked/answered before so just point me to where I can > read up on it. https://svn.apache.org/viewvc/tomcat/trunk/bin/catalina.sh?annotate=1835115#l302 > I have tried this on Tomcat 8.5.31, 8.5.34, 9.0.12 and the same results > occur: When shutting down Tomcat the following warnings are generated on JDK > 10 and JDK 11 EA: > > I see these written to the console of my Tomcat window which I start by > running java and using org.apache.catalina.startup.Bootstrap as the main > class. You won't see those warnings if you start Tomcat with the standard scripts. > 2018/09/11 10:14:52.135 | INFO: Stopping service [Catalina] > > 2018/09/11 10:14:52.135 | WARNING: An illegal reflective access operation has > occurred > > 2018/09/11 10:14:52.135 | WARNING: Illegal reflective access by > org.apache.catalina.loader.WebappClassLoaderBase > (file:/usr/local/apache-tomcat-9.0.12/lib/catalina.jar) to field > java.io.ObjectStreamClass$Caches.localDescs > > 2018/09/11 10:14:52.135 | WARNING: Please consider reporting this to the > maintainers of org.apache.catalina.loader.WebappClassLoaderBase > > 2018/09/11 10:14:52.135 | WARNING: Use --illegal-access=warn to enable > warnings of further illegal reflective access operations > > 2018/09/11 10:14:52.135 | WARNING: All illegal access operations will be > denied in a future release > > Are there plans to address these in a future release? Not at the moment. We'll keep the explicit clearing in place as long as we can. Once it is permanently blocked we'll probably have to rely on the fact that the Maps in question use a WeakReference and wait for GC to clear the references. That will make tracking down genuine memory leaks harder so we'll have to see if we can persuade the JRE team to provide some sort of replacement API if/when we reach that point. Mark - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Warnings when stopping Tomcat
I’m sure this has been asked/answered before so just point me to where I can read up on it. I have tried this on Tomcat 8.5.31, 8.5.34, 9.0.12 and the same results occur: When shutting down Tomcat the following warnings are generated on JDK 10 and JDK 11 EA: I see these written to the console of my Tomcat window which I start by running java and using org.apache.catalina.startup.Bootstrap as the main class. 2018/09/11 10:14:52.135 | INFO: Stopping service [Catalina] 2018/09/11 10:14:52.135 | WARNING: An illegal reflective access operation has occurred 2018/09/11 10:14:52.135 | WARNING: Illegal reflective access by org.apache.catalina.loader.WebappClassLoaderBase (file:/usr/local/apache-tomcat-9.0.12/lib/catalina.jar) to field java.io.ObjectStreamClass$Caches.localDescs 2018/09/11 10:14:52.135 | WARNING: Please consider reporting this to the maintainers of org.apache.catalina.loader.WebappClassLoaderBase 2018/09/11 10:14:52.135 | WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations 2018/09/11 10:14:52.135 | WARNING: All illegal access operations will be denied in a future release Are there plans to address these in a future release? Best Regards, Scott Asire
Speakers needed for Apache DC Roadshow
We need your help to make the Apache Washington DC Roadshow on Dec 4th a success. What do we need most? Speakers! We're bringing a unique DC flavor to this event by mixing Open Source Software with talks about Apache projects as well as OSS CyberSecurity, OSS in Government and and OSS Career advice. Please take a look at: http://www.apachecon.com/usroadshow18/ (Note: You are receiving this message because you are subscribed to one or more mailing lists at The Apache Software Foundation.) Rich, for the ApacheCon Planners -- rbo...@apache.org http://apachecon.com @ApacheCon - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
RE: tomcat and sqlite
HI Mark, I tried by creating a standalone application and to my surprise, there are no .so and .so.lck files generated. I used the same dependency and everything seems fine! I am wondering what should I try now. Is it tomcat that is messing stuff for me? Any help is appreciated in this direction Regards Haseeb -Original Message- From: Mark Thomas [mailto:ma...@apache.org] Sent: den 10 september 2018 10:17 To: users@tomcat.apache.org Subject: Re: tomcat and sqlite On 10/09/18 09:12, Saleem Haseeb wrote: > HI Mark, > The jar file is in the application lib so yes, under WEB-INF/lib > directory :) Thanks. That de-registration code looks to be correct to me. I suspect that this might require a change in the Driver. Some things to test: - can you delete the files if you shut Tomcat down first? - how does the driver behave if you access it via a stand-along Java application I suggest you try and recreate this with a stand-alone Java app and if you still see the problem. If you do, I'd suggest opening an issue against the driver. Mark > > Regards, > Haseeb > > -Original Message- > From: Mark Thomas [mailto:ma...@apache.org] > Sent: den 10 september 2018 10:08 > To: Tomcat Users List > Subject: Re: tomcat and sqlite > > On 10/09/18 08:38, Saleem Haseeb wrote: >> Hi, >> I am trying to use sqlite in a web application on tomcat version >> 8.0.41 The driver that I use to connect to sqlite from within the web >> application is >> >> >> org.xerial >> sqlite-jdbc >> 3.23.1 >> >> >> I am using Linux to deploy the application and whenever there is a >> connection first made to the database I get the driver .so files created as >> below: >> >> sqlite-3.23.1-71f96c59-5318-4b40-8505-8000876a12e7-libsqlitejdbc.so >> sqlite-3.23.1-71f96c59-5318-4b40-8505-8000876a12e7-libsqlitejdbc.so.l >> c >> k >> >> in the contextDestroyed() hook I am trying to do something as >> following to deregister the driver on my classloader for the webapp >> like >> >> >> private void deregisterDrivers() { >> Enumeration drivers = DriverManager.getDrivers(); >> ClassLoader cl = Thread.currentThread().getContextClassLoader(); >> while (drivers.hasMoreElements()) { >> Driver driver = drivers.nextElement(); >> if (driver.getClass().getClassLoader() == cl) { >> try { >> logger.info("Deregistering jdbc driver: {}", driver); >> DriverManager.deregisterDriver(driver); >> } catch (SQLException e) { >> logger.info("Error deregistering driver {} due to {}", >> driver, e); >> } >> } >> } >> } >> >> the above as pointed out in some questions at stackoverflow says is >> implementation dependent, so I verified and found out that it does not >> delete those so and lck files. >> >> As a workaround, I then tried in the same contextDestroyed method, to delete >> the .so and .so.lck files but then that creates files with the pattern >> .nfsyyy on my disk. These files seem like the driver files and for some >> reason, if I try to delete those as part of clean up, I get the message >> "Device is Busy" and the .nfs* files hang on the disk and also don't get >> removed by the OS. >> >> I am struggling here to get rid of the drivers gracefully on application >> undeployment. Any help is appreciated! > > Where is the JDBC located? &CATALINA_BASE/lib, WEB-INF/lib, somewhere else? > > Mark > > - > To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org > For additional commands, e-mail: users-h...@tomcat.apache.org > > > - > To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org > For additional commands, e-mail: users-h...@tomcat.apache.org > - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Getting error with apache-velocity 1.7
Hi Team , We are using apache-jakarta velocity 1.7 jar in our project with RHEL 7.4 and getting issue with org.apache.velocity.exception.VelocityException: Failed to initialize an instance of org.apache.velocity.runtime.log.Log4JLogChute with the current runtime configuration. With velocity.log permission denied error . Could you please let us know the default path for velocity.log and how we can add permission to it so that our application will work fine Please let me know if any further more info is required BR// Gaurav Sensitivity: Internal & Restricted The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain proprietary, confidential or privileged information. If you are not the intended recipient, you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately and destroy all copies of this message and any attachments. WARNING: Computer viruses can be transmitted via email. The recipient should check this email and any attachments for the presence of viruses. The company accepts no liability for any damage caused by any virus transmitted by this email. www.wipro.com
[ANN] Apache Tomcat 8.5.34 available
The Apache Tomcat team announces the immediate availability of Apache Tomcat 8.5.34. Apache Tomcat 8 is an open source software implementation of the Java Servlet, JavaServer Pages, Java Unified Expression Language, Java WebSocket and Java Authentication Service Provider Interface for Containers technologies. Apache Tomcat 8.5.x replaces 8.0.x and includes new features pulled forward from the 9.0.x branch. The notable changes since 8.5.33 include: - Fix multiple issues associated with using the asynchronous Servlet API in combination with HTTP/2 - Add recursion to rewrite substitution parsing - Expand the information in the documentation web application regarding the use of CATALINA_HOME and CATALINA_BASE. Patch provided by Marek Czernek. Please refer to the change log for the complete list of changes: http://tomcat.apache.org/tomcat-8.5-doc/changelog.html Downloads: http://tomcat.apache.org/download-80.cgi Migration guides from Apache Tomcat 7.x and 8.0.x: http://tomcat.apache.org/migration.html Enjoy! - The Apache Tomcat team - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
[ANN] Apache Tomcat 9.0.12 available
The Apache Tomcat team announces the immediate availability of Apache Tomcat 9.0.12. Apache Tomcat 9 is an open source software implementation of the Java Servlet, JavaServer Pages, Java Unified Expression Language, Java WebSocket and JASPIC technologies. Apache Tomcat 9.0.12 is a bugfix and feature release. The notable changes compared to 9.0.11 include: - Fix multiple issues associated with using the asynchronous Servlet API in combination with HTTP/2 - Add recursion to rewrite substitution parsing - Expand the information in the documentation web application regarding the use of CATALINA_HOME and CATALINA_BASE. Patch provided by Marek Czernek. Please refer to the change log for the complete list of changes: http://tomcat.apache.org/tomcat-9.0-doc/changelog.html Downloads: http://tomcat.apache.org/download-90.cgi Migration guides from Apache Tomcat 7.x and 8.x: http://tomcat.apache.org/migration.html Enjoy! - The Apache Tomcat team - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org