[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 3.7.5 how to share jvm in web applications with jetty or tomcat  XML
Forum Index -> Terracotta Platform
Author Message
qeekey

neo

Joined: 06/25/2013 21:35:55
Messages: 1
Offline

question1 : does Terracotta 3.7.5 needs tim-Modules about tomcat or jetty?
I run "bin/tim-get.sh list" and find there is no tim-tomcat-* or tim-jetty-*,so i think Terracotta 3.7.5 need not module at all.


question2: where is the torial of Terracotta 3.7.5 + tomcat or Terracotta 3.7.5 +jetty


question3: I found so answers like this

"TC_INSTALL_DIR=/home/hadoop/terracotta-3.7.5
TC_CONFIG_PATH=/home/hadoop/terracotta-3.7.5/tc-config.xml
sh TC_INSTALL_DIR%/bin/dso-env.sh -q
JAVA_OPTS=%JAVA_OPTS% %TC_JAVA_OPTS%"

please add those scripts to tomcat startup script,but fail.

I create a jettyself.sh
#!/bin/sh
java -Dtc.install-root=/home/hadoop/terracotta-3.7.5 -Xbootclasspath/p:/home/hadoop/terracotta-3.7.5/lib/dso-boot/dso-boot-hotspot_linux_160_45.jar -jar start.jar

but exception happen
Caused by: java.lang.RuntimeException: The Terracotta dso-boot.jar is specified via -Xbootclasspath. This is not a correct configuration, please remove it
at com.terracotta.express.ClientFactoryImpl.testForBootJar(ClientFactoryImpl.java:419)
at com.terracotta.express.ClientFactoryImpl.<init>(ClientFactoryImpl.java:54)
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:513)
at java.lang.Class.newInstance0(Class.java:357)
at java.lang.Class.newInstance(Class.java:310)
at org.terracotta.express.Util.getImplInstance(Util.java:11)
at org.terracotta.express.ClientFactory.<clinit>(ClientFactory.java:14)


How can i intergrate Terracotta 3.7.5 + jetty ?
rajoshi

seraphim

Joined: 07/04/2011 04:36:10
Messages: 1491
Offline

tim is designed for DSO use cases , TC 3.7.5 do not support DSO . That's why there is no tim for tomcat or jetty. Please use express mode.

Rakesh Joshi
Senior Consultant
Terracotta.
 
Forum Index -> Terracotta Platform
Go to:   
Powered by JForum 2.1.7 © JForum Team