Running two tomcat servers on same system?

2010-01-07 Thread Dean Chester
Hi,
I am wondering if it would be possible to have two tomcat servers running on
the same system this is because some features of my software have to be on
the internal network and there is a set directory that is accessible to the
outside world. And my idea is to split the application in to two. This is so
that the public stuff can run along side the private stuff and not interfere
with each other. At present I have the IP address allowed to access the
application unblocked from accessing the port of my internal network, which
has to be changed every time the IP address changes of the one server
allowed to access it. However I could open another set of ports run another
tomcat server and host my private stuff there. Also is it possible to share
shutdown ports of tomcat servers?
Thanks in Advance
Dean Chester


Re: Running two tomcat servers on same system?

2010-01-07 Thread Dean Chester
What is usage like on the server running two application servers. Please
bare in mind my admin/private application might get 10 users a month. While
the public stuff we hope more frequent.
Dean

On Thu, Jan 7, 2010 at 9:51 PM, John Tangney jo...@industriallogic.comwrote:

 Dean,


 On Jan 7, 2010, at 1:47 PM, Dean Chester wrote:

  I am wondering if it would be possible to have two tomcat servers running
 on
 the same system


 Yeah, we do this all the time. All you gave to do is to make sure that all
 the ports listed in your server.xml are unique.


  Also is it possible to share
 shutdown ports of tomcat servers?


 I am not sure. It's easy enough to give it a try.

 --johnt

 -
 To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
 For additional commands, e-mail: users-h...@tomcat.apache.org




Safe to move tomcat directory while tomcat running?

2009-12-01 Thread Dean Chester
Hi,
I have to move the tomcat directory with in my user and i ask is it safe if
i do it while tomcat is running as i need to avoid downtime of my
application.
Thanks in Advance
Dean


Re: Safe to move tomcat directory while tomcat running?

2009-12-01 Thread Dean Chester
I would be doing it on red hat. Would it just be easier to email all the
users and say its down for maintenance and then just move it?
Dean

On Tue, Dec 1, 2009 at 9:02 PM, David kerber dcker...@verizon.net wrote:

 Dean Chester wrote:

 Hi,
 I have to move the tomcat directory with in my user and i ask is it safe
 if
 i do it while tomcat is running as i need to avoid downtime of my
 application.
 Thanks in Advance
 Dean


 I doubt you would even be able to do so, at least not in Windows.




 -
 To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
 For additional commands, e-mail: users-h...@tomcat.apache.org




Re: Safe to move tomcat directory while tomcat running?

2009-12-01 Thread Dean Chester
Ok thanks what i meant is that the tomcat directory is in
~/tomcat6/apache-tomcat-6.0.20/ and i need to move it to my home directory
~/. Basically was it safe to do it while tomcat is still running.

On Tue, Dec 1, 2009 at 9:12 PM, Caldarale, Charles R 
chuck.caldar...@unisys.com wrote:

  From: Dean Chester [mailto:dean.g.ches...@googlemail.com]
  Subject: Safe to move tomcat directory while tomcat running?
 
  I have to move the tomcat directory with in my user and i ask is it
  safe if i do it while tomcat is running as i need to avoid downtime
  of my application.

 Generally, no, you can't do that - if your not-quite-English question has
 been understood.  It all depends on what you mean by move the tomcat
 directory with in my user.  Even renaming the directory may cause problems.

  - Chuck


 THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
 MATERIAL and is thus for use only by the intended recipient. If you received
 this in error, please contact the sender and delete the e-mail and its
 attachments from all computers.


 -
 To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
 For additional commands, e-mail: users-h...@tomcat.apache.org




Re: Safe to move tomcat directory while tomcat running?

2009-12-01 Thread Dean Chester
Ok i will turn tomcat off then move the directory.
Dean

On Tue, Dec 1, 2009 at 9:30 PM, Peter Crowther
peter.crowt...@melandra.comwrote:

 2009/12/1 Dean Chester dean.g.ches...@googlemail.com:
  Ok thanks what i meant is that the tomcat directory is in
  ~/tomcat6/apache-tomcat-6.0.20/ and i need to move it to my home
 directory
  ~/. Basically was it safe to do it while tomcat is still running.

 No, that is not safe.  Tomcat may access any file in a webapp at any
 time, plus files in its work area.

 - Peter

 -
 To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
 For additional commands, e-mail: users-h...@tomcat.apache.org




Keep having to login with container based authentaction.

2009-08-20 Thread Dean Chester
Hi,
I've written my application using j_security_check yet i keep having to log
in in the restricted area. Has anyone else experienced this? Because it
works with a small amount of JSPs and then when i implement it all in to my
application it doesn't work. Where am i most likely going wrong?
Thanks in advance
Dean


Re: Keep having to login with container based authentaction.

2009-08-20 Thread Dean Chester
Sorry Tomcat 6.20, Red Hat Enterprise edition 4 i think. java 1.6. And i
mean once logged in i have to login again after clicking on a link in the
restricted area.
Dean

On Thu, Aug 20, 2009 at 11:23 AM, Pid p...@pidster.com wrote:

 On 20/08/2009 10:40, Dean Chester wrote:

 Hi,
 I've written my application using j_security_check yet i keep having to
 log
 in in the restricted area. Has anyone else experienced this?


 Yep. I have to log in each time I want to use our app - it's a side effect
 of implementing security.

 Or is your question referring to a less vague and more specific issue?


  Because it works with a small amount of JSPs and then when i implement it
 all in to my
 application it doesn't work.


 I might need to warm up my Internet Telepathy(tm) without some more
 information...


  Where am i most likely going wrong?


 Not telling us your Tomcat version, JVM version, OS version...

 p


  Thanks in advance
 Dean



 -
 To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
 For additional commands, e-mail: users-h...@tomcat.apache.org




Re: Keep having to login with container based authentaction.

2009-08-20 Thread Dean Chester
Sorry about that.
Yes i have a index page in the restricted area that has links to other
restricted jsps. The Logs are not reporting anything. How do you mean encode
your urls? I haven't set a time out in the web.xml file so its using the
default. The time between clicks is usually about 1-2 seconds. Here is some
of my web.xml file:
security-constraint
web-resource-collection
web-resource-nameusers/web-resource-name
url-pattern/add/*/url-pattern
/web-resource-collection
auth-constraint
role-nameuser/role-name
role-nameadmin/role-name
/auth-constraint
/security-constraint

security-constraint
web-resource-collection
web-resource-nameadmin/web-resource-name
url-pattern/admin/*/url-pattern
/web-resource-collection
auth-constraint
role-nameadmin/role-name
/auth-constraint
/security-constraint

login-config
auth-methodFORM/auth-method
form-login-config
form-login-page/login.jsp/form-login-page
form-error-page/login-error.jsp/form-error-page
/form-login-config
/login-config

 security-role
role-nameadmin/role-name
/security-role
security-role
role-nameuser/role-name
/security-role
I am using the default realm which i know works.
Dean

On Thu, Aug 20, 2009 at 12:19 PM, Pid p...@pidster.com wrote:

 On 20/08/2009 11:55, Dean Chester wrote:

 Sorry Tomcat 6.20, Red Hat Enterprise edition 4 i think. java 1.6. And i
 mean once logged in i have to login again after clicking on a link in
 the restricted area.
 Dean


 You don't need to reply-to-all, just to the list.  I'm obviously on the
 mailing list, so I'll get the message anyway - I don't need it twice.

  /myapp/index.jsp
  /myapp/secure/index.jsp
  /myapp/secure/page2.jsp

 So you're logging into the secure area, and trying to view, e.g. page2.jsp
 from a link on the e.g. index.jsp page?

 Do the logs have any errors in them?
 If so, what are they?

 Are you encoding all of the URLs properly?

 How long between clicks?

 What is the session timeout in your web.xml?

 How have you defined the security-constraint in web.xml?

 Which Realm are you using?

 Perhaps you could post a little bit more information?

 p



  On Thu, Aug 20, 2009 at 11:23 AM, Pid p...@pidster.com
 mailto:p...@pidster.com wrote:

On 20/08/2009 10:40, Dean Chester wrote:

Hi,
I've written my application using j_security_check yet i keep
having to log
in in the restricted area. Has anyone else experienced this?


Yep. I have to log in each time I want to use our app - it's a side
effect of implementing security.

Or is your question referring to a less vague and more specific issue?



Because it works with a small amount of JSPs and then when i
implement it all in to my
application it doesn't work.


I might need to warm up my Internet Telepathy(tm) without some more
information...



Where am i most likely going wrong?


Not telling us your Tomcat version, JVM version, OS version...

p


Thanks in advance
Dean



-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
mailto:users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org
mailto:users-h...@tomcat.apache.org




 -
 To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
 For additional commands, e-mail: users-h...@tomcat.apache.org




Re: Keep having to login with container based authentaction.

2009-08-20 Thread Dean Chester
By default realm i mean the one that is set up in the server.xml and it is a
JDBC Realm.
Dean

On Thu, Aug 20, 2009 at 12:36 PM, Dean Chester 
dean.g.ches...@googlemail.com wrote:

 Sorry about that.
 Yes i have a index page in the restricted area that has links to other
 restricted jsps. The Logs are not reporting anything. How do you mean encode
 your urls? I haven't set a time out in the web.xml file so its using the
 default. The time between clicks is usually about 1-2 seconds. Here is some
 of my web.xml file:
 security-constraint
 web-resource-collection
 web-resource-nameusers/web-resource-name
 url-pattern/add/*/url-pattern
 /web-resource-collection
 auth-constraint
 role-nameuser/role-name
 role-nameadmin/role-name
 /auth-constraint
 /security-constraint

 security-constraint
 web-resource-collection
 web-resource-nameadmin/web-resource-name
 url-pattern/admin/*/url-pattern
 /web-resource-collection
 auth-constraint
 role-nameadmin/role-name
 /auth-constraint
 /security-constraint

 login-config
 auth-methodFORM/auth-method
 form-login-config
 form-login-page/login.jsp/form-login-page
 form-error-page/login-error.jsp/form-error-page
 /form-login-config
 /login-config

  security-role
 role-nameadmin/role-name
 /security-role
 security-role
 role-nameuser/role-name
 /security-role
 I am using the default realm which i know works.
 Dean

 On Thu, Aug 20, 2009 at 12:19 PM, Pid p...@pidster.com wrote:

 On 20/08/2009 11:55, Dean Chester wrote:

 Sorry Tomcat 6.20, Red Hat Enterprise edition 4 i think. java 1.6. And i
 mean once logged in i have to login again after clicking on a link in
 the restricted area.
 Dean


 You don't need to reply-to-all, just to the list.  I'm obviously on the
 mailing list, so I'll get the message anyway - I don't need it twice.

  /myapp/index.jsp
  /myapp/secure/index.jsp
  /myapp/secure/page2.jsp

 So you're logging into the secure area, and trying to view, e.g. page2.jsp
 from a link on the e.g. index.jsp page?

 Do the logs have any errors in them?
 If so, what are they?

 Are you encoding all of the URLs properly?

 How long between clicks?

 What is the session timeout in your web.xml?

 How have you defined the security-constraint in web.xml?

 Which Realm are you using?

 Perhaps you could post a little bit more information?

 p



  On Thu, Aug 20, 2009 at 11:23 AM, Pid p...@pidster.com
 mailto:p...@pidster.com wrote:

On 20/08/2009 10:40, Dean Chester wrote:

Hi,
I've written my application using j_security_check yet i keep
having to log
in in the restricted area. Has anyone else experienced this?


Yep. I have to log in each time I want to use our app - it's a side
effect of implementing security.

Or is your question referring to a less vague and more specific issue?



Because it works with a small amount of JSPs and then when i
implement it all in to my
application it doesn't work.


I might need to warm up my Internet Telepathy(tm) without some more
information...



Where am i most likely going wrong?


Not telling us your Tomcat version, JVM version, OS version...

p


Thanks in advance
Dean



-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
mailto:users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org
mailto:users-h...@tomcat.apache.org




 -
 To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
 For additional commands, e-mail: users-h...@tomcat.apache.org





Re: Keep having to login with container based authentaction.

2009-08-20 Thread Dean Chester
Ok ive discovered that they are not staying the same between clicks. I'm now
going to look at encoding urls now.
Dean
On Thu, Aug 20, 2009 at 1:06 PM, Pid p...@pidster.com wrote:

 On 20/08/2009 13:00, Pid wrote:

 On 20/08/2009 12:36, Dean Chester wrote:

 Sorry about that.
 Yes i have a index page in the restricted area that has links to other
 restricted jsps. The Logs are not reporting anything.


  How do you mean encode your urls?


 If you're being asked to log in every click, your session is probably
 not being preserved. The session ID is set in a cookie or by encoding
 the URL to include the session id:

 /path/to/page.jsp;jsessionid=00AF00?query=paramgo=here


 Most browsers have a variety of dev tools you can use to examine
 cookies, or response headers (e.g. Set-Cookie) to see if the cookie is
 being set properly.

 If it's not, you'll need to encode the URL so that it contains the
 session id. The servlet spec, (which of course you have read), has a
 handy method on the HttpServletResponse object which can do this.


 Encode each URL to ensure that the session id is preserved.

 a href=%= response.encodeURL(request.getContextPath() +
 '/path/to/page.jsp') % alt=a linkLinked text/a

 p


 If you have a common footer, included in your JSPs you can add the session
 id to it, so you can see it on each page - it should not change between
 clicks if you've encoded URls properly.


  %= request.getSession().getId() %

 Or if you're using JSP Expression Language

  ${pageContext.session.id}


 p


  P.S. There are tag libraries that exist to make this easier/less clumsy
 looking.


 I haven't set a time out in the web.xml file so its using the

 default. The time between clicks is usually about 1-2 seconds. Here is
 some
 of my web.xml file:
 security-constraint
 web-resource-collection
 web-resource-nameusers/web-resource-name
 url-pattern/add/*/url-pattern
 /web-resource-collection
 auth-constraint
 role-nameuser/role-name
 role-nameadmin/role-name
 /auth-constraint
 /security-constraint

 security-constraint
 web-resource-collection
 web-resource-nameadmin/web-resource-name
 url-pattern/admin/*/url-pattern
 /web-resource-collection
 auth-constraint
 role-nameadmin/role-name
 /auth-constraint
 /security-constraint

 login-config
 auth-methodFORM/auth-method
 form-login-config
 form-login-page/login.jsp/form-login-page
 form-error-page/login-error.jsp/form-error-page
 /form-login-config
 /login-config

 security-role
 role-nameadmin/role-name
 /security-role
 security-role
 role-nameuser/role-name
 /security-role
 I am using the default realm which i know works.
 Dean

 On Thu, Aug 20, 2009 at 12:19 PM, Pidp...@pidster.com wrote:

  On 20/08/2009 11:55, Dean Chester wrote:

  Sorry Tomcat 6.20, Red Hat Enterprise edition 4 i think. java 1.6.
 And i
 mean once logged in i have to login again after clicking on a link in
 the restricted area.
 Dean


 You don't need to reply-to-all, just to the list. I'm obviously on the
 mailing list, so I'll get the message anyway - I don't need it twice.

 /myapp/index.jsp
 /myapp/secure/index.jsp
 /myapp/secure/page2.jsp

 So you're logging into the secure area, and trying to view, e.g.
 page2.jsp
 from a link on the e.g. index.jsp page?

 Do the logs have any errors in them?
 If so, what are they?

 Are you encoding all of the URLs properly?

 How long between clicks?

 What is the session timeout in your web.xml?

 How have you defined thesecurity-constraint in web.xml?

 Which Realm are you using?

 Perhaps you could post a little bit more information?

 p



 On Thu, Aug 20, 2009 at 11:23 AM, Pidp...@pidster.com

 mailto:p...@pidster.com wrote:

 On 20/08/2009 10:40, Dean Chester wrote:

 Hi,
 I've written my application using j_security_check yet i keep
 having to log
 in in the restricted area. Has anyone else experienced this?


 Yep. I have to log in each time I want to use our app - it's a side
 effect of implementing security.

 Or is your question referring to a less vague and more specific issue?



 Because it works with a small amount of JSPs and then when i
 implement it all in to my
 application it doesn't work.


 I might need to warm up my Internet Telepathy(tm) without some more
 information...



 Where am i most likely going wrong?


 Not telling us your Tomcat version, JVM version, OS version...

 p


 Thanks in advance
 Dean



 -
 To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
 mailto:users-unsubscr...@tomcat.apache.org
 For additional commands, e-mail: users-h...@tomcat.apache.org
 mailto:users-h...@tomcat.apache.org




 -
 To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
 For additional commands, e-mail: users-h...@tomcat.apache.org






 -
 To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org

Re: Enabling Persisting Sessions Tomcat 6

2009-08-19 Thread Dean Chester
Yet everywhere has said put it in the server.xml file?
Dean

On Tue, Aug 18, 2009 at 2:15 PM, Mark Thomas ma...@apache.org wrote:

 Dean Chester wrote:
  Hi
  I have this so far yet I am confused about where it goes.

 The Manager element should be placed inside a Context element. The
 usual place for a Context element is inside a file called context.xml
 placed in the META-INF directory in your WAR.

 Mark




 -
 To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
 For additional commands, e-mail: users-h...@tomcat.apache.org




Re: Enabling Persisting Sessions Tomcat 6

2009-08-19 Thread Dean Chester
The logs are reporting nothing. And my context.xml is located
$CATALINA_HOME/conf/context.xml
Dean

On Wed, Aug 19, 2009 at 12:20 PM, Mark Thomas ma...@apache.org wrote:

 Dean Chester wrote:
  Ok ive put it in my context.xml yet the id isn't getting written in to
 the
  database. And does not persist.

 What have you put in which context.xml located where on your file system?

 And what do the logs say?

 Mark

  Dean
 
  On Wed, Aug 19, 2009 at 11:23 AM, Mark Thomas ma...@apache.org wrote:
 
  Dean Chester wrote:
  Yet everywhere has said put it in the server.xml file?
  Everywhere being where? The docs say nest it in a Context.
 
  Mark
 
  Dean
 
  On Tue, Aug 18, 2009 at 2:15 PM, Mark Thomas ma...@apache.org wrote:
 
  Dean Chester wrote:
  Hi
  I have this so far yet I am confused about where it goes.
  The Manager element should be placed inside a Context element. The
  usual place for a Context element is inside a file called
 context.xml
  placed in the META-INF directory in your WAR.
 
  Mark
 
 
 
 
  -
  To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
  For additional commands, e-mail: users-h...@tomcat.apache.org
 
 
 
 
 
  -
  To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
  For additional commands, e-mail: users-h...@tomcat.apache.org
 
 
 




 -
 To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
 For additional commands, e-mail: users-h...@tomcat.apache.org




Re: Enabling Persisting Sessions Tomcat 6

2009-08-19 Thread Dean Chester
Ok The table was table 2-8 JDBCStore attributes in Tomcat The Definitive
Guide. Thats still not fixed it.
Dean

On Wed, Aug 19, 2009 at 2:07 PM, Mark Thomas ma...@apache.org wrote:

 Dean Chester wrote:
  I can't see your columns in the table of what is used in the element.

 What table? The message is all there although it is only the single
 attribute missing, not multiple attributes.

 Mark

  Dean
 
  On Wed, Aug 19, 2009 at 12:41 PM, Mark Thomas ma...@apache.org wrote:
 
  Dean Chester wrote:
  The logs are reporting nothing. And my context.xml is located
  $CATALINA_HOME/conf/context.xml
  OK. That should mean that the Manager .../ element applies to every
  web application.
 
  Assuming you added the Manager .../ element you originally posted...
 
  Remove the debug attribute - it doesn't do anything
  Remove the saveOnRestart attribute - you are using the default
 
  Your minIdleSwap, maxIdleSwap and maxIdleBackup are sufficiently large
  that testing will involve significant waiting. I'd reduce these to a few
  seconds until you get things working.
 
  Your Store element is missing the following required fields:
  sessionAppCol
 
  Mark
 
 
 
 
  -
  To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
  For additional commands, e-mail: users-h...@tomcat.apache.org
 
 
 




 -
 To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
 For additional commands, e-mail: users-h...@tomcat.apache.org




Re: Enabling Persisting Sessions Tomcat 6

2009-08-19 Thread Dean Chester
Sory forgot to get rid of the session out of the cookies. It writes in to
the database. Yet  the session is not staying active with the client.
Dean

On Wed, Aug 19, 2009 at 2:47 PM, Mark Thomas ma...@apache.org wrote:

 Dean Chester wrote:
  Ok The table was table 2-8 JDBCStore attributes in Tomcat The Definitive
  Guide. Thats still not fixed it.

 I suggest you try using the real documentation rather than what appears
 to be an out of date book.

 Given that you have made some changes, what does the configuration look
 like now? How are you testing it?

 Something else to try. Start up JConsole, connect to your running Tomcat
 instance and look at the Manager mbeans. What value do you see for the
 className attribute?

 Mark

  Dean
 
  On Wed, Aug 19, 2009 at 2:07 PM, Mark Thomas ma...@apache.org wrote:
 
  Dean Chester wrote:
  I can't see your columns in the table of what is used in the element.
  What table? The message is all there although it is only the single
  attribute missing, not multiple attributes.
 
  Mark
 
  Dean
 
  On Wed, Aug 19, 2009 at 12:41 PM, Mark Thomas ma...@apache.org
 wrote:
 
  Dean Chester wrote:
  The logs are reporting nothing. And my context.xml is located
  $CATALINA_HOME/conf/context.xml
  OK. That should mean that the Manager .../ element applies to every
  web application.
 
  Assuming you added the Manager .../ element you originally posted...
 
  Remove the debug attribute - it doesn't do anything
  Remove the saveOnRestart attribute - you are using the default
 
  Your minIdleSwap, maxIdleSwap and maxIdleBackup are sufficiently large
  that testing will involve significant waiting. I'd reduce these to a
 few
  seconds until you get things working.
 
  Your Store element is missing the following required fields:
  sessionAppCol
 
  Mark
 
 
 
 
  -
  To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
  For additional commands, e-mail: users-h...@tomcat.apache.org
 
 
 
 
 
  -
  To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
  For additional commands, e-mail: users-h...@tomcat.apache.org
 
 
 




 -
 To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
 For additional commands, e-mail: users-h...@tomcat.apache.org




Re: Enabling Persisting Sessions Tomcat 6

2009-08-19 Thread Dean Chester
No. Yet i have rewrote a test login system and that works i cannot see what
is different compared to my application.

On Wed, Aug 19, 2009 at 4:34 PM, Mark Thomas ma...@apache.org wrote:

 Dean Chester wrote:
  Sory forgot to get rid of the session out of the cookies. It writes in to
  the database. Yet  the session is not staying active with the client.

 And if you remove the PersistentManager does it it start working again?

 Mark

  Dean
 
  On Wed, Aug 19, 2009 at 2:47 PM, Mark Thomas ma...@apache.org wrote:
 
  Dean Chester wrote:
  Ok The table was table 2-8 JDBCStore attributes in Tomcat The
 Definitive
  Guide. Thats still not fixed it.
  I suggest you try using the real documentation rather than what appears
  to be an out of date book.
 
  Given that you have made some changes, what does the configuration look
  like now? How are you testing it?
 
  Something else to try. Start up JConsole, connect to your running Tomcat
  instance and look at the Manager mbeans. What value do you see for the
  className attribute?
 
  Mark
 
  Dean
 
  On Wed, Aug 19, 2009 at 2:07 PM, Mark Thomas ma...@apache.org wrote:
 
  Dean Chester wrote:
  I can't see your columns in the table of what is used in the element.
  What table? The message is all there although it is only the single
  attribute missing, not multiple attributes.
 
  Mark
 
  Dean
 
  On Wed, Aug 19, 2009 at 12:41 PM, Mark Thomas ma...@apache.org
  wrote:
  Dean Chester wrote:
  The logs are reporting nothing. And my context.xml is located
  $CATALINA_HOME/conf/context.xml
  OK. That should mean that the Manager .../ element applies to
 every
  web application.
 
  Assuming you added the Manager .../ element you originally
 posted...
 
  Remove the debug attribute - it doesn't do anything
  Remove the saveOnRestart attribute - you are using the default
 
  Your minIdleSwap, maxIdleSwap and maxIdleBackup are sufficiently
 large
  that testing will involve significant waiting. I'd reduce these to a
  few
  seconds until you get things working.
 
  Your Store element is missing the following required fields:
  sessionAppCol
 
  Mark
 
 
 
 
 
 -
  To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
  For additional commands, e-mail: users-h...@tomcat.apache.org
 
 
 
 
  -
  To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
  For additional commands, e-mail: users-h...@tomcat.apache.org
 
 
 
 
 
  -
  To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
  For additional commands, e-mail: users-h...@tomcat.apache.org
 
 
 




 -
 To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
 For additional commands, e-mail: users-h...@tomcat.apache.org




Enabling Persisting Sessions Tomcat 6

2009-08-18 Thread Dean Chester
Hi
I am wondering if someone can help me with my persisting sessions problem. I
have this so far yet i am confused about where it goes, ive also created the
table in the database:
Manager className=org.apache.catalina.session.PersistentManager
debug=0 saveOnRestart=true minIdleSwap=900 maxIdleSwap=1200
maxIdleBackup=600
Store className=org.apache.catalina.session.JDBCStore
driverName=com.mysql.jdbc.Driver
connectionURL=jdbc:mysql://localhost/hpsgdb
connectionName=test connectionPassword=test
sessionTable=tomcat_sessions
sessionIdCol=session_id
sessionDataCol=session_data
sessionValidCol=valid_session
sessionMaxInactiveCol=max_inactive
sessionLastAccessedCol=last_access/
/Manager
Thanks in Advance
Dean