问题标签 [embedded-tomcat-8]

For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.

0 投票
1 回答
844 浏览

java - 使用 spring-boot 嵌入式 tomcat 有什么限制?

我计划将当前在 tomcat 上运行的一些应用程序迁移到 spring-boot 运行 tomcat 嵌入式。
当前的设置是每个应用程序都有自己的实例,并且它们不共享任何公共资源。
当前使用嵌入式 tomcat 有哪些限制?

0 投票
1 回答
645 浏览

spring - Spring Boot 负载测试:一些请求卡住了

我正在使用 embed jetty/tomcat 对 Spring Boot 应用程序进行负载测试,但出现了奇怪的行为。我使用 apache ab 进行测试

所以一些请求被卡在某个地方。
使用码头,我尝试了不同的值:

与tomcat:

在探查器中,我发现了下一个:

谢谢!

0 投票
1 回答
2639 浏览

tomcat - 禁用弱密码 Tomcat Embedded

我正在使用 Trend Micro Deep Security 作为 PCI DSS 环境的一部分。问题是 SSL 证书使用了弱密码:

与此站点的连接使用强协议 (TLS 1.2)、过时的密钥交换 (RSA) 和过时的密码(AES_128_CBC 和 HMAC-SHA1)。

该应用程序使用嵌入的 tomcat 版本,我正在寻找一种禁用弱密码的方法。我相信https://www.sslshopper.com/article-how-to-disable-weak-ciphers-and-ssl-2-in-tomcat.html是我需要做的,但是我找不到任何细节关于如何使用嵌入式版本做到这一点?

0 投票
2 回答
785 浏览

grails - Json Views template not found when run as a war file

I am using Json views plugin of grails. Which works in development, but when I run it as a jar file, it is not able to find the templates/gson files for rendering. I get the following error

Json Views we are using are a part of a inline plugin we are developing. Jar we create also runs with that inline plugin (implemented using gradle wrapper)

Any ideas/suggestions?

Environment: Grails - 3.2.0 Groovy - 2.4.7 Json-Views plugin - 1.1.1

0 投票
1 回答
449 浏览

java - java CLI中的spring boot运行有一个奇怪的错误java.io.FileNotFoundException

我建立了一个启动父版本为1.4.2.RELEASE的spring boot项目,它通过eclipse成功运行,但是当我通过java CLI运行时,出现了一个奇怪的错误,命令是mvn clean packagejava -jar target/yishi-service-0.5.0.war

例外是:

这个嵌入式tomcat版本是:8.5.6。

谢谢您的帮助!

0 投票
0 回答
67 浏览

java - Apache Tomcat/8.0.8.5.4 - 使用 tomcat java 进程的可能循环进程

我在 linux 上设置了 Tomcat 8.5.4 并部署了我的战争。我对 JAVA_OPTS 的 catalina.sh 进行了更改,并且运行良好,直到上周。我有点懂了:

PID 10120 在 ID root 下执行命令 java 已经消耗了超过 13228 分钟的 CPU 时间。我不知道为什么会发生这种情况,因为没有人访问该应用程序并且还没有负载。

您知道 Tomcat 8.5.4 的任何缺点或错误吗?

0 投票
1 回答
182 浏览

tomcat - 嵌入式tomcat中的资源锁定

如何设置antiResourceLocking="true"嵌入式 tomcat 8?

我没有找到任何方法。

我使用嵌入式 tomcat 8.5.8。

0 投票
0 回答
1790 浏览

java - 使用 IntelliJ 社区版进行 Spring Boot 应用程序,错误:EmbeddedServletContainerException: Unable to start Embedded Tomcat

这个问题似乎是重复的。但是我已经通过 stackoverflow/other 适当地检查了所有配置和解决方案,但没有一个对我有用。

当我从命令行 mvn spring-boot:run执行这个项目时 ,它工作正常,但是当我试图从 IntelliJ IDE 运行/调试时,它会抛出以下堆栈跟踪。

作为参考,我也阅读了这篇文章,但没有结果 使用 IDE 运行 Spring-boot 的 main

► 关于 IDE:

IntelliJ IDEA 2016.2.4 Build #IC-162.2032.8,于 2016 年 9 月 9 日构建 JRE:1.8.0_65-b17 amd64 JVM:Oracle Corporation 的 Java HotSpot(TM) 64 位服务器 VM

这是堆栈跟踪

即使我已经检查了 port:80 ,早些时候它被 Skype 使用,现在我禁用了它,但所有的努力似乎都毫无价值。

编辑►这里是根 pom.xml 和子项目 pom.xml

0 投票
1 回答
857 浏览

tomcat8 - 如何在嵌入式tomcat中配置阀门?

我需要在嵌入式tomcat中配置valve http://tomcat.apache.org/tomcat-8.0-doc/config/valve.html#Remote_IP_Valve 怎么做?

0 投票
2 回答
2732 浏览

spring - 是否可以使用在 Windows IIS 上运行的嵌入式 Tomcat Web 服务器从 Spring Boot 应用程序的 URL 中删除端口?

具有嵌入式 tomcat Web 服务器的 Spring Boot 应用程序作为执行的 JAR 文件在 IIS 之上运行是否总是需要在 URL 中指定端口才能在浏览器中访问应用程序?