tomcat6

Why is Tomcat manager using my LoginModule?

回眸只為那壹抹淺笑 提交于 2020-01-02 21:53:44
问题 I'm running Tomcat 6.0.29 and created a realm and loginmodule of my own. They are defined in server.xml like so: <Realm className="mycompany.tomcat.MyRepositoryRealm" appName="My_Realm" userClassNames="mycompany.tomcat.IdentityPrincipal" roleClassNames="mycompany.tomcat.RolePrincipal" useContextClassLoader="true"/> I have added the library containing these classes to my tomcat/lib folder. Other than that, I have not changed Tomcat from it's default configuration. When I go to fire up the

PID file exists, but process is not running

落爺英雄遲暮 提交于 2020-01-02 05:46:18
问题 I'm working in centos6. I have installed tomcat6. At the first all works fine. But after restarting the server tomcat6 did not work properly. When I execute this command line:" service tomcat6 status " I get: " PID file exists, but process is not running [ÉCHOUÉ] " I checked to the log file "catalina.out" and I get this error: GRAVE: StandardServer.await: create[8005]: java.net.BindException: Cannot assign requested address at java.net.PlainSocketImpl.socketBind(Native Method) at java.net

SQL execution time much slower in a Tomcat Servlet than in a normal Java program

空扰寡人 提交于 2020-01-02 04:43:47
问题 For inexplicable reasons however, this morning the performance increased for two of my Queries that used to be slow. I have no idea why. I have no authority over the server, maybe someone changed something. The problem is no more . In a nutshell: s.executeQuery(sql) runs extremely slowly within a tomcat servlet on server Same query runs fine without servlet (simple java program) on the same machine Not all queries are slow within the servlet. Only a few bigger ones do Same servlet runs fast

C3p0 connection pooling for jpa in persistence.xml not working?

淺唱寂寞╮ 提交于 2019-12-31 22:27:10
问题 I'm still getting JDBC timeouts after trying to configure c3p0 following all of the examples I could find. I'm using JPA, Hibernate, Tomcat, MySQL [AWS RDS]. Here's the snippet from persistence.xml: <property name="javax.persistence.jdbc.url" value="jdbc:mysql://url..." /> <property name="javax.persistence.jdbc.driver" value="com.mysql.jdbc.Driver" /> <property name="hibernate.dialect" value="org.hibernate.dialect.MySQLDialect" /> <property name="connection.provider_class" value="org

Spring + Hibernate + Tomcat Dependency problems

喜夏-厌秋 提交于 2019-12-31 01:54:09
问题 when I run tomcat and the war is deployed I get : NoClassDefFoundError : org/apache/commons/collections/map/LRUMap Invocation of init method failed; nested exception is java.lang.NoClassDefFoundError: org/apache/commons/collections/map/LRUMap at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:527) ~[spring-beans-3.1.0.RELEASE.jar:3.1.0.RELEASE] What is strange is that I got the commons-collections-2.1.jar (I

Setting Max HTTP Header Size With AJP / Tomcat 6.0

守給你的承諾、 提交于 2019-12-30 08:50:31
问题 If you're not using AJP, Tomcat 6.0 Connectors have a nice maxHttpHeaderSize attribute in server.xml . But if you are using AJP, that attribute is not understood. Is there any way to increase the allowed HTTP header size if you are writing an app that is using AJP? ( maxHttpHeaderSize is documented at http://tomcat.apache.org/tomcat-6.0-doc/config/http.html but there is also this in that document: "If you wish to configure the Connector that is used for connections to web servers using the

How to set context path in Tomcat so one could enter the site without appending the deployed folder name?

亡梦爱人 提交于 2019-12-30 06:02:11
问题 I read about this on Tomcat guide here and some SO questions. And I think I'm pretty much doing the same thing. But in some way cannot manage to succeed. First of all I have to say that my application is deployed on a shared Tomcat server that I have no control over. I just drop my .war file and it gets deployed. I tried to package my application as ROOT.war but didn't work. The admin told me to package it as whatever the name I want and they would take care of it. I packaged it as my

ClassNotFoundException while loading class in Tomcat using custom ClassLoader

邮差的信 提交于 2019-12-25 16:26:33
问题 I'm using Maven 3.2.3 with an embedded Tomcat. Here is my configuration. server.xml - I've defined the Loader Component within the server.xml's Context Element. The location of the file is outside the classpath under /conf/tomcat .... <Host appBase="webapps" autoDeploy="true" name="localhost" unpackWARs="true" xmlNamespaceAware="false" xmlValidation="false"> <Context docBase="../../myapp/" path="/myapp"> <Loader loaderClass="com.sample.MyClassLoader" delegate="false"

tomcat6 windows service properties default memory

亡梦爱人 提交于 2019-12-25 06:15:47
问题 Hello I have tomcat6 as a windows server. I am considering increasing the mmeory but I am not sure how much memory it currently has. It is run as a service and there is a "Configure Tomcat" icon in the start menu This has a java-tab with "Initial memory pool" and "Maximum memory pool" both of which are empty. What is the default on these? There are also some Java Options: -Djava.io.tmpdir=C:\Tomcat6\temp -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager -Djava.util.logging

tomcat6 windows service properties default memory

人走茶凉 提交于 2019-12-25 06:15:02
问题 Hello I have tomcat6 as a windows server. I am considering increasing the mmeory but I am not sure how much memory it currently has. It is run as a service and there is a "Configure Tomcat" icon in the start menu This has a java-tab with "Initial memory pool" and "Maximum memory pool" both of which are empty. What is the default on these? There are also some Java Options: -Djava.io.tmpdir=C:\Tomcat6\temp -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager -Djava.util.logging