tomcat7

Check Tomcat 7 Version linux

跟風遠走 提交于 2021-02-20 11:19:44
问题 How do I check the version of tomcat 7 that is installed on RHEL? I looked in the bin directory and cannot find version.sh. 回答1: You can publish a jsp with the following scriptlet: <%= application.getServerInfo() %> Or grep catalina.out for a line like: INFO: Starting Servlet Engine: Apache Tomcat/7.0.37 Or take a look at the file org/apache/catalina/util/ServerInfo.properties inside lib/catalina.jar . Just to give you 3 options ;). 回答2: Try this to see the names and versions of any Tomcat

c:forEach not working in tomcat 7

时光怂恿深爱的人放手 提交于 2021-02-17 05:55:08
问题 I created simple page using c:forEach tag. Its working in tomcat 6. But not working tomcat 7 . Developed simple web application using JSF 2.0. I run my code in tomcat 6. its working. I deployed in tomcat 7. Its not working. c:forEach tag result not appearing. welcomeJSF.jsp <%@page contentType="text/html" pageEncoding="UTF-8"%> <%@taglib prefix="f" uri="http://java.sun.com/jsf/core"%> <%@taglib prefix="h" uri="http://java.sun.com/jsf/html"%> <%@taglib uri="http://java.sun.com/jsp/jstl/core"

Tomcat 7 + Annotations in log4j-api-2.11.1.jar

耗尽温柔 提交于 2021-02-11 10:24:54
问题 I get this exception from tomcat upon startup of the war file: Unable to process Jar entry [META-INF/versions/9/module-info.class] from Jar [jar:file:/C:/tomcat/apache-tomcat-7.0.61/webapps/monitormonitor/WEB-INF/lib/log4j-api-2.11.1.jar!/] for annotations org.apache.tomcat.util.bcel.classfile.ClassFormatException: Invalid byte tag in constant pool: 19 at org.apache.tomcat.util.bcel.classfile.Constant.readConstant(Constant.java:97) I tried to switch the log4j to an older version in the pom

request not reaching the server

南笙酒味 提交于 2021-02-08 10:30:57
问题 I am having problem with requests that stays on pending status on the browser. I am using GWT with requestfactory and Apache tomcat. I tried to see the tomcat access log but it seems that requesfactory's requests (which stays on pending) are not reaching the server. Any suggestion? 来源: https://stackoverflow.com/questions/20072015/request-not-reaching-the-server

Tomcat 7 times out during start up

做~自己de王妃 提交于 2021-02-08 09:47:09
问题 I'm running Tomcat 7 on Eclipse Indigo. Every now and then, Tomcat times out on start-up. A hit-and-miss solution I've found is to run Tomcat with the same server name and host name. I do this repeatedly and sometimes it works, sometimes it doesn't. I've also tried rotating HTTP ports between 8080, 9080, and 8081 but, as far as I'm concerned, this problem does not depend on the port. I'm also sure that the only Tomcat running is Eclipse's; I check my Task Manager. I'm wondering if anyone here

Jersey jdbc @resource not working

浪尽此生 提交于 2021-02-07 09:35:35
问题 I'm trying to have a simple Jersey based jaxrs listener, running on my existing tomcat 7.0.57. Tomcat has a global config in its context.xml for a jdbc datasource, which I want to use. My problem is that I can't get the resource to resolve via the @Resource annotation. Heres a simple test example @Path("/") public class TestJersey { @Resource(name = "jdbc/default") private DataSource dsA; @Resource(name = "java:comp/env/jdbc/default") private DataSource dsB; @Resource(lookup = "java:comp/env

Restore user login after tomcat 7 restart

北城以北 提交于 2021-02-07 08:27:30
问题 The default behaviour of tomcat sessions is to persist them on shutdown and restore them after startup. This works on my simple test application as expected. But when I add form based authentication the user login (User principal) won't get restored on tomcat restart. Even the example application located under /examples/jsp/security/protected/index.jsp does not restore the login. Is there any way to achieve session/authentication restoration without clustering/replication as suggested

Restore user login after tomcat 7 restart

落爺英雄遲暮 提交于 2021-02-07 08:20:07
问题 The default behaviour of tomcat sessions is to persist them on shutdown and restore them after startup. This works on my simple test application as expected. But when I add form based authentication the user login (User principal) won't get restored on tomcat restart. Even the example application located under /examples/jsp/security/protected/index.jsp does not restore the login. Is there any way to achieve session/authentication restoration without clustering/replication as suggested

Websocket Client Could not find an implementation class

北城余情 提交于 2021-02-06 15:24:06
问题 I will preface this with I am not using any maven dependencies, yet I know that I am missing a jar file wls-api.jar (at least that is what I have read). To remedy this I downloaded the oracle-weblogic-7.9.jar but the problem persists. The exception is thrown at this line WebSocketContainer container = ContainerProvider.getWebSocketContainer(); Can anyone tell me why this line continuously fails? UPDATE: upon further reading the examples I see use this dependency <dependency> <groupId>javax

Websocket Client Could not find an implementation class

允我心安 提交于 2021-02-06 15:23:22
问题 I will preface this with I am not using any maven dependencies, yet I know that I am missing a jar file wls-api.jar (at least that is what I have read). To remedy this I downloaded the oracle-weblogic-7.9.jar but the problem persists. The exception is thrown at this line WebSocketContainer container = ContainerProvider.getWebSocketContainer(); Can anyone tell me why this line continuously fails? UPDATE: upon further reading the examples I see use this dependency <dependency> <groupId>javax