tomcat8

springSecurityService.principal returns Null when deployed as a WAR in tomcat 8.5

故事扮演 提交于 2019-12-23 09:19:51
问题 Preamble I'm designing an API gateway for a Grails microservice federation. This issue seems related to a bunch of issues already filed in this repository but nothing provides a solution. Versions and Configurations Grails: 3.2.2 Tomcat: 8.5 Plugin versions: compile 'org.grails.plugins:spring-security-core:3.1.2' compile "org.grails.plugins:spring-security-rest:2.0.0.M2" I'm using spring security rest plugin for only token authentication. I'm doing the authorization part myself by returning

PHP on Tomcat 8

佐手、 提交于 2019-12-23 08:07:16
问题 I had found quite a few guides how to make PHP run on Tomcat, but all were on previous versions. I tried all of them and all I could manage to display is a blank page and the code is still not fired. I understand that Tomcat is build for Java application and not PHP, but I need to find a way to do that with Tomcat 8. Does any of you know a resource that could help me with this? I tried the guides in the following links, but without luck: http://tojackwu.blogspot.com/2008/10/php-5-on-tomcat-6

set umask for tomcat8 via tomcat.service

喜你入骨 提交于 2019-12-23 07:07:38
问题 I am trying to set a custom umask for a tomcat 8 instance, tried to make it the good way by using the UMask directive in systemd tomcat unit as seen here without luck. I'd like to set a 022 umask cause the company dev needs to access tomcat / application logs and they are not in the same group as the tomcat user.... the crazy thing is that the systemd doc says : Controls the file mode creation mask. Takes an access mode in octal notation. See umask(2) for details. Defaults to 0022. But the

Redirect has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header

前提是你 提交于 2019-12-23 04:52:09
问题 I am working on Azure AD interactive login from my webapp. When a user logs in to my site he is redirected to the Azure login page, authenticated and returned to my site. This process involves a request to login.windows.net which redirects my browser to login.microsoftonline.com(which does the authentication). However I am getting a cors issue which states that redirect to login.microsoftonline.com has been blocked doe to no "Access Control Allow Origin" header from the requested source. I

Tomcat 8.5.29 HTTP/2 is not supporting GZIP compression

我与影子孤独终老i 提交于 2019-12-23 03:23:21
问题 I am using Tomcat 8.5.29 and using the respective configuration,I have enabled the HTTP2 support for the site. Below is the configuration in server.xml file. <Connector port="443" protocol="org.apache.coyote.http11.Http11AprProtocol" maxThreads="150" SSLEnabled="true" compressableMimeType="text/html,text/xml,text/plain,text/css,text/javascript,application/javascript,application/json" compression="on" compressionMinSize="1024" > <UpgradeProtocol className="org.apache.coyote.http2.Http2Protocol

Enable CORS on Tomcat 8.0.30

巧了我就是萌 提交于 2019-12-23 03:12:17
问题 Appreciate any help. I'm facing the problem with the CORS on my newly deployed Tomcat 8.0.30. I keep getting the error below. I am using 127.0.0.1 as the API server address and 192.168.1.100 is the address of my HTTP server. No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin '_http://192.168.1.100:8999' is therefore not allowed access. The response had HTTP status code 403. Read through whole Tomcat documentation, added the cors filter under the tomcat web

java.lang.IllegalArgumentException: The type specified [com.sun.faces.application.WebappLifecycleListener] is not one of the expected listener types

被刻印的时光 ゝ 提交于 2019-12-23 02:53:04
问题 I got following problem: I got an application working with Java 8 and tomcat 7. Now I try to move on to tomcat 8. An a development env I downloaded the tomcat 8 binaries and startet working in eclipse. I added a new Server (Apache tomcat 8). Not I want to make my application running on the new tomcat 8. But I got following exceptions, which I can't fix: java.lang.ClassNotFoundException: org.apache.catalina.core.JasperListener WARNING: Catalina.start using conf/server.xml: Error at (28, 66) :

BonCode Connector, IIS 7.5 & Tomcat 8, Intermittent Generic Connector Error

自闭症网瘾萝莉.ら 提交于 2019-12-22 11:35:53
问题 I have a JSP web-app hosted on IIS 7.5 & Tomcat 8.0.30 via BonCode AJP13 v1.0.26 on Win 2008 R2 64 bit. On the production environment, some users are getting an intermittent BonCode error: Generic Connector Error: Please check... Has anyone got a known working configuration for BonCode 1.0.26, IIS 7.5 & Tomcat 8? Details The users affected seem to be roaming laptops and home-workers that connect via a VPN ie desktops seem unaffected. There is no authentication on Tomcat / JSP web-app. A

Fix Error code: ssl_error_no_cypher_overlap on Tomcat 8

断了今生、忘了曾经 提交于 2019-12-22 10:44:25
问题 I have a cheap SSL certificate which I want to configure with Tomcat 8.0.26 I run this command on Linux to create keystore: [root@ cert]# keytool -import -alias root -keystore tomcat.jks -trustcacerts -file AddTrustExternalCARoot.crt Enter keystore password: Re-enter new password: Certificate already exists in system-wide CA keystore under alias <addtrustexternalroot> Do you still want to add it to your own keystore? [no]: yes Certificate was added to keystore [root@ cert]# keytool -import

incompatible version [1.1.34] of the APR based Apache Tomcat Native library

回眸只為那壹抹淺笑 提交于 2019-12-22 04:44:06
问题 On my openSUSE Leap 42.3 server during Spring Boot 2.0.0.M6 application startup on Embedded Tomcat server I'm seeing the following error in the logs: ERROR 30471 --- [main] o.a.catalina.core.AprLifecycleListener: An incompatible version [1.1.34] of the APR based Apache Tomcat Native library is installed, while Tomcat requires version [1.2.14] Could you please explain what should be fixed there(and where) in order to avoid this error? 回答1: Since the answer was incomplete for me and it is the