在wildfly 8中进行战争部署后如何访问我的应用程序 [英] How I can access to my application after a war deployments in wildfly 8

查看:35
本文介绍了在wildfly 8中进行战争部署后如何访问我的应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我曾经在 tomcat 上工作,我尝试在 Wildfly 8 上部署我的应用程序,有一条消息说部署成功,但我不知道如何访问我曾经使用我的应用程序的应用程序,例如:

解决方案

除非你包含一个 jboss-web.xml 给定你的部署名称,否则上下文名称将是 Gnrqst-0.0.1-快照.如果您希望删除 0.0.1-SNAPSHOT,您需要在部署之前重命名文件或使用 jboss-web.xml 来定义上下文名称.

I used to work on tomcat I try to deploy my app on wildfly 8 ,there a message said that deployment succes but I dont know how I can access to my app I used to use my app using for example : http://localhost:8080/Gnrqst/Api/enqueteurs on tomcat but now it's not working I ask is there another port to use on wildfly ? Thank you

解决方案

Unless you're including a jboss-web.xml given the name of your deployment the context name would be Gnrqst-0.0.1-SNAPSHOT. If you'd like the 0.0.1-SNAPSHOT to be removed you need to either rename the file before you deploy it or use a jboss-web.xml to define the context name.

<?xml version="1.0" encoding="UTF-8"?>
<jboss-web version="10.0"
       xmlns="http://www.jboss.com/xml/ns/javaee"
       xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
       xsi:schemaLocation="http://www.jboss.com/xml/ns/javaee http://www.jboss.org/j2ee/schema/jboss-web_10_0.xsd">
    <context-root>/Gnrqst</context-root>
</jboss-web>

这篇关于在wildfly 8中进行战争部署后如何访问我的应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆