Spring Tool Suite 3.6.1 and Pivotal tc Server Developer Edition logging ignored

mario picture mario · Dec 21, 2014 · Viewed 7.9k times · Source

I was trying to alter the logging that takes place with Pivotal tc Server Developer edition 3.0 and I found out that the java process that starts the server never reads the logging.properties file in catalina base.

I created a new Pivotal tc Server 3.0 with a new instance called diff-instance and added the bio profile. When it is finished a logging.properties file has been created in the /diff-instannce/conf folder. I started the server and stopped it and looked at the settings (F3 or open on the list of servers). It says:

configuration path:

option selected: Use tc Server installation (takes control of tc Server installation) server path (catalina.base): /diff-instance

Then I stop the server and modify the logging.properties file and noticed that none of the changes I make to this logging.properties file seems to ever be reflected in the tc Server.

I brought in my swiss army knife the good old sysinternals tools (www.sysinternals.com) and started procmon. To my great surprise the file logging.properties file in the catalina.base conf folder is never read by the javaw.exe process (only the logging.properties in /jre/lib folder is read). That explains what I saw.

I have 3 important questions related to this:

  1. Why is the logging.properties file never read?
  2. Where is the method to customize the Pivotal tc Server developer edition documented? I looked at the "Getting started with Pivotal tc Server" at http://tcserver.docs.pivotal.io/index.html in the section "tc Runtime Instance Configuration Files" on page 29 and it says this file should be used. Also the "Pivotal tc Server Administration" has a whole section "Configuring Logging for tc Runtime" on page 50 that keeps on talking about this same file.
  3. I know there is a lot of glue stuff between tc Server developer and STS. The whole thing about defining a new server and the options about kind of server locations to define as show below server locations are all very cool but where is the documentation for this stuff?

This page describes an older version of the tc server and how to change the logging. It also refers to the logging.properties file in catalina.base.

https://pubs.vmware.com/vfabric5/index.jsp?topic=/com.vmware.vfabric.tc-server.2.6/admin/manual-logging.html

Answer

aboyko picture aboyko · Dec 22, 2014

Did you try creating a tc server instance from the command line and alter the logging for that instance?

Were you able to get the logging working with previous versions of tc Server such as 2.9.x?

If that worked, but the logging for instance you're created via STS didn't work then I think you've uncovered a bug in Tc Server Eclipse integration code. I suspect that perhaps option for logging.properties file needs to be specified at the tc server instance creation time in the creation command somehow. Please create a bug report for this issue here: https://issuetracker.springsource.com/browse (project: Spring Tool Suite, component: SERVER)