tomcat8

The method getDispatcherType() is undefined for the type HttpServletRequest

喜夏-厌秋 提交于 2019-11-26 11:56:20
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.JasperException: Unable to compile class for JSP: An error occurred at line: [50] in the generated java file

Tomcat 8 enable debug logging to list unneeded jars

半腔热情 提交于 2019-11-26 11:28:02
问题 When starting Tomcat 8 on Arch Linux ARM I get the following warning: INFO: At least one JAR was scanned for TLDs yet contained no TLDs. Enable debug logging for this logger for a complete list of JARs that were scanned but no TLDs were found in them. Skipping unneeded JARs during scanning can improve startup time and JSP compilation time.` I already modified ${catalina.home}/logging.properties like described here: How to fix JSP compiler warning: one JAR was scanned for TLDs yet contained no

Tomcat 8 is not able to handle get request with &#39;|&#39; in query parameters?

爷,独闯天下 提交于 2019-11-26 09:29:44
问题 I am using Tomcat 8. In one case I need to handle external request coming from external source where the request has a parameters where it is separated by | . Request is looks like this: http://localhost:8080/app/handleResponse?msg=name|id| In this case I am getting following error. java.lang.IllegalArgumentException: Invalid character found in the request target. The valid characters are defined in RFC 7230 and RFC 3986 at org.apache.coyote.http11.Http11InputBuffer.parseRequestLine

Tomcat 8 Maven Plugin for Java 8

好久不见. 提交于 2019-11-26 09:22:14
问题 Is the tomcat7-maven-plugin working with a tomcat 8 server and java 8? I can\'t find any tomcat8-maven-plugin . 回答1: Yes you can, In your pom.xml, add the tomcat plugin. (You can use this for both Tomcat 7 and 8): pom.xml <!-- Tomcat plugin --> <plugin> <groupId>org.apache.tomcat.maven</groupId> <artifactId>tomcat7-maven-plugin</artifactId> <version>2.2</version> <configuration> <url>http:// localhost:8080/manager/text</url> <server>TomcatServer</server> *(From maven > settings.xml)*

Getting NoSuchMethodError:javax.servlet.ServletContext.getVirtualServerName()

被刻印的时光 ゝ 提交于 2019-11-26 08:27:30
问题 I am facing an issue during deployment of a service in Tomcat 8. Getting following error : Caused by: java.lang.NoSuchMethodError: javax.servlet.ServletContext.getVirtualServerName()Ljava/lang/String; at org.apache.tomcat.websocket.server.WsServerContainer.(WsServerContainer.java:149) at org.apache.tomcat.websocket.server.WsSci.init(WsSci.java:131) at org.apache.tomcat.websocket.server.WsSci.onStartup(WsSci.java:47) at org.apache.catalina.core.StandardContext.startInternal(StandardContext