Re: Where to find session cookies

2007-06-26 Thread Venkatesh Babu
Think the servlet APIs like response.addCookie() etc ... might be helpful here. 
You can send couple of cookies in your response header, the browser will store 
these cookies permanently in harddisk.

-Venkatesh


- Original Message 
From: lightbulb432 [EMAIL PROTECTED]
To: users@tomcat.apache.org
Sent: Wednesday, June 27, 2007 12:42:36 AM
Subject: RE: Where to find session cookies


How can I configure Tomcat to use permanent cookies as opposed to session
cookies? One of the reasons I'd like to know is to see the behavior of
method isNew() of HttpSession, which I can do if I'm able to disable
cookies. As the Javadoc for HttpSession says:

A servlet should be able to handle cases in which the client does not
choose to join a session, such as when cookies are intentionally turned
off.



Fargusson.Alan wrote:
 
 Session cookies are not stored on disk.  This is why they are more secure
 then cookies (non-session).  Since they only exist in RAM (ok, maybe in
 swap files) nobody else using that machine can find them, and they go away
 when the browser ends.
 
 -Original Message-
 From: lightbulb432 [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, May 29, 2007 12:15 PM
 To: users@tomcat.apache.org
 Subject: Where to find session cookies
 
 
 
 When testing my application that uses sessions, I don't seem to see a
 cookie
 with domain localhost in my browser's cookies folder. Does Tomcat use some
 internal folder to put its cookies, or am I just doing something else
 wrong?
 
 I do have cookies enabled, so it's not writing the session id to the URL,
 either.
 
 Thanks.
 -- 
 View this message in context:
 http://www.nabble.com/Where-to-find-session-cookies-tf3835973.html#a10860700
 Sent from the Tomcat - User mailing list archive at Nabble.com.
 
 
 -
 To start a new topic, e-mail: users@tomcat.apache.org
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 -
 To start a new topic, e-mail: users@tomcat.apache.org
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 

-- 
View this message in context: 
http://www.nabble.com/Where-to-find-session-cookies-tf3835973.html#a11311838
Sent from the Tomcat - User mailing list archive at Nabble.com.


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]






   

Sick sense of humor? Visit Yahoo! TV's 
Comedy with an Edge to see what's on, when. 
http://tv.yahoo.com/collections/222

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Tomcat going down abruptly

2007-03-14 Thread Venkatesh Babu
Hello all,

We have hosted a small vehicle retail website using tomcat as app server. The 
site has been live from around 6-7 months, just that the number of vehicles on 
our site is increasing. The site was working fine till last week, but in the 
last week we are seeing that our site is unstable, and tomcat keeps going down 
regularly. We are not able to find out the exact reason behind why this is 
happening. Tomcat log files are not containing note of any exceptions or error 
conditions resulting in tomcat going down.

Can anybody tell me as to how we can find out the cause?

As far as our webapp is concerned, addition of vehicles will cause increase in 
memory usage, but we are hosting our site in a machine having good amount of 
memory (2GB RAM).

Given below are details of our setup:

Hardware - AMD Opteron 170 (2GHz)
OS - Redhat linux 
Memory - 2 GB RAM
Tomcat - 4.1.31
Apache - 2.0.47

Thank you,
Venkatesh





 

TV dinner still cooling? 
Check out Tonight's Picks on Yahoo! TV.
http://tv.yahoo.com/

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Setting locale for a particular web application

2006-07-10 Thread Venkatesh Babu
Hello All,

We are using Tomcat 4.1.3 . We have 2 web applications
running on the same webserver. The problem I'm facing
is that I need to change the locale information while
instantiating one of these web application. Is such
thing possible?

I tried setting the JVM opts -Duser.language and
-Duser.region in catalina.bat, but that changes the
locale for both web applications (which I don't want).

I would really appreciate any help/information in this
regard.

Thank you,
Venkatesh

__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Undeploy task not working

2006-06-08 Thread Venkatesh Babu
Hi Mark,

I went through the link given by you. Also checked for
permissions of webapps folder (guess things are
fine). The link is for Tomcat 5.5 but I'm working with
Tomcat 4.3.1 .

The context entry put by tomcat, for app1, when
deploying the application is:
Context
className=org.apache.catalina.core.StandardContext
crossContext=false reloadable=false
mapperClass=org.apache.catalina.core.StandardContextMapper
useNaming=true debug=0 swallowOutput=false
privileged=false displayName=app1
wrapperClass=org.apache.catalina.core.StandardWrapper
docBase=C:\Program Files\Apache Group\Tomcat
4.1\webapps\app1 cookies=true path=/app1
cachingAllowed=true
charsetMapperClass=org.apache.catalina.util.CharsetMapper
workDir=work\Standalone\localhost\app1
/Context



In addition I just want to mention that I installed
Tomcat 5.5 and ran deploy and undeploy targets on it
and everything works fine there.

But I'm getting the problem only in Tomcat 4.1.3 ...
How can this happen?

Thank you,
Venkatesh




--- Mark Thomas [EMAIL PROTECTED] wrote:

 Marc Farrow wrote:
  Which still implies a permission problem.  On
 Windows 2000 check the
  security tab of the webapps folder under Tomcat. 
 Make sure the account
  that
  is running Tomcat has permission to delete.  The
 archive set is the
  file
  type and doesn't really have much to do with
 permissions.
 
 More likely to be file locking. There are a couple
 of context settings
 that might help you work around this. Look at

http://tomcat.apache.org/tomcat-5.5-doc/config/context.html
 and search
 for antiJARLocking and antiResourceLocking
 
 As far as I recall there is an issue with one of the
 xml parsers that
 when it accesses resources from a war keeps a lock
 on the file. This
 only happens on Windows.
 
 Mark
 

-
 To start a new topic, e-mail:
 users@tomcat.apache.org
 To unsubscribe, e-mail:
 [EMAIL PROTECTED]
 For additional commands, e-mail:
 [EMAIL PROTECTED]
 
 


__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Undeploy task not working

2006-06-07 Thread Venkatesh Babu
Hi,

Thanks for the replies and suggestions. I'm running
Tomcat on a Windows 2000 machine. I saw the directory
permissions and it is just an Archive set. Also, our
webapp is not having any database connection open.

Still I'm unable to undeploy the app using undeploy
target.

Thank you,
Venkatesh

--- Marc Farrow [EMAIL PROTECTED] wrote:

 It also could be a permissions problem.  What
 platform is the server?  I
 know on OpenVMS that if you use the manager
 application to deploy an
 application and then try to undeploy it, the
 permissions on the directory
 are not correct and thus it cannot delete the
 directories.  (There is a
 logical to change this behavior for OpenVMS).  So I
 would suggest to check
 your permissions before you try to undeploy and make
 sure you have delete
 privileges.
 
 HTH
 
 
 On 6/6/06, Peter Hubbard [EMAIL PROTECTED]
 wrote:
 
  On Mon, 2006-06-05 at 23:40 -0700, Venkatesh Babu
 wrote:
   Hello All,
  
   I'm using Tomcat 4.1 and trying to
 deploy/undeploy
   application using ant targets.
  
   Earlier I posted a mail on deploy task not
 working due
   to some protocol error. Got the solution for
 that :-)
  
   But right now undeploy task is not working. It
 is
   giving an error saying:
  
   FAIL - Cannot remove document base for path
 /app1
 
  I found this often happened to me if there were
 open database
  connections in the webapp, and I tried to undeploy
 it before stopping
  it.
 
 
  --
  Peter Hubbard [EMAIL PROTECTED]
 
 
 

-
  To start a new topic, e-mail:
 users@tomcat.apache.org
  To unsubscribe, e-mail:
 [EMAIL PROTECTED]
  For additional commands, e-mail:
 [EMAIL PROTECTED]
 
 
 
 
 -- 
 Marc Farrow
 


__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Undeploy task not working

2006-06-06 Thread Venkatesh Babu
Hello All,

I'm using Tomcat 4.1 and trying to deploy/undeploy
application using ant targets.

Earlier I posted a mail on deploy task not working due
to some protocol error. Got the solution for that :-)

But right now undeploy task is not working. It is
giving an error saying:

FAIL - Cannot remove document base for path /app1

Here is the ant targets I have:

property name=tomcat.server.name
value=127.0.0.1/
property name=tomcat.server.port value=8080/
property name=tomcat.user.name value=admin/
property name=tomcat.user.password
value=admin/

property name=app.hostname
value=http://${tomcat.server.name}:${tomcat.server.port}/
property name=app.deploy.manageurl
value=${app.hostname}/manager/

taskdef file=./catalinatasks.properties
classpath
pathelement
path=./lib/catalina-ant.jar/
/classpath
/taskdef

target name=undeployapp
undeploy
url=${app.deploy.manageurl}
path=/app1
username=${tomcat.user.name}
password=${tomcat.user.password} /
/target

I searched the web for solutions to this problem, but
unable to find one. Can anybody please help me and say
as to what is wrong?

Thank you,
Venkatesh


__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Problem while deploying war

2006-06-05 Thread Venkatesh Babu
Hi Mark,

Thanks for the solution.

Actually file:///C:\temp\app1\app1.war works

-Venkatesh

--- Mark Thomas [EMAIL PROTECTED] wrote:

 Venkatesh Babu wrote:
  Can anybody help me and point out what might be
 the
  problem?
 
 Your url starts C:/ (so C looks like the protocol
 rather than a drive)
 
 Try something like file://c/...
 
 Mark
 

-
 To start a new topic, e-mail:
 users@tomcat.apache.org
 To unsubscribe, e-mail:
 [EMAIL PROTECTED]
 For additional commands, e-mail:
 [EMAIL PROTECTED]
 
 


__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Problem while deploying war

2006-06-04 Thread Venkatesh Babu
Hi all,

I'm using Tomcat 4.1.31.

I have a war file and I'm using the ant target
deploy to deploy this war. Here is the code
snippet of my build.xml :

property name=tomcat.server.name
value=localhost/
property name=tomcat.server.port value=8080/
property name=tomcat.user.name value=admin/
property name=tomcat.user.password
value=admin/

property name=app.deploy.manageurl
value=http://${tomcat.server.name}:${tomcat.server.port}/manager/


target name=deployapp depends=war
deploy
   url=${app.deploy.manageurl}
   path=/app1
   war=${basedir}/app1.war
   username=${tomcat.user.name}
   password=${tomcat.user.password}/
/target

But when I call this target, I'm getting a strange
error:

BUILD FAILED
C:\temp\app1\build.xml:33:
java.net.MalformedURLException: unknown protocol: c

I have taken catalina-ant.jar from
${TOMCATHOME}/lib/ and placed that in ${ANT_HOME}/lib
but still having this problem.

Can anybody help me and point out what might be the
problem?

Thank you,
Venkatesh


__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Problem while deploying war

2006-06-02 Thread Venkatesh Babu
Hi all,

I'm using Tomcat 4.1.31.

I have a war file and I'm using the ant target
deploy to deploy this war. Here is the code
snippet of my build.xml :

property name=tomcat.server.name
value=localhost/
property name=tomcat.server.port value=8080/
property name=tomcat.user.name value=admin/
property name=tomcat.user.password
value=admin/

property name=app.deploy.manageurl
value=http://${tomcat.server.name}:${tomcat.server.port}/manager/


target name=deployapp depends=war
deploy
   url=${app.deploy.manageurl}
   path=/app1
   war=${basedir}/app1.war
   username=${tomcat.user.name}
   password=${tomcat.user.password}/
/target

But when I call this target, I'm getting a strange
error:

BUILD FAILED
C:\temp\app1\build.xml:33:
java.net.MalformedURLException: unknown protocol: c

I have taken catalina-ant.jar from
${TOMCATHOME}/lib/ and placed that in ${ANT_HOME}/lib
but still having this problem.

Can anybody help me and point out what might be the
problem?

Thank you,
Venkatesh


__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]