[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 /DSO install error  XML
Forum Index -> Terracotta 中文社区
Author Message
yangsk

neo

Joined: 04/25/2013 02:02:22
Messages: 2
Offline

when i start tomcat:
#./startupTC.sh

Starting BootJarTool...
2013-04-25 16:58:55,985 INFO - Terracotta 3.7.5, as of 20130319-165505 (Revision 22474 by cruise@su10vmo125 from 3.7.5)
2013-04-25 16:58:56,776 INFO - Successfully loaded base configuration from file at '/usr/local/terracotta/tc-config.xml'.

------------------------------- ERROR DETAILS -------------------------------
+ Error during module initialization.
+ Unable to resolve TIM file for tim-tomcat-6.0 version 2.1.3 (group-id: org.terracotta.modules)

Attempted to resolve the TIM using the following descriptors:

groupId: org.terracotta.modules
name : tim-tomcat-6.0
version: 2.1.3

Expected the TIM's filename to be:

tim-tomcat-6.0-2.1.3.jar

Expected these attributes to be in the manifest:

Bundle-SymbolicName: org.terracotta.modules.tim-tomcat-6.0
Bundle-Version : 2.1.3

Searched using the following repositories:

+ /usr/local/terracotta/platform/modules

Tried to resolve the jar file using the following paths:

+ file:/usr/local/terracotta/platform/modules/org/terracotta/modules/tim-tomcat-6.0/2.1.3/tim-tomcat-6.0-2.1.3.jar

If the jar file exists and is in one of the paths listed above, make sure that the Bundle-SymbolicName and
Bundle-Version attribute in its manifest matches the ones that the resolver expects.

If you do not have this particular TIM or any of its dependencies installed, try using the tim-get tool's
'install' command:

$ tim-get.sh install tim-tomcat-6.0 2.1.3 org.terracotta.modules

You can also use the tool's 'list' command to see if it's actually available:

$ tim-get.sh list tim-tomcat-6.0 # list anything that has 'tim-tomcat-6.0' in it's name
$ tim-get.sh list # or, list everything that is available

For more information on how to use the tim-get tool, invoke:

$ tim-get.sh help
-----------------------------------------------------------------------------
yangsk

neo

Joined: 04/25/2013 02:02:22
Messages: 2
Offline

my tc-config.xml
<?xml version="1.0" encoding="UTF-8"?>
<!--

All content copyright Terracotta, Inc., unless otherwise indicated. All rights reserved.



-->
<!--
This is a Terracotta configuration file that has been pre-configured
for use with DSO. All classes are included for instrumentation,
and all instrumented methods are write locked.

For more information, please see the product documentation.
-->
<tc:tc-config xmlns:tc="http://www.terracotta.org/config"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.terracotta.org/schema/terracotta-6.xsd">
<servers>

<!-- Tell DSO where the Terracotta server can be found. -->
<server host="172.16.12.93">
<data>%(user.home)/terracotta/server-data</data>
<logs>%(user.home)/terracotta/server-logs</logs>
</server>
<update-check>
<enabled>true</enabled>
</update-check>
</servers>

<!-- Tell DSO where to put the generated client logs -->

<clients>
<modules>
<module name="tim-tomcat-6.0" version="2.1.3"/>
</modules>
<logs>%(user.home)/terracotta/client-logs</logs>
</clients>
<application>
<dso>

<!-- Start by including just the classes you expect to get added to the shared
graph. These typically include domain classes and shared data structures.
If you miss classes, Terracotta will throw NonPortableOjectExceptions
telling you more about what needs to be added. -->
<instrumented-classes>
<include>
<class-expression>com.mydomain.myapp.mymodels..*</class-expression>
</include>
</instrumented-classes>

<!-- Apply write level autolocks for all instrumented methods.
It's more efficient to create finer-grain locks as dictated
by your application needs.
-->
<locks>
<autolock>
<lock-level>write</lock-level>
<method-expression>* com.mydomain.myapp.mymodels..*.*(..)</method-expression>
</autolock>
</locks>
<web-applications>
<web-application>/</web-application>
</web-applications>
</dso>
</application>

</tc:tc-config>
rajoshi

seraphim

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

Do you have the "tim-tomcat-6.0" installed . You can get the list of tim's using $ tim-get.sh list and then do

$ tim-get.sh install tim-tomcat-6.0 2.1.3 to install the tim for tomcat.

Rakesh Joshi
Senior Consultant
Terracotta.
 
Forum Index -> Terracotta 中文社区
Go to:   
Powered by JForum 2.1.7 © JForum Team