[Logo] Terracotta Discussion Forums (LEGACY READ-ONLY ARCHIVE)
  [Search] Search   [Recent Topics] Recent Topics   [Members]  Member Listing   [Groups] Back to home page 
[Register] Register / 
[Login] Login 
[Expert]
Terracotta Sessions: Off ???  XML
Forum Index -> Terracotta for Web Sessions
Author Message
Joy.Cai

journeyman

Joined: 07/19/2007 19:14:55
Messages: 40
Offline


Hi,

when i start the terracotta-2.4.0 and start the tomcat at 9081,since i can success to access the http://localhost:9081/Cart .but i can not monitor the sessionData on the session-console.I find that on the bottom in the page of Http://localhost:9081/Cart,there are some message like this:
Code:
 Current Server:	9081
 [color=red]Terracotta Sessions:	Off [/color]
 Items in Cart:	0
 Go to:	Server 9082
 This web application is currently running in regular non-clustered mode, and your cart is empty.  Use the "add" button to put an item in your cart.
 If you just jumped over from the other server, your cart is empty because the session data is not being shared between servers.  Try running with Terracotta Sessions enabled.
 
gkeim

ophanim

Joined: 12/05/2006 10:22:37
Messages: 685
Location: Terracotta, Inc.
Offline

This is in regard to the Session Configurator.
Are you certain the 'Terracotta Sessions enabled' checkbox is checked? That checkbox is at the upper-left corner of the screen, directly above the 'Start all' button.

Gary Keim (terracotta developer) Want to post to this forum? Join the Terracotta Community
Joy.Cai

journeyman

Joined: 07/19/2007 19:14:55
Messages: 40
Offline

I don't use the Session configurator console GUI.

My operator System is Linux

I use this command to run the tc server:
Code:
 /usr/local/terracotta/bin/start-tc-server.sh -f /usr/local/terracotta/tools/sessions/configurator-sandbox/tomcat5.5/tc-config.xml
 


and this command to run a tomcat instance:
Code:
 /usr/local/terracotta/tools/sessions/configurator-sandbox/tomcat5.5/start.sh 9081
 


any problem??

steve

ophanim

Joined: 05/24/2006 14:22:53
Messages: 619
Offline

Did you follow these instructions?

http://www.terracotta.org/confluence/display/docs1/Troubleshooting+Guide#TroubleshootingGuide-HowdoIuseTCSessionswithTomcat%3F

Want to post to this forum? Join the Terracotta Community
Joy.Cai

journeyman

Joined: 07/19/2007 19:14:55
Messages: 40
Offline


Yes
it still can't work!
kbhasin

consul

Joined: 12/04/2006 13:08:21
Messages: 340
Offline

Hi Joi,

What distro of Linux are you using? I know that Ubuntu aliases /bin/sh to dash which is stripped down in functionality. If you are using Ubuntu, you should replace #!/bin/sh at the beginning of the script with #!/bin/bash. There was a discussion about this here:

http://forums.terracotta.org/forums/posts/list/247.page

You should look for something similar to the following line in the output of the console:

2007-07-26 22:23:42,562 INFO - Terracotta 2.4-stable1, as of 20070622-150631 (Revision 3946 by cruise@rh4mo0 from 2.4)

Another way to make sure is to look in the administration console (/usr/local/terracotta/bin/admin.sh) and you should see the root under roots (you will have to invoke one of the webapps in a browser first) and some client under clients.

Regards,
Kunal Bhasin.

Regards,

Kunal Bhasin,
Terracotta, Inc.

Be a part of the Terracotta community: Join now!
Joy.Cai

journeyman

Joined: 07/19/2007 19:14:55
Messages: 40
Offline

Hi kbhasin,

I use CentOS,and in the output of the console I can see this:
Code:
  2007-07-26 22:23:42,562 INFO - Terracotta 2.4-stable1, as of 20070622-150631 (Revision 3946 by cruise@rh4mo0 from 2.4) 
 


but I can not see any client under clients.

thanks.

Joy
steve

ophanim

Joined: 05/24/2006 14:22:53
Messages: 619
Offline

Are you seeing any errors on the tomcat command line. I'm not sure you have the JAVA_OPTS set properly so that the tc install dir and the boot-jar are in the tomcat startup command line as described in the prior link. If it was trying to connect to the server you would see output.

Cheers,
Steve

Want to post to this forum? Join the Terracotta Community
Joy.Cai

journeyman

Joined: 07/19/2007 19:14:55
Messages: 40
Offline


Hi steve,

I can not see any error on the tomcat command line.
set the JAVA_OPTS properly?

kbhasin

consul

Joined: 12/04/2006 13:08:21
Messages: 340
Offline

Did you see the above output in the Tomcat console or Terracotta Server console?

Regards,

Kunal Bhasin,
Terracotta, Inc.

Be a part of the Terracotta community: Join now!
Joy.Cai

journeyman

Joined: 07/19/2007 19:14:55
Messages: 40
Offline

Hi kbhasin,

Yes,I can see them!
tgautier

seraphim

Joined: 06/05/2006 12:19:26
Messages: 1781
Offline

Could you start with the samples and getting started guides and then come back here if you have problems?

http://www.terracotta.org/confluence/display/docs1/Sessions+Quick+Start
[WWW]
Joy.Cai

journeyman

Joined: 07/19/2007 19:14:55
Messages: 40
Offline

Hi tgautier,

the problem have been solved.

thanks all the same.

Joy
 
Forum Index -> Terracotta for Web Sessions
Go to:   
Powered by JForum 2.1.7 © JForum Team