Re: Websocket client with SSL and authentication

2017-03-10 Thread Ludovic Pénet
On 10/03/2017 02:41, radiatejava wrote: Tomcat team, I have few questions on websocket: Hi. I am not member of the Tomcat team, but I will try to give you some answer or hints... [...] 2. Is there any sample code for how to put in SSL (keystore and truststore) websocket client ? You

Re: How to restrict access to specific webapp + denyStatus

2017-03-10 Thread Mark Thomas
On 09/03/17 23:51, Diego Gomes wrote: > My questions: > > - For the first statement, that configuration I did (Student.xml) is > the correct way? Yes. > - Why the 404 denyStatus is not working? > > I am running tomcat 7.0.11

Re: What is the correct way to use scanManifest

2017-03-10 Thread Mark Thomas
On 10/03/17 00:14, Hoa Phan wrote: > looks like I can't overwrite the webapp context.xml with tomcat > context.xml. I have no control over the WAR file until tomcat deployed it :( I have confirmed (via remote debugging) that using ... in $CATALINA_BASE/conf/context.xml disables

Re: How to restrict access to specific webapp + denyStatus

2017-03-10 Thread Diego Gomes
Thanks Mark! In that link just say that is possible, but do not say how to get 404 and not 403. Diego On 10 Mar 2017, at 06:17, Mark Thomas wrote: On 09/03/17 23:51, Diego Gomes wrote: > My questions: > > - For the first statement, that configuration I did (Student.xml)

Re: How to restrict access to specific webapp + denyStatus

2017-03-10 Thread tomcat
On 10.03.2017 11:04, Diego Gomes wrote: Thanks Mark! In that link just say that is possible, but do not say how to get 404 and not 403. No, what that link says, it that the denyStatus feature was only introduced in a later version of tomcat 7, than the one you are using. You should at least

Re: How to restrict access to specific webapp + denyStatus

2017-03-10 Thread Diego Gomes
Ohh, I see now! Thanks Mark and André! I'll plan to upgrade it! Diego On 10 Mar 2017, at 07:10, André Warnier (tomcat) wrote: > On 10.03.2017 11:04, Diego Gomes wrote: > Thanks Mark! > > In that link just say that is possible, but do not say how to get 404 and not > 403.

Tomcat 7 installation on Sun Solaris 10

2017-03-10 Thread Subhro Paul
Hi All, We need to install tomcat 7.0.68 or higher version on Sun Solaris 10. Can you let me know if there is any version compatibility matrix for Tomcat 7 ? Thanks & Regards Subhro Paul Tata Consultancy Services Website: http://www.tcs.com

Re: Tomcat 7 installation on Sun Solaris 10

2017-03-10 Thread Mark Thomas
On 10/03/17 14:07, Subhro Paul wrote: > Hi All, > > We need to install tomcat 7.0.68 or higher version on Sun Solaris 10. Can you > let me know if there is any version compatibility matrix for Tomcat 7 ? http://tomcat.apache.org/whichversion.html The OS doesn't matter. What matters is the Java

Tomcat 8.0.x series roadmap

2017-03-10 Thread KK Gupta
Hi All, Our product uses Tomcat 8.0.x series and we recently upgraded to tomcat 8.0.41 in our product. http://tomcat.apache.org/whichversion.html shows that 8.0.41 as superseded. So, I wanted to understand whether 8.0.x line is actively being maintained or not? We are primarily concerned about

Re: Tomcat 8.0.x series roadmap

2017-03-10 Thread Mark Thomas
On 10/03/2017 16:21, KK Gupta wrote: > Hi All, > > Our product uses Tomcat 8.0.x series and we recently upgraded to tomcat > 8.0.41 in our product. > > http://tomcat.apache.org/whichversion.html shows that 8.0.41 as superseded. > So, I wanted to understand whether 8.0.x line is actively being

Re: get NPE from NamingContextListener in app moved from TomEE to Tomcat

2017-03-10 Thread Mark Thomas
On 10/03/2017 17:39, KARR, DAVID wrote: > I have a CXF/REST/Spring/JDBC app running in TomEE (7.0.1). I've decided to > try to move it to Tomcat (8.5.11) because of some classloader conflicts (CXF > classes) I'm now seeing in trying to add some new code to the app. > > Initially, I'm just

RE: getRealPath is a bad idea?

2017-03-10 Thread Berneburg, Cris J. - US
Chris Thanks for taking the time to help me out. I appreciate it. Sorry, my response is kinda wordy. :-P > If you really REALLY want a file path, you could use the catalina.base system > property or the tmpdir and go from there. The former is Tomcat-specific, of > course, and the tmpdir

RE: Moved app from TomEE to Tomcat, now getting Spring errors failing to go through proxy for XML validation

2017-03-10 Thread KARR, DAVID
> -Original Message- > From: Christopher Schultz [mailto:ch...@christopherschultz.net] > Sent: Friday, March 10, 2017 10:32 AM > To: Tomcat Users List > Subject: Re: Moved app from TomEE to Tomcat, now getting Spring errors > failing to go through proxy for XML

get NPE from NamingContextListener in app moved from TomEE to Tomcat

2017-03-10 Thread KARR, DAVID
I have a CXF/REST/Spring/JDBC app running in TomEE (7.0.1). I've decided to try to move it to Tomcat (8.5.11) because of some classloader conflicts (CXF classes) I'm now seeing in trying to add some new code to the app. Initially, I'm just running the server in Eclipse. When I add the apps to

RE: getRealPath is a bad idea?

2017-03-10 Thread Berneburg, Cris J. - US
Chuck >> How do you all configure the location of a special folder that is not >> part of the deployment package itself? A site-specific config file perhaps? > > Take a look at this: > http://tomcat.apache.org/tomcat-8.5-doc/config/resources.html > > A element within allows specification of

Re: JMX currentThreadsBusy less than connections/requests when use APR connector

2017-03-10 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Linbo, On 3/9/17 7:31 PM, linbo liao wrote: > 1、The load-generating vm has 2 cores. With only 2 cores, you can only actually do 2 things at once. Perhaps you need more load-generating computers. > 2、Can I use currentThreadsBusy to monitor the

RE: get NPE from NamingContextListener in app moved from TomEE to Tomcat

2017-03-10 Thread KARR, DAVID
> -Original Message- > From: Mark Thomas [mailto:ma...@apache.org] > Sent: Friday, March 10, 2017 9:42 AM > To: Tomcat Users List > Subject: Re: get NPE from NamingContextListener in app moved from TomEE > to Tomcat > > On 10/03/2017 17:39, KARR, DAVID wrote: > >

Re: getRealPath is a bad idea?

2017-03-10 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Cris, On 3/10/17 12:56 PM, Berneburg, Cris J. - US wrote: > Chuck > >>> How do you all configure the location of a special folder that >>> is not part of the deployment package itself? A site-specific >>> config file perhaps? >> >> Take a look

Re: Required changes to move an app from TomEE 7.0.1 to Tomcat 8.5.11

2017-03-10 Thread Mark Thomas
On 10/03/2017 16:29, KARR, DAVID wrote: > I'm currently running a somewhat simple CXF/REST/Spring app in TomEE > 7.0.1. It uses the CXF libraries in WEB-INF/lib, not in the > container. It uses a couple of Environment strings, and some > DataSource resources, all of which it gets from JNDI. > >

Re: Moved app from TomEE to Tomcat, now getting Spring errors failing to go through proxy for XML validation

2017-03-10 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 David, On 3/10/17 1:07 PM, KARR, DAVID wrote: > I have an app using CXF/REST/Spring/JDBC that is working pretty > well in TomEE (7.0.1). I'm trying to move it to Tomcat (8.5.11) > because it doesn't need to be in TomEE, and I'm having problems >

Moved app from TomEE to Tomcat, now getting Spring errors failing to go through proxy for XML validation

2017-03-10 Thread KARR, DAVID
I have an app using CXF/REST/Spring/JDBC that is working pretty well in TomEE (7.0.1). I'm trying to move it to Tomcat (8.5.11) because it doesn't need to be in TomEE, and I'm having problems adding additional features due to aspects of TomEE. I'm first testing the port by running Tomcat in

Re: Websocket client with SSL and authentication

2017-03-10 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 To whom it may concern. On 3/9/17 8:41 PM, radiatejava wrote: > Tomcat team, I have few questions on websocket: > > 1. I am looking for Java websocket client sample code that uses > basic (user) auth. AIUI, you'll have to authenticate using

Re: Logging TLS Session Failures

2017-03-10 Thread Durga Srinivasu Karuturi
Thanks, Will explore JSSE options. On Thu, Mar 9, 2017 at 7:18 PM, Jammy Chen wrote: > If you are using JSSE which you mentioned in earlier post, you probably can > only enable debug for all or specially one > -Djavax.net.debug=ssl:record or -Djavax.net.debug=ssl:handshake -

Required changes to move an app from TomEE 7.0.1 to Tomcat 8.5.11

2017-03-10 Thread KARR, DAVID
I'm currently running a somewhat simple CXF/REST/Spring app in TomEE 7.0.1. It uses the CXF libraries in WEB-INF/lib, not in the container. It uses a couple of Environment strings, and some DataSource resources, all of which it gets from JNDI. I'm considering moving this app from TomEE to

Re:[OT] get NPE from NamingContextListener in app moved from TomEE to Tomcat

2017-03-10 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Mark, On 3/10/17 12:42 PM, Mark Thomas wrote: > On 10/03/2017 17:39, KARR, DAVID wrote: >> I have a CXF/REST/Spring/JDBC app running in TomEE (7.0.1). I've >> decided to try to move it to Tomcat (8.5.11) because of some >> classloader conflicts

Re: getRealPath is a bad idea?

2017-03-10 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Cris, On 3/10/17 2:02 PM, Berneburg, Cris J. - US wrote: > Chris > > Thanks for taking the time to help me out. I appreciate it. > Sorry, my response is kinda wordy. :-P > >> If you really REALLY want a file path, you could use the >>

RE: getRealPath is a bad idea?

2017-03-10 Thread Caldarale, Charles R
> From: Christopher Schultz [mailto:ch...@christopherschultz.net] > Subject: Re: getRealPath is a bad idea? > I would use a well-known location for the file. Maybe the application > can be installed anywhere, but the config file needs to be in >

RE: Re:[OT] get NPE from NamingContextListener in app moved from TomEE to Tomcat

2017-03-10 Thread Caldarale, Charles R
> From: Christopher Schultz [mailto:ch...@christopherschultz.net] > Subject: Re:[OT] get NPE from NamingContextListener in app moved from TomEE > to Tomcat > > name="jdbc/tst36" not id=... > Hmm. When 'name' is null we should have a better behavior than NPE. :( It gets your attention... -