tomcat6

Tomcat SSL Configuration

心已入冬 提交于 2019-12-23 03:32:12
问题 I received a SSL cert to use for a Tomcat 6.0 server, ready to use. I configured Tomcat to use it with the following in server.xml: <Connector port="8443" maxThreads="200" scheme="https" secure="true" SSLEnabled="true" keystoreFile="C:\Tomcat 6.0\ssl\cert" keystorePass="*****" clientAuth="false" sslProtocol="TLS"/> I started Tomcat using the command prompt so I could see any error message as they happened. There were none. The results for accessing different URLS: http://localhost -> normal

Received fatal alert: handshake_failure with Tomcat

不羁的心 提交于 2019-12-23 03:14:53
问题 I've problem with authorized ssl connection in Tomcat. I've developed class that connects to external server with certificate. It works fine when I run it in command line. But when I call it from JSP page that hosts in Tomcat throws exception like this: error:javax.net.ssl.SSLHandshakeException: Received fatal alert: handshake_failure com.sun.net.ssl.internal.ssl.Alerts.getSSLException(Alerts.java:174) com.sun.net.ssl.internal.ssl.Alerts.getSSLException(Alerts.java:136) com.sun.net.ssl

Spring using JNDI with Tomcat… why do I need a META-INF/context.xml in my project

随声附和 提交于 2019-12-23 00:27:43
问题 I am trying to get Spring working with tomcat JNDI resource to access my database. My project works if a META-INF/context.xml in my project with the resource information but once I remove it it stops.. why. 回答1: If you deploy a Web application in Tomcat, in the deployment process, Tomcat will copy the META-INF/context.xml file in $CATALINA_HOME/conf/ so the context will be available for your application. Take in mind, that if you remove context.xml from you application because you dont want

“The type java.util.Map$Entry cannot be resolved” (tomcat6 + JDK7)

血红的双手。 提交于 2019-12-22 22:39:27
问题 I've a JSP app which gives me the error: The type java.util.Map$Entry cannot be resolved. It is indirectly referenced from required .class files Stackoverflow is full of post about this error, but all of them get to solve just compiling the .java files using JDK7 , plus using tomcat with same version (I mean, below to JDK8 which seems to be the problem, because some IDE version and tomcat versions doesn't support it). The problem is that I've built my app ( .java files) using JDK 1.7.0_79 ,

Log4j2 Rolled Files that are deleted are still open and disk space not freed

两盒软妹~` 提交于 2019-12-22 14:38:59
问题 I recently migrated from log4j to log4j2 on my tomcat6 server. The problem is that my rolling files that are deleted are remaining open forever and hence the disk space is not being freed. i used this command "sudo /usr/sbin/lsof | grep deleted" to check on the open deleted files. I don't seem to understand how to close those files without restarting the tomcat server. Some of these logs are being deleted by cron jobs. while a lot of them are being deleted via logrotate. ... <Appenders>

Why is my Tomcat 6 executor thread pool not being used by the connector?

南楼画角 提交于 2019-12-22 14:02:17
问题 My server.xml looks like the following: <!--The connectors can use a shared executor, you can define one or more named thread pools--> <Executor name="tomcatThreadPool" namePrefix="catalina-exec-" maxThreads="200" minSpareThreads="4"/> <Connector executor="tomcatThreadPool" port="8080" protocol="HTTP/1.1" connectionTimeout="10000" maxKeepAliveRequests="1" redirectPort="8443" /> <Connector port="8009" protocol="AJP/1.3" redirectPort="8443" /> However, in the Tomcat manager (http://localhost

Running Multiple Instances of Tomcat on same port

泄露秘密 提交于 2019-12-22 10:37:06
问题 I need to run multiple instances of tomcat6 under different directory names on the same port. I will install tomcat6 twice for two different projects. But how to configure both the instances to run on the same port? 回答1: You could realise this using an apache webserver that is directing the requests based on the application using mod_jk or mod_proxy. (and get an explanation on both extensions) To choose which apache extension to use: apache to tomcat: mod_jk vs mod_proxy 回答2: Yes, you can. In

Nightmare: Upgrading Tomcat 5.5 to 6.0

倖福魔咒の 提交于 2019-12-22 09:27:36
问题 I'm trying to upgrade a perfectly running embedded Tomcat 5.5 to Tomcat 6.0. I understand that all I need to do is replace Tomcat 5.5 jars with 6.0. That's what I did. So I replaced the following jars: catalina-5.0.28.jar catalina-5.5.9.jar catalina-optional-5.5.9.jar commons-el.jar commons-modeler-1.1.0.jar jasper-compiler-jdt.jar jasper-compiler.jar jasper-runtime.jar jmx-5.0.28.jar jsp-api-2.0.jar naming-factory.jar naming-resources.jar servlet-api-2.4.jar servlets-default.jar tomcat

Check if jar file is loaded?

帅比萌擦擦* 提交于 2019-12-22 08:44:58
问题 I have a custom jar file in the tomcat lib/ folder. As per my knowledge, any jar file in this folder will be loaded on startup. Is there anyway I can check if a particular jar file is loaded or not? I'm running tomcat-6.0.35.A on unix rhel5. 回答1: I think I have seen which jars are open on startup in one of Tomcat log files. If not I could think about two possible alternatives: Add -verbose:class to JAVA_OPTS in Tomcat startup script. It should print classes as they're loaded by JVM (lots of

Out Of Memory Tomcat (unable to create new native thread)

旧巷老猫 提交于 2019-12-22 08:17:53
问题 I am getting continuously outofmemory error for 1 of my tomcat where my application is deployed after given the error tomcat is exit(shutdow). I took the log file and found this SEVERE: Error allocating socket processor java.lang.OutOfMemoryError: unable to create new native thread at java.lang.Thread.start0(Native Method) at java.lang.Thread.start(Thread.java:597) at org.apache.tomcat.util.net.JIoEndpoint$Worker.start(JIoEndpoint.java:513) at org.apache.tomcat.util.net.JIoEndpoint