IntelliJ Tomcat Server插件无法自动填充我的空外部Tomcat`base`文件夹 [英] IntelliJ Tomcat Server plugin fails to auto-populate my empty external Tomcat `base` folder

查看:1200
本文介绍了IntelliJ Tomcat Server插件无法自动填充我的空外部Tomcat`base`文件夹的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我通过菜单项指向IntelliJ Ultimate 2017.2中的 Tomcat和TomEE Integration 插件时,运行> 编辑配置到Tomcat 8.5.16的全新下载,我的Vaadin 8.1应用程序成功运行。好。

When I point the Tomcat and TomEE Integration plugin in IntelliJ Ultimate 2017.2 via menu item Run > Edit Configurations to a fresh download of Tomcat 8.5.16, my Vaadin 8.1 app runs successfully. Good.

但是当我选择指向配置的服务器> 应用服务器> 配置按钮> Tomcat基目录到一个空文件夹,我收到一条消息:

But when I optionally point the configuration’s Server > Application Server > Configure button > Tomcat base directory to an empty folder, I get a message:


找不到目录'用户/ basilbourque / apache-tomcat-base-dev / conf'

Cant find directory 'Users/basilbourque/apache-tomcat-base-dev/conf'

➠我必须创建此 conf 文件夹?

➠ Must I create this conf folder?

与IntelliJ相比,当我在外部运行Tomcat时将NetBeans IDE指向空文件夹时,它会自动使用所需的文件夹和文件的整个层次结构填充空文件夹。运行应用程序。

In contrast to IntelliJ, when I point NetBeans IDE to an empty folder when running Tomcat externally, it automatically populates the empty folder with the entire hierarchy of folders and files needed to run the app.

所以,好吧,我在我的空文件夹中创建一个 conf 文件夹。这满足编辑配置面板。接下来,我通过运行此配置来运行我的应用程序。

So, okay, I create a conf folder in my otherwise empty folder. This satisfies the Edit Configurations panel. Next, I run my app by running this configuration.

注意未命名_ 如何添加到我的应用程序名称( timepiece ),我在IntelliJ IDE窗口的浮动暗红色框中收到此消息:

Notice how Unnamed_ is prepended to my application name (timepiece), I get this message in a floating dark-red box within the IntelliJ IDE window:


运行'Tomcat 8.5.16'时出错

Error running 'Tomcat 8.5.16'

无法加载/Users/basilbourque/Library/Caches/IntelliJIdea2017.2/Unnamed_timepiece/conf/server.xml: /Users/basilbourque/Library/Caches/IntelliJIdea2017.2/tomcat/Unnamed_timepiece/conf/server.xml(没有这样的文件或目录)(5分钟前)

Cannot load /Users/basilbourque/Library/Caches/IntelliJIdea2017.2/Unnamed_timepiece/conf/server.xml: /Users/basilbourque/Library/Caches/IntelliJIdea2017.2/tomcat/Unnamed_timepiece/conf/server.xml (No such file or directory) (5 minutes ago)

➠我必须创建一个server.xml吗?

➠ Must I create a server.xml?

这样的要求让我感到困惑,因为正如我上面所说的,NetBeans完全自动地根据需要填充外部Tomcatbase空文件夹。

Such a requirement confuses me given that as I said above, NetBeans simply populates the external Tomcat "base" empty folder as needed entirely and automatically.

我也很好奇为什么消息在中间用冒号重复相同的路径,尽管这是一个小问题。

I am also curious why the message repeats the same path with a colon in the middle, though that is a minor issue.

推荐答案

此目录用于使配置与服务器安装根目录中的默认Tomcat conf 不同。

This directory is used to have the configuration that is different from the default Tomcat conf in the root of the server installation.


  1. TOMCAT_HOME / conf 复制到 CATALINA_BASE / conf

  2. 在IntelliJ 运行>编辑配置对话框中选择此新 CATALINA_BASE

  1. Copy TOMCAT_HOME/conf into CATALINA_BASE/conf.
  2. Select this new CATALINA_BASE in the IntelliJ Run > Edit Configurations dialog.

这样,您可以使用相同的服务器物理安装,但运行具有不同配置的多个服务器实例。 IntelliJ IDEA需要您预先配置的 CATALINA_BASE ,它不会自动填充它。

This way you can have the same physical installation of the server, but run multiple server instances with different configurations. IntelliJ IDEA expects the pre-configured CATALINA_BASE from you, it will not populate it automatically.

这篇关于IntelliJ Tomcat Server插件无法自动填充我的空外部Tomcat`base`文件夹的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆