tomcat8

JSF PrimeFaces ajax request after logout and session invalidation

允我心安 提交于 2019-12-11 13:58:42
问题 In my Spring Boot1.2.7/JSF2.2.12/PrimeFaces5.2/Tomcat 8 application I'm trying to implement redirect to login page after AJAX call on a website where /logout has been performed. In order to do this I have added JsfRedirectStrategy: /** * Inspired by <a href= * "http://stackoverflow.com/questions/10143539/jsf-2-spring-security-3-x-and-richfaces-4-redirect-to-login-page-on-session-tim">StackOverflow.com</a> * and by <a href=http://www.icesoft.org/wiki/display/ICE/Spring+Security#SpringSecurity

Configure SPDY on tomcat 8 windows

亡梦爱人 提交于 2019-12-11 13:39:45
问题 I'm developing a web application with eclipse and tomcat 8 in windows, now i want to setup SPDY. I must use apache tomcat 8, this is a constraint project. How can I configure my web application to use SPDY in tomcat 8? 回答1: UPDATE: i wrote a mail to apache users mailing list and they gave me this reply: SPDY support was experimental and for a much older version of SPDY than any current browser supports. Tomcat's SPDY support is not usable in its current form. HTTP/2 support will be available

Getting a Failed to start bean 'subProtocolWebSocketHandler' exception while trying to implement websockets

て烟熏妆下的殇ゞ 提交于 2019-12-11 13:27:21
问题 I am going through the websockets with Spring 4 tutorial here. I have it working where the server responds when client calls. However, my use case is having the server push the messages without client having to call. So I looked up online on ways to do that and came across a few posts that said that I needed to use something called SimpMessagingTemplate . So I changed the code to use the SimpMessagingTemplate . Now I get this exception in the server console: 04-Jun-2016 22:49:24.093 SEVERE

com.sun.facelets.tag.jsf.core.CoreLibrary must be an instance of org.apache.myfaces.view.facelets.tag.TagLibrary Error

大兔子大兔子 提交于 2019-12-11 11:13:33
问题 I am using Myfaces 2.2.8 and Richfaces 4.5.x jar and tomcat 8. But when launch my url I am getting an error "java.lang.Exception: com.sun.facelets.tag.jsf.core.CoreLibrary must be an instance of org.apache.myfaces.view.facelets.tag.TagLibrary" My web.xml <?xml version="1.0" encoding="UTF-8"?> <web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://xmlns.jcp.org/xml/ns/javaee" xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/javaee http://xmlns.jcp.org/xml/ns/javaee/web-app

JasperInitializer in tomcat 8 embedded mode

情到浓时终转凉″ 提交于 2019-12-11 09:28:53
问题 I'm in the process of migrating embedded tomcat application from 7.0.59 to tomcat 8.0.20 After updating the Tomcat version when I'm starting the embedded server and try to access the home page I'm getting a NullPOinterException ERROR {org.apache.catalina.core.ApplicationDispatcher} - Servlet.service() for servlet bridgeservlet threw exception java.lang.NullPointerException at org.apache.jasper.JspCompilationContext.getTldResourcePath(JspCompilationContext.java:536) at org.apache.jasper

Jersey JAX-RS ResourceConfig with Tomcat

拟墨画扇 提交于 2019-12-11 08:45:31
问题 I have a basic REST web service that works but I do have a question. Here is a brief code snip. package com.my.app; import org.glassfish.jersey.server.ResourceConfig; import javax.ws.rs.ApplicationPath; @ApplicationPath("api") public class RestApplication extends ResourceConfig { RestApplication() { packages("com.my.app"); } } And <!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN" "http://java.sun.com/dtd/web-app_2_3.dtd" > <web-app> <display-name>The name of my

Tomcat deployment failing

冷暖自知 提交于 2019-12-11 07:34:37
问题 I have 2 environments. The first one is a mac where I have installed Tomcat 8 by extracting the .zip file downloaded from Apache's homepage. The second one is a virtual machine on this mac which runs Ubuntu 15.04. I have my web application as a war-file and can deploy that on my mac's Tomcat without any problem. Now, I want to do exactly the same deployment on the Ubuntu. So I copy the Tomcat-folder over to my Ubuntu along with my war-file and try to do the same deployment there. Before I do

Tomcat 8 speed gets degraded over time

别来无恙 提交于 2019-12-11 07:05:05
问题 I am using Tomcat 8.5 to host a WAR which is used for java REST services. In my rest service, I create a connection and take a multi-part form data file from user, scan it using a scan engine and return the result. At the start, tomcat is running fine and giving a speed of almost 57-58 Mbps but degrades over time (degrades to nearly half in 5-8 min) My setenv.bat file looks like this. "set "JAVA_OPTS=%JAVA_OPTS% -Xms1024m -Xmx5120m -XX:MaxMetaspaceSize=512m -Xincgc -server"" JVM is using

Does upgrade to Spring 5 require Tomcat 8.5+

狂风中的少年 提交于 2019-12-11 06:55:59
问题 Every tutorial for the upgrade to Spring 5 has tomcat 8.5+ as a requirement but no detailed explanation. The application that I want to upgrade should not run as a standalone application with an embedded webserver, but beeing deployed on a tomcat 6, which we cannot upgrade for several reasons. 回答1: As @procrastinate_later points out, Spring 5 actually requires Servlet 3.1 (and Tomcat 8.5.x). Spring 5 has initially was expected to have Servlet 3.0+ minimum requirement which supported only from

Springboot -> Springboot 2: 2 Spring WebApplicationInitializers detected on classpath

蓝咒 提交于 2019-12-11 06:47:48
问题 I've got a web app I recently upgraded from springboot to springboot 2. When I deploy it to Tomcat 8 it seems to start but doesn't start fully. In localhost.2019-09-04.log (Tomcat) I have the following error: 2 Spring WebApplicationInitializers detected on classpath I've tried various things from this post: 2 Spring WebApplicationInitializers detected on classpath but has no luck. How can I find out which package another WebApplicationInitializers might be in? 回答1: That log is output from