RE: web.xml authentication and Tomcat Realm

2014-09-03 Thread Dalecki, Janusz
-Original Message- From: Felix Schumacher [mailto:felix.schumac...@internetallee.de] Sent: Thursday, 4 September 2014 3:29 PM To: Tomcat Users List Subject: Re: web.xml authentication and Tomcat Realm On 4. September 2014 05:35:42 MESZ, "Dalecki, Janusz" wrote: >Hi, >I am just wonder

Re: Question on Thread Local

2014-09-03 Thread Felix Schumacher
On 2. September 2014 22:53:43 MESZ, Leon Rosenberg wrote: >no :-) >Allow me to provide an example. >This class : MoSKitoWebUIContext.java ( >https://github.com/anotheria/moskito/blob/master/moskito-webui/src/main/java/net/anotheria/moskito/webui/MoSKitoWebUIContext.java >) >Is a ThreadLocal tha

Re: web.xml authentication and Tomcat Realm

2014-09-03 Thread Felix Schumacher
On 4. September 2014 05:35:42 MESZ, "Dalecki, Janusz" wrote: >Hi, >I am just wondering whether somehow I can use web.xml >to point to the Tomcat JDBC Realm that I am using. >Are those two completely disjoint or I can link them together. They are disjoint. web.xml is for the developer who has

web.xml authentication and Tomcat Realm

2014-09-03 Thread Dalecki, Janusz
Hi, I am just wondering whether somehow I can use web.xml to point to the Tomcat JDBC Realm that I am using. Are those two completely disjoint or I can link them together. Regards, Janusz This e-mail contains privileged and confidential information intended for

Re: Global JNDI resources lookup behavior difference between version 6.0.39 and 6.0.41/7.0.55

2014-09-03 Thread Robert Anderson
Does anybody here use psi-probe for monitoring the Tomcat? I just wanna know what changed in JNDI implemention of Tomcat. Where is the request in the bugzilla? Chris, global datasources (java:/name) and application datasources (java:/comp/env/name) are differents in probe. Application datasource

RE: Configured JDBCRealm

2014-09-03 Thread Dalecki, Janusz
-Original Message- From: Christopher Schultz [mailto:ch...@christopherschultz.net] Sent: Thursday, 4 September 2014 12:57 AM To: Tomcat Users List Subject: Re: Configured JDBCRealm -BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Janusz, On 9/2/14, 10:31 PM, Dalecki, Janusz wrote: > I h

RE: Configured JDBCRealm

2014-09-03 Thread Dalecki, Janusz
-Original Message- From: Daniel Mikusa [mailto:dmik...@pivotal.io] Sent: Wednesday, 3 September 2014 10:03 PM To: Tomcat Users List Subject: Re: Configured JDBCRealm On Tue, Sep 2, 2014 at 9:59 PM, Dalecki, Janusz wrote: > > > -Original Message- > From: Daniel Mikusa [mailto:dm

Re: Global JNDI resources lookup behavior difference between version 6.0.39 and 6.0.41/7.0.55

2014-09-03 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Robert, On 9/3/14 11:36 AM, Robert Anderson wrote: > In a privileged context, a have the following jsp to test a global > jndi resource: > > <%@ page session="false" > import="java.util.*,java.sql.*,javax.naming.*, > javax.sql.*,org.apache.commons

Re: Manager app + RemoteAddrValve + 403 Access Denied

2014-09-03 Thread Shanti Suresh
On Tue, Sep 2, 2014 at 5:21 PM, Daniel Mikusa wrote: > > > > I didn't try curl. I believe it should work, assuming you send the right > nonce. > > > Okay. > > So in order to get a nonce in the URL, did you first log in? > > > Yes, but that was just because it was the quickest way to get a nonc

Re: Global JNDI resources lookup behavior difference between version 6.0.39 and 6.0.41/7.0.55

2014-09-03 Thread Daniel Mikusa
On Wed, Sep 3, 2014 at 11:51 AM, Robert Anderson wrote: > Ok! :) > > Steps to reproduce: > > 1)Download and unpack 6.0.39 > > > http://archive.apache.org/dist/tomcat/tomcat-6/v6.0.39/bin/apache-tomcat-6.0.39.tar.gz > > 2) Create a global jndi resouce in server.xml > > > > type="jav

Re: Global JNDI resources lookup behavior difference between version 6.0.39 and 6.0.41/7.0.55

2014-09-03 Thread Robert Anderson
2014-09-03 16:13 GMT-03:00 Daniel Mikusa : > Do you see this being logged? Yes. Thanks, Felix. We'll analyze this solution.

Re: Global JNDI resources lookup behavior difference between version 6.0.39 and 6.0.41/7.0.55

2014-09-03 Thread Daniel Mikusa
On Wed, Sep 3, 2014 at 2:33 PM, Robert Anderson wrote: > This is the complete code that was working: > > https://code.google.com/p/psi-probe/source/browse/trunk/core/src/main/java/com/googlecode/psiprobe/beans/ResourceResolverBean.java > > > public List getApplicationResources() throws NamingExce

Re: Global JNDI resources lookup behavior difference between version 6.0.39 and 6.0.41/7.0.55

2014-09-03 Thread Felix Schumacher
Am 03.09.2014 um 20:33 schrieb Robert Anderson: This is the complete code that was working: https://code.google.com/p/psi-probe/source/browse/trunk/core/src/main/java/com/googlecode/psiprobe/beans/ResourceResolverBean.java public List getApplicationResources() throws NamingException {

New release of tomcat maven plugin?

2014-09-03 Thread Eric Lilja
Hi! I am planning to start developing some web applications targeting Tomcat. I plan to use version 8, which I believe was declared GA not too long ago (out of beta). It seems, however, that the latest release of the tomcat-maven-plugin only supports Tomcat 7. Now that Tomcat 8 is stable, is a

Re: Global JNDI resources lookup behavior difference between version 6.0.39 and 6.0.41/7.0.55

2014-09-03 Thread Robert Anderson
This behavior began in versions 6.0.41 and 7.0.54. Before that, everything worked as expected. 2014-09-03 15:33 GMT-03:00 Robert Anderson : > This is the complete code that was working: > https://code.google.com/p/psi-probe/source/browse/trunk/core/src/main/java/com/googlecode/psiprobe/beans/Res

Re: Global JNDI resources lookup behavior difference between version 6.0.39 and 6.0.41/7.0.55

2014-09-03 Thread Robert Anderson
This is the complete code that was working: https://code.google.com/p/psi-probe/source/browse/trunk/core/src/main/java/com/googlecode/psiprobe/beans/ResourceResolverBean.java public List getApplicationResources() throws NamingException { logger.info("Reading GLOBAL resources"); Li

Re: Global JNDI resources lookup behavior difference between version 6.0.39 and 6.0.41/7.0.55

2014-09-03 Thread Filip Hanik
On Wed, Sep 3, 2014 at 11:09 AM, Robert Anderson wrote: > Thanks, Daniel. But my question the question is why that was working in > 6.0.39 and the firsts releases of 7.0.x? > Tomcat is not bind in java: anymore. Was it a feature request > or is it a bug? > ​Not sure, the resource links have been

Re: Global JNDI resources lookup behavior difference between version 6.0.39 and 6.0.41/7.0.55

2014-09-03 Thread Daniel Mikusa
On Wed, Sep 3, 2014 at 1:09 PM, Robert Anderson wrote: > Thanks, Daniel. But my question the question is why that was working in > 6.0.39 and the firsts releases of 7.0.x? > Hard to say because I don't know the application's code, so I'm not sure what it is doing. It's a pretty safe bet it isn'

Re: Global JNDI resources lookup behavior difference between version 6.0.39 and 6.0.41/7.0.55

2014-09-03 Thread Robert Anderson
Thanks, Daniel. But my question the question is why that was working in 6.0.39 and the firsts releases of 7.0.x? Tomcat is not bind in java: anymore. Was it a feature request or is it a bug? Em 03/09/2014 13:48, "Daniel Mikusa" escreveu: > On Wed, Sep 3, 2014 at 11:51 AM, Robert Anderson > wrote

Re: Global JNDI resources lookup behavior difference between version 6.0.39 and 6.0.41/7.0.55

2014-09-03 Thread Daniel Mikusa
On Wed, Sep 3, 2014 at 11:51 AM, Robert Anderson wrote: > Ok! :) > > Steps to reproduce: > > 1)Download and unpack 6.0.39 > > > http://archive.apache.org/dist/tomcat/tomcat-6/v6.0.39/bin/apache-tomcat-6.0.39.tar.gz > > 2) Create a global jndi resouce in server.xml > > > > type="jav

Re: Global JNDI resources lookup behavior difference between version 6.0.39 and 6.0.41/7.0.55

2014-09-03 Thread Robert Anderson
Ok! :) Steps to reproduce: 1)Download and unpack 6.0.39 http://archive.apache.org/dist/tomcat/tomcat-6/v6.0.39/bin/apache-tomcat-6.0.39.tar.gz 2) Create a global jndi resouce in server.xml ... 3) Install psi-probe: https://code.google.com/p/psi-probe/downloads/detail?name=p

Re: Global JNDI resources lookup behavior difference between version 6.0.39 and 6.0.41/7.0.55

2014-09-03 Thread Daniel Mikusa
On Wed, Sep 3, 2014 at 11:36 AM, Robert Anderson wrote: > Hi, > > > In a privileged context, a have the following jsp to test a global jndi > resource: > > <%@ page session="false" import="java.util.*,java.sql.*,javax.naming.*, > javax.sql.*,org.apache.commons.dbcp.*" contentType="text/html" %> >

Re: Global JNDI resources lookup behavior difference between version 6.0.39 and 6.0.41/7.0.55

2014-09-03 Thread Filip Hanik
can you post your configuration file. that will be the only way we can help you fix it, as I doubt tomcat will go back to pre 6.0.41 days :) Filip On Wed, Sep 3, 2014 at 9:36 AM, Robert Anderson wrote: > Hi, > > > In a privileged context, a have the following jsp to test a global jndi > resou

Global JNDI resources lookup behavior difference between version 6.0.39 and 6.0.41/7.0.55

2014-09-03 Thread Robert Anderson
Hi, In a privileged context, a have the following jsp to test a global jndi resource: <%@ page session="false" import="java.util.*,java.sql.*,javax.naming.*, javax.sql.*,org.apache.commons.dbcp.*" contentType="text/html" %> <%! protected void doLookup(JspWriter out) throws ServletException, IOE

Re: UTF-8 encoded request URI

2014-09-03 Thread Igal @ getRailo.org
On 9/3/2014 4:52 AM, Mark Thomas wrote: On 03/09/2014 12:45, Lulseged Zerfu wrote: Hi I am getting bad request from tomcat when I send UTF-8 encoded request to my application. I have configured connector in my server.xml with URIEncoding=”UTF-8”. I have set charset in the request to UTF-8. How

Re: Configured JDBCRealm

2014-09-03 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Janusz, On 9/2/14, 10:31 PM, Dalecki, Janusz wrote: > I have just started reading on DataSource realm. But I think I am > facing the same problem as with JDBCRealm: 1) How can I get > hold of an instance of this DataSourceRealm object within m

Re: UTF-8 encoded request URI

2014-09-03 Thread Mark Thomas
On 03/09/2014 12:45, Lulseged Zerfu wrote: > Hi I am getting bad request from tomcat when I send UTF-8 encoded > request to my application. I have configured connector in my > server.xml with URIEncoding=”UTF-8”. I have set charset in the > request to UTF-8. How can I solve 400 Bad request? Don't

Re: UTF-8 encoded request URI

2014-09-03 Thread Daniel Mikusa
On Wed, Sep 3, 2014 at 7:45 AM, Lulseged Zerfu wrote: > Hi I am getting bad request from tomcat when I send UTF-8 encoded request > to my application. Can you give an example of the request? Are the non-ascii characters in the URL or in the payload of your request (or both)? > I have config

Re: Configured JDBCRealm

2014-09-03 Thread Daniel Mikusa
On Tue, Sep 2, 2014 at 9:59 PM, Dalecki, Janusz wrote: > > > -Original Message- > From: Daniel Mikusa [mailto:dmik...@pivotal.io] > Sent: Tuesday, 2 September 2014 10:04 PM > To: Tomcat Users List > Subject: Re: Configured JDBCRealm > > On Tue, Sep 2, 2014 at 7:00 AM, Dalecki, Janusz > w

Re: UTF-8 encoded request URI

2014-09-03 Thread André Warnier
Lulseged Zerfu wrote: Hi I am getting bad request from tomcat when I send UTF-8 encoded request to my application. I have configured connector in my server.xml with URIEncoding=”UTF-8”. I have set charset in the request to UTF-8. How can I solve 400 Bad request? How can I tell tomcat to decod

UTF-8 encoded request URI

2014-09-03 Thread Lulseged Zerfu
Hi I am getting bad request from tomcat when I send UTF-8 encoded request to my application. I have configured connector in my server.xml with URIEncoding=”UTF-8”. I have set charset in the request to UTF-8. How can I solve 400 Bad request? How can I tell tomcat to decode request URI instead of

Re: Class threw load exception

2014-09-03 Thread Kernel freak
Hello Konstantin, The first point you mentioned, I have the tag. Anyways,I updated the Tomcat from 6 to 7 and the error went away. But I have another error now. Its regarding slf4j. Here goes my POM file. I am sorry, I am new to Maven, having a hard time. POM file : http://maven.apache.org/POM

Re: Class threw load exception

2014-09-03 Thread Konstantin Kolinko
2014-09-03 11:48 GMT+04:00 Kernel freak : > Hello guys, > > I am working on a maven project. I have already asked this question on > stackoverflow, but many believe it has something to do with Apache tomcat > giving a problem. Whenever I run the project, it says, project threw a > load() exception.

Class threw load exception

2014-09-03 Thread Kernel freak
Hello guys, I am working on a maven project. I have already asked this question on stackoverflow, but many believe it has something to do with Apache tomcat giving a problem. Whenever I run the project, it says, project threw a load() exception. Below is the link for my project structure, let me k