Re: AT WITS END regarding JVM arguments

2016-09-08 Thread James H. H. Lampert
On 9/8/16, 12:23 PM, Christopher Schultz wrote: Would you care to create an account on the Tomcat Wiki[1] and post your CL program? It may help someone else running in similar environments. In fact, if you want to write-up a whole page about "Running Tomcat on IBM Midrange", you could include

Re: [TOMCAT-JDBC] rs.absolute() throws "Invalid operation for forward only resultset: absolute"

2016-09-08 Thread Mohamad Abbas
I've created Bug 60099 2016-09-08 17:20 GMT+02:00 Christopher Schultz : > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA256 > > Mohamad, > > On 9/8/16 4:20 AM, Mohamad Abbas wrote: > > Hello, > > > > I am

Re: Header values when using HttpServletResponse.sendRedirect()

2016-09-08 Thread Joe Tseng
I inherited a clusterf*** of a mess disguised as a JSP/servlet-based MVC-ish app without the benefit of using Spring or Struts or any sort of framework. No web services, but lots of $.ajax() POST calls to servlet methods. I need to get this stabilized before I can redo everything using

Re: Header values when using HttpServletResponse.sendRedirect()

2016-09-08 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Joe, On 9/8/16 1:38 PM, Joe Tseng wrote: > FYI I'm using Tomcat v7.x. > > I guess I misunderstood what happens when I use sendRedirect() - it > sends a new request, not a new response - but the effect is the > same. That was what I came away with

Re: AT WITS END regarding JVM arguments

2016-09-08 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 James, On 9/8/16 12:47 PM, James H. H. Lampert wrote: > On 9/8/16, 8:34 AM, Christopher Schultz wrote: > >> James, would you care to provide a (simple) patch? You'll get >> your name in the changelog :) > > Ok. In the initial comments for

Re: Header values when using HttpServletResponse.sendRedirect()

2016-09-08 Thread Joe Tseng
FYI I'm using Tomcat v7.x. I guess I misunderstood what happens when I use sendRedirect() - it sends a new request, not a new response - but the effect is the same. That was what I came away with when I read this: http://javarevisited.blogspot.com/2011/09/sendredirect-forward-jsp-servlet.html

Re: AT WITS END regarding JVM arguments

2016-09-08 Thread James H. H. Lampert
On 9/8/16, 8:34 AM, Christopher Schultz wrote: James, would you care to provide a (simple) patch? You'll get your name in the changelog :) Ok. In the initial comments for catalina.bat: > . . . rem Do not set the variables in this script. Instead put them into a script rem setenv.bat in

Re: Using server Web.xml Mime Types Data

2016-09-08 Thread Mark Thomas
On 8 September 2016 17:06:13 BST, George Sexton wrote: > > >On 9/7/2016 11:44 AM, Mark Thomas wrote: >> On 07/09/2016 00:58, George Sexton wrote: >>> Is there any easy way that I can use the mime types in the Tomcat >server >>> level web.xml file? >>> >>> I know I can

Re: Using server Web.xml Mime Types Data

2016-09-08 Thread George Sexton
On 9/7/2016 11:44 AM, Mark Thomas wrote: On 07/09/2016 00:58, George Sexton wrote: Is there any easy way that I can use the mime types in the Tomcat server level web.xml file? I know I can parse the XML myself, I was just wondering if there's a way to get the data already defined.

Re: WAR isolation lifecycle

2016-09-08 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Cristian, On 9/6/16 4:15 AM, Cristian Lorenzetto wrote: > It is a common problem to have a war can't unregister correctly in > undeploy phase. a lot of opensource libraries have this problem. > So you have to restart tomcat every time. But if you

Re: AT WITS END regarding JVM arguments

2016-09-08 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Steve, On 9/6/16 8:56 PM, Mekkelsen Madden, Steve wrote: > -Original Message- From: James H. H. Lampert > [mailto:jam...@touchtonecorp.com] Sent: Tuesday, September 06, 2016 > 6:59 PM To: Tomcat Users List Subject:

Re: Restricted Access to Tomcat Manager Caused Database Issues

2016-09-08 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Yuval, On 9/7/16 4:03 AM, Yuval Schwartz wrote: > Hello, > > Tomcat: 8.0.22 Java: jdk1.8.0_05 > > I recently restricted access to my Tomcat Manager App by: 1) > Changing the name of the manager app. 2) Block access to the > manager app by IP

Re: Header values when using HttpServletResponse.sendRedirect()

2016-09-08 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Joe, On 9/6/16 3:36 PM, Joe Tseng wrote: > I inherited a codebase that calls > HttpServletResponse.sendRedirect() to another page after a user is > successfully logged in. I want to be able to insert a header value > before that redirection is

Re: [TOMCAT-JDBC] rs.absolute() throws "Invalid operation for forward only resultset: absolute"

2016-09-08 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Mohamad, On 9/8/16 4:20 AM, Mohamad Abbas wrote: > Hello, > > I am working on a legacy web application running on a tomcat > 8.0.37, and i am getting an error "Invalid operation for forward > only resultset: absolute" when trying to use an >

Re: Tomcat as Windows Service

2016-09-08 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Amit, On 9/8/16 12:49 AM, Amit Pande wrote: > Hello experts, > > We have configured the Tomcat to run as a Windows Service. And > Windows SCM has a default time of 30 seconds, but the Tomcat > process does not start/stop within this time. > >

Re: tomcat8 unable to load the Resource/property file from jar

2016-09-08 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Venkata, On 9/7/16 4:49 AM, Venkata Reddy P wrote: > Recently we have upgraded the one of application from tomcat6.x to > tomcat8.0.36 version. In tomcat6, i was able to read the > property/resource file from the jar file but certain reasons after

Re: Tomcat 8.5.4 uses RFC 6265 by default which does not appear to be Servlet 3.1 compliant

2016-09-08 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Robert, On 9/6/16 11:05 PM, Robert Winch wrote: > Mark / Rémy, > > Thanks again for your responses. > > I'd like to point out one more thing. Mark stated: > >> To date, the only problem we have seen with RFC6265 that comes to >> mind is that

Re: java.lang.ClassNotFoundException: org.apache.catalina.filters.HttpHeaderSecurityFilter for app specific web.xml under Tomcat 8.0.9 (bundled with Netbeans)

2016-09-08 Thread Violeta Georgieva
Hi Mladen, 2016-09-08 13:04 GMT+03:00 Mladen Adamović : > > Hi Mark, > > It seems that in Tomcat 8 it was added in > Tomcat 8.0.23 (merged from Tomcat 7 I guess) Typically we back port features to previous versions and not vice versa. That feature was first developed

Re: java.lang.ClassNotFoundException: org.apache.catalina.filters.HttpHeaderSecurityFilter for app specific web.xml under Tomcat 8.0.9 (bundled with Netbeans)

2016-09-08 Thread Mladen Adamović
Hi Mark, It seems that in Tomcat 8 it was added in Tomcat 8.0.23 (merged from Tomcat 7 I guess) - [image: Add:] 54618 : Add a new HttpHeaderSecurityFilter that adds the Strict-Transport-Security, X-Frame-Options and

Re: Header values when using HttpServletResponse.sendRedirect()

2016-09-08 Thread Terence M. Bandoian
On 9/8/2016 4:47 AM, Terence M. Bandoian wrote: On 9/6/2016 2:36 PM, Joe Tseng wrote: All, I inherited a codebase that calls HttpServletResponse.sendRedirect() to another page after a user is successfully logged in. I want to be able to insert a header value before that redirection is

Re: java.lang.ClassNotFoundException: org.apache.catalina.filters.HttpHeaderSecurityFilter for app specific web.xml under Tomcat 8.0.9 (bundled with Netbeans)

2016-09-08 Thread Mark Thomas
On 08/09/2016 10:12, Mladen Adamović wrote: > I want in some specific apps to enable HttpHeaderSecurityFilter (I might > have some insecure applications at the same server). > But I've got the error message when running from Tomcat 8.0.9.0. This > happened in a development environment, this

Re: [TOMCAT-JDBC] rs.absolute() throws "Invalid operation for forward only resultset: absolute"

2016-09-08 Thread Mohamad Abbas
The ojdbc7-12.1.0.2.0 support TYPE_SCROLL_INSENSITIVE. I already made the test by calling only the second method who creates a Statement with a SCROLL_INSENSITIVE type, and it worked. Regards, 2016-09-08 11:29 GMT+02:00 Terence M. Bandoian : > On 9/8/2016 3:20 AM, Mohamad

Re: [TOMCAT-JDBC] rs.absolute() throws "Invalid operation for forward only resultset: absolute"

2016-09-08 Thread Terence M. Bandoian
On 9/8/2016 3:20 AM, Mohamad Abbas wrote: Hello, I am working on a legacy web application running on a tomcat 8.0.37, and i am getting an error "Invalid operation for forward only resultset: absolute" when trying to use an InsensitiveScrollableResultSet (to paginate results). To make it simple

java.lang.ClassNotFoundException: org.apache.catalina.filters.HttpHeaderSecurityFilter for app specific web.xml under Tomcat 8.0.9 (bundled with Netbeans)

2016-09-08 Thread Mladen Adamović
I want in some specific apps to enable HttpHeaderSecurityFilter (I might have some insecure applications at the same server). I've edited web.xml of one application (not the tomcat/conf/web.xml file to add this filter): httpHeaderSecurity

[TOMCAT-JDBC] rs.absolute() throws "Invalid operation for forward only resultset: absolute"

2016-09-08 Thread Mohamad Abbas
Hello, I am working on a legacy web application running on a tomcat 8.0.37, and i am getting an error "Invalid operation for forward only resultset: absolute" when trying to use an InsensitiveScrollableResultSet (to paginate results). To make it simple and reproduce the problem i've created a

Re: Restrict access to manager app by IP

2016-09-08 Thread Yuval Schwartz
Thanks a lot for your replies. For now, I removed the "path" attribute from the Context elements but left the xml file in Catalina/[hostname]. When I have some more time, I will move to within my application (META-INF/context.xml) since that seems to be the consensus here. Thank you. On Wed,