【问题标题】:Jboss 4.2.3 GA additional deploy directoryJboss 4.2.3 GA 附加部署目录
【发布时间】:2011-10-26 08:04:31
【问题描述】:

我在设置 jboss 4.2.3 GA 时遇到了一些麻烦。我想要 jboss 结构之外的第二个部署目录,以便在那里放置一些 ejb jar。 我找到了一个包含该信息的线程,但它不起作用。

我打开了jboss/server/default/conf/jboss-service.xml

改变了

  <attribute name="URLs">
     deploy/ 
  </attribute>

  <attribute name="URLs">
     deploy/ 
 file:/C:/dev/deploy/
  </attribute>

当我重新启动服务器时,我收到以下消息:

10:27:44,507 WARN  [URLDeploymentScanner] Scan URL, caught java.io.FileNotFoundE
xception: Not pointing to a directory, url: file:/C:/dev/20110803_jboss/server/d
efault/deploy/
             file:/C:/dev/deploy/

我在开发过程中使用 windows,后来在 linux 上使用。此页面 (link) 中的示例适用于 linux 而不是 windows。我也试过了

file:///C:/dev/deploy/
file:/C:\dev\deploy\
file:/C:\\dev\\deploy\\
file:C:/dev/deploy/

还有很多其他的。有人可以帮我吗?

【问题讨论】:

  • 我想通了。 /deploy 后缺少一个“,”

标签: java deployment jboss ejb jboss-4.2.x


【解决方案1】:

部署目录以逗号分隔,在您找到的属性上方的注释中说明:

  <!-- 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

【讨论】:

    猜你喜欢
    • 2013-04-04
    • 1970-01-01
    • 1970-01-01
    • 2011-05-14
    • 1970-01-01
    • 2012-04-30
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多