I am using javaEE7 with Vaadin 8 - wildfly12 - Hibernate
For long time my application worked.
Now i get an error in the Webbrowser: Access Forbidden.
My webxml is:
<?xml version="1.0" encoding="UTF-8"?>
<web-app id="WebApp_ID" version="2.4"
xmlns="http://java.sun.com/xml/ns/j2ee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd">
<display-name>AppFrontend</display-name>
<context-param>
<description>Vaadin production mode</description>
<param-name>productionMode</param-name>
<param-value>false</param-value>
</context-param>
<servlet>
<servlet-name>App</servlet-name>
<servlet-class>com.vaadin.cdi.server.VaadinCDIServlet</servlet-class>
<init-param>
<description>Vaadin UI class to use</description>
<param-name>UI</param-name>
<param-value>org.app.view.MainUI</param-value>
</init-param>
<init-param>
<description>Legacy mode to return the value of the property as a string from AbstractProperty.toString()</description>
<param-name>legacyPropertyToString</param-name>
<param-value>false</param-value>
</init-param>
</servlet>
<servlet-mapping>
<servlet-name>App</servlet-name>
<url-pattern>/*</url-pattern>
</servlet-mapping>
<listener>
<listener-class>com.vaadin.cdi.internal.ContextDeployer</listener-class>
</listener>
<welcome-file-list>
<welcome-file>index.html</welcome-file>
<welcome-file>index.htm</welcome-file>
<welcome-file>index.jsp</welcome-file>
<welcome-file>default.html</welcome-file>
<welcome-file>default.htm</welcome-file>
<welcome-file>default.jsp</welcome-file>
</welcome-file-list>
</web-app>
My MainUI is:
@Theme("appui")
@CDIUI("")
public class MainUI extends UI {
@Inject
PersonView personView;
@Override
protected void init(VaadinRequest request) {
final VerticalLayout mainLayout = new VerticalLayout();
final CssLayout menuView = new CssLayout();
final CssLayout contentView = new CssLayout();
mainLayout.addComponent(menuView);
mainLayout.addComponent(contentView);
mainLayout.setMargin(true);
mainLayout.setSpacing(true);
setContent(mainLayout);
setContent(personView);
}
}
The error-Message is:
15:54:16,124 INFO [org.hibernate.tool.schema.internal.SchemaCreatorImpl]
(ServerService Thread Pool -- 63) HHH000476: Executing import script 'org.hibernate.tool.schema.internal.exec.ScriptSourceInputNonExistentImpl@78b50d8'
15:54:16,130 INFO [org.hibernate.hql.internal.QueryTranslatorFactoryInitiator]
(ServerService Thread Pool -- 63) HHH000397: Using ASTQueryTranslatorFactory
15:54:16,153 INFO [io.undertow.servlet]
(ServerService Thread Pool -- 70) Initializing AtmosphereFramework
15:54:16,177 INFO [com.vaadin.cdi.internal.ContextDeployer]
(ServerService Thread Pool -- 70) Initializing web context for path /AppFrontend
15:54:16,178 INFO [com.vaadin.cdi.internal.ContextDeployer]
(ServerService Thread Pool -- 70) Discovering Vaadin UIs...
15:54:16,178 INFO [com.vaadin.cdi.internal.ContextDeployer]
(ServerService Thread Pool -- 70) 0 beans inheriting from UI discovered!
15:54:16,178 INFO [com.vaadin.cdi.internal.ContextDeployer]
(ServerService Thread Pool -- 70) Available Vaadin UIs for CDI deployment []
15:54:16,178 WARNING [com.vaadin.cdi.internal.ContextDeployer]
(ServerService Thread Pool -- 70) No Vaadin UI classes with @CDIUI annotation found. Skipping automated deployment of VaadinCDIServlet.
15:54:16,179 INFO [com.vaadin.cdi.internal.ContextDeployer]
(ServerService Thread Pool -- 70) Done deploying Vaadin UIs
15:54:16,272 INFO [org.wildfly.extension.undertow]
(ServerService Thread Pool -- 70) WFLYUT0021: Registered web context: '/AppFrontend' for server 'default-server'
15:54:16,279 WARN [org.jboss.weld.Bootstrap]
(MSC service thread 1-2) WELD-000146: BeforeBeanDiscovery.addAnnotatedType(AnnotatedType<?>) used for class org.hibernate.validator.internal.cdi.interceptor.ValidationInterceptor is deprecated from CDI 1.1!
15:54:16,280 WARN [org.jboss.weld.Bootstrap]
(MSC service thread 1-2) WELD-000146: BeforeBeanDiscovery.addAnnotatedType(AnnotatedType<?>) used for class com.sun.faces.flow.FlowDiscoveryCDIHelper is deprecated from CDI 1.1!
15:54:16,281 WARN [org.jboss.weld.Bootstrap]
(MSC service thread 1-2) WELD-000146: BeforeBeanDiscovery.addAnnotatedType(AnnotatedType<?>) used for class org.jberet.creation.BatchBeanProducer is deprecated from CDI 1.1!
15:54:16,412 INFO [org.jboss.ejb.client]
(ServerService Thread Pool -- 70) JBoss EJB Client version 4.0.9.Final