当我在本地访问我的应用程序 http://localhost:9080/ 时,我收到“欢迎使用 WebSphere Application Server V8.5 Liberty Profile”错误。
Liberty 配置文件版本如下
产品名称:WebSphere 应用服务器
产品版本:20.0.0.4
产品版本:BASE
排除 当用户访问域或本地时,它应该重定向到登录页面 http://localhost:9080/tis
日志
...
REACT_APP_APPDYNAMICS_KEY=SAMPLE-KEY HERE
HTTPS=true
应用配置 应用程序.xml
[INFO ] SRVE0169I: Loading Web Module: Shop.
[INFO ] SRVE0250I: Web Module Technical Information Shop has been bound to default_host.
[AUDIT ] CWWKT0016I: Web application available (default_host): http://wvdweu002-203.xx.net:9080/tis/
[AUDIT ] CWWKZ0001I: Application TisEar started in 49.679 seconds.
[INFO ] SESN0176I: A new session context will be created for application key default_host/tis
[INFO ] SESN0172I: The session manager is using the Java default SecureRandom implementation for session ID generation.
[INFO ] SRVE0242I: [TisEar] [/tis] [action]: Initialization successful.
耳朵 pom.xml
<?xml version="1.0" encoding="UTF-8"?>
<application 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/application_6.xsd" version="6">
<display-name>TisEar</display-name>
<module>
<web>
<web-uri>TisWeb-MASP_JPA.war</web-uri>
<context-root>/tis</context-root>
</web>
</module>
<module>
<ejb>TisDomain-MASP_JPA.jar</ejb>
</module>
</application>
server.xml
不工作:以下任一项
<plugins>
<plugin>
<artifactId>maven-ear-plugin</artifactId>
<version>2.7</version>
<configuration>
<generateApplicationXml>true</generateApplicationXml>
<version>6</version>
<earSourceDirectory>${basedir}/EarContent</earSourceDirectory>
<earSourceIncludes>**/*.policy,**/*.xmi</earSourceIncludes>
<skinnyWars>true</skinnyWars>
<modules>
<webModule>
<groupId>com.xx.tis</groupId>
<artifactId>TisWeb</artifactId>
<contextRoot>/tis</contextRoot>
</webModule>
</modules>
</configuration>
</plugin>
</plugins>
以下链接无助于解决上述问题
WLP :: Change default context root on http