我使用Apache来代理我的Tomcat实例,我想要Apache在端口80和8080听。我有给定的configuration。 但是当我尝试启动时出现以下错误: (98)Address already in use: make_sock: could not bind to address 0.0.0.0:80 no listening sockets available, shutting down Listen 8080 NameVirtualHost *:8080 Listen 80 NameVirtualHost *:80 <VirtualHost *:8080 *:80> <Proxy *> AddDefaultCharset Off Order deny,allow Allow from all </Proxy> ProxyPass / ajp://localhost:8009/ ProxyPassReverse / ajp://localhost:8009/ </VirtualHost> 有没有办法让Apache基本上代理80和8080上的所有请求?
我正在使用巡航控制来触发一个批量部署脚本,目前该文件执行完美,但巡航控制没有看到脚本结束。 它只是不停地旋转(build筑),并且一直持续下去。 我的脚本启动下载生成提取它,然后启动与应用程序部署的tomcat。 该脚本也结束于: exit /B 0 而巡航控制不会看到脚本退出… 任何人都有一个想法
我可以访问我的本地系统http://localhost:8080/MyApp上的tomcat,但是当我像这样访问它http://xxx.xxx.xxx.xxx:8080/MyApp其中xxx.xxx.xxx.xxx是我的公共IP,它似乎没有工作。 问题是我的系统有共享的互联网连接,公共IP在多台计算机之间共享。 而中央路由器的configuration不在我的控制之下。 我甚至不能使用远程桌面或甚至不能ping我的公共IP。 我的问题是,他们有什么办法可以从远程系统访问tomcat吗? ( 我想如果我可以在我的系统上使用团队查看器,那么为什么不tomcat是可访问的。 )
我已经在我的ami linux微型实例上安装了tomcat7和mysql55。 我想弄清楚如何configurationtomcat7与mysql通信,但没有运气。 我一直是glassfish用户,所以通过gui很简单,但是对于tomcat,我不知道如何configuration它。 我看了tomcat7上的Apache文档,但发现自己更加困惑。 我不知道我需要编辑的文件在哪里,我不知道如何编辑它们。 我需要安装一个MySQL驱动程序? 我使用JDBC还是JNDI? 我的应用程序是一个使用Hibernate的Tapestry5应用程序,所以我不确定是否重要。 有谁知道一个很好的指导或可以提供示例代码如何做到这一点? 只是为了logging,我只有几个小时的Linux后,所以我非常绿色,当涉及到任何Linux相关的。 UPDATE 我发现了以下的默认configuration <!– <Resource name="UserDatabase" auth="Container" type="org.apache.catalina.UserDatabase" description="User database that can be updated and saved" factory="org.apache.catalina.users.MemoryUserDatabaseFactory" pathname="conf/tomcat-users.xml" /> –> 我正在使用hibernate,并在hibernate.cfg.xml中使用以下 <hibernate-configuration> <session-factory> <property name="hibernate.connection.datasource">jdbc/mydatabase</property> 我注释了上面的资源,并添加了以下内容,但这似乎也不起作用。 我也注意到我不再有权访问tomcatpipe理器。 <Resource type="javax.sql.DataSource" name="jdbc/mydatabase" factory="org.apache.tomcat.jdbc.pool.DataSourceFactory" driverClassName="com.mysql.jdbc.Driver" url="jdbc:mysql://localhost:3306/mysql" username="root" password="password" /> 我将以下内容添加到了context.xml文件中 <ResourceLink type="javax.sql.DataSource" name="jdbc/mydatabase" global="jdbc/mydatabase" 有人知道我在做这个configuration错了吗?
我在我的网站上安装了SSL。 我写了一个java web服务,并将其部署在public_html / WEB-INF / service文件夹中。 现在我可以通过http访问我的服务(如http://www.mydomain.com/services/myWebService?wsdl ),但是当我通过https尝试时,它给了我错误404。 这是虚拟主机configuration <VirtualHost 44.123.123.123:443> ServerName mydomain.com ServerAlias www.mydomain.com DocumentRoot /home/accountName/public_html ServerAdmin [email protected] UseCanonicalName Off CustomLog /usr/local/apache/domlogs/mydomain.com combined CustomLog /usr/local/apache/domlogs/mydomain.com-bytes_log "%{%s}t %I .\n%{%s}t %O ." ## User accountName # Needed for Cpanel::ApacheConf <IfModule mod_suphp.c> suPHP_UserGroup accountName accountName </IfModule> <IfModule !mod_disable_suexec.c> <IfModule !mod_ruid2.c> SuexecUserGroup accountName accountName </IfModule> </IfModule> <IfModule […]
我想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 7.0.21进行生产。 服务器上周随机挂起。 它创buildbin文件夹下的hs_err_pid4528.log文件。 日志中有两部分。 JRE version: 7.0_21-b11 Java VM: Java HotSpot(TM) 64-Bit Server VM (23.21-b01 mixed mode windows-amd64 compressed oops) Problematic frame: C [zip.dll+0x5794] ZIP_Open+0x1690 和 Stack: [0x0000000028830000,0x0000000028930000], sp=0x000000002892d430, free space=1013k Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code) C [zip.dll+0x5794] ZIP_Open+0x1690 Java frames: (J=compiled Java code, j=interpreted, Vv=VM code) J java.util.zip.Deflater.deflateBytes(J[BIII)I […]
我们有在Ubuntu服务器上运行的Tomcat实例。 它运行一个networking服务,向互联网开放。 有时会突然出现交通堵塞,并且下降。 Tomcat访问日志中没有任何exception。 我想这是因为一些请求是如此“沉重”,他们永远不会完成,因此不logging到Tomcat的访问日志。 有没有办法configurationTomcat在执行之前logging传入的请求? 每个请求应以下面的格式logging date,时间,URL(带查询string参数),IP地址(客户端) 每个请求应该有一行。 只有传入端口80和443的请求应该被logging。
我不太熟悉服务器configuration,尤其是基于CentOS或Redhat的服务器configuration。 我目前遇到的问题是我安装了Tomcat6。 当我去我的网站地址:www.example.com:8080我可以看到没有问题的默认页面。 如果我去只是:www.example.com我得到一个无法find页面。 在CentOS或Tomcat设置中有没有办法让我的网域url始终显示端口8080上的内容? 我没有安装常规的Apache; 只有Tomcat的Apache。
我有Openfire的巨大问题,每时每刻因为缺乏内存而崩溃。 在Java日志中,我有以下错误日志。 然而问题是 Openfire是32位,我不能运行它为64位。 因为我可以给Openfire的只有32位最大内存是4GB。 我的系统是非常强大的32 GB RAM,所以我不能再增加 只有最多100个用户使用openfire,但似乎还不能处理它 我每5分钟运行一次cron作业来监视这个服务,然后每隔一段时间重新启动一次 任何解决scheme如何优化内存使用开放和停止崩溃? 错误日志如下 # # There is insufficient memory for the Java Runtime Environment to continue. # Native memory allocation (malloc) failed to allocate 140 bytes for CHeapObj-new # Possible reasons: # The system is out of physical RAM or swap space # In 32 bit […]