JNDI look up with tomcat 8.5.6

2016-11-02 Thread Ajay Bilotia
Hi, *Below code is for JNDI look up which is working fine in tomcat 7 and 8 .* InitialContext initContext = new InitialContext(); DataSource ds = (DataSource)initContext.lookup(initContext.getNameParser( "" ).parse( "java:/comp/env/jdbc/BFDS" )); Connection conn = ds.getConnection(); *Same

Re: Does Tomcat8 NIO2 connector support Apache CometEvent?

2016-11-02 Thread Bruce Huang
Rémy Maucherat 於 2016年11月2日 週三 下午5:28寫道: > 2016-11-02 5:19 GMT+01:00 Bruce Huang : > > > Thanks for your suggestion. > > > > I have tested on 8.0.38 release, but it even can't close the comet > > properly. On 8.0.23, after OutputStream.close(), I have to do

Re: Reading properties file in context.xml

2016-11-02 Thread Yuval Schwartz
Hello Antonio, That worked. Thanks. I added to catalina.properties file. If I have other API keys and such that I would like to store, should I also store them there, or does it make more sense to simply create a separate properties file (since they aren't related to Tomcat)? Thank you. On

Re: Allow Customization of service.bat

2016-11-02 Thread Igal @ Lucee.org
Violeta, On 10/20/2016 11:10 PM, Violeta Georgieva wrote: Here [1] it is described how you can report a bug. Attach the patch to the bug. When you attaching the file there is a checkbox "patch". We also accept PRs from GitHub [2]. [1]

R: SSL digital cert for each context?

2016-11-02 Thread Andrea Galli
Thank you so much! Andrew -Messaggio originale- Da: Mark Thomas [mailto:ma...@apache.org] Inviato: mercoledì 2 novembre 2016 16:59 A: Tomcat Users List Oggetto: Re: SSL digital cert for each context? On 02/11/2016 15:56, Andrea Galli wrote: > Hello guys, > > I

Re: SSL digital cert for each context?

2016-11-02 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Mark, On 11/2/16 11:59 AM, Mark Thomas wrote: > On 02/11/2016 15:56, Andrea Galli wrote: >> Hello guys, >> >> I have configured SSL on Tomcat following this How-To: >> https://tomcat.apache.org/tomcat-7.0-doc/ssl-howto.html#Introduction_ to_SSL

Re: SSL digital cert for each context?

2016-11-02 Thread Mark Thomas
On 02/11/2016 15:56, Andrea Galli wrote: > Hello guys, > > I have configured SSL on Tomcat following this How-To: > https://tomcat.apache.org/tomcat-7.0-doc/ssl-howto.html#Introduction_to_SSL > > > > Everything works fine but this certificate is applied on all Tomcat context > that reside on

SSL digital cert for each context?

2016-11-02 Thread Andrea Galli
Hello guys, I have configured SSL on Tomcat following this How-To: https://tomcat.apache.org/tomcat-7.0-doc/ssl-howto.html#Introduction_to_SSL Everything works fine but this certificate is applied on all Tomcat context that reside on webapps folder, my aim is implement different digital cert

Re: Vulnerability from PCI scan

2016-11-02 Thread Carl K.
Chris, On 11/2/2016 11:05 AM, Christopher Schultz wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Carl, On 11/1/16 6:05 PM, Carl K. wrote: On 11/1/2016 5:25 PM, Christopher Schultz wrote: Carl, On 11/1/16 5:11 PM, Carl K. wrote: Control Scan has returned this as a vulnerability in

Re: JNDI look up with tomcat 8.5.6

2016-11-02 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Ajay, On 11/2/16 1:29 AM, Ajay Bilotia wrote: > We are upgrading the tomcat from apache-tomcat-7.0.59 to > apache-tomcat-8.5.6. We are setting the custom class loader as we > required for our application and JNDI look up is not working with >

Re: Vulnerability from PCI scan

2016-11-02 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Carl, On 11/1/16 6:05 PM, Carl K. wrote: > On 11/1/2016 5:25 PM, Christopher Schultz wrote: Carl, > > On 11/1/16 5:11 PM, Carl K. wrote: Control Scan has returned this as a vulnerability in Tomcat 8.0.38: Vulnerable version

Using a context.xml file in /conf/Catalina/local/context.xml

2016-11-02 Thread phiroc
Hello, I've a developed a simple servlet in Eclipse which is supposed to display a welcome message stored in /conf/Catalina/localhost/context.xml. When I run the web application from Eclipse in a local Tomcat instance, I get the following message: "javax.naming.NameNotFoundException: The name

Re: Reading properties file in context.xml

2016-11-02 Thread Antonio S . Cofiño
Yuval, Please take alook atthe second paragraph at Tomcat config doc's: https://tomcat.apache.org/tomcat-8.0-doc/config/ |You can put your properties on the | |$CATALINA_BASE/conf/catalina.properties| and you can do the variable sustitution in yor configuration file usin ${PropertyName}

Reading properties file in context.xml

2016-11-02 Thread Yuval Schwartz
Tomcat: 8.0.22 Java: jdk1.8.0_05 Hello, I would like to store credentials that go into the Resource element of my connection pool, in a properties file. (This is so I can untrack my properties file when committing to a repo). How would I go about accessing this properties file in my

Re: Does Tomcat8 NIO2 connector support Apache CometEvent?

2016-11-02 Thread Rémy Maucherat
2016-11-02 5:19 GMT+01:00 Bruce Huang : > Thanks for your suggestion. > > I have tested on 8.0.38 release, but it even can't close the comet > properly. On 8.0.23, after OutputStream.close(), I have to do event.close() > to make the END event to be fired correctly. > >

Re: Async servlet and request recycling

2016-11-02 Thread Mark Thomas
On 02/11/2016 08:51, Thomas Boniface wrote: > I'm glad this was useful in the end. > > Could you send the link to the corresponding issue ? I'd be interesting to > read the commit for the fix and known the tomcat versions this will be > pushed to. There is no issue. In terms of the commits,

Re: Async servlet and request recycling

2016-11-02 Thread Thomas Boniface
I'm glad this was useful in the end. Could you send the link to the corresponding issue ? I'd be interesting to read the commit for the fix and known the tomcat versions this will be pushed to. Thanks 2016-11-01 11:08 GMT+01:00 Mark Thomas : > On 25/10/2016 09:59, Mark Thomas