tomcat8

Can't access Tomcat 8 Manager App

半腔热情 提交于 2019-11-27 01:09:52
问题 I've just set up Tomcat 8 on an Ubuntu 14.04 VM and I'm not able to access the Manager App at http://[hostname]:8080/manager/html from my browser. I get a "403 Access Denied" error as soon as I click on it. I am running Tomcat as a service defined in a config file in /etc/init.d/tomcat8-dev . The error message indicates that Tomcat is set up to be accessible only from localhost initially, but as it is a hosted VM I'm not able to run a browser on it. I have set up a user in the tomcat-users

Tomcat 8 Maven Plugin for Java 8

亡梦爱人 提交于 2019-11-27 00:25:00
Is the tomcat7-maven-plugin working with a tomcat 8 server and java 8? I can't find any tomcat8-maven-plugin . 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)* <username>*yourtomcatusername*</username> <password>*yourtomcatpassword*</password> </configuration> </plugin> tomcat

Tomcat 8 (and 9) coerce behaviour, null strings are incorrectly set as empty strings

别等时光非礼了梦想. 提交于 2019-11-26 23:23:12
问题 I have just migrated to Tomcat 8. I used to work with system property org.apache.el.parser.COERCE_TO_ZERO=false so empty strings, numbers, booleans etc. are treated as null . In Tomcat 8, EL 3.0, it is supposed to be the default but it is in fact converting null string to empty string "" on JSF side. It is supposed to be a bug and it is supposed to be corrected but I'm not able to get it working in TomEE snapshot (Tomcat 8.0.27.0, MyFaces 2.2.8). 回答1: This is a bug in the EL 3.0 specification

Run Vaadin 8.1 app under Java 9 prerelease in IntelliJ 2017.2.2

放肆的年华 提交于 2019-11-26 21:55:10
问题 In IntelliJ 2017.2.2 I am able to run a Vaadin 8.1.2 app (brand-new vaadin-archetype-application archetype) with Tomcat 8.5.20 under Java 9+181 if the Project Structure > Project SDK is set to Java 1.8. If Project Structure > Project SDK is set to Java 9 I get this compiler error around FillIn with assertion error about filling something to do with Vaadin MouseEvents. I have tried googling but found no clues. Information:java: An exception has occurred in the compiler (9). Please file a bug

Should I add both JAVA_HOME and JRE_HOME in environmental variable, PATH?

|▌冷眼眸甩不掉的悲伤 提交于 2019-11-26 21:01:27
问题 I ran into this error while setting up my Tomcat and Java environmental path: Neither the JAVA_HOME nor the JRE_HOME environmental variables is defined. At least one of the 2 environmental variables is needed to run this program. In the user variables: I created JAVA_HOME variables and add C:\Program Files\Java\jdk1.8.0_25 to its path. and then did an edit of system variable PATH , added C:\Program Files\Java\jdk1.8.0_25; to the beginning of the its path. I also created JRE_HOME in user

java.lang.IllegalArgumentException: Invalid character found in method name. HTTP method names must be tokens

依然范特西╮ 提交于 2019-11-26 19:21:36
问题 I am getting below stack trace when I am deploying my application in a multi-server Apache Tomcat 8 environment. I am getting this error frequently, and it seems it is blocking the tomcat thread: INFO [http-nio-80-exec-4461] 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 found in method name. HTTP method names

Expected an array of objects but got an object in an object

断了今生、忘了曾经 提交于 2019-11-26 18:36:07
问题 In a project I'm currently working on I got an angular exception: Error: [$resource:badcfg] Error in resource configuration. Expected response to contain an array but got an object? In my search to find a solution I entered the URL of the web service directly into my browser and surprisingly I did not receive an array as expected. The web service class: @Path("/menu") public class MenuHandler { @GET @Path("/cls") @Produces(MediaType.APPLICATION_JSON) public List<Clazz> getCLSs() { Clazz clazz

How to change Cookie Processor to LegacyCookieProcessor in tomcat 8

你。 提交于 2019-11-26 16:42:33
问题 My code is working on tomcat 8 version 8.0.33 but on 8.5.4 i get : An invalid domain [.mydomain] was specified for this cookie. I have found that Rfc6265CookieProcessor is introduced in tomcat 8 latest versions. It says on official doc that this can be reverted to LegacyCookieProcessor in context.xml but i don't know how. Please let me know how to do this. Thanks 回答1: You can try in context.xml <CookieProcessor className="org.apache.tomcat.util.http.LegacyCookieProcessor" /> reference: https:

Adding external resources to class-path in Tomcat 8

泄露秘密 提交于 2019-11-26 13:17:28
问题 I have a Tomcat application which needs to reference some properties files that are external to the app. Generally these are stored on a local machine at a specific place like C:\PROJECT_NAME\conf\ . In Tomcat 7 this was achievable by placing a context.xml file inside of /META-INF/ which used a VirtualWebappLoader to essentially add this location to the application classpath as follows: <Context> <Loader className="org.apache.catalina.loader.VirtualWebappLoader" virtualClasspath="/PROJECT

403 Access Denied on Tomcat 8 Manager App without prompting for user/password

北慕城南 提交于 2019-11-26 13:01:38
问题 I have set up tomcat 8 according to this, and I have the following tomcat-users.xml file: <?xml version=\"1.0\" encoding=\"UTF-8\"?> <tomcat-users xmlns=\"http://tomcat.apache.org/xml\" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xsi:schemaLocation=\"http://tomcat.apache.org/xml tomcat-users.xsd\" version=\"1.0\"> <role rolename=\"manager-gui\"/> <role rolename=\"manager-script\"/> <user username=\"notadmin\" password=\"not_real_pass\" roles=\"manager-gui\"/> <user username=\