tomcat8

Intellij and Apache Tomcat not updating

走远了吗. 提交于 2019-12-18 07:23:08
问题 I have a project going on for a couple of months now using a Spring MVC framework. For developing I am using an Apache Tomcat 8.0.17 with an exploded war file. Everything worked well since yesterday. Now when I change my Java Files the changes are no longer visible. I can even throw runtime exceptions and stuff like that (I always restart the tomcat server). The only way to "update" my code is to rebuild the whole project (Build --> Rebuild Project) which is quite time consuming and very

How to connect NetBeans 8 with Tomcat 8 in Mac OS X?

别等时光非礼了梦想. 提交于 2019-12-18 05:28:25
问题 I found other Questions and Answers dealing with getting the NetBeans IDE to talk to the Apache Tomcat servlet container. But they seem to be out of date or involve extraneous steps. I remember the process as being less complicated on my Mac. But I cannot remember the exact steps. 回答1: Indeed, getting Tomcat to talk to NetBeans is fairly simple though not obvious. Java EE edition of NetBeans If downloading NetBeans, grab an edition of NetBeans IDE already bundled with Tomcat. You may need to

java.lang.IllegalArgumentException: Invalid character (CR or LF) found in method name

僤鯓⒐⒋嵵緔 提交于 2019-12-18 04:31:41
问题 I have a Spring MVC application running on Tomcat8. Once in a day or two I get an exception in my log file 15-Jun-2016 10:43:39.832 INFO [http-nio-8080-exec-50] org.apache.coyote.http11.AbstractHttp11Processor.process Error parsing HTTP request header Note: further occurrences of HTTP header parsing errors will be logged at DEBUG level. java.lang.IllegalArgumentException: Invalid character (CR or LF) found in method name at org.apache.coyote.http11.AbstractNioInputBuffer.parseRequestLine

How to Allow ^ character in URLs for tomcat 8.5

安稳与你 提交于 2019-12-17 22:52:15
问题 I have a request URL of below format http://hostname:port/path&param1={"vars":[{"a":"val1","b":"^"},{"c":"val2","d":"^"}]}&param2=Value3|95|3%20-%206%20Months I changed catalina.properties as per this stackoverflow question . But as per tomcat documentation tomcat.util.http.parser.HttpParser.requestTargetAllow property is deprecated and relaxedPathChars and relaxedQueryChars attributes are to be used with Connector tag instead. However, when i change the xml file to below <Connector

Tomcat 8 - LDAP: NameNotFoundException error code 32, remaining name empty string

孤街醉人 提交于 2019-12-17 20:34:51
问题 Trying to migrate an application from WebLogic 12.2.1 to Tomcat 8.5.4 , what under Weblogic was an entry as Foreign JNDI Providers for an LDAP connection has been migrated to a new Resource under Tomcat. Following this advice on Stack Overflow, a custom LdapContextFactory has been packaged as a new jar file under Tomcat lib folder. In the Tomcat server.xml file the following GlobalNamingResources/Resource has been configured: <Resource name="ldapConnection" auth="Container" type="javax.naming

How do I configure this property with Spring Boot and an embedded Tomcat?

杀马特。学长 韩版系。学妹 提交于 2019-12-17 18:29:55
问题 Do I configure properties like the connectionTimeout in the application.properties file or is the somewhere else to do it? I can't figure this out from Google. Tomcat properties list I found this Spring-Boot example, but it does not include a connectionTimeout property and when I set server.tomcat.connectionTimeout=60000 in my application.properties file I get an error. 回答1: Spring Boot 1.4 and later As of Spring Boot 1.4 you can use the property server.connection-timeout . See Spring Boot's

Jenkins deploy war file to Tomcat 8

两盒软妹~` 提交于 2019-12-17 18:29:20
问题 I'm running Jenkins 1.6 (and also tried with Jenkins 2.0) on the same server where I have Tomcat 8. I need to deploy Maven multimodule application to Tomcat webapp. It has two war files from submodules that has to be deployed. Deploy plugin supports Tomcat up to 7, and it's work fine. However, the problem is that I need to use Tomcat 8, since my web application is not working on Tomcat 7. Is it possible to deploy war files from Jenkins to Tomcat 8? 回答1: Answer to your question Tomcat 7 deploy

Tomcat 8 throwing - org.apache.catalina.webresources.Cache.getResource Unable to add the resource

好久不见. 提交于 2019-12-17 10:08:35
问题 I have just upgraded Tomcat from version 7.0.52 to 8.0.14. I am getting this for lots of static image files: org.apache.catalina.webresources.Cache.getResource Unable to add the resource at [/base/1325/WA6144-150x112.jpg] to the cache because there was insufficient free space available after evicting expired cache entries - consider increasing the maximum size of the cache I haven't specified any particular resource settings, and I didn't get this for 7.0.52. I have found mention of this

The method getDispatcherType() is undefined for the type HttpServletRequest

痴心易碎 提交于 2019-12-17 02:24:35
问题 When I run my applicaiton from Eclipse it runs without any errors for servlet api 3.1.0 and 3.0.1. <dependency> <groupId>javax.servlet</groupId> <artifactId>javax.servlet-api</artifactId> <version>3.1.0</version> </dependency> I use tomcat 8.0.21 for eclipse. I have set up tomcat8 on ubuntu machine which runs on tomcat 8.0.14 stable version. Unfortunately, I get the following error message if I use servlet api 3.1.0. But it works for the older version 3.0.1. root cause org.apache.jasper

Enabling non root user to run tomcat with port 443

血红的双手。 提交于 2019-12-14 03:23:35
问题 I am trying to run tomcat with https as a non-root user. Configured server.xml with required port modification and added SSL configuration. However when I execute sudo systemctl restart tomcat get following error in catalina.out org.apache.coyote.AbstractProtocol.init Failed to initialize end point associated with ProtocolHandler ["https-jsse-nio-443"] java.net.SocketException: Permission denied at sun.nio.ch.Net.bind0(Native Method) at sun.nio.ch.Net.bind(Net.java:433) at sun.nio.ch.Net.bind