-
Jan 11th, 2011, 04:29 PM
#1
trouble creating tcserver instance
Hi All,
I'm getting started using tcserver to host some spring web apps that will provide a compact graphic of some hyperic stats. Unfortunately, I'm running into some problems creating a server instance. When I run tc_runtime_instance.sh, I get a java stack dump stemming from an UnknownHostException (although it does have the right name for my machine). I see a lot of back & forth between tc_runtime_instance and groovy classes; I'm not sure if this could point me to the right solution.
Any assistance here would be appreciated - has anyone else encountered this error? Google reports very few (and unrelated) results for the exception and some contextual information.
Note: actual hostname has been changed, but it does report the same string as the 'hostname' command.
springsource-tc-server-node]# ./tcruntime-instance.sh -s hyperic_portal
Exception in thread "main" java.net.UnknownHostException: hostname:hostname
at java.net.InetAddress.getLocalHost(InetAddress.java :1354)
at java_net_InetAddress$getLocalHost.call(Unknown Source)
at org.codehaus.groovy.runtime.callsite.CallSiteArray .defaultCall(CallSiteArray.java:40)
at org.codehaus.groovy.runtime.callsite.AbstractCallS ite.call(AbstractCallSite.java:117)
at org.codehaus.groovy.runtime.callsite.AbstractCallS ite.call(AbstractCallSite.java:121)
at tc_runtime_instance.getNodeName(tc_runtime_instanc e.groovy:48)
at tc_runtime_instance$getNodeName.callCurrent(Unknow n Source)
at org.codehaus.groovy.runtime.callsite.CallSiteArray .defaultCallCurrent(CallSiteArray.java:44)
at org.codehaus.groovy.runtime.callsite.AbstractCallS ite.callCurrent(AbstractCallSite.java:143)
at org.codehaus.groovy.runtime.callsite.AbstractCallS ite.callCurrent(AbstractCallSite.java:155)
at tc_runtime_instance.run(tc_runtime_instance.groovy :786)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Nativ e Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Native MethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(De legatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.codehaus.groovy.reflection.CachedMethod.invoke (CachedMethod.java:88)
at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.j ava:233)
at groovy.lang.MetaClassImpl.invokeMethod(MetaClassIm pl.java:1058)
at groovy.lang.MetaClassImpl.invokeMethod(MetaClassIm pl.java:886)
at org.codehaus.groovy.runtime.InvokerHelper.invokePo goMethod(InvokerHelper.java:743)
at org.codehaus.groovy.runtime.InvokerHelper.invokeMe thod(InvokerHelper.java:726)
at org.codehaus.groovy.runtime.InvokerHelper.runScrip t(InvokerHelper.java:386)
at org.codehaus.groovy.runtime.InvokerHelper$runScrip t.call(Unknown Source)
at org.codehaus.groovy.runtime.callsite.CallSiteArray .defaultCall(CallSiteArray.java:40)
at org.codehaus.groovy.runtime.callsite.AbstractCallS ite.call(AbstractCallSite.java:117)
at org.codehaus.groovy.runtime.callsite.AbstractCallS ite.call(AbstractCallSite.java:129)
at tc_runtime_instance.main(tc_runtime_instance.groov y)
-
Jan 11th, 2011, 04:32 PM
#2
Are you running tc Server version 2.1?
Syntax doesn't look right for that version.
Doc Here: http://static.springsource.com/proje...tml/index.html
example:
prompt$ ./tcruntime-instance.sh create hyperic_portal
-
Jan 11th, 2011, 04:38 PM
#3
Thanks for the quick reply.
According to the usage information all i need is a -c (which is a default option). adding it changes nothing in the output/stackdump.
springsource-tc-server-node]# ./tcruntime-instance.sh -h
usage: tcruntime-instance -h for help
-c,--create create an instance [default]
-d,--tcruntimedir <arg> location of installation [default: location of
this script]
-f,--force force creation of instance, even if it already
exists
-h,--help usage information
-i,--interactive query for Port numbers
-j,--javahome <arg> specify JAVA_HOME [default: $JAVA_HOME]
-l,--list <arg> list all known instances located in instancedir
-m,--modifyver change the Tomcat version of an instance
-n,--instancedir <arg> location of instance directory [default:
current working directory]
-p,--ports <arg> specify ports: shutdown:http:ajp:jmx:https [0
means default]
-r,--jrehome <arg> specify JRE_HOME [default: $JRE_HOME]
-s,--server <arg> name of new instance
-t,--template <arg> location of instance template
-v,--tomcatver <arg> Tomcat version for create/modify
-
Jan 11th, 2011, 04:39 PM
#4
I'm using version 2.0.4.RELEASE
-
Jan 11th, 2011, 04:40 PM
#5
You may need to create a hosts file and define your hostname there. I have not unfortunately seen your error before.
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules