[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]
TCNonPortableObjectError这个是什么问题?  XML
Forum Index -> Terracotta 中文社区 Go to Page: Previous  1, 2
Author Message
zhangb

journeyman

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

我也遇到这个问题了:
我用的版本是3.2.1,我的tc-config.xml文件是:
<servers>

<!-- For more information on working with the Terracotta configuration file, including how to add
more servers, see http://www.terracotta.org/web/display/docs/About+Terracotta+Configuration+Files.

Edit the following server element so that its host attribute contains the value matching the
hostname for the Terracotta server. -->

<server host="192.168.2.13" name="zhangbei">
</server>

<server host="192.168.2.19" name="ceshi">
</server>

<ha>
<mode>networked-active-passive</mode>
</ha>

<update-check>
<enabled>true</enabled>
</update-check>

</servers>

<!-- Check that the TIM shown in the <module> element's name attribute matches the Tomcat version you
are using. The TIM listed here, "tim-tomcat-5.5" is for Tomcat 5.5. For example, if you are using
Tomcat 6.0, edit the name to "tim-tomcat-6.0". -->

<clients>
<modules>
<module name="tim-tomcat-5.5" version="2.1.1"/>

</modules>
</clients>

<!-- Using <web-application> elements, enter the context root of the web application being clustered.
If you are clustering more than one web application, use one <web-application> element per application.
Two example <web-application> elements are shown below. Edit or remove these elements as needed.
To set the value of the <web-application> element to the default web-application context, use the
special value "ROOT" (without quotation marks). -->

<application>
<dso>
<instrumented-classes>
<include>
<class-expression>num.NumberGuessBean</class-expression>
</include>
<include>
<class-expression>cal.*</class-expression>
</include>
</instrumented-classes>

<web-applications>
<web-application>jsp-examples</web-application>
<web-application>jsp-examples1</web-application>
</web-applications>
</dso>
</application>
出现错误后,它提示要在tc-config.xml中的<dso>节点中加入,
<additional-boot-jar-classes>
<include>java.util.TimeZone</include>
</additional-boot-jar-classes>
这段,然后在生成boot.jar:
F:\terracotta>bin\make-boot-jar.bat -f F:\terracotta\tc-config.xml
然后再重启tomcat就可以了,
我按它的提示做了,可连tomcat启动都报错··好像是连锁异常吧
我还想知道的,刚刚老马说的修改web.xml或者conte.xml文件 修改的是terracotta\sessions\conf-samples的文件 还是tomcat中的呢?
 
Forum Index -> Terracotta 中文社区 Go to Page: Previous  1, 2
Go to:   
Powered by JForum 2.1.7 © JForum Team