Announcement Announcement Module
No announcement yet.
trouble creating tcserver instance Page Title Module
Move Remove Collapse
Conversation Detail Module
  • Filter
  • Time
  • Show
Clear All
new posts

  • 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, 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]# ./ -s hyperic_portal
    Exception in thread "main" hostname:hostname
    at :1354)
    at java_net_InetAddress$ Source)
    at org.codehaus.groovy.runtime.callsite.CallSiteArray .defaultCall(
    at org.codehaus.groovy.runtime.callsite.AbstractCallS
    at org.codehaus.groovy.runtime.callsite.AbstractCallS
    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(
    at org.codehaus.groovy.runtime.callsite.AbstractCallS ite.callCurrent(
    at org.codehaus.groovy.runtime.callsite.AbstractCallS ite.callCurrent(
    at :786)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Nativ e Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Native
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(De
    at java.lang.reflect.Method.invoke(
    at org.codehaus.groovy.reflection.CachedMethod.invoke (
    at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.j ava:233)
    at groovy.lang.MetaClassImpl.invokeMethod(MetaClassIm
    at groovy.lang.MetaClassImpl.invokeMethod(MetaClassIm
    at org.codehaus.groovy.runtime.InvokerHelper.invokePo goMethod(
    at org.codehaus.groovy.runtime.InvokerHelper.invokeMe thod(
    at org.codehaus.groovy.runtime.InvokerHelper.runScrip t(
    at org.codehaus.groovy.runtime.InvokerHelper$runScrip Source)
    at org.codehaus.groovy.runtime.callsite.CallSiteArray .defaultCall(
    at org.codehaus.groovy.runtime.callsite.AbstractCallS
    at org.codehaus.groovy.runtime.callsite.AbstractCallS
    at tc_runtime_instance.main(tc_runtime_instance.groov y)

  • #2
    Are you running tc Server version 2.1?

    Syntax doesn't look right for that version.

    Doc Here:


    prompt$ ./ create hyperic_portal


    • #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]# ./ -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
      -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


      • #4
        I'm using version 2.0.4.RELEASE


        • #5
          You may need to create a hosts file and define your hostname there. I have not unfortunately seen your error before.