我是所有那些vaadin,wildfly和openshift东西的新手,所以,请原谅,如果我听起来很愚蠢。
我将我的应用程序部署到Wildfly 10服务器。部署期间一切都很好。但是现在我看不到渲染的页面(只能访问欢迎页面)。
当我在本地部署时,我使用maven-wildlfly-plugin,我可以在localhost上访问应用程序:8080 / client-1.0-SNAPSHOT /。不幸的是,相同的模式不适用于openshift部署。这是我的pom.xml:
<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/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>org.vaadin</groupId>
<artifactId>client</artifactId>
<version>1.0-SNAPSHOT</version>
<packaging>war</packaging>
<name>Client application built on Vaadin</name>
<properties>
<java.version>1.7</java.version>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<failOnMissingWebXml>false</failOnMissingWebXml>
<maven.compiler.source>1.7</maven.compiler.source>
<maven.compiler.target>1.7</maven.compiler.target>
</properties>
<dependencies>
<dependency>
<groupId>org.vaadin</groupId>
<artifactId>vaadin-java-ee-essentials</artifactId>
<version>1.13</version>
<type>pom</type>
</dependency>
<dependency>
<groupId>javax</groupId>
<artifactId>javaee-api</artifactId>
<version>7.0</version>
</dependency>
<!-- http://mvnrepository.com/artifact/au.com.bytecode/opencsv -->
<dependency>
<groupId>au.com.bytecode</groupId>
<artifactId>opencsv</artifactId>
<version>2.4</version>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>org.wildfly.plugins</groupId>
<artifactId>wildfly-maven-plugin</artifactId>
<version>1.0.2.Final</version>
</plugin>
</plugins>
</build>
<profiles>
<profile>
<id>openshift</id>
<build>
<finalName>client</finalName>
<plugins>
<plugin>
<artifactId>maven-war-plugin</artifactId>
<version>2.1.1</version>
<configuration>
<failOnMissingWebXml>false</failOnMissingWebXml>
<outputDirectory>webapps</outputDirectory>
<warName>ROOT</warName>
</configuration>
</plugin>
</plugins>
</build>
</profile>
</profiles>
<repositories>
<repository>
<id>v4.tahvonen.fi</id>
<url>http://v4.tahvonen.fi/maven2</url>
<snapshots>
<enabled>true</enabled>
</snapshots>
</repository>
</repositories>
开始呈现的vaadin类看起来像这样(我这里不使用web.xml):
@CDIUI("")
@Theme("valo")
public class VaadinUI extends UI {}
请,建议,如何设置访问应用程序的URL(不欢迎页面)。提前谢谢。