tomcat7

An incompatible version 1.1.22 of the APR based Apache Tomcat Native library is installed, while Tomcat requires version 1.1.24

我们两清 提交于 2020-01-03 03:08:33
问题 I installed apache apr on ubuntu 10.04 with sudo apt-get install libtcnative-1 When I stated my tomcat I got the following error: Aug 07, 2013 6:57:32 PM org.apache.catalina.core.AprLifecycleListener init SEVERE: An incompatible version 1.1.22 of the APR based Apache Tomcat Native library is installed, while Tomcat requires version 1.1.24 How do I have to fix that error? 回答1: I created a script for compiling Apache Tomcat Native library: #!/bin/bash export APR_PATH=/usr/bin/apr-1-config

Why not to use / as a context path in maven tomcat?

≡放荡痞女 提交于 2020-01-03 02:18:09
问题 I'm using maven tomcat plugin to deploy an app. It does deploy in root context if I set path to <path>/<path> but I want to know if it causes any problems because the docs explicitly says " Do not use / ". Related question: How to set context path to root(“/”) in Tomcat 7.0 when using Maven Why not to use / as path in maven tomcat? 回答1: The JavaDoc pointing out to "Do not use /" was introduced in this commit: (MTOMCAT-102) Add a mojo to build a standalone jar to run a web application: use

Spring 3.2 Long polling causing SPRING_SECURITY_CONTEXT to be cleared

这一生的挚爱 提交于 2020-01-02 08:16:09
问题 I am using Spring 3.2 Milestone 1 to implement a service with long polling. However for some reason Spring Security (3.1.2) clears the SPRING_SECURITY_CONTEXT immediately after the first deffered result either expires (asynctimeout has been reached and tomcat responds with http.200) or some response is send back to the client. Using Spring Security 3.1.0 this only happens under certain circumstances (HTTPS and client is behind some hardware firewall) but with 3.1.2 it happens always (after

Unable to use JNDI DataSource provided by Tomcat in Spring?

对着背影说爱祢 提交于 2020-01-02 04:16:06
问题 I want to use JNDI DataSource provided by Tomcat in Spring based application. I use Tomcat 7 pool. Tried to configure as described here. Configured server.xml of Tomcat: <GlobalNamingResources> <Resource name="jdbc/ApsuserAtAzistst" auth="Container" type="org.apache.tomcat.jdbc.pool.DataSource" driverClassName="oracle.jdbc.OracleDriver" url="jdbc:oracle:thin:@10.0.153.10:1525:AZISTST" username="APSUSER" password="PASSWORDOFAPSUSER" initialSize="1" minIdle="1" maxIdle="1" maxActive="3" maxWait

tomcat and netbeans deployment errors

喜你入骨 提交于 2020-01-02 04:10:27
问题 Yesterday Tomcat was running ok, but today when I try to run my web-app I get a load of errors and Tomcat does not start. I did not change anything so I have no idea why this is happening. Below is a list of what I am getting. Can you help me resolve this? Using CATALINA_BASE: "C:\apache" Using CATALINA_HOME: "C:\apache" Using CATALINA_TMPDIR: "C:\apache\temp" Using JRE_HOME: "C:\Program Files\Java\jdk1.6.0_29" Using CLASSPATH: "C:\apache\bin\bootstrap.jar;C:\apache\bin\tomcat-juli.jar" 16

Could not find or load main class org.apache.catalina.startup.Bootstrap

China☆狼群 提交于 2020-01-02 00:19:12
问题 When I run apache tomcat7.0.56 in Eclipse, I get an error Error: Could not find or load main class org.apache.catalina.startup.Bootstrap How can I fix the problem? 回答1: First of all you should try to run TOMCAT using it's own .bat and not Eclipse. If it doesn't run problems would be on your tomcat installation and not in Eclipse and you could take a look to the files of TOMCAT_HOME/logs/ where Tomcat's errors are traced (they are so helpful). Anyway, if it runs properly out of eclipse, try to

Could not find or load main class org.apache.catalina.startup.Bootstrap

拜拜、爱过 提交于 2020-01-02 00:19:01
问题 When I run apache tomcat7.0.56 in Eclipse, I get an error Error: Could not find or load main class org.apache.catalina.startup.Bootstrap How can I fix the problem? 回答1: First of all you should try to run TOMCAT using it's own .bat and not Eclipse. If it doesn't run problems would be on your tomcat installation and not in Eclipse and you could take a look to the files of TOMCAT_HOME/logs/ where Tomcat's errors are traced (they are so helpful). Anyway, if it runs properly out of eclipse, try to

SEVERE: Unable to process Jar entry [module-info.class] in Tomcat 7 && Java 8

天涯浪子 提交于 2020-01-01 19:16:30
问题 I deployed war files in tomcat 7 , java 8 && Eclipse Version: Luna Service Release 1 (4.4.1) While running it is showing following error. INFO: validateJarFile(D:\EclipseWorkspace.metadata.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps\administration\WEB-INF\lib\javax.el-api-3.0.0.jar) - jar not loaded. See Servlet Spec 3.0, section 10.7.2. Offending class: javax/el/Expression.class Oct 30, 2018 4:03:19 PM org.apache.catalina.startup.ContextConfig processAnnotationsJar SEVERE: Unable to

How to re-deploy a hibernate-c3p0 project on tomcat 7 without getting strange c3p0 errors

半城伤御伤魂 提交于 2020-01-01 19:08:13
问题 If the project is re-deployed through netbeans on tomcat 7 then I get errors like java.lang.IllegalStateException at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1600) at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1559) at com.mchange.v2.resourcepool.BasicResourcePool.checkIdleResources(BasicResourcePool.java:1481) at com.mchange.v2.resourcepool.BasicResourcePool.access$2000(BasicResourcePool.java:32) at com.mchange.v2

Tomcat hosting multiple virtual host with multiple SSL certificate

我的未来我决定 提交于 2020-01-01 10:37:27
问题 I have a server hosting multiple websites using Tomcat 7, for example a.abc.com b.abc.com c.def.com d.def.com Using tomcat's virtual hosting feature, so they each may belong to different webapps folder. We're now trying to implement Https to each of the sites. So basically we got 2 wildcard certificates, *.abc.com, and *.def.com I've been looking for the ways to setup and I found: This where it taught me how to setup SSL with tomcat This where it taught me how to setup multiple Host with