Maven Flex - fix swf content size - actionscript-3

Some months ago I developed a 220x20 flash movie with a 20x20 image on the left and a label next to the image with FlashDevelop and today I wanted to port the project into a maven project.
So far so good, I got my swf file but the content inside the flash movie gets resized relative to the flash movie's size so the image and label got resized to a 1 pixel line on the upper edge of the flash movie ...
my pom.xml
<properties >
<flex.sdk.version>4.5.1.21328</flex.sdk.version>
<flexmojos.version>4.0-RC2</flexmojos.version>
</properties >
<build>
<finalName>clipboard-action</finalName>
<sourceDirectory>src/main/as3</sourceDirectory>
<plugins>
<plugin>
<groupId>org.sonatype.flexmojos</groupId>
<artifactId>flexmojos-maven-plugin</artifactId>
<version>${flexmojos.version}</version>
<extensions>true</extensions>
<configuration>
<sourceFile>com.someco/Main.as</sourceFile>ß
</configuration>
<dependencies>
<dependency>
<groupId>com.adobe.flex</groupId>
<artifactId>compiler</artifactId>
<version>${flex.sdk.version}</version>
<type>pom</type>
</dependency>
</dependencies>
<executions>
<execution>
<id>html-wrapper</id>
<goals>
<goal>wrapper</goal>
</goals>
<configuration>
<parameters>
<swf>${project.build.finalName}</swf>
<width>220</width>
<height>22</height>
<bgcolor>#FFFFFF</bgcolor>
</parameters>
<htmlName>index</htmlName>
</configuration>
</execution>
<execution>
<goals>
<goal>compile-swf</goal>
</goals>
<configuration>
<compiler>
<optimize>true</optimize>
</compiler>
<default-size>
<width>220</width>
<height>22</height>
</default-size>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
<dependencies>
<dependency>
<groupId>com.adobe.flex.framework</groupId>
<artifactId>flex-framework</artifactId>
<version>${flex.sdk.version}</version>
<type>pom</type>
</dependency>
</dependencies>
If I view the swf file only in the browser the movie has a 100% heigth and 100% width. If I view the swf inside a html page and set the html tags to width 220 and heigth 20 the flash movie gets resized correctly but the content of the movie gets resized to 1 pixel? So I assume the resizing mechanism is somehow relative?
So where can I set the width and heigth or absolute/relative resizing?
NOTES: the project only consists of the Main.as file and NO mxml file (I dont know what these mxml files do ...)

After searching and searching I found the solution on stackoverflow, yay!
See: https://stackoverflow.com/a/3048280/1879409
I don't know how FlashDevelop handled the compilation and resizing, I configured the heigth and width somewhere in FlashDevelop and I think the Tool just added some parameters to the compiler command or something else ...

Related

Thymeleaf not displaying fragments

I am trying to learn Thymeleaf and when using th:fragment and th:replace or th:insert, nothing is displayed on the page. This is in intellij Idea using the spring boot framework.
What I've tried:
Changing routing on th:insert (ex. th:insert="fragments/test::test">)
Trying different code in the fragment
Changing test.html to include / not include "xmlns:th="http://www.thymeleaf.org""
Stopping / restarting Apache Tomcat for every single change I make
pom.xml:
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>2.7.2</version>
<relativePath/> <!-- lookup parent from repository -->
</parent>
<groupId>com.example</groupId>
<artifactId>SC2Hub</artifactId>
<version>0.0.1-SNAPSHOT</version>
<name>SC2Hub</name>
<description>SC2Hub</description>
<properties>
<java.version>18</java.version>
</properties>
<dependencies>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-thymeleaf</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-web</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-test</artifactId>
<scope>test</scope>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
</plugin>
</plugins>
</build>
</project>
index.html:
<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org" lang="en">
<head>
<meta charset="UTF-8">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap#4.3.1/dist/css/bootstrap.min.css" integrity="sha384-ggOyR0iXCbMQv3Xipma34MD+dH/1fQ784/j6cY/iJTQUOhcWr7x9JvoRxT2MZw1T" crossorigin="anonymous">
<title>Title</title>
</head>
<body>
<div th:insert="test::test"></div>
<div th:replace="test::test"></div>
</body>
</html>
test.html:
<div th:fragment="test">
<h1>Hello from the fragment!</h1>
</div>
File structure:
project
--src
----resources
------static
--------index.html
------templates
--------fragments
----------test.html
From the given code I see 2 issues. The first is that your index.html is not inside the templates folder, all files used by thymeleaf should be inside this folder unless you've overriden the default value of where thymeleaf looks for files.
After that as mentioned by #andrewJames fragment calls should be relative to the thymeleaf source folder (by default src/main/resources/templates) and in your case that would be <div th:replace="fragments/test::test"></div>

Spring Boot Applying Older Version of CSS File to JSP

I have a Spring Boot project which has a MainMenu.jsp which is as follows:
<%# taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%# page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script>
<title>Test</title>
<link rel="stylesheet" href="${pageContext.request.contextPath}/css/style.css">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<div class="navheader">
<h2>Test</h2>
<c:if test="${pageContext.request.userPrincipal.name != null}">
<form id="logoutForm" method="POST" action="${contextPath}/logout">
<input type="hidden" name="${_csrf.parameterName}" value="${_csrf.token}"/>
</form>
<h2>Welcome ${pageContext.request.userPrincipal.name} | <a onclick="document.forms['logoutForm'].submit()">Logout</a></h2>
</c:if>
</div>
</head>
<body>
<ul>
<li>Groups</li>
<li>Frameworks</li>
</ul>
</body>
</html>
I'm using a style.css file located under resources/static/css, and my browser locates it successfully as it does not return a 404 error. However any changes I make are not reflected - it appears to be using an older version of the CSS. I suspect it is using the CSS from style.css before I changed the style sheet's href from
"/css/style.css" to "${pageContext.request.contextPath}/css/style.css"
If the path is correct, why isn't it applying my CSS? If the path isn't correct, why is it using an older version and not giving a 404 for not finding the file?
Edit: my pom.xml
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>2.3.2.RELEASE</version>
<relativePath/> <!-- lookup parent from repository -->
</parent>
<groupId>samuelB</groupId>
<artifactId>capripol</artifactId>
<version>0.0.1-SNAPSHOT</version>
<packaging>war</packaging>
<name>Capripol</name>
<description>Demo project for Spring Boot</description>
<properties>
<java.version>1.8</java.version>
</properties>
<dependencies>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-data-jpa</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-security</artifactId>
</dependency>
<dependency>
<groupId>org.apache.tomcat.embed</groupId>
<artifactId>tomcat-embed-jasper</artifactId>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>javax.servlet</groupId>
<artifactId>jstl</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-web</artifactId>
</dependency>
<dependency>
<groupId>mysql</groupId>
<artifactId>mysql-connector-java</artifactId>
<scope>runtime</scope>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-test</artifactId>
<scope>test</scope>
<exclusions>
<exclusion>
<groupId>org.junit.vintage</groupId>
<artifactId>junit-vintage-engine</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>log4j</groupId>
<artifactId>log4j</artifactId>
<version>1.2.17</version>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
</plugin>
</plugins>
</build>
</project>
Browsers cache css files based on settings, in your development setup you can disable cache in the browser to always load the new files when the site loads. For example if you are using Chrome you can do so by ticking the Disable Cache box in Developer tools, network tab.
For production system, you can avoid css caching by using a version number in the css filename.
also read : Browser Caching of CSS files

Images not displaying on web page in simple Spring Boot application

I'm trying to load a basic homepage just to try out Spring Boot and the images are not being loaded.
I've tried all sorts of different URL combinations to check whether the class path is wrong. Earlier I had an images folder within the static folder but this did not work either. I've removed adblock extensions, I've tried on both Firefox and Chrome browsers, I inspected the elements on the page for the image path and the response header. I have added no configuration to application.properties. I tried with and without the #EnableAutoConfiguration annotation as per https://docs.spring.io/spring-boot/docs/current/reference/htmlsingle/#getting-started-first-application-auto-configuration
The one thing I noticed was that the GET requests are all returning 200OK, as opposed to 404, and the type on the network tab is listed as text/html, whereas the Spring icon image used in the webpage title is listed as image/x-icon, but I don't know if that's the issue.
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
#Controller
#EnableAutoConfiguration
public class HomeController {
#GetMapping
public String home2() {
return "home2";
}
}
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml"
xmlns:th="http://www.thymeleaf.org">
<head>
<meta charset="UTF-8">
<title>PuppR Home</title>
</head>
<body>
<h1>Homepage</h1>
<img src="jpx10.jpg"/>
<img src="/jpx10.jpg"/>
<img src="static/jpx10.jpg"/>
<img src="/static/jpx10.jpg"/>
<img src="../static/jpx10.jpg"/>
<img src="/../static/jpx10.jpg"/>
</body>
</html>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-thymeleaf</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-web</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-devtools</artifactId>
<scope>runtime</scope>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-test</artifactId>
<scope>test</scope>
</dependency>
</dependencies>
I'm including links to images of my project structure as I don't have enough reputation to post images
https://i.imgur.com/gHdyS74.png
an image of the actual webpage generated with broken links, and the network console
https://i.imgur.com/0pXpyMQ.png
Try this, <img src="../static/jpx10.jpg" width="1000" th:src="#{/jpx10.jpg}"/>

Liferay: jsf portlet and navigation from commandButton with view params

I am using Lifreay 6.2 with primefaces 6.0.
I have these two simple views:
view.xhtml
<f:view xmlns="http://www.w3.org/1999/xhtml"
xmlns:c="http://java.sun.com/jsp/jstl/core"
xmlns:f="http://java.sun.com/jsf/core"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:ui="http://java.sun.com/jsf/facelets"
xmlns:p="http://primefaces.org/ui">
<h:head />
<f:metadata>
<f:viewParam name="fromPlace"
value="#{modelBean.fromPlace}" />
</f:metadata>
<h:body>
<h:form>
<p:inputText id="foo"
value="#{modelBean.fromPlace}" />
<p:commandButton value="submit"
action="search?faces-redirect=true&includeViewParams=true" />
</h:form>
</h:body>
</f:view>
search.xtml
<f:view xmlns="http://www.w3.org/1999/xhtml"
xmlns:c="http://java.sun.com/jsp/jstl/core"
xmlns:f="http://java.sun.com/jsf/core"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:ui="http://java.sun.com/jsf/facelets"
xmlns:p="http://primefaces.org/ui">
<h:head />
<f:metadata>
<f:viewParam name="fromPlace"
value="#{modelBean.fromPlace}" />
</f:metadata>
<h:body>
#{param.fromPlace}
#{modelBean.fromPlace}
</h:body>
</f:view>
The goal of this is simple. Type a value on the inputText element, click the submit button, and then redirect to the second page and show the result. The reason I have a command button is that I want in the future to execute some backing bean action and dynamically return the redirect viewId, but right now is irrelevant.
My question is this.. If I put ajax=false at the command button component, everything works as expected. If I put ajax=true at the command button component, I get a weird error ONLY when my input contains spaces. If it doesn't contain spaces, it works again as expected. Putting the parameters manually at the URL string didn't work either, regadless of various tries of encoding etc. Also, with regular jsf components (like here) same thing happens. In the eclipse console the following lines appear:
14:42:20,856 ERROR [BridgeContextImpl:234] Illegal character in query at index 79: /test-portlet/WEB-INF/views/search.xhtml?fromPlace=123 321&_bridgeAjaxRedirect=true
java.net.URISyntaxException: Illegal character in query at index 79: /test-portlet/WEB-INF/views/search.xhtml?fromPlace=123 321&_bridgeAjaxRedirect=true
Is this behavior normal?
Edit: I created a new jsf portlet project using the archetype provided from liferayfaces.org/ and then I imported it as an existing maven project but a similar error appears.
error
15:54:11,198 ERROR [ExceptionHandlerAjaxImpl:75] javax.portlet.faces.BridgeException: java.net.URISyntaxException: Illegal character in query at index 110: /com.mycompany.my.primefaces.portlet-portlet/WEB-INF/views/search.xhtml?_jsfBridgeRedirect=true&fromPlace=1234 1234
javax.faces.FacesException: javax.portlet.faces.BridgeException: java.net.URISyntaxException: Illegal character in query at index 110: /com.mycompany.my.primefaces.portlet-portlet/WEB-INF/views/search.xhtml?_jsfBridgeRedirect=true&fromPlace=1234 1234
pom.xml
<?xml version="1.0"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>com.mycompany</groupId>
<artifactId>com.mycompany.my.primefaces.portlet</artifactId>
<packaging>war</packaging>
<name>com.mycompany.my.primefaces.portlet</name>
<version>1.0-SNAPSHOT</version>
<properties>
<faces.api.version>2.2</faces.api.version>
<liferay.faces.bridge.ext.version>3.0.0</liferay.faces.bridge.ext.version>
<liferay.faces.bridge.version>4.0.0</liferay.faces.bridge.version>
<mojarra.version>2.2.13</mojarra.version>
</properties>
<build>
<plugins>
<plugin>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.3</version>
<configuration>
<encoding>UTF-8</encoding>
<source>1.7</source>
<target>1.7</target>
</configuration>
</plugin>
<plugin>
<artifactId>maven-war-plugin</artifactId>
<version>2.3</version>
<configuration>
<filteringDeploymentDescriptors>true</filteringDeploymentDescriptors>
</configuration>
</plugin>
</plugins>
</build>
<dependencies>
<dependency>
<groupId>commons-fileupload</groupId>
<artifactId>commons-fileupload</artifactId>
<version>1.3.1</version>
<optional>true</optional>
</dependency>
<dependency>
<groupId>commons-io</groupId>
<artifactId>commons-io</artifactId>
<version>2.4</version>
<optional>true</optional>
</dependency>
<dependency>
<groupId>javax.faces</groupId>
<artifactId>javax.faces-api</artifactId>
<version>${faces.api.version}</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.glassfish</groupId>
<artifactId>javax.faces</artifactId>
<version>${mojarra.version}</version>
<scope>runtime</scope>
</dependency>
<dependency>
<groupId>com.liferay.faces</groupId>
<artifactId>com.liferay.faces.bridge.ext</artifactId>
<version>${liferay.faces.bridge.ext.version}</version>
</dependency>
<dependency>
<groupId>com.liferay.faces</groupId>
<artifactId>com.liferay.faces.bridge.impl</artifactId>
<version>${liferay.faces.bridge.version}</version>
</dependency>
<dependency>
<groupId>log4j</groupId>
<artifactId>log4j</artifactId>
<version>1.2.14</version>
</dependency>
<dependency>
<groupId>org.primefaces</groupId>
<artifactId>primefaces</artifactId>
<version>6.0</version>
</dependency>
</dependencies>
</project>
web.xml
<?xml version="1.0" encoding="UTF-8"?>
<web-app xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd" version="3.0">
<!-- Seting the JSF 2 PROJECT_STAGE to Development will cause the JSF implementation will do the following at runtime: -->
<!-- 1. Log more verbose messages. -->
<!-- 2. Render tips and/or warnings in the view markup. -->
<!-- 3. Cause the default ExceptionHandler to display a developer-friendly error page. -->
<context-param>
<param-name>javax.faces.PROJECT_STAGE</param-name>
<param-value>Development</param-value>
</context-param>
<!-- JSF 2.2 now allows for composite components and resources to be hidden under WEB-INF -->
<context-param>
<param-name>javax.faces.WEBAPP_RESOURCES_DIRECTORY</param-name>
<param-value>/WEB-INF/resources</param-value>
</context-param>
<!-- Although the FacesServlet will not be invoked by any portlet requests, it is required to initialize JSF. -->
<servlet>
<servlet-name>Faces Servlet</servlet-name>
<servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
<load-on-startup>1</load-on-startup>
</servlet>
<security-constraint>
<display-name>Prevent direct access to Facelet XHTML</display-name>
<web-resource-collection>
<web-resource-name>Facelet XHTML</web-resource-name>
<url-pattern>*.xhtml</url-pattern>
</web-resource-collection>
<auth-constraint/>
</security-constraint>
</web-app>
liferay-portlet.xml
<?xml version="1.0"?>
<!DOCTYPE liferay-portlet-app PUBLIC "-//Liferay//DTD Portlet Application 6.2.0//EN" "http://www.liferay.com/dtd/liferay-portlet-app_6_2_0.dtd">
<liferay-portlet-app>
<portlet>
<portlet-name>com.mycompany.my.primefaces.portlet</portlet-name>
<icon>/resources/images/icon.png</icon>
<requires-namespaced-parameters>false</requires-namespaced-parameters>
<ajaxable>false</ajaxable>
</portlet>
<role-mapper>
<role-name>administrator</role-name>
<role-link>Administrator</role-link>
</role-mapper>
<role-mapper>
<role-name>guest</role-name>
<role-link>Guest</role-link>
</role-mapper>
<role-mapper>
<role-name>power-user</role-name>
<role-link>Power User</role-link>
</role-mapper>
<role-mapper>
<role-name>user</role-name>
<role-link>User</role-link>
</role-mapper>
</liferay-portlet-app>
Edit: FACES-2958 has been fixed as of Bridge Impl 4.1.1 and Bridge Ext 5.0.2.
You are running into a bug: FACES-2958.
As you've found, you can workaround this issue by using the commandButton without ajax.
p:commandButton:
<p:commandButton value="submit"
action="search?faces-redirect=true&includeViewParams=true"
ajax="false" />
h:commandButton:
<h:commandButton value="submit"
action="search?faces-redirect=true&includeViewParams=true" />

Css files treated as html files after merge

I had two branches on github. The second one was for the front integration and worked perfectly untill I merged it with the master.
My index.jsp file:
<%# page contentType="text/html;charset=UTF-8" language="java" %>
<%# taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%# taglib prefix="ex" uri="/WEB-INF/custom.tld" %>
<html>
<jsp:include page="pages/headFragment.jsp"/>
<body>
<body>
...
</body>
</html>
The headFragment.jsp is:
<%# page contentType="text/html;charset=UTF-8" language="java" %>
<head>
<!-- Animate.css -->
<link rel="stylesheet" type="text/css" href="${pageContext.request.contextPath}/css/animate.css">
<!-- Icomoon Icon Fonts-->
<link rel="stylesheet" type="text/css" href="${pageContext.request.contextPath}/css/icomoon.css">
<!-- Simple Line Icons -->
<link rel="stylesheet" type="text/css" href="${pageContext.request.contextPath}/css/simple-line-icons.css">
</head>
In a browser's console I have few errors:
SyntaxError: expected expression, got '<'
but they are connected with css files which are not css files. My animate.css is interpreted by the browser as the html file with the body of whole page. The links are interpreted normally, but theirs' body isn't.
I think that's the problem with linking the css stylesheets, but I googled and tried a lot of options and nothing worked. The interesting part is that on a front-integration part it is normally working, but after merge it does not include css files. There's also problem with js files, but I tried to repare css firstly...
And, by the way, I work on Intellij 2016.2.4
Also my pom.xml file:
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns="http://maven.apache.org/POM/4.0.0"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>webpage</groupId>
<artifactId>web_page</artifactId>
<version>1.0-SNAPSHOT</version>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<configuration>
<source>1.8</source>
<target>1.8</target>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-war-plugin</artifactId>
<configuration>
<warSourceDirectory>web</warSourceDirectory>
</configuration>
</plugin>
</plugins>
</build>
<packaging>war</packaging>
<dependencies>
<!-- https://mvnrepository.com/artifact/postgresql/postgresql -->
<dependency>
<groupId>postgresql</groupId>
<artifactId>postgresql</artifactId>
<version>9.1-901.jdbc4</version>
</dependency>
<!-- http://repo1.maven.org/maven -->
<dependency>
<groupId>javax.servlet</groupId>
<artifactId>jstl</artifactId>
<version>1.2</version>
</dependency>
<!-- https://mvnrepository.com/artifact/javax.servlet/javax.servlet-api -->
<dependency>
<groupId>javax.servlet</groupId>
<artifactId>javax.servlet-api</artifactId>
<version>3.1.0</version>
</dependency>
<dependency>
<groupId>javax.servlet.jsp</groupId>
<artifactId>jsp-api</artifactId>
<version>2.1</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>javax</groupId>
<artifactId>javaee-web-api</artifactId>
<version>7.0</version>
<scope>provided</scope>
</dependency>
</dependencies>
</project>
For whom it may concern.
The problem occured bacause of the global welcome path '/' to the loaded servlet. Change of this path to f.e. '/yolo' resolves all of the conflicts.