0

我在设置我的 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上使用。此页面(链接)中的示例适用于 linux 而不是 windows。我也试过

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

和许多其他。有人可以帮我吗?

4

1 回答 1

3

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

  <!-- 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
于 2011-08-15T10:02:21.327 回答