jboss如何发布非deploy目录下的WEB工程?高手指点

seesea10523 2007-12-06 05:17:18
tomcat可以在配置文件里通过一个上下文来发布一个特定目录下的web工程,
jboss里有没有类似的方法啊?
高手指点下!谢谢!
...全文
487 7 打赏 收藏 转发到动态 举报
写回复
用AI写文章
7 条回复
切换为时间正序
请发表友善的回复…
发表回复
seesea10523 2007-12-07
  • 打赏
  • 举报
回复
好像可以部署上去了,但是出错了。我再试试!
谢谢啊!
给分结贴了
JBossWeek 2007-12-06
  • 打赏
  • 举报
回复
试一下
<attribute name="URLs">
deploy/,file:/d:/temp
</attribute>
seesea10523 2007-12-06
  • 打赏
  • 举报
回复
<attribute name="URLs">
deploy/
</attribute>
我在deploy/后面加file:/d:/temp报错
我系统是XP文件目录分隔符是\
seesea10523 2007-12-06
  • 打赏
  • 举报
回复
好像不行啊
<!-- URLs are comma separated and resolve relative to the server home URL
unless the given path is absolute. If the URL ends in "/" it is
considered a collection and scanned, otherwise it is simply deployed;
this follows RFC2518 convention and allows discrimination between
collections and directories that are simply unpacked archives.

URLs may be local (file:) or remote (http:). Scanning is supported
for remote URLs but unpacked deployment units are not.

Example URLs:
deploy/
scans ${jboss.server.url}/deploy/, which is local or remote
depending on the URL used to boot the server
${jboss.server.home}/deploy/
scans ${jboss.server.home)/deploy, which is always local
file:/var/opt/myapp.ear
deploy myapp.ear from a local location
file:/var/opt/apps/
scans the specified directory
http://www.test.com/netboot/myapp.ear
deploys myapp.ear from a remote location
http://www.test.com/netboot/apps/
scans the specified WebDAV location
-->

注释没看懂
seesea10523 2007-12-06
  • 打赏
  • 举报
回复
谢谢:)
JBossWeek 2007-12-06
  • 打赏
  • 举报
回复
打开jboss-service.xml文件,定位到URLDeploymentScanner,修改其属性<attribute name="URLs">,增加file:/d:/temp,其中d:/temp是需部署应用的目录,多个目录之间可以用逗号隔开。
seesea10523 2007-12-06
  • 打赏
  • 举报
回复
每次调试都把工程拷贝到deploy下是不是太麻烦了,有好的方法吗?
谢谢各位了!

6,786

社区成员

发帖
与我相关
我的任务
社区描述
JBoss技术交流
社区管理员
  • JBoss技术交流社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧