Re: Unable to access Global JNDI Resource

2016-09-30 Thread Chinoy Gupta
But the same thing is working in 8.0.36. Regards, Chinoy On Fri, Sep 30, 2016 at 9:33 PM +0530, "Christopher Schultz" mailto:ch...@christopherschultz.net>> wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Chinoy, On 9/30/16 8:34 AM, Chinoy Gupta wrote: > Hi Mark, > > The following is

Re: Unable to access Global JNDI Resource

2016-09-30 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Chinoy, On 9/30/16 8:34 AM, Chinoy Gupta wrote: > Hi Mark, > > The following is added in server.xml: > >name="UserDatabase" auth="Container" > type="org.apache.catalina.UserDatabase" description="User database > that can be updated and saved"

Tutorial: Configure Tomcat with HTTPS/SSL on Ubuntu 16.04 LTS (Xenial) using Letsencrypt

2016-09-30 Thread Mladen Adamović
Hi all, I'm running 3 servers with Tomcat (migrated from Glassfish which is not maintained well imo). But documentation is kind of not the best for configuring HTTPS/SSL. I've written my own tutorial how to do that using Letsencrypt and Tomcat native: https://mladenadamovic.wordpress.com/2016/09/

RE: Unable to access Global JNDI Resource

2016-09-30 Thread Chinoy Gupta
Hi Mark, The following is added in server.xml: And the following is added in context.xml: If I try to get "my/local/test", it works and I get "local test". But if I try to get " my/secret/password", it returns NULL. Regards, Chinoy -Original Message-

Re: Unable to access Global JNDI Resource

2016-09-30 Thread Mark Thomas
On 30/09/2016 13:20, Chinoy Gupta wrote: > Hi Mark, > > This is my stacktrace: > > ResourceLinkFactory.validateGlobalResourceAccess(String) line: 109 > ResourceLinkFactory.getObjectInstance(Object, Name, Context, > Hashtable) line: 142 > NamingManager.getObjectInstance(

RE: Unable to access Global JNDI Resource

2016-09-30 Thread Chinoy Gupta
Hi Mark, This is my stacktrace: ResourceLinkFactory.validateGlobalResourceAccess(String) line: 109 ResourceLinkFactory.getObjectInstance(Object, Name, Context, Hashtable) line: 142 NamingManager.getObjectInstance(Object, Name, Context, Hashtable) line: 321

Re: Unable to access Global JNDI Resource

2016-09-30 Thread Mark Thomas
On 30/09/2016 12:50, Chinoy Gupta wrote: > I am getting NULL instead of the resource's value. I debugged the > tomcat code and figured out that in ResourceLinkFactory.java, before > fetching the resource there is a validation based on current > classloader. That validation fails and tomcat returns

RE: Unable to access Global JNDI Resource

2016-09-30 Thread Chinoy Gupta
I am getting NULL instead of the resource's value. I debugged the tomcat code and figured out that in ResourceLinkFactory.java, before fetching the resource there is a validation based on current classloader. That validation fails and tomcat returns NULL. -Original Message- From: Mark

Re: Unable to access Global JNDI Resource

2016-09-30 Thread Mark Thomas
On 30/09/2016 11:30, Chinoy Gupta wrote: > Hi, > > I have a web application which runs on tomcat. In server.xml, I > provide some resources under " section" and > then provide a ResourceLink to the same in context.xml. And then I > fetch that resource in my application. This was working properly >

Unable to access Global JNDI Resource

2016-09-30 Thread Chinoy Gupta
Hi, I have a web application which runs on tomcat. In server.xml, I provide some resources under " section" and then provide a ResourceLink to the same in context.xml. And then I fetch that resource in my application. This was working properly earlier but started breaking with 8.0.37. I think

Re: Prevent Outbound connections from WebApplication

2016-09-30 Thread tomcat
On 30.09.2016 09:07, Harneet Singh wrote: Hello All, I have a java application which is hosted in Tomcat 7.0.62. As part of business logic the code sometimes connects to remote hosts and downloads resources. Is there a way I can specify a whitelist using the Tomcat configuration? Means I only w

Re: Prevent Outbound connections from WebApplication

2016-09-30 Thread Mark Thomas
On 30/09/2016 08:07, Harneet Singh wrote: > Hello All, > > I have a java application which is hosted in Tomcat 7.0.62. > As part of business logic the code sometimes connects to remote hosts and > downloads resources. > Is there a way I can specify a whitelist using the Tomcat configuration? > >

Prevent Outbound connections from WebApplication

2016-09-30 Thread Harneet Singh
Hello All, I have a java application which is hosted in Tomcat 7.0.62. As part of business logic the code sometimes connects to remote hosts and downloads resources. Is there a way I can specify a whitelist using the Tomcat configuration? Means I only want my application to be able to fetch data