[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]
Errors during terracotta setup  XML
Forum Index -> Terracotta Platform
Author Message
pjedhe

neo

Joined: 03/28/2008 10:37:06
Messages: 2
Offline

help? i just started exploring terracotta

I started a server on one linux server.
To creat a boot library, I set necessary env variables and try to run dso-env.sh, using below mentioned script

set TC_INSTALL_DIR=/home/admin/terracotta-2.5.2
set TC_CONFIG_PATH="localhost:9520"
. ${TC_INSTALL_DIR}/bin/dso-env.sh -q
echo "${TC_JAVA_OPTS}"
export JAVA_OPTS="${TC_JAVA_OPTS}"

On running the above script I recives following error,

Exception in thread "main" com.tc.config.schema.setup.ConfigurationSetupException:
*******************************************************************************
We were unable to read configuration data from the server at 'localhost:9520': Characters larger than 4 bytes are not supported: byte 0xac implies a length of more than 4 bytes
*******************************************************************************

at com.tc.config.schema.setup.StandardXMLFileConfigurationCreator.loadConfigurationData(StandardXMLFileConfigurationCreator.java:369)
at com.tc.config.schema.setup.StandardXMLFileConfigurationCreator.createConfigurationIntoRepositories(StandardXMLFileConfigurationCreator.java:203)
at com.tc.config.schema.setup.BaseTVSConfigurationSetupManager.runConfigurationCreator(BaseTVSConfigurationSetupManager.java:98)
at com.tc.config.schema.setup.StandardL1TVSConfigurationSetupManager.<init>(StandardL1TVSConfigurationSetupManager.java:47)
at com.tc.config.schema.setup.StandardTVSConfigurationSetupManagerFactory.createL1TVSConfigurationSetupManager(StandardTVSConfigurationSetupManagerFactory.java:172)
at com.tc.object.tools.BootJarTool.main(BootJarTool.java:2498)
Caused by: java.io.CharConversionException: Characters larger than 4 bytes are not supported: byte 0xac implies a length of more than 4 bytes
at org.apache.xmlbeans.impl.piccolo.xml.UTF8XMLDecoder.decode(UTF8XMLDecoder.java:162)
at org.apache.xmlbeans.impl.piccolo.xml.XMLStreamReader$FastStreamDecoder.read(XMLStreamReader.java:762)
at org.apache.xmlbeans.impl.piccolo.xml.XMLStreamReader.read(XMLStreamReader.java:162)
at org.apache.xmlbeans.impl.piccolo.xml.PiccoloLexer.yy_refill(PiccoloLexer.java:3474)
at org.apache.xmlbeans.impl.piccolo.xml.PiccoloLexer.yylex(PiccoloLexer.java:3958)
at org.apache.xmlbeans.impl.piccolo.xml.Piccolo.yylex(Piccolo.java:1290)
at org.apache.xmlbeans.impl.piccolo.xml.Piccolo.yyparse(Piccolo.java:1400)
at org.apache.xmlbeans.impl.piccolo.xml.Piccolo.parse(Piccolo.java:714)
at org.apache.xmlbeans.impl.store.Locale$SaxLoader.load(Locale.java:3435)
at org.apache.xmlbeans.impl.store.Locale.parseToXmlObject(Locale.java:1270)
at org.apache.xmlbeans.impl.store.Locale.parseToXmlObject(Locale.java:1257)
at org.apache.xmlbeans.impl.schema.SchemaTypeLoaderBase.parse(SchemaTypeLoaderBase.java:345)
at com.terracottatech.config.TcConfigDocument$Factory.parse(TcConfigDocument.java:201)
at com.tc.config.Loader.convert(Loader.java:44)
at com.tc.config.Loader.parse(Loader.java:90)
at com.tc.config.schema.beanfactory.TerracottaDomainConfigurationDocumentBeanFactory.createBean(TerracottaDomainConfigurationDocumentBeanFactory.java:39)
at com.tc.config.schema.setup.StandardXMLFileConfigurationCreator.loadConfigurationData(StandardXMLFileConfigurationCreator.java:305)
... 5 more
tgautier

seraphim

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

Have you tried the samples? How did you end up with this configuration?

I recommend you start by installing Terracotta, and running the welcome.sh script to launch Terracotta and become familiar with it.

This page talks about what you should do to see Terracotta in action: http://www.terracotta.org/confluence/display/orgsite/Start+Using+Terracotta

If you are starting to make your own samples, the simplest way to start, without having to manually create the bootjar is to use dso-java.sh, which automatically creates the bootjar, and calls java with the right parameters to start TC.

The cookbook is a good place to run simple demos: http://www.terracotta.org/confluence/display/howto/Cookbook
[WWW]
pjedhe

neo

Joined: 03/28/2008 10:37:06
Messages: 2
Offline

thanks tgautier,
But i have a usecase ( requirment ) which i need do a quick check using terracotta.

Basically, i need use my web application in cluster and use terracotta for session replication. And I didnt find any tutorial in cookbook related it. I read through various articals and followed below mentioed steps

1. Installed Terracotta on Linux server with JDK1.5
2. copied a sample tc-config.xml as mentioned below into bin folder
<?xml version="1.0" encoding="UTF-8"?>

<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- 4.xsd">
<servers>
<server host="%i" name="sample">
<data>%(user.home)/terracotta/demo-server/server-data</data>
<logs>%(user.home)/terracotta/demo-server/server-logs</logs>
</server>
<update-check>
<enabled>true</enabled>
</update-check>
</servers>
</tc:tc-config>
3. started terracotta server by running start-tc-server.sh
4. I read in one of the article that we can run server and client on same machine
5. So next step was to create boot jar. Created a script as below

set TC_INSTALL_DIR=/home/admin/terracotta-2.5.2
set TC_CONFIG_PATH="80.177.64.56:9520"
. ${TC_INSTALL_DIR}/bin/dso-env.sh -q
echo "${TC_JAVA_OPTS}"
export JAVA_OPTS="${TC_JAVA_OPTS}"
6. run the script and i faced erros as mentioned earlier.

Can you please suggest me how to proceed. I saw those tutorials but those doesnt help much with my usecase.





tgautier

seraphim

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

Ok,

You should find the getting started guides for Sessions and Tomcat useful:

http://www.terracotta.org/confluence/display/howto/Sessions+Quick+Start
http://www.terracotta.org/confluence/display/howto/Setting+Up+a+Tomcat+Web+Cluster
[WWW]
mferrante

neo

Joined: 03/03/2009 09:07:13
Messages: 1
Offline

You have tried to connect to the JMX management port (9520) rather than the DSO port (default 9510).
Camalot9

neo

Joined: 08/21/2013 10:08:03
Messages: 1
Offline

Thanks mferrante, you're exactly right!!
 
Forum Index -> Terracotta Platform
Go to:   
Powered by JForum 2.1.7 © JForum Team