[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]
Messages posted by: dhm24  XML
Profile for dhm24 -> Messages posted by dhm24 [6]
Author Message

We are deploying TC clustering and I am having trouble figuring out how they are stopped and started.

Evidently, if I stop all TC server instances, I need to restart them in a particular order with the previously active server being started first.

Is this correct?

If so, is there a way around this?

Also, is there any documentation on now the active servers is selected? (like a high level algorithm)

Finally, is there any way I can specify a that a particular server is always the active server in the cluster?

Thanks for any help!

Dave

I an setting up a cluster using terracotta, and tomcat 6 to run the shibboleth application.

The servers start correctly. The clients start correctly. (I could see them on dev-console).

When I try to use the shibboleth application I get the following error in the shibb logs:

IllegalStateException: This classloader instance has not been registered (loader class:org.apache.catalina.loader.WebappClassLoader).

The correct Terracotta Integration Module (TIM) may be missing from this
installation of Terracotta, or an unsupported platform is being used.
See the current list of supported platforms at
http://www.terracotta.org/web/display/docs/Platform+Support.

.... and so on .....

it advises me to add module statements to tc-config.xml. but it dosent's say where.

I am using:

tomcat: apache-tomcat-6.0.33
and
jave: jre1.6.0_25

I have the following tim's installed:

(+) tim-session-ui 2.3.2
(+) tim-tomcat-5.5 2.3.2
(+) tim-tomcat-6.0 2.3.2
(+) tim-vector 2.7.1
(+) terracotta-toolkit-1.5-runtime 4.2.0 [org.terracotta]
(+) terracotta-toolkit-1.5 4.2.0 [org.terracotta.toolkit]

Can someone tell me if this is correct? Do I list them all in the modules section of tc-config.xml?

Where in the body of tc-config.xml does the modules section go?

Any help is much appreciated.

Thanks,

Dave

I have the following modules installed
OK. That was the problem. I changed java to v.jre1.6.0_25, remade the boot file and the client starts snd connects just fine.

Thanks for your help!

I tried jre1.6.0_25 and got the error:

Error occurred during initialization of VM
java/lang/UnsupportedClassVersionError: java/lang/String : Unsupported major.minor version 51.0

So, that did not seem to work.

Thanks! I will try java 1.6 and let you know.
I am clustering shibboleth iDp using terracotta terracotta-3.6.2.

I am trying to start the terracotta client within tomcat and i am getting a stack overflow. I am hoping someone can give me some advise on what I am doing wrong.

In the catalina.sh file I have added:

JAVA_OPTS="-Xmx1024m -XX:MaxPermSize=512m -XX:+MustCallLoadClassInternal \
-Dtc.install-root=/var/services/shibboleth/terracotta-3.6.2 \
-Dtc.config=/var/services/shibboleth/shibboleth-idp/conf/tc-config.xml \
-Xbootclasspath/p:/var/services/shibboleth/terracotta-3.6.2/lib/dso-boot/dso-boot-oracle_linux_170_05.jar"


I have followed the tc server install instructions at:

https://wiki.shibboleth.net/confluence/display/SHIB2/IdPCluster

(I can post the files but I thought it would clutter up the post)

I start terracotta with:

$TC_HOME/bin/start-tc-server -n idpNode1 -f /var/services/shibboleth/shibboleth-idp/conf/tc-config.xml

2012-08-02 12:34:38,467 [main] INFO com.terracottatech.general - New logging session started.
2012-08-02 12:34:38,498 [main] INFO com.terracottatech.console - Terracotta 3.6.2, as of 20120412-135519 (Revision 20065 by cruise@rh5vmo113.terracotta.lan from 3.6.2)
2012-08-02 12:34:38,532 [main] INFO com.tc.config.schema.setup.StandardXMLFileConfigurationCreator - Attempting to load configuration from the file at '/var/services/shibboleth/shibboleth-idp/conf/tc-config.xml'...

After the server starts I start tomcat

and, in catalina.out, I get:

2012-08-02 12:11:25,324 INFO - Terracotta 3.6.2, as of 20120412-135519 (Revision 20065 by cruise@rh5vmo113.terracotta.lan from 3.6.2)
2012-08-02 12:11:26,174 INFO - Successfully loaded base configuration from file at '/var/services/shibboleth/shibboleth-idp/conf/tc-config.xml'.
2012-08-02 12:11:26,298 INFO - Log file: '/var/services/shibboleth/terracotta-3.6.2/bin/logs-141.161.245.198/terracotta-client.log'.
2012-08-02 12:11:28,331 INFO - Connection successfully established to server at 141.161.245.200:9510
Exception in thread "main" java.lang.StackOverflowError
at java.util.concurrent.locks.ReentrantLock.__tc_managed(Unknown Source)
at com.tc.object.bytecode.ManagerImpl.isManaged(ManagerImpl.java:551)

Any help is much appreciated.

Thanks,

Dave
 
Profile for dhm24 -> Messages posted by dhm24 [6]
Go to:   
Powered by JForum 2.1.7 © JForum Team