Apache+Tomcat+mod_jk+cookie+Rewrite

2007-01-04 Thread DEVAL SHAH
Hello, I notice that because of url rewriting [RewriteRule] my cookie is not being passed to Tomcat. This is what I am doing: I have mod_jk as connector between Tomcat and Apache. I have an HTML page where I set my cookie - username. Now If I call the servlet directly from html page then cookie

RE: Presentation on Tomcat

2007-01-04 Thread Narayanaswamy, Mohan
http://www.google.co.in/search?hl=en&as_qdr=all&q=Tomcat+filetype%3Appt+ inurl%3Aedu&meta= - 908 valid presentations :) . Regards, Mohan -Original Message- From: Vijay Hatewar [mailto:[EMAIL PROTECTED] Sent: Thursday, January 04, 2007 3:10 PM To: 'Tomcat Users List' Subject: RE: Presen

Re: URL rewriting For Session Tracking

2007-01-04 Thread jobs
Hi Bill, In my case, I can't use taglibs since I am generating the code dynamically. But even if I could use taglibs, then part of what the taglib does is really using response.encodeURL("second.jsp") to do the URL rewriting without you having to worry about it. So, I think the ultimate answer i

Re: Tomcat cache problem?

2007-01-04 Thread Leon Rosenberg
the caching behaviour of the modern browsers is really a rocket science. One of the way to try to control it is to put the according meta-tags into your files: Furthermore I'd suggest you add a unique timestemp (System.currentTimeMillis()) to ea

Re: how to configure tomcat for Turkey?

2007-01-04 Thread Filip Hanik - Dev Lists
it's your "," character. you need to use the java.text.DecimalFormat class Filip Dharma General wrote: hello, (1) i want my JSP application to run with Turkey locale. how should i configure apache Tomcat 5.x for Turkey? (2) at present, i want to find out about an error message --- java.lang.N

Re: strange tomcat 5.5 problem/session handling?

2007-01-04 Thread Filip Hanik - Dev Lists
On the tomcat side, you can enable the RequestDumperValve to see what is going on, on the browser side use Firefox with a little plugin called LiveHttpHeaders, lets you see all the traffic going back and forward Filip Stefan Kuhn wrote: Hi all, I have got a rather strange problem with am appl

Re: Deploy from ant

2007-01-04 Thread Carlos Pita
I'm currently using WTP just for editing xml and jsp (btw, I would love that it supported EL autocompletion for the MVC model). OTOH I'm a bit reluctant to adopt the entire web WTP proyect approach, I prefer to control my vanilla java project from ant targets. Anyway, regarding the ant deploy task

strange tomcat 5.5 problem/session handling?

2007-01-04 Thread Stefan Kuhn
Hi all, I have got a rather strange problem with am application running on tomcat. The aplication is based on Jetspeed, which uses Turbine. The problem is with login, since user handling is session based I think it could be a problem with tomcat session handling. Ok, it's a jetspeed 1.6 running

Re: Deploy from ant

2007-01-04 Thread Veit Guna
Hi. All I can say is, that you don't want to deploy your war file through an ant task to tomcat. Believe me. Not for development. For a small change in the webcontent you have to redeploy the whole app - very annoying. I used that half a year. Now I use the Eclipse WTP Project for development wit

Re: Tomcat cache problem?

2007-01-04 Thread markx3
Hello, What do you mean by "and you probably should check the pragmas in the pages (expire, no-cache, etc). If they aren't present - you are screwed :-)" Can you please give me more info on what to do? Thank you! Leon Rosenberg-3 wrote: > > and you probably should check the pragmas in the p

Re: Wrong charset (is UTF-8 should be ISO 8859-1)

2007-01-04 Thread Hassan Schroeder
On 1/4/07, Sköldheimer Fredrik <[EMAIL PROTECTED]> wrote: I have a character issue I can't figure out. Here are a simple example of a html-page. I have looked in the config files of tomcat but can't find any parameters that corresponds to the "defaultcharacterset" that I'm used to from apac

Re: Deploy from ant

2007-01-04 Thread Carlos Pita
Thank you for your prompt answer, really, but please notice the original question was: how do I deploy a webapp ***from the ant deploy task*** avoiding it to copy the entire application under tomcat/webapps? I was trying to follow the development process described at http://tomcat.apache.org/tom

Re: Deploy from ant

2007-01-04 Thread Carlos Pita
Amen to that :-) So why not just use the deployment directory as the development directory? Edit your JSP, click browser's reload, done. Yes, of course I thought of that, and also of just deploying the xml context descriptor with the docBase pointing to my build directory, just in case I prefer

Re: Tomcat cache problem?

2007-01-04 Thread markx3
Hello, We tried reloading the website in the managers section and we were still able to duplicate the issue without restarting Tomcat. So do we think this is an issue with the webpage itself? david.delbecq wrote: > > To make it short, tomcat does no caching of servlet / jsp output. Your > web

Re: Deploy from ant

2007-01-04 Thread Leon Rosenberg
and copy_jsps 1 second and you are done, and don't

Re: Deploy from ant

2007-01-04 Thread Hassan Schroeder
On 1/4/07, Carlos Pita <[EMAIL PROTECTED]> wrote: Copy the entire app war, explode it, deploy it (and of course recompile the requested jsp), all that just to check, say, that a typo in the view was corrected or that some cell contents are now correctly aligned? It seems overkilling for check

Re: Deploy from ant

2007-01-04 Thread Carlos Pita
Why not just drop in the new war file created from the ant war task? Tomcat will reload the app automatically. Copy the entire app war, explode it, deploy it (and of course recompile the requested jsp), all that just to check, say, that a typo in the view was corrected or that some cell contents

Re: how to configure tomcat for Turkey?

2007-01-04 Thread David Smith
Dharma General wrote: > (2) at present, i want to find out about an error message --- > > java.lang.NumberFormatException: For input string: "0,00" >at sun.misc.FloatingDecimal.readJavaFormatString(Unknown Source) >at java.lang.Float.parseFloat(Unknown Source) > > what is it? > > thx > Rea

Re: Deploy from ant

2007-01-04 Thread Leon Rosenberg
Why not just drop in the new war file created from the ant war task? Tomcat will reload the app automatically. On a half-way fast pc it will last 10 seconds (depending on the size of the webapp of course, and the amount of work need to be done on undeploy/deploy) Leon

Re: Moving Tomcat

2007-01-04 Thread Filip Hanik - Dev Lists
you can also install Tomcat from the .tar.gz (on apache's website), that creates a location independent layout for you Filip Steve Ingraham wrote: I have a website running with jakarta-tomcat-5.5.9. The server this website resides on is going to have to be rebuilt so I am needing to move every

how to configure tomcat for Turkey?

2007-01-04 Thread dharmageneral
(1) i want my JSP application to run with Turkey locale. how should i configure apache Tomcat 5.x for Turkey? (2) at present, i want to find out about an error message --- java.lang.NumberFormatException : For input string: "0,00" at sun.misc.FloatingDecimal.readJavaFormatString(Unknown Sourc

how to configure tomcat for Turkey?

2007-01-04 Thread Dharma General
hello, (1) i want my JSP application to run with Turkey locale. how should i configure apache Tomcat 5.x for Turkey? (2) at present, i want to find out about an error message --- java.lang.NumberFormatException: For input string: "0,00" at sun.misc.FloatingDecimal.readJavaFormatString(Unknown

Deploy from ant

2007-01-04 Thread Carlos Pita
Hi all, how do I deploy a webapp from the ant deploy task avoiding it to copy the entire application under tomcat/webapps? The point is to simply update my build directory with modified jsps to make tomcat aware of the changes. If this build directory, which of course is not under webapps, is fir

RE: Moving Tomcat

2007-01-04 Thread Steve Ingraham
Thanks Chuck for the info. I appreciate your and everyone else's replies. I will be continuing on with resolving this problem and may have some other questions but you guys have answered a lot for me already. Thanks, Steve -- > From: Steve Ingraham [mailto:[EMAIL PR

RE: Moving Tomcat

2007-01-04 Thread Caldarale, Charles R
> From: Steve Ingraham [mailto:[EMAIL PROTECTED] > Subject: RE: Moving Tomcat > > Here is a list of the .jar files in > /usr/local/src/jakarta-tomcat-5.5.9/common/lib: The noted jars are all part of the standard Tomcat distribution. > There is one file in > /usr/local/src/jakarta-tomcat-5.5.9

Own logging formatter in webapps

2007-01-04 Thread Langjahr, Uwe
Hello together, I'm a newbie using Java/Tomcat/JSF-MyFaces all together. Can somebody help me, I have problems with the logging mechanism. - I want to use the JDK logging mechanism in my webapp. - I want to use my own class uxspiweb.log.DebugFormatter for the ConsoleHandler channel. - I put the

RE: installing the admin on 5.5

2007-01-04 Thread Caldarale, Charles R
> From: Fran Varin [mailto:[EMAIL PROTECTED] > Subject: RE: installing the admin on 5.5 > > I ran Tomcat using the .bat and I experience the same issue. O.k., let's try the following: 1) Shut down any existing Tomcat instances. 2) If it exists, delete C:\apache-tomcat-5.5.20 and everything un

Re: URL rewriting For Session Tracking

2007-01-04 Thread David Delbecq
En l'instant précis du 01/04/07 16:37, Caldarale, Charles R s'exprimait dans toute sa noblesse: >> From: David Delbecq [mailto:[EMAIL PROTECTED] >> Subject: Re: URL rewriting For Session Tracking >> > > Many thanks to Chris and David for the enlightenment. > > Another question: How would one

RE: URL rewriting For Session Tracking

2007-01-04 Thread Peter Crowther
> From: David Delbecq [mailto:[EMAIL PROTECTED] > Of course, first is anyway incompatible with http based > authentification, can only work on form based > authentification (because browser caches the user/pass) Not true - if the app uses in-memory session cookies (true for ASP, ASP.Net and JSP)

Re: Applets not loading after upgrade

2007-01-04 Thread may.brian
The appBase is webapps, and the doc base is cdo. Mark Thomas-11 wrote: > > may.brian wrote: >> This seems to indicate a problem with the classpath, but there have been >> no >> changes to the directory structure or the html generated. > > What are the appBase and docBase settings for this hos

RE: Moving Tomcat

2007-01-04 Thread Steve Ingraham
I want to thank everyone for the insightful information yesterday on my query about moving Tomcat. I have not moved anything at this time but I have made a copy onto CD of everything that resides on the /usr/local/src directory. This does include the jakarta-tomcat-5.5.9 directory and all of i

Re: URL rewriting For Session Tracking

2007-01-04 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Chuck, Caldarale, Charles R wrote: >> From: David Delbecq [mailto:[EMAIL PROTECTED] >> Subject: Re: URL rewriting For Session Tracking > > Many thanks to Chris and David for the enlightenment. > > Another question: How would one handle links embedd

Re: URL rewriting For Session Tracking

2007-01-04 Thread David Delbecq
En l'instant précis du 01/04/07 16:32, fausto mancini s'exprimait dans toute sa noblesse: > > > David Delbecq wrote: > >> 2) in some cases it can be useful to have 2 sessions in same browser >> (something you can't do with cookies) > > Hello David, > I've never thought about that; it looks interest

Re: URL rewriting For Session Tracking

2007-01-04 Thread Mikolaj Rydzewski
Caldarale, Charles R wrote: To step back a little: why would it be important to use URL encoding to track sessions rather than do it with cookies? Some log analyzers use such information to generate user profiles, etc. -- Mikolaj Rydzewski <[EMAIL PROTECTED]> smime.p7s Description: S/MIME

RE: URL rewriting For Session Tracking

2007-01-04 Thread Caldarale, Charles R
> From: David Delbecq [mailto:[EMAIL PROTECTED] > Subject: Re: URL rewriting For Session Tracking Many thanks to Chris and David for the enlightenment. Another question: How would one handle links embedded in static content? Is it simply a matter of "don't do that"? - Chuck THIS COMMUNICATIO

RE: URL rewriting For Session Tracking

2007-01-04 Thread Peter Crowther
> From: fausto mancini [mailto:[EMAIL PROTECTED] > > 2) in some cases it can be useful to have 2 sessions in same browser > > (something you can't do with cookies) > > Hello David, > I've never thought about that; it looks interesting. Do you > have a real use case for that? Here's one: "Princi

Re: Tomcat 6.0 vs Tomcat 5.5 Clustering Changes

2007-01-04 Thread Filip Hanik - Dev Lists
Mainly its been refactored, farming as in 5.5 is still pretty broken and hasn't been worked on. What has been worked on is the separation of session replication vs cluster/group communication. These are two separate packages now o.a.catalina.tribes (group com, simple overview at http://people.ap

Re: URL rewriting For Session Tracking

2007-01-04 Thread fausto mancini
David Delbecq wrote: 2) in some cases it can be useful to have 2 sessions in same browser (something you can't do with cookies) Hello David, I've never thought about that; it looks interesting. Do you have a real use case for that? Thank you in advance. _F_M

Re: URL rewriting For Session Tracking

2007-01-04 Thread David Delbecq
En l'instant précis du 01/04/07 16:04, Caldarale, Charles R s'exprimait dans toute sa noblesse: >> From: Christopher Schultz [mailto:[EMAIL PROTECTED] >> Subject: Re: URL rewriting For Session Tracking >> >> I think you are misinterpreting the OP's question... I think >> he wants to /force/ the

Re: Tomcat clustering broken - Unable to send message through cluster sender

2007-01-04 Thread Filip Hanik - Dev Lists
In TC 5.x.x message senders are removed when a multicast heartbeat is missed. so if your sender is null, then most likely your multicasting has a few hickups. in TC6 there is a safeguard against multicast failures using the TCP failure detector. Filip Spurlock, Robert J wrote: All, We've h

Re: URL rewriting For Session Tracking

2007-01-04 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Chuck, Caldarale, Charles R wrote: > So setting cookies="false" in the element isn't sufficient? That just tells Tomcat not to use cookies to send session identification to the browser. Yes, the alternative to cookies is the use of URL rewriting to

RE: URL rewriting For Session Tracking

2007-01-04 Thread Caldarale, Charles R
> From: Christopher Schultz [mailto:[EMAIL PROTECTED] > Subject: Re: URL rewriting For Session Tracking > > I think you are misinterpreting the OP's question... I think > he wants to /force/ the use of URL rewriting to include the > jsessionid. In that case, he /must/ run all his links through

Re: J2EE option missing in Eclipse environment for Servlet.

2007-01-04 Thread Mir Kasim Ali
Thanks its working On 1/4/07, Kristian Rink <[EMAIL PROTECTED]> wrote: athula bogoda schrieb: > I install eclipse 3.2 with Tomcat 5.0 to run servlets > under J2EE. [...] > But in "Open Perspective" J2EE option is not > available. Also "Dinamic web Project" option also not > available. > What's

Re: from https to http?

2007-01-04 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Pablo, John Doe wrote: > Of course that is not a Tomcat's job, but if exists a redirection > from http to https I wonder why does not exists a reverse way in the > "declarative security" mechanism provided by the servlet > specification. Oh, I unders

Re: from https to http?

2007-01-04 Thread Suresh babu
Hi all I have one question regarding http and https: Lets say I open a pop up page from https, pop window will be opened in https mode as main window is opened in https and I have action in pop up where it leave https mode and enter in to http modeIf i want put value from pop window to mai

Re: from https to http?

2007-01-04 Thread John Doe
Chris, Of course that is not a Tomcat's job, but if exists a redirection from http to https I wonder why does not exists a reverse way in the "declarative security" mechanism provided by the servlet specification. But like you point, there are not so many places where a programmer must res

Re: from https to http?

2007-01-04 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Pablo, John Doe wrote: > Thanks a lot by the explanation. Looks like Tomcat (or maybe the > "Servlet specification"?) needs a mechanism to switch from https to > http when this access is declared by a otherwise > is forcing programmers to always use

Re: URL rewriting For Session Tracking

2007-01-04 Thread Mikolaj Rydzewski
[EMAIL PROTECTED] wrote: All I want to do is 'URL rewriting For Session Tracking'. Do I have to do this manually in my code (using response.encodeURL), or is there an automatic way of doing this in Tomcat (such as using a filter or value) that would handle this for me? Add cookies="false" t

Re: URL rewriting For Session Tracking

2007-01-04 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Chuck, Caldarale, Charles R wrote: >> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] >> Subject: Re: URL rewriting For Session Tracking >> >> Do I have to wrap every link that I have in my webapp with an >> Httpservletresponse.encodeURL()? > > N

Re: from https to http?

2007-01-04 Thread John Doe
Hi Ben, Unfortunately I not using any framework in the webapplication, just raw java scriplets and html (is a small webapp). Anyway thanks a lot by the links. Cheers! - Pablo On 1/4/07, ben short <[EMAIL PROTECTED]> wrote: Hi Joe, Have a look at the Acegi Security [1] stuff if your using

Re: Strange behaviour after upgrade to 5.5.20

2007-01-04 Thread Gregor Schneider
Well, haven't looked at the code of either version (4.x, 5.x), however, I figured that 5.x makes a bit more use of Java's threading-features. Besides, unsynchronized hashmaps are a #1-candidate for errors that are either strange, not reproducible and in cases where you think you should file a bug-

RE: Strange behaviour after upgrade to 5.5.20

2007-01-04 Thread Varley, Roger
> > Besides, HashMap is not thread-safe, have you tried it with a > thread-safe implementaion (i.e. Map m = > Collections.synchronizedMap(new HashMap(...));) > Yep, that fixed it. Interestingly, the original servlet using the hashmap continues to work fine with Tomcat 4.1.31. I can only surmise

Re: URL rewriting For Session Tracking

2007-01-04 Thread Len Popp
Or if you use the JSP standard tag lib (JSTL) you can do: second page -- Len On 1/4/07, Bill Barker <[EMAIL PROTECTED]> wrote: Usually you would use a tag lib for this sort of thing. With struts, it would look something like: second page <[EMAIL PROTECTED]> wrote in message news:[EMAIL PRO

RE: installing the admin on 5.5

2007-01-04 Thread Fran Varin
I ran Tomcat using the .bat and I experience the same issue. Yes, it is the version that I believe it to be as the version number is reported in the "manager" console and I'm not running a distro of Eclipse that bundles any server. Fran Caldarale, Charles R wrote: > >> From: Fran Varin [m

Re: from https to http?

2007-01-04 Thread ben short
Hi Joe, Have a look at the Acegi Security [1] stuff if your using spring. This will allow you to configure what paths require https and redirect the incomming requests if they are not https. There is a catalina project too [2] but im not to sure what that does, but you never know it might be of

Re: from https to http?

2007-01-04 Thread John Doe
Chris, Chuck: Thanks a lot by the explanation. Looks like Tomcat (or maybe the "Servlet specification"?) needs a mechanism to switch from https to http when this access is declared by a otherwise is forcing programmers to always use programatic security to made this switch; anyway we get paid

Re: Strange behaviour after upgrade to 5.5.20

2007-01-04 Thread Gregor Schneider
Hi Roger, just a shot from the hip: Maybe you want to overwrite the method public int hashcode() for the objects being put into the hashmap - you should not rely on the default implementation of java.lang.Object.hashcode(). Besides, HashMap is not thread-safe, have you tried it with a thread-sa

RE: Strange behaviour after upgrade to 5.5.20

2007-01-04 Thread Varley, Roger
> I think you're going to have to be a bit less vague if you > want any real > responses. A description of the actual symptoms, exact error > messages, > log entries, etc., would help. "Strange behaviour" doesn't > give anyone > much to go on. Sorry, Im still grappling with the new Tomcat. Th

Can't register Tomcat as Windows service on some computers

2007-01-04 Thread Irek Matysiewicz
When I use Java 1.6.0: Tomcat started using startup.bat works fine. When started using tomcat5.exe does nothing, and exits. When registered as a Windows service, and started using: net start tomcat5 There is a meaningless error message on the console, but in jakarta_service.log I find: [2006-12

Re: Tomcat 5 Memory Leak

2007-01-04 Thread Leon Rosenberg
On 1/4/07, Denis Barthélemy <[EMAIL PROTECTED]> wrote: Hi, Our java based application is running on tomcat 5.0.3 on linux with JRE 1.4.2_08. Since the migration from tomcat 5.0.27 to 5.0.30, a bunch of our application's sessions are not correctly closed and so they stay in live u

Tomcat 5 Memory Leak

2007-01-04 Thread Denis Barthélemy
Hi, Our java based application is running on tomcat 5.0.3 on linux with JRE 1.4.2_08. Since the migration from tomcat 5.0.27 to 5.0.30, a bunch of our application's sessions are not correctly closed and so they stay in live using memory. In using a leak tracker tool, a memo

tomcat 5.5.x problem on solaris 10/11

2007-01-04 Thread [EMAIL PROTECTED]
I've experience problem with web app deployments under Solaris. I have one web app that serves all requests.Context path=""(default app).But requests for dirs such bin,conf,work,webapp and other in CATALINA_HOME don't go o my app and served by tomcat. Under Linux and windows same config works well

RE: MOD_JK Redirection issues

2007-01-04 Thread Jagadeesh
Thanks Rainer That solved my problem, Thank you very much!!! Regards Jagadeesh -Original Message- From: Rainer Jung [mailto:[EMAIL PROTECTED] Sent: Thursday, January 04, 2007 3:09 PM To: Tomcat Users List Subject: Re: MOD_JK Redirection issues OK, now I've got it. There is a specia

Re: Presentation on Tomcat

2007-01-04 Thread Gregor Schneider
Vijay, for a start try reading up the documentation. You'll find it at http://tomcat.apache.org/tomcat-5.5-doc/deployer-howto.html Cheers Greg -- what's puzzlin' you, is the nature of my game gpgp-fp: 79A84FA526807026795E4209D3B3FE028B3170B2 gpgp-key available @ http://pgpkeys.pca.dfn.de:11371

RE: Presentation on Tomcat

2007-01-04 Thread Vijay Hatewar
I am not sure if I should take effort, answering your question but still... Jerome .. Yes you are right , I perhaps made very simple request. But is it fair and right , you putting every Indian in the same bracket. I believe everything is getting outsourced in India since long time and we are d

Re: MOD_JK Redirection issues

2007-01-04 Thread Rainer Jung
OK, now I've got it. There is a special handling for encoded slashes in apache. Most other encoded chars will work transparent, but not slashes. You can set AllowEncodedSlashes On in Apache. Please read the docs at http://httpd.apache.org/docs/2.2/mod/core.html#allowencodedslashes to understan

Re: Presentation on Tomcat

2007-01-04 Thread The Schneider Company
On 1/4/07, Vijay Hatewar <[EMAIL PROTECTED]> wrote: > Hi All > > I am very new to Tomcat and working as a QA Engineer , I have to deliver > presentation on How web application can be deployed using tomcat , different > configuration files and how they are used . basically I want to cover high > l

Wrong charset (is UTF-8 should be ISO 8859-1)

2007-01-04 Thread Sköldheimer Fredrik
Hello. I'm a tomcat beginner but have experience of the apache http server. I have a character issue I can't figure out. Here are a simple example of a html-page. - 8< - http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"; > http://www.w3.org/1999/xhtml"; xml:lang="sv" lang="sv">