Announcement Announcement Module
Collapse
No announcement yet.
Error trying to create TcSever instance (2.5.1.RELEASE) Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Error trying to create TcSever instance (2.5.1.RELEASE)

    I have the latest release of STS-2.5.1 and am having trouble creating an instance of a tc server from the command line. Below is a dump of my error that I am seeing when running the tcruntime-instance.sh create command

    Code:
    ./tcruntime-instance.sh create foo
    Creating instance 'foo' ...
      Using separate layout
    Exception in thread "main" java.lang.NullPointerException
    	at com.springsource.tcruntime.instance.internal.create.environment.StandardEnvironmentPropertiesPlaceholderHandler.resolveAndReplacePropertiesPlaceholders(StandardEnvironmentPropertiesPlaceholderHandler.java:37)
    	at com.springsource.tcruntime.instance.internal.create.environment.StandardEnvironmentApplicator.applyEnvironment(StandardEnvironmentApplicator.java:39)
    	at com.springsource.tcruntime.instance.internal.create.CreateCommandExecutor.applyEnvironment(CreateCommandExecutor.java:149)
    	at com.springsource.tcruntime.instance.internal.create.CreateCommandExecutor.execute(CreateCommandExecutor.java:106)
    	at com.springsource.tcruntime.instance.internal.create.CreateCommandExecutor.execute(CreateCommandExecutor.java:1)
    	at com.springsource.tcruntime.instance.internal.AbstractCommand.execute(AbstractCommand.java:22)
    	at com.springsource.tcruntime.instance.TcRuntimeInstance.run(TcRuntimeInstance.java:73)
    	at com.springsource.tcruntime.instance.TcRuntimeInstance.main(TcRuntimeInstance.java:144)

  • #2
    Anybody else seen this?

    Comment


    • #3
      The only way that I can see that your problem would occur is if the base template is missing for some reason. Alongside the tcruntime-instance.sh script you should have a directory named templates. The directory should contain a number of directories: one for each template in the installation. One of these directories should be named base. Here's what I've got in mine:

      Code:
      > ls templates
      ajp             apr             apr-ssl         base            bio             bio-ssl         cluster-node    diagnostics     jmx-ssl         nio             nio-ssl
      What does the contents of your installation's templates directory look like?

      Comment


      • #4
        Andy,

        There is no templates/base directory. Just to give you context (should have added to the original) that I am on a Mac and grabbed a Mac release. I looked on multiple machines and the base dir is missing in each of the three installs.

        Matt

        Comment


        • #5
          This is the directory listing that I get.
          Code:
          ls templates/
          ajp		apr		apr-ssl		bio		bio-ssl		cluster-node	diagnostics	jmx-ssl		nio		nio-ssl

          Comment


          • #6
            Thanks, Matt.

            I've just grabbed a tar.gz package of STS 2.5.1 for the Mac and I see the same problem: the base template's missing.

            I've opened an STS issue: https://issuetracker.springsource.com/browse/STS-1363

            It appears to be an STS packaging problem as the base template is in the zip as it should be if you download tc Server directly. You can grab it from http://www.springsource.com/products...dition-preview which should let you get up and running till the STS packaging problem's resolved.

            Thanks for reporting the problem, and apologies for the inconvenience.

            Comment

            Working...
            X