jboss服务器根文件夹
我怎样才能找到哪个文件夹是jboss根目录?
我在哪里可以找到 war 文件中提到的根文件夹变量
how can i find which folder is the jboss root dir?
where can i find the root folder variable mentioned in a war file
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
如果您正在寻找根文件夹,那么这是正确的选择。这将是
/opt/jboss/jboss-as
但是,如果您想访问根目录中的任何内容(xml、文件),例如使用“http://ip:port/abc.xml”网址,您想打开 abc.xml 或任何文件,将该文件放入
/opt/jboss/jboss-as/server/default/deploy/jboss-web.deployer/ROOT.war
IF you are looking for root folder that is right option. It would be
/opt/jboss/jboss-as
But if you want to access anything (xml, file) at root directory say using 'http://ip:port/abc.xml' url you want to open abc.xml or any file, put that file in
/opt/jboss/jboss-as/server/default/deploy/jboss-web.deployer/ROOT.war
JBoss AS 安装的 root 文件夹通常被认为是
../jboss-as
文件夹...例如,如果您的部署文件夹是
/opt/jboss/jboss-as/server/default/deploy
根文件夹将是
/opt/jboss/jboss-as
我不知道
.war
文件中提到的变量是什么意思。The root folder of a JBoss AS installation is generally considered to be the
../jboss-as
folder...For example if your deploy folder would be
/opt/jboss/jboss-as/server/default/deploy
the root folder would be
/opt/jboss/jboss-as
I don't know what you mean by the variable mentioned in a
.war
file.maven-war-plugin 可以很轻松地解决这个问题。如果 web.xml context-root 不起作用,该插件可以将应用程序移动到 tomcat 上的部署根目录。更专业的服务未捕获的所有内容都会委托给应用程序,从 Web 根 /* 到 Web 应用程序,:)
来源:https://developers.openshift.com/servers/jbossas/deployment-options.html
Somehow the maven-war-plugin , can solve this issue very easily. If web.xml context-root didn't work the plugin could move the application to the root of deployments on tomcat. Everything that isn't captured by a more specialized service is delegated to the application from web root /* to the web-app, :)
source : https://developers.openshift.com/servers/jbossas/deployment-options.html