- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
在安装Tomcat的时候,很多论坛都说需要设置CATALINA_HOME变量,指向Tomcat的父目录。我正在通过 eclipse 运行 web 项目,它在存在和不存在此环境变量设置的情况下运行。
我想知道这个变量解决的确切目的是什么,什么时候设置它成为强制性的。
我还想知道驻留在 Tomcat/bin 目录中的 tomcat-juli.jar 的确切用途
最佳答案
Q>这个变量解决的具体目的是什么
A> Javadoc Bootstrap
类说:
This application constructs a class loader for use in loading the Catalina internal classes (by accumulating all of the JAR files found in the "server" directory under "catalina.home"), and starts the regular execution of the container. The purpose of this roundabout approach is to keep the Catalina internal classes (and any other classes they depend on, such as an XML parser) out of the system class path and therefore not visible to application level classes.
但还有更多。 CATALINA_HOME
和(可互换)CATALINA_BASE
定义了一个“基目录”,用于引用work
目录(用于保存已编译的 jsps ), 也有助于查找上下文配置文件等。
可能是 Eclipse 在您不知情的情况下设置了这些属性。全部打印system properties看看里面有什么。
Q>什么时候设置成为强制性的
A> 据我所知
问>tomcat-juli.jar的具体使用
A> 直接来自 Tomcat documentation :
Apache Tomcat has its own implementation of several key elements of java.util.logging API. This implementation is called "JULI". The key component there is a custom LogManager implementation, that is aware of different web applications running on Tomcat (and their different class loaders). It supports private per-application logging configurations. It is also notified by Tomcat when a web application is unloaded from memory, so that the references to its classes can be cleared, preventing memory leaks.
关于java - CATALINA_HOME 路径设置,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/12491016/
我已经安装了 Tomcat7,为 JAVA_HOME 和 CATALINA_HOME 设置了系统环境变量。但是,当我尝试从命令提示符运行启动时,出现以下错误。CATALINA_HOME 环境变量未正确
在安装Tomcat的时候,很多论坛都说需要设置CATALINA_HOME变量,指向Tomcat的父目录。我正在通过 eclipse 运行 web 项目,它在存在和不存在此环境变量设置的情况下运行。 我
我的服务器出现了一个奇怪的问题。我正在尝试构建 OpenGTS,所以我正在使用 ant all 现在在构建它时会出现一个错误,显示为 optjars: tomcat.home: BUILD FAILE
我最近一直在更新一些文档(我们从 Apache Tomcat 7 迁移到 8)并注意到对 TOMCAT_HOME 的引用。比如创建一个环境变量TOMCAT_HOME。如果我是正确的,TOMCAT_HO
我想在属性占位符的位置使用环境变量,但我不明白: 我尝试过这种方式: 但我收到此错误 org.springframework.beans.factory.BeanInitializationExce
我使用以下方法安装了 tomcat7: sudo apt-get install tomcat7 tomcat7-admin 在使用“ps aux | grep catalina”检查 $CATALI
在Apache Tomcat中,我看到了一些引用路径$CATALINA_HOME/shared/lib的帖子。 下载Tomcat时,在Tomcat主文件夹中看不到嵌套的shared文件夹。 我确实看到
我必须在 Amazon EC2 上的 Tomcat7 的 $CATALINA_HOME/lib 中复制 Connnector/J JAR。如何在 Amazon EC2 的 Amazon Linux 上
我正在弄乱 Tomcat 服务器,我认为发生了一些奇怪的事情。我从 apache 网站下载了 Tomcat 7(不是 RPM,而是 tar.gz)。据我所知,应该设置 CATALINA_HOME 和
我在 log4j 中有这一行: log4j.appender.FILE.File=${catalina.home}/logs/debug.log 当我从 IntelliJ 运行项目时完美运行。 但是当
我在 log4j 中有这一行: log4j.appender.FILE.File=${catalina.home}/logs/debug.log 当我从 IntelliJ 运行项目时完美运行。 但是当
我已经设置了JAVA_HOME、PATH环境变量。没有别的了 我知道我还需要设置 CATALINA_HOME 但是,Tomcat EE 在没有 CATALINA_HOME 的情况下也能正常工作 为什么
我正在阅读《Tomcat:权威指南》以了解如何从同一安装中部署多个 tomcat 实例。他们描述了您需要如何分离出特定于实例的文件夹,从而使核心 CATALINA_HOME 内容保持干净;这种分离也为
我有一个与 openshift online 相关的问题,我正在使用 Tomcat7 cartridge、Mysql5.5 和 Ant Cartridge 0.1。我正在尝试将 OpenGTS 项目部
我使用 cargo-maven2-plugin 将 war 文件部署到正在运行的远程 tomcat 容器。现在我需要将文件复制到 $CATALINA_HOME/myfolder。我使用 ant-run
出于某种原因,我无法让 tomcat 8 在 netbeans 上运行……它在 localhost:8080 上运行得很好。但不会在 netbeans 上工作。我正在运行 ubuntu 16.04。
我正在尝试运行一个启动脚本,但我收到一个错误,指出 CATALINA_HOME 包含一个冒号,我看到它包含一个冒号,但那是 tomcat 的路径。 其他问题我看到了examples设置包含冒号的 CA
我需要这样的东西: "param name="File"value="${CATALINA_HOME}/logs/log4j.log" 我看到了很多类似的问题,但没有有效的解决方案。 最佳答案 对于
我在同一台服务器 (Linux) 上运行了多个 tomcat 6 实例,它按预期工作。我试图找出关于设置 CATALINA_HOME 和 CATALINA_BASE 变量的标准做法。 在我的 tomc
我有一个开发系统 (linux-Liferay6-tomcat6-Eclipse Helios),我在 SVN 中进行了版本控制。当我为新开发人员推出它相当于全新安装时,tomcat 服务器的路径是错
我是一名优秀的程序员,十分优秀!