Results 1 to 6 of 6

Thread: Error trying to create TcSever instance (2.5.1.RELEASE)

  1. #1
    Join Date
    May 2008
    Location
    Boston, MA
    Posts
    63

    Default 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. #2
    Join Date
    May 2008
    Location
    Boston, MA
    Posts
    63

    Default

    Anybody else seen this?

  3. #3
    Join Date
    Oct 2008
    Posts
    493

    Default

    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?
    Andy Wilkinson
    SpringSource

  4. #4
    Join Date
    May 2008
    Location
    Boston, MA
    Posts
    63

    Default

    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

  5. #5
    Join Date
    May 2008
    Location
    Boston, MA
    Posts
    63

    Default

    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

  6. #6
    Join Date
    Oct 2008
    Posts
    493

    Default

    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.
    Andy Wilkinson
    SpringSource

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •