我有两个Apache和Tomcat7实例安装。 一个在我的MacBook Pro与Mountain Lion和另一个在Ubuntu的12.10的Mac上的VirtualBox虚拟机。 两者都具有相同的VirtualHostconfiguration和server.xmlconfiguration。 一切工作正常在我的Mac,但在Ubuntu虚拟机我得到“文件不存在”的错误。 当我将LogLevel设置为“debugging”时,两个日志输出看起来几乎是一样的。 有什么地方我可以看看为什么这些请求没有被代理到Tomcat? 这是我的configuration文件。 server.xml中: <?xml version='1.0' encoding='utf-8'?> <!– Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to You under the Apache License, Version 2.0 […]
我想configurationtomcat工作的HTTPS端口8443。 使用tomcat 7。 我使用以下参数启用了https连接器: <Connector port="8443" protocol="HTTP/1.1" SSLEnabled="true" keystorePass="<pass>" maxThreads="150" scheme="https" secure="true" keystoreFile="${catalina.base}/foo/bar.keystore" clientAuth="false" sslProtocol="TLS" /> 我用密码和域名创build了一个密钥库。 当我启动tomcat并浏览pipe理面板或使用端口8443我的jsp页面时,我得到scrumbled不明身份的数据。 这意味着我得到了通过http传递的httpsencryption数据。 当我浏览端口8080我正确地看到它。 我错过了什么? 谢谢! 幼狮 更新 我在server.xml中有这个configuration <Listener className="org.apache.catalina.core.AprLifecycleListener" SSLEngine="on" /> 我在日志中有这个: May 02, 2013 5:57:45 AM org.apache.catalina.core.AprLifecycleListener init INFO: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found […]
我在启动tomcat zip文件时遇到问题。 我对jsp和servlets完全陌生。 我已经安装了tomcat 7.0.52,并设置了path和java_home。 在我的系统之一,它的工作正常,但在另一个系统具有相同的configuration其创造麻烦,我不知道为什么。 我之前安装了tomcat的安装程序,但现在我已经卸载它并下载了tomcat的zip。 所以现在我面临以下exception我猜测问题是tomcat是不能够部署其现有的项目。 我在网上search,但我无法弄清楚。 Mar 06, 2014 11:04:47 AM org.apache.catalina.core.AprLifecycleListener init INFO: Loaded APR based Apache Tomcat Native library 1.1.29 using APR version 1.4 .8. Mar 06, 2014 11:04:47 AM org.apache.catalina.core.AprLifecycleListener init INFO: APR capabilities: IPv6 [true], sendfile [true], accept filters [false], ra ndom [true]. Mar 06, 2014 11:04:48 AM […]
运行Tomcat 7.我在catalina.out中有错误,我不能排除故障,因为我不确定哪个Web请求导致了它们。 有什么方法可以捕获有关给定exception(理想的URL和时间)的更多细节,以便我可以更好地排除故障?
这听起来很模糊,我敢肯定它会因为没有提供足够的信息而被拒绝,但是我真的没有什么可以给你的。 我们有一个运行Amazon Linux,Apache,Tomcat和Railo的AWS实例,有时Tomcat / Railo会停止响应请求,并且在catalina.out文件或Tomcat中的任何其他日志文件中都不会输出错误日志目录。 当我发出命令重新启动Tomcat / Railo时,重启脚本在那里停留了一段时间,然后说Tomcat没有响应,所以它已经closures了,然后再次启动,一切都很好,直到再次发生,几分钟后到几天后。 我尽了最大的努力去检查服务器上的其他日志,但是根本没有发现任何消息来表明为什么Tomcat / Railo已经放弃并停止了响应。 任何人都可以build议为什么它可能会这样做和/或任何其他日志文件,我们可以检查,看看发生了什么。 谢谢。 安德鲁。
当我试图运行与java 1.6.0_05 startup.bat的Tomcat 7,然后它正在工作。 如果我将版本更改为jdk1.6.0_45或jdk1.7.0_65,则发生错误。 这似乎是Java版本有问题,但我不明白什么可能是可能的原因。 C:\Programs\apache-tomcat-7.0.54-windows-x64\apache-tomcat-7.0.54\bin>java -version java version "1.6.0_05" Java(TM) SE Runtime Environment (build 1.6.0_05-b13) Java HotSpot(TM) Client VM (build 10.0-b19, mixed mode) This is working fine. But in case I change the jdk to jdk1.6.0_45 or jdk1.7.0_65. C:\Users\mbanerjee>java -version java version "1.7.0_65" Java(TM) SE Runtime Environment (build 1.7.0_65-b19) Java HotSpot(TM) 64-Bit Server […]
现在我一直在为此苦苦挣扎。 由于我是新的服务器安装的东西。 一直以来,在网上跟着很多教程和文档,很多都跑了,但是没有运气。 这是我到现在为止所做的。 我得到了我的VPS运行,它有Apache运行在80端口。 我在端口8080上安装了Tomcat 7.0.55,它已经启动并正在运行。 现在我们必须将stream量从Apache传送到Tomcat 以下 https://www.digitalocean.com/community/tutorials/how-to-use-apache-http-server-as-reverse-proxy-using-mod_proxy-extension 修改apache的000-default.conf,看起来像这样。 <VirtualHost *:80> # The ServerName directive sets the request scheme, hostname and port that # the server uses to identify itself. This is used when creating # redirection URLs. In the context of virtual hosts, the ServerName # specifies what hostname must appear in […]
我有一个Tomcat服务器(JIRA)在Apache反向代理服务器后面工作(需要一段时间,但是我到了那里)。 我正在升级我的旧服务器,并添加Apache给我一些额外的function和安全性。 旧的服务器被访问 https://example.com:8443 我希望能够让Apache转发任何使用端口8443访问旧地址的人(即从旧书签等)到https://example.com但我正在努力使其工作。 我可以做以下 http://example.com – > https://example.com http://example.com:8443 – > https://example.com 但https://example.com:8443在Chrome中生成SSL连接错误。 我有点卡住了 在httpd.conf中有 Listen 80 Listen 8443 在httpd-vhosts.conf中有 <VirtualHost *:80> ServerName example.com Redirect / https://example.com/ </VirtualHost> <VirtualHost *:8443> ServerName example.com Redirect / https://example.com/ </VirtualHost> 在httpd-ssl.com我有 Listen 443 <VirtualHost *:443> ServerName example.com SSLEngine On SSLCertificateFile "C:\Program Files\Atlassian\JIRA\jre\server.crt" SSLCertificateKeyFile "C:\Program Files\Atlassian\JIRA\jre\server.key" SSLProxyEngine Off […]
我有一个运行在低内存CentOS上的tomcat 7。 目前它有2个连接器用于端口80和443.重要的configuration选项是: <Connector port="80" protocol="HTTP/1.1" executor="tomcatThreadPool" connectionTimeout="10000" keepAliveTimeout="60000" <Connector port="443" protocol="HTTP/1.1" executor="tomcatThreadPool" SSLEnabled="true" scheme="https" secure="true" connectionTimeout="10000" keepAliveTimeout="60000" 这两个连接器都绑定到执行程序: <Executor name="tomcatThreadPool" namePrefix="catalina-exec-" maxThreads="100" minSpareThreads="3" maxIdleTime="120000" /> 当tomcat第一次启动时,它启动大约50个线程。 经过大约15-20个用户连接到Web应用程序,它增加到约60.(我使用命令ps -eLf | grep java |grep tomcat |wc -l计算tomcat线程) 我每分钟有4个连接,由于我的应用程序的性质,它不超过5个。 所以我想要tomcat启动尽可能less的线程。 由于我configuration了最less3个备用线程并保持2分钟,所以不应该超过20个。 但是我错了。 我如何限制Tomcat线程的数量为20或30的最小值?
我知道我可以更改bin/setenv.sh ,但可以在不重新启动Tomcat的情况下应用新的设置吗? 具体而言,我可以以某种方式扩展最大堆大小(Xmx)吗?