Re: Parsing a URL to see if a param exists

2008-08-06 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 David, You could use HttpUtils.parseQueryString, but the entire class is deprecated. I like your home made parser below, with a couple of tweaks: David Wall wrote: | Not really since I just need to process the query string portion to see | if a

Re: Parsing a URL to see if a param exists

2008-08-06 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Johnny, Johnny Kewl wrote: | Dave this is how I do it... | |Enumeration paramNames = request.getParameterNames(); Go back and read the OP: he says that he's got a String and he wants to treat it as a URL and check for parameters. He's

Re: How to programmatically add parameters to ServletRequest objects?

2008-08-06 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Jonathan, Jonathan Mast wrote: | I can't figure out how to use the pageContext.forward() method like it's | equivalent script element: Do you mean that you want to add parameters to a forwarded URL without using JSP? | How do I pass the name-value

Re: j_security_check

2008-08-06 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Carlos, Carlos Morales wrote: | I'm having problems with j_security_check because when I try to log | in my login.jsp it doesn't work and I don't know why. Care to elaborate? - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.9 (MingW32)

Re: How to programmatically add parameters to ServletRequest objects?

2008-08-07 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Jonathan, Jonathan Mast wrote: | | This is really the only way to do it. The other option is to create a | | new request object and stuff your own parameters into it (or, better | | yet, wrap the original request and add your parameters only to the

Sudden missing javax/servlet/http/HttpServlet ?

2008-08-07 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 All, I've checked everything I can think of. Today, my dev instance of Tomcat started acting funny, saying: java.lang.NoClassDefFoundError: javax/servlet/http/HttpServlet ~at java.lang.ClassLoader.defineClass1(Native Method) ~at

Re: Sudden missing javax/servlet/http/HttpServlet ?

2008-08-07 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 All, Oh, yeah: there's no SecurityManager to worry about, either. Thanks, - -chris Christopher Schultz wrote: | All, | | I've checked everything I can think of. Today, my dev instance of Tomcat | started acting funny, saying

Re: Sudden missing javax/servlet/http/HttpServlet ?

2008-08-07 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 David, David Smith wrote: | So to boil this down a bit, it doesn't work with your webapp, but | suddenly comes to life if you remove your webapp and install | LambdaProbe? Exactly. | That's bizarre. Yeah, it sure is. Since I originally

Re: Sudden missing javax/servlet/http/HttpServlet ?

2008-08-07 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hassan, Hassan Schroeder wrote: | On Thu, Aug 7, 2008 at 12:18 PM, Christopher Schultz | [EMAIL PROTECTED] wrote: | | I'm going to start looking at the Velocity and Velocity-Tools JARs to | see if they might have been corrupted or something

Re: [SOLVED] Sudden missing javax/servlet/http/HttpServlet ?

2008-08-07 Thread Christopher Schultz
ClassLoaders are supposed to work, but this is the only explanation I can come up with. At any rate, my application works and it was neither my code nor my configuration that caused it. sigh - -chris Christopher Schultz wrote: | All, | | I've checked everything I can think of. Today, my dev instance

Re: Sudden missing javax/servlet/http/HttpServlet ?

2008-08-07 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Johnny, Johnny Kewl wrote: | Chris, your webapps probably still work out side the dev environment | I think all thats happening is your IDE is not loading the commons lib... No IDE involved: real men use emacs ;) Okay, maybe vi. The

Re: Sudden missing javax/servlet/http/HttpServlet ?

2008-08-07 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Johnny, Johnny Kewl wrote: | | - Original Message - From: Christopher Schultz | [EMAIL PROTECTED] | To: Tomcat Users List users@tomcat.apache.org | Sent: Thursday, August 07, 2008 11:40 PM | Subject: Re: Sudden missing javax/servlet/http

Re: Would like to monitor memory use offline

2008-08-07 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Richard, Richard S. Huntrods wrote: | In my code I was calling resultSet.close(), but not statement.close(). That'll do it. | The problem is, even though I verified (debug statements) that the call | is being made, the memory is STILL not being

Re: How to programmatically add parameters to ServletRequest objects?

2008-08-08 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 André, André Warnier wrote: | I am a real beginner at Java and Tomcat, and not so good at it. | But maybe that causes my explanation below to be useful. Don't forget to override getDateHeader and getIntHeader in your wrapper class. Also, don't

Re: application failed to start : Error in dependencyCheck java.util.zip.ZipException: invalid entry CRC

2008-08-08 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 James, [EMAIL PROTECTED] wrote: | attempting to run application on Tomcat 5.5 server (Fails to load at | context path) I see this in the catalina.log | | Google search suggests a zip file error with the .war - but I have | only used an exploded tree

Re: mvn command line failed with archetype....

2008-08-08 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Sam, This is probably a question best asked on the Maven mailing list. - -chris Sam Wun wrote: | Hi, | | I am wondering how to fix the following attached error (mvn command run)? | I tried to follow the instruction shown in the following website,

Re: mvn failed with archetype....

2008-08-08 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Sam, Please do not post the same question multiple times. Someone will eventually get back to you. This list is not your on-demand technical support team. - -chris Sam Wun wrote: | Hi, | | I am wondering how to fix the following attached error

Re: My Log4j statements going crazy in catalina.out

2008-08-08 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Emerson, emerson cargnin wrote: | In tomcat, though, even if my log file has only ERROR statements, | catalina.out seems to be getting all INFO, DEBUG from my application. | I couldnt' find anything in loggin properties that would set at ROOT |

Re: two questions: HTTP 1.1 headers + constantly open connections in TC

2008-08-08 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Albretch, Albretch Mueller wrote: | 1) Can you achieve such a thing as a registered, dedicated, always | open connection to each client in a network from login to logout using | tomcat? Not really. HTTP is designed as a connectionless protocol. You

Re: Problem with POST to servlet: 16384 bytes maximum?

2008-08-08 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Michele, Michele Fuortes wrote: | I tried 5.5.26 and 5.5.17 and it changed (for the worse-;). | The file now gets messed up at 7620 bytes At least the application runs faster, now ;) Seriously, though, we use TC 5.5.23 in our demo environment and

Re: Would like to monitor memory use offline

2008-08-08 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Richard, Richard S. Huntrods wrote: |public static Vector listLookup(String table) { | //Connection connection = null; // connection is managed by a | connection pool So, is 'connection' a local or not? |Statement statement =

Re: How to programmatically add parameters to ServletRequest objects?

2008-08-08 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 André, André Warnier wrote: | After making that filter, I thought that it would have been more | elegant to check if the header requested by getHeader() was one I | added, return it in that case, and otherwise just call the | getHeader() method of

Re: https j_security_check

2008-08-08 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Julio, Julio César Chaves Fernández wrote: | The curious thing is that when the password is | wrong the redirection is to the form-error page defined in the | web.xml file. So, I was hoping you could give me some sort of advice | or where could I

Re: Possible virus uploaded to Tomcat 5.5.3

2008-08-08 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Peter, Peter Crowther wrote: | That's a nice little JSP - once it's on the system, the attacker can | do anything they like that's allowed by the outbound firewall, with | the privilege of the user running Tomcat. Yeah, pretty much. This is one of

Re: DefaultServlet doesn't set charset

2008-08-11 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Markus, Markus Schönhaber wrote: | OK, I think I have, by and large, understood how the DefaultServlet | works and added code to append the charset info (if wanted and | applicable) to the Content-Type response header. | What I ended up with is the

Re: Would like to monitor memory use offline

2008-08-11 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Richard, Richard S. Huntrods wrote: | Richard, | | Richard S. Huntrods wrote: | |public static Vector listLookup(String table) { | | //Connection connection = null; // connection is managed by a | | connection pool | | So, is

Re: request for enlightenment on request.getHeaders()

2008-08-11 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 André, André Warnier wrote: | A-prioris : | - Some HTTP headers may occur several times in an HTTP request. | - According to the HTTP 1.1 RFC, HTTP headers names are | case-insensitive, and Accept-charset:, ACCEPT-CHARSET:, | Accept-Charset: are

Re: Re-opening the browser

2008-08-11 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Tokajac, Tokajac wrote: | But when i submit the (activated) username and password, i got the | -- | HTTP Status 408 - The time allowed for the login process has been exceeded. |

Re: how to make context path case insensitive

2008-08-11 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Persistence, persistence k wrote: | Currently my webapp context path is in upper case, and as per the | requirement we need to make the context path case insensitive | just as www.google.com and WWW.GOOgle.COM point to same application. Case |

Re: how to make context path case insensitive

2008-08-11 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Pierre, Pierre Goupil wrote: | If what you need is to redirect any request to | http://www.yoursite.com/yOuRwEbapP (yourwebapp being case insensitive) to | http://www.yoursite.com/yourwebapp (yourwebapp being case sensitive and | being the context

Re: how to make context path case insensitive

2008-08-11 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 André, André Warnier wrote: | Christopher Schultz wrote: | | Oh, that's a MUCH better idea than mine (to deploy all combinations of | case as redirector apps). The trick is that you must deploy this filter | into the ROOT application specifically

Re: concurrent JkMount entries? Order relevant?

2008-08-11 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Stephanie, Stephanie Wullbieter wrote: | Hi, what to do when I want generally mount a context and it's | subdirectories with mod_jk to one worker/router, but a special | subdirectory of it to a different worker/router? | | Does this work in

Re: Re-opening the browser

2008-08-11 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Mark, Mark Thomas wrote: | If you go directly to the login page Tomcat can't tell the difference | between that situation and when you go to a protected page, are | redirected to the login page and then take so long to log in the session | times out

Re: Re-opening the browser

2008-08-12 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Mark, Mark Thomas wrote: | Many of securityfilter's users use it merely because it allows | drive-by logins. We're happy to have them (!), but this seems like | a reasonable feature to have in the core of Tomcat. | | Given there is a demand for

Re: Re-opening the browser

2008-08-12 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Martin, Martin Gainty wrote: | ..I'll ask the dumb question..what is a drive-by login Sorry for the colloquialism. By drive-by login, I mean that the user was presented with a login page that was not served by Tomcat as a result of a request for a

Re: Would like to monitor memory use offline

2008-08-12 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Richard, Richard S. Huntrods wrote: | Everything is local except the pooled connections, so I would say this | is the problem. This code was originally written before tomcat had good | connection pools, and so I had to write my own. The pool is

Re: redirecting stdout stderr to .exe on windows

2008-08-12 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Richard, De Vries, Richard wrote: | For instance, I changed stdout from auto to | | c:\progra~1\logger\logger.exe, but this yields a no-go :-(. Checking | the task manager I also don't see logger.exe running. Sadly, win32 is not UNIX, where this

Re: tomcat admin packagep

2008-08-12 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 David, David Smith wrote: | 1) You already asked this question and Mark Thomas already answered. | Don't repeat your posts. | | 2) Why can't people ever post their tomcat version, OS, and JVM | version? We aren't psychic or big brother -- we have

Re: Image rendering problem in Tomcat 5.5.1

2008-08-12 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Atti, Szűcs Attila wrote: | However when I am | putting everything together the images are a little bit larger than | in the original design. This is a problem because the image contains | text which becomes blurry, and some spacer and separator

Re: Servlet problem using normal url

2008-08-12 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Huntly, Huntly Cameron wrote: | I've run into a strange problem with redirecting from a servlet when using a | normal domain name (www.xyz.com) Basically up until now I was just testing | my app using the http://locahost/webAppName URL. The

Re: redirecting stdout stderr to .exe on windows

2008-08-12 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Richard, De Vries, Richard wrote: | Basically the logger.exe is watching for pre-configured patterns and | shooting off SNMP traps, which then triggers a recovery action of sorts. Is it possible to configure your logger program to watch a log file

Re: Would like to monitor memory use offline

2008-08-12 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Richard, Richard S. Huntrods wrote: | I use a RSMD object in all my queries. I don't close | it. - MAYBE THAT's THE PROBLEM. I will test and report... Looking back at the JDBC API, I'm not sure you have any control over the RSMD query, result, etc.

Re: Would like to monitor memory use offline

2008-08-12 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Richard, Richard S. Huntrods wrote: | I FIXED THE PROBLEM! | | Yep - totally fixed (tested and verified). | | What I decided to do was to move the close statements (and nulling RSMD) | into the FINALLY block - it seemed pointless to duplicate

Re: removal of product name/version

2008-08-12 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Tommy, Tommy Pham wrote: | I'm looking for a way to remove the product name and/or version from | the server header and default http errors (without defining my own | custom error-page). I know it's possible for apache using | ServerSignature and

Re: Bug in tomcat scripts?

2008-08-12 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Enrique, Enrique Arizón wrote: | # rm -rf $(cwd)/.. /etc/init.d/tomcat5 restart Does this seem like a good idea to you? Hmm... I added 'rm -rf' to my script and now I can't find any files!. I can't imagine that this has anything to do with the

Re: AJP Proxying

2008-08-12 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Stephen, Stephen Nelson-Smith wrote: | * My server.xml was not originally written by me, and has been handed | down and modified over the ages. It was originally from Tomcat 4.1 | * Tomcat works fine in standalone mode - the app works. Your

Re: https j_security_check

2008-08-13 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Julio, Julio César Chaves Fernández wrote: | I was checking the http in my application and the server response is | a 302 ... what could possibly do this when using https ... could it | be something related to the URL ... or how could the server get

Re: AJP Proxying

2008-08-13 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Stephen, Stephen Nelson-Smith wrote: | Note that name=tomcat1 plus Aliastomcat1/Alias doesn't get you | anything ;) | | Do you mean that the alias is redundant? Yeah. Name='foo' plus alias='foo' is the same as leaving the alias off. - -chris

Re: removal of product name/version

2008-08-13 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Tommy, Tommy Pham wrote: | Thanks all for the reply. Somehow I missed that attribute. Looks | I'll have to define the error-pages. If I specify in the web.xml in | the conf folder, does apply to all web apps deployed for that | host/virtual host?

Re: Application failed to start - debug suggestions wanted

2008-08-13 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 James, [EMAIL PROTECTED] wrote: | application failed to start : Error in dependencyCheck | java.util.zip.ZipException: invalid entry CRC Sounds like a corrupted ZIP file (duh). It might not be your WAR file, though: it might be any of the libraries

Re: Rational purify with tomcat 5.5 gives an error

2008-08-13 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Pradeep, Pradeep_ Kumar wrote: | Picked up _JAVA_OPTIONS: -XrunPureJVMPI:Purify Does your application fail when Purify is /not/ used? Is this error repeatable with any regularity? Can you give us the contents of the hs_err_pid6060.log file? That

Re: https j_security_check

2008-08-13 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Julio, Julio César Chaves Fernández wrote: | No i'm working with https all the time ... when it's only over http | the application works ... it's just that i've been reading about | something related to j_security_check and that it adds port 80 to

Re: https j_security_check

2008-08-13 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Julio, Julio César Chaves Fernández wrote: | The 302 sends me back to the login page ... honestly i can't totally | blame https ... i tested the applicaction with https via JSSE and it | works (this was done in my pc)... but when i changed the

Re: Rational purify with tomcat 5.5 gives an error

2008-08-13 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Pradeep, Pradeep_ Kumar wrote: Yes this error occurs every time when I run my tomcat with Rational Purify. What about when it's /not/ running Rational Purify? Check out this article about your error on Microsoft's site:

Re: https j_security_check apparently Solved :P

2008-08-14 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Julio, Julio César Chaves Fernández wrote: I was testing somethings within the login page that is configured in the web.xml file... and there was a piece of code doing a redirection to assure that the page is loaded over https... first i proved

Re: servlet works, jsp not, why? (Tomcat 5.0)

2008-08-14 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Elanora, ge wrote: sql:query var=rs dataSource=jdbc:mysql://localhost:3306/javatest?user=javauserpassword=javadude select id, foo, bar from testdata /sql:query I think you want to use the name of the dataSourced, here, not the URL. You want

Re: tomcat default page

2008-08-14 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Zico, Zico wrote: Here, you can see that, the *main page of dspace* takes a longer time to load; in the mean time, the main page of tomcat halts for some seconds. Though i put *CONTENT=0 *in the html tagging,but tomcat pages shows for some

Re: where to place context configuration

2008-08-15 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Len, Len Popp wrote: So, the server admin can configure the DB server etc. by editing the file under the conf dir, but every time they deploy a new version of the app the settings are auto-wiped? No. Ideally, the server admin sets up data sources

Re: Fwd: Re: servlet works, jsp not, why? (Tomcat 5.0)

2008-08-15 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Elanora, [EMAIL PROTECTED] wrote: When I use sql:query var=rs dataSource=jdbc/TestDB I get: javax.servlet.ServletException: Unable to get connection, DataSource invalid: java.sql.SQLException: No suitable driver found for jdbc/TestDB I

Re: https j_security_check apparently Solved :P

2008-08-15 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Julio, Julio César Chaves Fernández wrote: Ye, i think thats what i needed apparently the redirection was the problem ... thanks for your help and excuse my ignorance but ... i have this connectors: Can you explain what each of these

Re: URIEncoding UTF-16 problem

2008-08-15 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 André, André Warnier wrote: Could you tell us *why* exactly you [are trying to use UTF-16]? It is rather unusual, as it supposes that you expect all clients to encode their requested URI's in UTF-16 prior to sending the request to Tomcat on that

Re: https j_security_check apparently Solved :P

2008-08-15 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Julio, Julio César Chaves Fernández wrote: the access is over Apache through the mod_jk connector (the one that connects with AJP13), and mapping with httpd.conf, but its also accessed by ports 8100 and 8443. I think you might reduce confusion if

Re: reloadable problem with filters

2008-08-15 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Daniel, Daniel Blumenthal wrote: I'm having an odd problem. When filters are enabled in my application (e.g., to add an Expires header to certain files), I have to restart the tomcat server every time I recompile. When the filters are disabled,

Re: Using tabbed browsers causes session sharing

2008-08-15 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Bill, Bill Davidson wrote: Robert Dietrick wrote: Why would you want the same person logged in twice with different accounts? As a developer of a web app that has both admin and regular user roles, I want to do this all the time. The admin

Re: URIEncoding UTF-16 problem

2008-08-18 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 André, André Warnier wrote: The OP is talking about UTF-16, not UTF-8. I understand. I was trying to contrast UTF-8 and UTF-16, apparently unsuccessfully. What you are saying above about ASCII/UTF-8 is true, if one restricts oneself to

Re: reloadable problem with filters

2008-08-18 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Daniel, Daniel Blumenthal wrote: I'm actually getting an error in catalina.out *during compilation* (see log extract below). That's deployment, not compilation. I think that what's happening is that somehow the reload process is being triggered

Re: Using tabbed browsers causes session sharing

2008-08-18 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Rusty, Rusty Wright wrote: Sorry, I thought I did. It has nothing to do with tomcat; it's up to the browser whether or not it assigns different sessions to the tabs or not. Replace sessions with cookies and the above statement is true. HTTP is

Re: Using tabbed browsers causes session sharing

2008-08-18 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Martin, Martin Gainty wrote: if you want to take it a step further determine if the client is using an old browser route them to latest script language=JavaScript !-- function onLoad() if(parseInt(navigator.appVersion)7);

Re: how to populate database with SHA hash for DIGEST

2008-08-18 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Lloyd, DIGLLOYD INC wrote: Answer: SHA just doesn't work. MD5 works fine. I presume this is because the browser has no idea what algorithm to use, and just always uses MD5. You should read the definition of HTTP DIGEST auth. It doesn't just

Re: Problem when running JSP

2008-08-19 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Praveena, Ch Praveena wrote: I have run a very basic helloworld program. But, when I am accessing the jsp file, I am getting the following exception stack trace. javax.servlet.ServletException: java.lang.VerifyError: (class:

Re: https j_security_check apparently Solved :P

2008-08-19 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Julio, Julio César Chaves Fernández wrote: Well, when i access the application over the AJP connector it does what it's supposed to ... redirect it by the redirect port defined in the connector on the server.xml file. Good. Its just that https

Re: https j_security_check apparently Solved :P

2008-08-19 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Julio, Julio César Chaves Fernández wrote: I'm sorry but i read the previous question and now that i notice i doesn't make any sense given that apache is connecting tomcat by AJP connector ... the question would be if there is a way to redirect a

Re: How to transfer session to another browser

2008-08-21 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Massoud, kohanm wrote: If I add cookie=false in Context, it's geting worse and the session in the original browser does not work properly. It sounds like you have not coded your webapp properly, then. If you had, disabling cookies would have

Re: How to transfer session to another browser

2008-08-21 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Jens, Jens Kapitza wrote: i think if you really will do this you can make a warper to the session object in the tomcat app. and store all the data in the database (select by the ip,username or id) - you have to pass this as parameter - (or

Re: tomcat 5.5 DataSourceRealm not taken in charge

2008-08-21 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 To whom it may concern, lmk wrote: it seems that role is mandatory, so i add role name, now user authenticated successfully but it he cannot access to resources because of exception: exception retrieving roles for USERNAME You have not set any

Re: HOW TO install/setup 2 instances of tomcat on same server

2008-08-21 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Ed, edponce wrote: I know this question has been asked a lot but I've read different solutions depending on the needs of the problem. I need to have 2 instances of tomcat on the same server for the same application. One would be for production and

Re: [programmazione] how to set context path on TOMCAT6

2008-08-21 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Luca, Luca Cicale wrote: A simple way is to put in your web application a file named context.xml in META-INF directory, with the following content: ?xml version=1.0 encoding=UTF-8? Context path=/reporting-application / No, no, no.

Re: how to set context path on TOMCAT6

2008-08-21 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Sushil, Sushil Dodake wrote: i have a application war file named as 'aaa.0.0.1d.war' i need to set a context path for this application as '/reporting-application' so for this to work i am creating a xml file 'reporting-application.xml' and

Re: HTTPConnector url redirection

2008-08-21 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Raveendra, raveendra wrote: But after accepting the certificate and loading the page.If i change my url to http://localhost:8443/myapp/start.action just by removing 's' it is loading the pages with some GUI errors and after traversing couple of

Re: tomcat service can't bundle domain

2008-08-21 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 David, David Smith wrote: OS? See below. Also what do you mean by tomcat's services? Do you mean jsvc or a shell script that supports start|stop|restart? Depending on OS and start method, you may be running into the old privileged ports

Re: tomcat instances on different ports running as different users can anyone shutdown?

2008-08-21 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Fu-Tung, Fu-Tung Cheng wrote: I have different instances of tomcat running on different ports of the same machine. The processes are running as different users. In this case could a user different than the one who launched the process connect

Re: Struts vs JSF (poll?)

2008-08-26 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Johnny, Johnny Kewl wrote: Use neither... prefer the plain TC MVC model. What do you consider the TC MVC model? Do you just mean use servlets configured in web.xml and use your own redirects/forwards from within them? One of the things I really

Re: Struts vs JSF (poll?)

2008-08-26 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Frank, Frank W. Zammetti wrote: On Tue, August 26, 2008 12:33 pm, Christopher Schultz wrote: With respect to Frank's comments, S2 specifically encourages you to separate your own code from the framework, so that you can even implement your logic

Re: automatic login

2008-08-26 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Thomas, Thomas Haines wrote: I'm trying to figure out a way to automatically login a user. It arises when they have created an account, and I don't want to then direct them back to a login page - rather, I want to, in this instance, just log

Re: Migration from 4.1 to 6

2008-08-29 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Jody, Jody Williams wrote: I need to migrate from tomcat 4.1 to 6. Are there any concerns I need to know about before starting? Are there any suggestions to make the transition easier? Whatever you do, don't try to re-use your server.xml from

Re: Default application or HTML redirect

2008-08-30 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Mark, Mark Thomas wrote: Mostafa Mossaad wrote: however, all my trails only seemed to make the application accessible via http://localhost only, not from the Internet. Then you have a proxy / dns / routing issue, not a Tomcat one. It's

Re: Migration from 4.1 to 6

2008-08-30 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Jody, Jody Williams wrote: I can't go into much detail about the current operational system. Is it possible to have the 4.1 and 6 run concurrently? Of course. But, you'll have to set the Connector ports differently for each one. Ideally, your

Re: Tomcat JNDI

2008-08-30 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Felix, felix l wrote: I just need to register JNDI datasource to Tomcat 6 and I followed http://tomcat.apache.org/tomcat-6.0-doc/jndi-resources-howto.html. I just couldn't make it work if I put the Resource tag with my oracle connection info in

Re: Form Authentication Issues

2008-08-30 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Erik, Erik Rumppe wrote: I get the login screen correctly but then everytime I try to log in I get the Error page. Do you get the login error page (login failed), or do you get a Tomcat error page with a stack trace, etc.? HELP Here is my

Re: Default application or HTML redirect

2008-09-03 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Mostafa, Mostafa Mossaad wrote: Any ideas Konstantin? Any ideas Mark? How about posting your entire server.xml file? - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.9 (MingW32) Comment: Using GnuPG with Mozilla -

Re: j_security_check get password on the request

2008-09-03 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 lmk, lmk wrote: Im using form based jaas authentication, I have to call a stored procedure with the user name and password to ininitialize some business objects! how can I get the password on the j_security_check request? can we use servlet

Re: JDBCRealm.getRoles causes NullPointerException

2008-09-03 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Lloyd, DIGLLOYD INC wrote: MySQL 5.0.51b + mysql-connector-java-5.1.6-bin.jar Have you tried downgrading to a 5.0 version? It might be worth it to see if there is some weird problem with their new driver. The only clue I see in catalina.out is

Re: Filter cuts response in Tomcat 5.5.20

2008-09-08 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Jesse, Jesse Klaasse wrote: However, it isn't working as it should be. I actually see the PRE and POST lines in the Ajax output, however, most of the time there is nothing between them. And when I print the response length, it's 0 most of the

Re: Question regarding FormAutenticator

2008-09-08 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Gregor, Gregor Schneider wrote: The only options I'm having seem to be - subclass FormAuthenticator and patch Tomcat Agreed: yuk. - use a JAAS-implementation, but I got no Idea if this will work, besides, you'll have to deal with the

[OT] NPE in MySQL driver statement close

2008-09-11 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 All, I'm getting these exceptions in my production stdout file. Anyone ever see anything like this: java.lang.NullPointerException at com.mysql.jdbc.ServerPreparedStatement.realClose(ServerPreparedStatement.java:901) at

Re: Etags vs Week Etags

2008-09-11 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Johnny, Johnny Kewl wrote: For example if you want XSLT in tomcat, first impression is its xerces and a complex servlet and lots of pain... you actually think tomcat cant do it, but then you look at the default servlet and Obama! its there ;) I

Re: response.sendRedirect and request.getQueryString

2008-09-11 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Kamal, Kamal wrote: I am running two web apps (one in Tomcat 5.0.30 and another in Tomcat 5.5). The app running in Tomcat 5.0.30 calls the app in Tomcat 5.5 (uses Form Authentication ). We have a JSP page in Tomcat 5.0.30 app that authenticates

Re: Tomcat 6 Memory problem

2008-09-11 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Barak, Barak Yaish wrote: I've dump a file using jmap, and asked MemoryAnalyzer (www.eclipse.org/mat) to take a look. This tool reported that an instance of java.security.Policy retained 77.7% of the heap (552,569,816 bytes). Wow, that's a lot of

Re: Etags vs Week Etags

2008-09-11 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Robert, Robert Koberg wrote: On Sep 11, 2008, at 10:36 AM, Christopher Schultz wrote: Huh? The DefaultServlet handles XSLT? Which version of TC is that in? There is XSL for directory listings by default. Okay, that makes WAY more sense

Re: Newbies, becareful of pure cookie based magic... theres a few gotcha's

2008-09-11 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Leon, Leon Rosenberg wrote: Having said that, there are a lot of use cases where you explicitelly don't want google or anyone else to index the site, cause it contains private information, would you like to see your private emails or your health

  1   2   3   4   5   6   7   8   9   10   >