[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]
Cannot determine tomcat version from Apache Tomcat/5.0  XML
Forum Index -> Terracotta for Web Sessions Go to Page: 1, 2 Next 
Author Message
asanabria6910

journeyman

Joined: 05/03/2007 11:22:24
Messages: 14
Offline

I'm trying to evaluate terracotta for our environment and thanks mainly to the forumns I was able to get as far as the client connecting to the server but it disconnects as soon as it connects.

I use this script to start the client start-tomcat-dso.sh
[root@ws2213 bin]# ./start-tomcat-dso.sh
Using CATALINA_BASE: /usr/share/tomcat5
Using CATALINA_HOME: /usr/share/tomcat5
Using CATALINA_TMPDIR: /usr/share/tomcat5/temp
Using JAVA_HOME: /usr/lib/jvm/java
Using JRE_HOME: /usr/lib/jvm/java

All env variables are set correctly

This is the error from the admin console

2007-05-03 12:47:27,004 [TCComm Selector Thread 1 (listen 0.0.0.0:9510)] INFO com.tc.net.protocol.transport.ServerMessageTransport - Attaching new connection: com.tc.net.core.TCConnectionJDK14@3315058: connected: true, closed: false local=10.20.0.208:9510 remote=10.20.0.213:43289 connect=[Thu May 03 12:47:26 EDT 2007] idle=1ms
2007-05-03 12:47:27,050 [WorkerThread(client_handshake_stage,0)] INFO com.tc.objectserver.handshakemanager.ServerClientHandshakeManager - Client connected ChannelID=[1]
2007-05-03 12:47:32,790 [WorkerThread(jmxremote_connect_stage,0)] INFO com.tc.management.remote.connect.ClientConnectEventHandler - DSO client channel[1] removed, closing tunneled JMX connection
2007-05-03 12:47:32,893 [Job_Executor1] INFO com.tc.management.remote.connect.ClientConnectEventHandler$ConnectorClosedListener - Tunneled JMX connection to a DSO client has terminated, unregistering its beans
2007-05-03 12:47:33,292 [WorkerThread(channel_life_cycle_stage,0)] INFO com.tc.objectserver.handler.ChannelLifeCycleHandler - Received transport disconnect. Killing client ChannelID=[1]
2007-05-03 13:46:08,141 [GC] INFO com.tc.objectserver.api.ObjectManager - Notifying GC : pending = 0 checkedOutCount = 0


This is from catalina.out

2007-05-03 12:47:24,797 INFO - Terracotta, version 2.2.1 as of 20070319-100326.
2007-05-03 12:47:25,540 INFO - Configuration loaded from the server at '10.20.0.208:9510'.
2007-05-03 12:47:25,557 INFO - Log file: '/root/terracotta/client-logs/terracotta-client.log'.
May 3, 2007 12:47:32 PM org.apache.commons.digester.Digester startElement
SEVERE: Begin event threw error
java.lang.AssertionError: Cannot determine tomcat version from Apache Tomcat/5.0
at com.tc.tomcat.session.VersionHelper.<clinit>(VersionHelper.java:36)
at org.apache.catalina.core.ContainerBase.<init>(ContainerBase.java:228)
at org.apache.catalina.core.StandardEngine.<init>(StandardEngine.java:64)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:494)
at java.lang.Class.newInstance0(Class.java:350)
at java.lang.Class.newInstance(Class.java:303)
steve

ophanim

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

Could you check what the exact version of tomcat you are using is? I believe we support 5.0.28

Want to post to this forum? Join the Terracotta Community
Tim Eck

journeyman
[Avatar]
Joined: 01/25/2007 08:57:02
Messages: 47
Location: San Mateo, CA
Offline

Looks like our code is getting confused by the version information in your tomcat installation. At least back in our 2.2.1 release, it explicitly wants to find a version number that starts with "5.0." (note the trailing dot).

The 2.3 release (and later) don't seem to be so restrictive.
tgautier

seraphim

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

Following up on Tim's comment, we just went final on the 2.3 version yesterday so if you are just starting out with Terracotta I would recommend you upgrade to 2.3.
[WWW]
asanabria6910

journeyman

Joined: 05/03/2007 11:22:24
Messages: 14
Offline

The version of tomcat I'm using is 5.0.30
I upgraded to your newest version of terracotta which is 2.3.0, I exported the env variables.
I'm trying to run welcome.sh and the java gui does not come up.

export CATALINA_HOME="/usr/share/tomcat5"
export JAVA_HOME="/usr/lib/jvm/java"
export TC_JAVA_HOME="/usr/lib/jvm/java"

I ran /spln/local/terracotta-2.3.0/bin/welcome.sh and nothing happens it just sits there.
Gordon

journeyman

Joined: 12/13/2006 00:38:30
Messages: 44
Offline

Hi asanabria6910,

I will attempt to reproduce this. Off the top of my head, there is no obvious reason given what I know so far. Could you please share other information, such as jdk version and OS version?

Regards,

Gordon
Sr. Systems Engineer
Terracotta, Inc.
asanabria6910

journeyman

Joined: 05/03/2007 11:22:24
Messages: 14
Offline

I think I just found the reason....
I have jdk-1.4 on all my systems here, so I decided to install jdk 1.6 and now the console works, but I cant install this version in production which is not good if I want to use your product. I'm going to see if I can get a approval to use this version of java but unlikely.
asanabria6910

journeyman

Joined: 05/03/2007 11:22:24
Messages: 14
Offline

jdk-1.4 is on my local box and jdk-1.5 is on our production and both do not work with the new terracotta, only 1.6 does for me at least. running fedora core 3
Tim Eck

journeyman
[Avatar]
Joined: 01/25/2007 08:57:02
Messages: 47
Location: San Mateo, CA
Offline

I wonder if maybe you're having problems because of Xgl/Compiz/Looking Glass/Beryl. I don't actually know much about these, I just remember problem reports of swing apps on linux with this fancy X11 stuff.

If possible, a thread dump of the hung process might be useful. To that you can try a "killall -3 java" or "kill -3 <process id>". It would be best to attach the thread dump as a file (as opposed to directly in the post).

asanabria6910

journeyman

Joined: 05/03/2007 11:22:24
Messages: 14
Offline

Thanks for all your help...
Since our site can still run using jdk-1.6 we are going with that.. All seems well so far but I see no traffic in the graphs.. So i'm not sure if I have to input the classes I want loaded into tc-config or.....??


The admin console client see all 3 servers connected to it. I hit all the webservers and still no traffic.
steve

ophanim

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

Do you see roots/object an object graph? It may be that your clients are connected but nothing is being shared.

Want to post to this forum? Join the Terracotta Community
asanabria6910

journeyman

Joined: 05/03/2007 11:22:24
Messages: 14
Offline

how can i make it shared?
steve

ophanim

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

I'm assuming this is a session usecase.

Are you using the configurator or commandline.

If your doing things by hand you'll need to add the webapp name to the config. take a look at this file for an example:

./tools/sessions/configurator-sandbox/tomcat5.5/tc-config.xml

Want to post to this forum? Join the Terracotta Community
asanabria6910

journeyman

Joined: 05/03/2007 11:22:24
Messages: 14
Offline

through the java console and I already imported the complete site..
steve

ophanim

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

When you say java console, are you talking about the configurator? Can you post your config so I can take a look?

Want to post to this forum? Join the Terracotta Community
 
Forum Index -> Terracotta for Web Sessions Go to Page: 1, 2 Next 
Go to:   
Powered by JForum 2.1.7 © JForum Team