Author |
Message |
06/20/2009 12:07:32
|
dr_pompeii
neo
Joined: 05/11/2009 17:59:42
Messages: 8
Offline
|
Hello Guys
I have Terracotta server 3.0.1
JDK 1.6 update 14
To startup the server
Code:
%TERRACOTTA_HOME%/bin/start-tc-server.bat -f D:\java\maven-projects\myproject\target\classes\tc-customerconsole-wo-spring.xml
all starts fine
now to see my jvm environment
Code:
%TERRACOTTA_HOME%/bin/dso-env.bat localhost:9510
Results in this (multiple lines for better presentation)
Code:
-Xbootclasspath/p:"D:\java\terracotta\terracotta-3.0.1\bin\..\lib\dso-boot\dso-boot-hotspot_win32_150_16.jar"
-Dtc.install-root="D:\java\terracotta\terracotta-3.0.1\bin\.."
-Dtc.config=localhost:9510
Now I tried these options to start the client but see the sad results
(multiple lines for better presentation)
Code:
java -Xbootclasspath/p:"D:\java\terracotta\terracotta-3.0.1\bin\..\lib\dso-boot\dso-boot-hotspot_win32_150_16.jar"
-Dtc.install-root="D:\java\terracotta\terracotta-3.0.1\bin\.."
-Dtc.config=localhost:9510
-f D:\java\maven-projects\myproject\target\classes\tc-customerconsole-wo-spring.xml
-cp classes com.jordan.myproject.MainWithoutSpring
Unrecognized option: -f
Could not create the Java virtual machine.
changing to -Dtc.f
java -Xbootclasspath/p:"D:\java\terracotta\terracotta-3.0.1\bin\..\lib\dso-boot\dso-boot-hotspot_win32_150_16.jar"
-Dtc.install-root="D:\java\terracotta\terracotta-3.0.1\bin\.."
-Dtc.config=localhost:9510
-Dtc.f D:\java\maven-projects\myproject\target\classes\tc-customerconsole-wo-spring.xml
-cp classes com.jordan.myproject.MainWithoutSpring
Error occurred during initialization of VM
java.lang.NoSuchMethodError: java.lang.Integer.getAndRemoveCacheProperties()V
at java.lang.System.initializeSystemClass(Unknown Source)
java -Xbootclasspath/p:"D:\java\terracotta\terracotta-3.0.1\bin\..\lib\dso-boot\dso-boot-hotspot_win32_150_16.jar"
-Dtc.install-root="D:\java\terracotta\terracotta-3.0.1\bin\.."
-Dtc.config=localhost:9510
-Dtc.f D:\java\maven-projects\myproject\target\classes\tc-customerconsole-wo-spring.xml
-Dtc.cp classes com.jordan.myproject.MainWithoutSpring
Error occurred during initialization of VM
java.lang.NoSuchMethodError: java.lang.Integer.getAndRemoveCacheProperties()V
at java.lang.System.initializeSystemClass(Unknown Source)
java -Xbootclasspath/p:"D:\java\terracotta\terracotta-3.0.1\bin\..\lib\dso-boot\dso-boot-hotspot_win32_150_16.jar"
-Dtc.install-root="D:\java\terracotta\terracotta-3.0.1\bin\.."
-Dtc.config=localhost:9510
-cp classes com.jordan.myproject.MainWithoutSpring
Error occurred during initialization of VM
java.lang.NoSuchMethodError: java.lang.Integer.getAndRemoveCacheProperties()V
at java.lang.System.initializeSystemClass(Unknown Source)
Therefore, what is
java.lang.NoSuchMethodError: java.lang.Integer.getAndRemoveCacheProperties()V
at java.lang.System.initializeSystemClass(Unknown Source)
and how I can resolve that?
Thanks in advanced
|
Kill Your Pride, Share Your Knowledge With All
The Fear Of The LORD Is The Beginning Of Knowledge, But Fools Despise Wisdom And Discipline. Proverbs 1:7 |
|
|
06/22/2009 16:20:50
|
gkeim
ophanim
Joined: 12/05/2006 10:22:37
Messages: 685
Location: Terracotta, Inc.
Offline
|
-Dtc.config=localhost:9510
-f D:\java\maven-projects\myproject\target\classes\tc-customerconsole-wo-spring.xml
Of course, java doesn't know anything about the -f option. Do you want your client to get its config from the server (-Dtc.config=localhost:9510) or do you want to explicity specify a local config file? You seem to be trying to do both. If you want to use a local file, try:
-Dtc.config=D:\java\maven-projects\myproject\target\classes\tc-customerconsole-wo-spring.xml
Also, you say you're using 1.6 but you are specifying a 1.5 boot jar. If you just kept to using dso-java, you wouldn't have this trouble as it ensures the proper bootjar is built and used.
|
Gary Keim (terracotta developer) Want to post to this forum? Join the Terracotta Community |
|
|
06/23/2009 15:02:04
|
dr_pompeii
neo
Joined: 05/11/2009 17:59:42
Messages: 8
Offline
|
Hello gkeim
Thanks for the reply
Of course, java doesn't know anything about the -f option.
Thats right, a try of many types of configurations of my first post about to start the client
Do you want your client to get its config from the server (-Dtc.config=localhost:9510) or do you want to explicity specify a local config file? You seem to be trying to do both
Is mandatory use only one way right?
thanks for the "-Dtc.config" sample, I see now my confusion.
where I can see all the possible parameters for "Dtc" ?
a command option like help or some link from Terracotta?
Also, you say you're using 1.6 but you are specifying a 1.5 boot jar.
It seems that I keep the old result value before install the jdk1.6, but even with that, exists a unique jar in lib/dso-boot (1.5 version)
If you just kept to using dso-java, you wouldn't have this trouble as it ensures the proper bootjar is built and used.
I know that dso-java has its own control of some variables, therefore when is mandatory
use java -Xbootclasspath/p ?
Thanks in advanced
|
Kill Your Pride, Share Your Knowledge With All
The Fear Of The LORD Is The Beginning Of Knowledge, But Fools Despise Wisdom And Discipline. Proverbs 1:7 |
|
|
06/23/2009 15:19:59
|
gkeim
ophanim
Joined: 12/05/2006 10:22:37
Messages: 685
Location: Terracotta, Inc.
Offline
|
You always need to specify a bootclasspath when running a Terracotta client, as well as tc.config and tc.install-root. The latter two are also needed when running the server. However, the scripts do all of this for you.
|
Gary Keim (terracotta developer) Want to post to this forum? Join the Terracotta Community |
|
|
06/23/2009 17:30:22
|
tgautier
seraphim
Joined: 06/05/2006 12:19:26
Messages: 1781
Offline
|
This doc might help clear some confusion:
http://www.terracotta.org/web/display/docs/About+Terracotta+Configuration+Files
|
|
|
06/24/2009 17:59:46
|
dr_pompeii
neo
Joined: 05/11/2009 17:59:42
Messages: 8
Offline
|
Thanks guys for your replies
I appreciate
I will read carefully the link
Best Regards
|
Kill Your Pride, Share Your Knowledge With All
The Fear Of The LORD Is The Beginning Of Knowledge, But Fools Despise Wisdom And Discipline. Proverbs 1:7 |
|
|
|