简体   繁体   English

无法在STS 4上创建TC服务器实例

[英]Unable create tc server instance on sts 4

Creating server from server window in sts gives me this error. 从服务器窗口中的服务器创建服务器给我这个错误。 I am choosing base template to create server. 我正在选择基本模板来创建服务器。 I also tried using cmd with admin rights, still same error. 我也尝试使用具有管理员权限的cmd,仍然是相同的错误。

Error Details:create command failed. 错误详细信息:create命令失败。 String runtimes not valid version format. 字符串运行时无效的版本格式。 Expected ,,[.patch][.release] 预期的是,, [。patch] [。release]

Reason: Error creating server instance with command: D:\\Users\\pivotal location..\\tcserver.bat create server -v runtimes -t base --property base.runtime.user=null --java-home C:\\Java\\jdk1.8.0_191. 原因:使用以下命令创建服务器实例时出错:D:\\ Users \\枢纽位置.. \\ tcserver.bat创建服务器-v运行时-t base --property base.runtime.user = null --java-home C:\\ Java \\ jdk1.8.0_191。 Check access permission for the directory D:\\Users\\pivotal location.. and its files and subdirectories. 检查目录D:\\ Users \\ pivotal location ..及其文件和子目录的访问权限。

Can't share the picture didn't have reputation. 无法分享照片没有名声。

It looks like the Pivotal tc Server installation sits in a read-only location on your disc or with limited write permissions. 看起来Pivotal tc Server安装位于光盘上的只读位置或具有有限的写入权限。 I would recommend to install tc-Server into a directory where you have full permissions, configure that install in STS, and try again. 我建议将tc-Server安装到具有完全权限的目录中,在STS中配置该安装,然后重试。 That should help. 那应该有帮助。

You will get ahead if you provide a proper tc runtime version at the -v option. 如果在-v选项中提供了适当的tc运行时版本,您将获得成功。 Eg if you have the tc runtime tomcat-9.0.12.A.RELEASE installed, take "9.0.12.A.RELEASE" as runtime version . 例如,如果您安装了tc运行时tomcat-9.0.12.A.RELEASE, 则将“ 9.0.12.A.RELEASE”作为运行时版本

Unfortunately you will not be out of the woods by doing so. 不幸的是,您不会因此而走出困境。 Although a server instance will be created, there will be another error message: "The specified server is not valid. The .tc-runtime-instance file is missing.". 尽管将创建服务器实例,但将出现另一条错误消息:“指定的服务器无效。缺少.tc-runtime-instance文件。” There will be a .tc-runtime-instance-file in your instance-dir, but without any content. 您的instance-dir中将有一个.tc-runtime-instance-file文件,但没有任何内容。 That's the point where I am currently sticking. 这就是我目前坚持的重点。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM