Re: Logging properties of attributes in the HttpSession

2011-09-30 Thread Richard Sayre
returning '-'. Is there anything else Tomcat needs to have before whatever part of the API gets called for %u will return the remoteUser? Thanks, Rich On Thu, Sep 29, 2011 at 3:32 PM, Richard Sayre richardsa...@gmail.com wrote: Ahh yes I just discovered it when you replied: http

Logging properties of attributes in the HttpSession

2011-09-29 Thread Richard Sayre
Hi, I am logging all local host access using the following config: Valve className=org.apache.catalina.valves.AccessLogValve directory=logs prefix=localhost_access_log. suffix=.txt pattern='%h %l %u %{userObject}s %t %r %s %b' resolveHosts=false/ The userObject

Re: Logging properties of attributes in the HttpSession

2011-09-29 Thread Richard Sayre
the HTTP Session. Thanks, Rich On Thu, Sep 29, 2011 at 1:34 PM, Christopher Schultz ch...@christopherschultz.net wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Rich, On 9/29/2011 9:18 AM, Richard Sayre wrote: I am logging all local host access using the following config: Valve

Re: Logging properties of attributes in the HttpSession

2011-09-29 Thread Richard Sayre
...@christopherschultz.net wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Rich, On 9/29/2011 12:18 PM, Richard Sayre wrote: Thanks,  I'm trying to log the user name.  I am not using Tomcat for authentication and I need that info in my access logs. So, that means that %u isn't an option

protocol handler pause failed

2010-05-17 Thread Richard Sayre
Hi, Lately in my production environment I am getting URL is unavailable in my browser when I try to hit the site. I found the following in the catalina.log file: SEVERE: Protocol handler pause failed java.net.ConnectException: Connection refused: connect at

Re: protocol handler pause failed

2010-05-17 Thread Richard Sayre
I forgot to mention java 1.6.0_18 Windows Server 2003 On Mon, May 17, 2010 at 9:00 AM, Richard Sayre richardsa...@gmail.com wrote: Hi, Lately in my production environment I am getting URL is unavailable in my browser when I try to hit the site. I found the following in the catalina.log file

Re: protocol handler pause failed

2010-05-17 Thread Richard Sayre
Thanks for your help. We are going to upgrade to 6.0.26 and see if the issue goes away. I will update next week with the status of the issue. On Mon, May 17, 2010 at 9:45 AM, Konstantin Kolinko knst.koli...@gmail.com wrote: 2010/5/17 Richard Sayre richardsa...@gmail.com: Hi, Lately in my

Tomcat 6 Log Tomcat output to file

2009-12-21 Thread Richard Sayre
I usually install Tomcat as a Service under windows which causes all Tomcat output to go to stdout.log. I am in a situation where I can not do this. I have to start Tomcat from the command line. When I do all of Tomcats output is logged to the console. How do I manually configure Tomcat so the

Re: Tomcat 6 Log Tomcat output to file

2009-12-21 Thread Richard Sayre
. On Mon, Dec 21, 2009 at 11:32 AM, André Warnier a...@ice-sa.com wrote: Richard Sayre wrote: I usually install Tomcat as a Service under windows which causes all Tomcat output to go to stdout.log.  I am in a situation where I can not do this.  I have to start Tomcat from the command line.  When

Re: Tomcat 6 Log Tomcat output to file

2009-12-21 Thread Richard Sayre
:00 PM, André Warnier a...@ice-sa.com wrote: Richard Sayre wrote: No this only writes the following: Using CATALINA_BASE:   D:\liferay\tomcat-6.0.18 Using CATALINA_HOME:   D:\liferay\tomcat-6.0.18 Using CATALINA_TMPDIR: D:\liferay\tomcat-6.0.18\temp Using JRE_HOME:        D:\liferay\tomcat

Sharing Application Code Between Contexts

2008-09-29 Thread Richard Sayre
Is it possible to have several contexts pointing to the same code base? If I am hosing an application and other clients would like to use it, is it possible to set them up a seprate context that points to one set of JSP/Java Classes? Are there disadvantages in doing this? Thank you, Rich

Re: Sharing Application Code Between Contexts

2008-09-29 Thread Richard Sayre
regression upgrades easier to do since there is always that one app which cant be upgraded While you may be sharing code - all the code will be living in different classloaders (one per webapp) so at most - you are saving disk. -Tim Richard Sayre wrote: Is it possible to have several

Re: Sharing Application Code Between Contexts

2008-09-29 Thread Richard Sayre
What I mean is building a different WAR files, which has all the same code, but different deployment descriptors. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional

Re: Sharing Application Code Between Contexts

2008-09-29 Thread Richard Sayre
I use ant. I am using Netbeans IDE for everything. Basically I always have to change the context.xml and web.xml for every environment that I set up. Everything else remains the same. On Mon, Sep 29, 2008 at 9:46 AM, Mikolaj Rydzewski [EMAIL PROTECTED] wrote: Richard Sayre wrote

Re: Sharing Application Code Between Contexts

2008-09-29 Thread Richard Sayre
I specify a JNDI resources (connection pool) and an Authentication Realm. Each application authenticates from a different database, and has a seprate connetion pool there is a seprate database for each app. On Mon, Sep 29, 2008 at 10:43 AM, Mikolaj Rydzewski [EMAIL PROTECTED] wrote: Richard

Re: Sharing Application Code Between Contexts

2008-09-29 Thread Richard Sayre
Ok, thanks everyone for the help. I will look into all suggestions. Thanks, Rich On Mon, Sep 29, 2008 at 11:15 AM, Mikolaj Rydzewski [EMAIL PROTECTED] wrote: Richard Sayre wrote: I specify a JNDI resources (connection pool) and an Authentication Realm. Each application authenticates from

Building Tomat 6

2008-05-07 Thread Richard Sayre
I am trying to build tomcat 6 as per these instructions: http://tomcat.apache.org/tomcat-6.0-doc/building.html I keep getting this error when i try to build: C:\rich\downloads\apache-tomcat-6.0.16-src\apache-tomcat-6.0.16-src\java\org\apache\jasper\compiler\JDTCompiler.java:38: package

Re: Building Tomat 6

2008-05-07 Thread Richard Sayre
] wrote: Richard Sayre wrote: I am trying to build tomcat 6 as per these instructions: http://tomcat.apache.org/tomcat-6.0-doc/building.html I keep getting this error when i try to build: C:\rich\downloads\apache-tomcat-6.0.16-src\apache-tomcat-6.0.16-src\java\org\apache\jasper

Re: Building Tomat 6

2008-05-07 Thread Richard Sayre
at 5:18 PM, Mark Thomas [EMAIL PROTECTED] wrote: Richard Sayre wrote: Yes the ended up in c:\user\share\java I found the jdt plugin online and added it to c:\user\share\java\eclipse\plugins That suggests your build environment isn't correct. Then my compile worked. But Im not sure

Re: Building Tomat 6

2008-05-07 Thread Richard Sayre
Ok I downloaded Rapid SVN, but I get an access denied when trying to add the URL when Importing the repository. Do I need a user/passsword? On Wed, May 7, 2008 at 5:26 PM, Richard Sayre [EMAIL PROTECTED] wrote: I was just getting ready to do that but I have no knowledge of SVN or how to use

Re: Building Tomat 6

2008-05-07 Thread Richard Sayre
Ok I figured it out. I got the latest and did a build and everything worked ok. Thanks everyone for the help. On Wed, May 7, 2008 at 7:16 PM, Mark Thomas [EMAIL PROTECTED] wrote: Richard Sayre wrote: Ok I downloaded Rapid SVN, but I get an access denied when trying to add the URL when

HTTP 1.1 Not Supported

2007-12-05 Thread Richard Sayre
I have a C Sharp Pocket PC application that is hitting a Tomcat web server and getting some data from that server. With Tomcat 4.1 this application is working fine, but since I upgraded to Tomcat 6 it stopped working. Most of the application works with Tomcat 6. When It does work here is the

Re: HTTP 1.1 Not Supported

2007-12-05 Thread Richard Sayre
Here is the exact String exported from the packet: POST /test/sync/upload.jsp?username=test1 HTTP/1.1 Content-Type: text/xml Content-Length: 4005 Connection: Keep-Alive Expect: 100-continue Host: 192.168.1.116 On Dec 5, 2007 2:29 PM, Richard Sayre [EMAIL PROTECTED] wrote: The spacing seems

Re: HTTP 1.1 Not Supported

2007-12-05 Thread Richard Sayre
On Dec 5, 2007 2:22 PM, Caldarale, Charles R [EMAIL PROTECTED] wrote: From: Richard Sayre [mailto:[EMAIL PROTECTED] Subject: HTTP 1.1 Not Supported 2. The pocket pc app tries to obtain a Response object from the request 3. On the line of code that tries to obtain a response I get

Re: HTTP 1.1 Not Supported

2007-12-05 Thread Richard Sayre
). if there are more than one space between the elements you will get a 505 error. see: http://issues.apache.org/bugzilla/show_bug.cgi?id=42750 They seem to ignore Appendix B of RFC1945 (http://tools.ietf.org/html/rfc1945#page-55) Cheers Danny On Wed, 2007-12-05 at 14:02 -0330, Richard Sayre wrote

Re: HTTP 1.1 Not Supported

2007-12-05 Thread Richard Sayre
(http11processor.request.prepare)+ Unsupported HTTP version \+protocolMB+\); } response.setStatus(505); } Richard Sayre wrote: Here is the exact String exported from the packet: POST /test/sync/upload.jsp?username=test1 HTTP/1.1 Content-Type: text

Re: HTTP 1.1 Not Supported

2007-12-05 Thread Richard Sayre
fine. M-- - Original Message - From: Richard Sayre [EMAIL PROTECTED] To: Tomcat Users List users@tomcat.apache.org Sent: Wednesday, December 05, 2007 12:32 PM Subject: HTTP 1.1 Not Supported I have a C Sharp Pocket PC application that is hitting a Tomcat web server and getting

Re: HTTP 1.1 Not Supported

2007-12-05 Thread Richard Sayre
The Pocket PC is sending XML data to Tomcat. The XML contains all of the changes made to the data on the Pocket PC. On Dec 5, 2007 2:38 PM, Caldarale, Charles R [EMAIL PROTECTED] wrote: From: Richard Sayre [mailto:[EMAIL PROTECTED] Subject: Re: HTTP 1.1 Not Supported And what does

I keep getting prompted for Basic Authentication

2007-07-19 Thread Richard Sayre
I have a 2 separate tomcat server with about 20 webapps set up. I recently added a new webapp, this webapp has all the same web.xml and server.xml setting as the rest of the applications. On the second server, when I log into the new webapp and start navigating I get prompted for my user name

Re: Null

2007-06-21 Thread Richard Sayre
There is an ISNULL function in Transact SQL and a NVL function in PL/SQL that will return a default value if the data is null. That is if you don't mind writing separate SQL for each database. On 6/21/07, Mohammed Zabin [EMAIL PROTECTED] wrote: Hi All Anyone knows how to deal with null values

Re: Tomcat 6, SQL Server 2005 JDBC Realm not working

2007-06-14 Thread Richard Sayre
putting this in the server xml. On 6/13/07, Richard Sayre [EMAIL PROTECTED] wrote: I have a web app that connects to my SQL Server 2005 Database with no trouble using this code: Class.forName(com.microsoft.sqlserver.jdbc.SQLServerDriver); con = DriverManager.getConnection

Re: Tomcat 6, SQL Server 2005 JDBC Realm not working

2007-06-14 Thread Richard Sayre
It turns out I had to RTFM. Quick Start: 3. Place a copy of the JDBC driver you will be using inside the $CATALINA_HOME/lib directory. Note that only JAR files are recognized! I only had it in my Web App lib folder On 6/14/07, Richard Sayre [EMAIL PROTECTED] wrote: I just tried the exact

Tomcat 6, SQL Server 2005 JDBC Realm not working

2007-06-13 Thread Richard Sayre
I have a web app that connects to my SQL Server 2005 Database with no trouble using this code: Class.forName(com.microsoft.sqlserver.jdbc.SQLServerDriver); con = DriverManager.getConnection(jdbc:sqlserver://server-2006;databaseName=v362;user=user;password=dbase); My application runs

request.getParameter is returning the wrong value

2007-05-08 Thread Richard Sayre
My web application generates a list of links for a user to click on. The URL looks like this: showCa.jsp?id=2345 The showCa.jsp page uses the id to populate a form on the page. The problem I am have is when a user clicks the link showCa.jsp?id=2345 The request.getParameter(id) is returning

Re: request.getParameter is returning the wrong value

2007-05-08 Thread Richard Sayre
On 5/8/07, Caldarale, Charles R [EMAIL PROTECTED] wrote: From: Richard Sayre [mailto:[EMAIL PROTECTED] Subject: request.getParameter is returning the wrong value The problem I am have is when a user clicks the link showCa.jsp?id=2345 The request.getParameter(id) is returning the wrong id

Re: request.getParameter is returning the wrong value

2007-05-08 Thread Richard Sayre
or email and destroy the original message without making a copy. Thank you. - Original Message - From: Richard Sayre [EMAIL PROTECTED] To: Tomcat Users List users@tomcat.apache.org Sent: Tuesday, May 08, 2007 9:55 AM Subject: Re: request.getParameter is returning the wrong value On 5/8/07

Re: request.getParameter is returning the wrong value

2007-05-08 Thread Richard Sayre
a problem.. so I can only think you are placing the variable in some sort of static location? If you say that the query string shows the correct location.. then things are really strange. Does the address in the browser show the correct location/url? On 5/9/07, Richard Sayre [EMAIL PROTECTED] wrote

Re: request.getParameter is returning the wrong value

2007-05-08 Thread Richard Sayre
Also, If you have any information about declaring a variable with ! I would like to know. I am having trouble finding any on google and my JSP book. On 5/8/07, Richard Sayre [EMAIL PROTECTED] wrote: Yes the right values are passed. Th eonly one of those variable that really efects the data

Re: request.getParameter is returning the wrong value

2007-05-08 Thread Richard Sayre
that it is before I remove it from the code. On 5/8/07, David Delbecq [EMAIL PROTECTED] wrote: Give us the .jsp and the jasper generated .java file, it will be faster to solve :) En l'instant précis du 08/05/07 17:22, Richard Sayre s'exprimait en ces termes: Also, If you have any information about declaring

Re: request.getParameter is returning the wrong value

2007-05-08 Thread Richard Sayre
On 5/8/07, Christopher Schultz [EMAIL PROTECTED] wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Richard, Richard Sayre wrote: I started to look in the _jspService and I noticed the the variable which I assign the request.getParameter(id) to is not in that method. Note that JSP