Hi,

I am getting an error when trying to create tc Server instance using tcruntime-instance.bat script with --template that need some property value to be passed from properties file.

So, for example, if I want to create an instance using the 'diagnostic' template, execute the following command and got this output;
.................................................. .................................................. .....................
>tcruntime-instance.bat create testDiagnosticServer -t diagnostics
Creating instance 'testDiagnosticServer' ...
Using separate layout
Creating bin\setenv.bat
Creating conf\wrapper.conf
Applying template 'base'
Copying template's contents
Applying fragment 'context-fragment.xml' to 'conf/context.xml'
Applying fragment 'server-fragment.xml' to 'conf/server.xml'
Applying fragment 'web-fragment.xml' to 'conf/web.xml'
Applying fragment 'tomcat-users-fragment.xml' to 'conf/tomcat-users.xml'
Applying fragment 'catalina-fragment.properties' to 'conf/catalina.properties'
Applying template 'base-tomcat-7'
Copying template's contents
Applying fragment 'server-fragment.xml' to 'conf/server.xml'
Applying fragment 'web-fragment.xml' to 'conf/web.xml'
Applying fragment 'catalina-fragment.properties' to 'conf/catalina.properties'
Applying template 'diagnostics'
Copying template's contents
Applying fragment 'server-fragment.xml' to 'conf/server.xml'
Applying template 'bio'
Copying template's contents
Applying fragment 'server-fragment.xml' to 'conf/server.xml'
create failed. A value for the property 'diagnostics.jdbc.driverClassName' is required but was not provided. A value can be provided using --property diagnostics.jdbc.driverClassName=<value>

.................................................. .................................................. ......................................

In the ..\templates\diagnostics\configuration-prompts.properties file, I added the following entry;

jdbc.resource.name=mySqlDataSource
jdbc.username=root
jdbc.password=password
jdbc.driverClassName=com.mysql.jdbc.Driver
jdbc.url=jdbc:mysql://localhost/dbname


But that did not help; I don't want to use the --property option in the parameter, as I want to have those in separate properties file and use it to configure the server.

Could you please let me know, what is the correct way of setting the property value for variables like {jdbc.username} etc, using the properties file with the template option?

Thanks,
Mohan