[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集群tomcat时遇到的问题(错误日志)  XML
Forum Index -> Terracotta 中文社区
Author Message
zhangb

journeyman

Joined: 02/28/2010 21:40:20
Messages: 19
Offline

看着马哥的http://blog.csdn.net/lima01/archive/2009/07/25/4379572.aspx文章,再启动startupTC.bat时报错了,当set JAVA_OPTS=%JAVA_OPTS%(这里没有空格时)%TC_JAVA_OPTS%错误信息为:
F:\Program Files\apache-tomcat-6.0.18\apache-tomcat-6.0.18\bin>startupTC.bat

F:\Program Files\apache-tomcat-6.0.18\apache-tomcat-6.0.18\bin>set TC_INSTALL_DI
R="C:\Program Files\terracotta\terracotta-3.2.1"

F:\Program Files\apache-tomcat-6.0.18\apache-tomcat-6.0.18\bin>set TC_CONFIG_PAT
H="C:\Program Files\terracotta\terracotta-3.2.1\tc-config.xml"

F:\Program Files\apache-tomcat-6.0.18\apache-tomcat-6.0.18\bin>call "C:\Program
Files\terracotta\terracotta-3.2.1"\bin\dso-env.bat -q
Starting BootJarTool...
2010-03-12 11:33:47,484 INFO - Terracotta 3.2.1, as of 20100302-130324 (Revision
14673 by cruise@su10mo5 from 3.2)
2010-03-12 11:33:47,937 INFO - Configuration loaded from the file at 'C:\Program
Files\terracotta\terracotta-3.2.1\tc-config.xml'.
2010-03-12 11:33:48,093 INFO - Log file: 'F:\Program Files\apache-tomcat-6.0.18\
apache-tomcat-6.0.18\bin\logs-192.168.2.13\terracotta-client.log'.
2010-03-12 11:33:50,218 INFO - Connection successfully established to server at
127.0.0.1:9510
2010-03-12 11:33:50,453 INFO - Terracotta 3.2.1, as of 20100302-130324 (Revision
14673 by cruise@su10mo5 from 3.2)
2010-03-12 11:33:51,031 INFO - Configuration loaded from the file at 'C:\Program
Files\terracotta\terracotta-3.2.1\tc-config.xml'.
Exception in thread "main" java.lang.LinkageError: loader constraint violation i
n interface itable initialization: when resolving method "com.tc.object.bytecode
.AQSSubclassStrongReferenceAdapter.create(Lcom/tc/asm/ClassVisitor;Ljava/lang/Cl
assLoader;)Lcom/tc/asm/ClassAdapter;" the class loader (instance of sun/misc/Lau
ncher$AppClassLoader) of the current class, com/tc/object/bytecode/AQSSubclassSt
rongReferenceAdapter, and the class loader (instance of <bootloader>) for interf
ace com/tc/object/bytecode/ClassAdapterFactory have different Class objects for
the type com/tc/asm/ClassVisitor used in the signature
at com.tc.object.config.StandardDSOClientConfigHelperImpl.addJDK15Instru
mentedSpec(StandardDSOClientConfigHelperImpl.java:698)
at com.tc.object.config.StandardDSOClientConfigHelperImpl.doAutoconfig(S
tandardDSOClientConfigHelperImpl.java:565)
at com.tc.object.config.StandardDSOClientConfigHelperImpl.<init>(Standar
dDSOClientConfigHelperImpl.java:253)
at com.tc.object.tools.BootJarTool.main(BootJarTool.java:2182)
请按任意键继续. . .

当那里有空格时,错误信息为:
F:\Program Files\apache-tomcat-6.0.18\apache-tomcat-6.0.18\bin>startupTC.bat

F:\Program Files\apache-tomcat-6.0.18\apache-tomcat-6.0.18\bin>set TC_INSTALL_DI
R="C:\Program Files\terracotta\terracotta-3.2.1"

F:\Program Files\apache-tomcat-6.0.18\apache-tomcat-6.0.18\bin>set TC_CONFIG_PAT
H="C:\Program Files\terracotta\terracotta-3.2.1\tc-config.xml"

F:\Program Files\apache-tomcat-6.0.18\apache-tomcat-6.0.18\bin>call "C:\Program
Files\terracotta\terracotta-3.2.1"\bin\dso-env.bat -q
此时不应有 Files\Java\jdk1.6.0_11""。

F:\Program Files\apache-tomcat-6.0.18\apache-tomcat-6.0.18\bin>

知道的大虾们,帮忙看看错在哪里啊!
dongen

master

Joined: 01/19/2010 19:07:23
Messages: 78
Offline

附正确的startupTC.bat,把它放在tomcat的bin目录下
 Filename startupTC.bat [Disk] Download
 Description
 Filesize 189 bytes
 Downloaded:  490 time(s)

dongen

master

Joined: 01/19/2010 19:07:23
Messages: 78
Offline

另外terracotta最好安装在没有空格的目录上,有个问题和你一样http://forums.terracotta.org/forums/posts/list/2790.page,看看就知道了。
zhangb

journeyman

Joined: 02/28/2010 21:40:20
Messages: 19
Offline

谢谢了,问题就出在这里,我的jdk放在有空格的目录下了,而且我自己的startupTC.bat中,也有一点错误,看了你的之后就明白了··
非常感谢坛子里的哥哥们,虽然terracotta的资料很少,但大家都这么热心,相信任何困难都会克服的!

顺便追问一下:tc-config.xml中的<web-application>examples</web-application>中的examples是我们部署的工程名吧,那是不是意味着我们的项目要部署在terracotta上?
觉得很不可思议,我们自己开发的项目该部署到哪里呢?
dongen

master

Joined: 01/19/2010 19:07:23
Messages: 78
Offline

terracotta-->terracotta_server
tomcat jetty jboss...-->terracotta_client
也就是说terracotta作为一个解决方案服务器要和其他应用服务器结合使用。我们部署自己的应用在tomcat中,就像那个examples就是在tomcat\webapp的examples.war(也可以不是war包)包名.tomcat作为terracotta客户端与terracotta进行交流。terracotta也控制着tomcat里的应用。在这里配置文件声明<web-application>examples</web-application>目的就是把你web容器(比如tomcat)里的examples项目session集群。

所以我们的应用当然是部署到我们自己的应用容器中罗,像tomcat,jetty,WebLogic啊都行。这些容器也是通过配置文件(tc-config.xml)与terracotta进行交流。不知道你明白没有!呵呵
zhangb

journeyman

Joined: 02/28/2010 21:40:20
Messages: 19
Offline

谢谢dongen
我明白许多了, 等会去搞搞多个terracotta和tomcat集群··
谢谢了!
gyan10

ophanim

Joined: 06/28/2011 23:15:25
Messages: 701
Offline

This is very old thread.Please respond if issue is still not resolved.
Thanks

Gyan Awasthi
Terracotta -A Software AG company
 
Forum Index -> Terracotta 中文社区
Go to:   
Powered by JForum 2.1.7 © JForum Team