catalina

Tomcat logging.properties formatter not taking effect

橙三吉。 提交于 2019-12-04 05:50:53
问题 I'm trying to adjust logging for catalina. My logging.properties for Tomcat looks like: handlers = 1catalina.org.apache.juli.FileHandler, 2localhost.org.apache.juli.FileHandler, 3manager.org.apache.juli.FileHandler, 4host-manager.org.apache.juli.FileHandler .handlers = 1catalina.org.apache.juli.FileHandler, java.util.logging.ConsoleHandler 1catalina.org.apache.juli.FileHandler.level = FINE 1catalina.org.apache.juli.FileHandler.directory = ${catalina.base}/logs 1catalina.org.apache.juli

apache tomcat catalina as maven dependency for CORS filter

自闭症网瘾萝莉.ら 提交于 2019-12-04 02:20:16
I'm using org.apache.catalina.filters.CorsFilter in my webapp. So I specify the maven dependency <dependency> <groupId>org.apache.tomcat</groupId> <artifactId>tomcat-catalina</artifactId> <version>7.0.50</version> </dependency> Now, If I say the scope is "provide" or "runtime" the server doesn't start, because of java.lang.ClassNotFoundException: org.apache.catalina.filters.CorsFilter This class is not available in the catalina jar from jbossews/lib which is 7.0.40 Is it easy to "upgrade" tomcat on openshift? or if anybody can suggest a solution, it is much appreciated. Many thanks, This

Logs are filling up with httpclient.wire.content dumps. How can I turn it off?

梦想与她 提交于 2019-12-03 15:10:02
My catalina logs are filling up with gobs of statements like: /logs/catalina.out:2010-05-05 02:57:19,611 [Thread-19] DEBUG httpclient.wire.content - >> "[0x4] [0xc][0xd9][0xf4][0xa2]MA[0xed][0xc2][0x93][0x1b][0x15][0xfe],[0xe]h[0xb0][0x1f][0xff][0xd6][0xfb] [0x8f]O[0xd4][0xc4]0[0xab][0x80][0xe8][0xe4][0xf2][\r]I&[0xaa][0xd2]BQ[0xdb](zq[0xcd]ac[0xa8] on and on forever. I searched every config file in both tomcat and apache for the statements that purportedly turn this on as described here: http://hc.apache.org/httpclient-3.x/logging.html And I don't see where this logging has been enabled. No

Failed to start component [StandardEngine[Tomcat].StandardHost[localhost].TomcatEmbeddedContext[]]

霸气de小男生 提交于 2019-12-03 15:02:37
I am trying to build a SpringBoot application. import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.SpringBootApplication; import org.springframework.context.ApplicationContext; @SpringBootApplication public class App { @SuppressWarnings("unused") public static void main(String[] args) throws Exception { ApplicationContext ctx = SpringApplication.run(App.class, args); } } But, when I try to run the app, it throws me the below error: 2017-03-27 13:55:58.281 INFO 8608 --- [ main] s.b.c.e.t.TomcatEmbeddedServletContainer : Tomcat initialized with port(s

How does URIEncoding = 'UTF-8' work?

て烟熏妆下的殇ゞ 提交于 2019-12-02 19:19:25
问题 When I view the tomcat source code at http://grepcode.com/file/repo1.maven.org/maven2/org.apache.tomcat/tomcat-catalina/7.0.0/org/apache/catalina/connector/Request.java#Request.parseParameters%28%29 I can't find where to set encoding for the queryString which comes from get method and how does the configuration URIEncoding="UTF-8" in server.xml work in this method. 回答1: The URIEncoding parameter is what you're looking for. It sets the character encoding to be used when URI decoding the query

catalina.home not being recognized by intellij

最后都变了- 提交于 2019-12-02 16:21:46
问题 I am using a property place holder to reference a file, it works when deployed, but intellij is not picking up the catalina home. I have tried setting windows environment varibale and path in intellij ide settings, makes no difference still shows an error (which borks my datasource in the ide) I could place the conf file in project directory instead, but then the project will not be portable to other tomcat installs without further jiggery pokery .... Surely there is a way that intellij will

catalina.home not being recognized by intellij

旧街凉风 提交于 2019-12-02 08:39:07
I am using a property place holder to reference a file, it works when deployed, but intellij is not picking up the catalina home. I have tried setting windows environment varibale and path in intellij ide settings, makes no difference still shows an error (which borks my datasource in the ide) I could place the conf file in project directory instead, but then the project will not be portable to other tomcat installs without further jiggery pokery .... Surely there is a way that intellij will recognize and reference correctly ${catalina.home} within my spring application context ? Sys variable

How to set solr/home in linux OS?

旧时模样 提交于 2019-12-02 00:13:51
问题 I know how to configure solr.home by using Tomcat 6, but I don't know how to set solr.home by using Glassfish(V2.1). I have tried to set the solr.home in .profile as fellows: export solr.home=/home/huenzhao/search/solr export solr/home=/home/huenzhao/search/solr export solr.solr.home=/home/huenzhao/search/solr export JAVA_OPTS=$JAVA_OPTS -Dsolr.solr.home=/home/huenzhao/search/solr and they all not work. The error is: HTTP Status 500 - Severe errors in solr configuration. Check your log files

Not able to authenticate post request for CSRF token with tomcat

纵饮孤独 提交于 2019-12-01 21:26:51
问题 I am working on a tomcat application. I am trying to add CSRF authentication token provided by catlina library(org.apache.catalina.filters.CsrfPrevention). I have added filter to web.xml <filter> <filter-name>CsrfFilter</filter-name> <filter-class>org.apache.catalina.filters.CsrfPreventionFilter</filter-class> <init-param> <param-name>entryPoints</param-name> <param-value>/Login</param-value> </init-param> </filter> <filter-mapping> <filter-name>CsrfFilter</filter-name> <url-pattern>/*</url

Not able to authenticate post request for CSRF token with tomcat

安稳与你 提交于 2019-12-01 19:21:01
I am working on a tomcat application. I am trying to add CSRF authentication token provided by catlina library(org.apache.catalina.filters.CsrfPrevention). I have added filter to web.xml <filter> <filter-name>CsrfFilter</filter-name> <filter-class>org.apache.catalina.filters.CsrfPreventionFilter</filter-class> <init-param> <param-name>entryPoints</param-name> <param-value>/Login</param-value> </init-param> </filter> <filter-mapping> <filter-name>CsrfFilter</filter-name> <url-pattern>/*</url-pattern> </filter-mapping> Also I have updated the login.jsp <% String url = '/Login?x=true'; String