2011-08-13 58 views
0

我有一些麻烦设置我的JBoss 4.2.3 GA。我想要在jboss结构之外的第二个部署目录中放置一些ejb jar。 我发现一个信息的线程,但它不工作。Jboss 4.2.3 GA额外部署目录

我打开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/ 

我在开发过程中以及在Linux上使用Windows。这个页面的示例(link)适用于Linux,而不适用于Windows。我也试过

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

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

+1

我figuered出来。在部署后有一个“,”失踪 – Hauke

回答

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 
相关问题