0
  1. 如何在 Windows 7 32 位中从命令提示符启动和停止 Jboss

当我尝试从命令提示符运行 run.bat 文件时,出现以下错误

D:\jboss-6.1.0.Final\bin>run.bat
Calling D:\jboss-6.1.0.Final\bin\run.conf.bat
Could not locate "D:\jboss-6.1.0.Final\bin\bin\run.jar".
Please check that you are in the bin directory when running this script.
Press any key to continue . . .
  1. 如何从 apache ant build.xml 文件启动和停止 jboss

  2. 如何使用 apache ant build.xml 在 java 中为 Hibernate 项目制作 .har 文件

  3. 我不想在使用 ant 生成的文件中包含 appxml

    appxml="..\PartyEJB\ejbModule\META-INF\ejb-jar.xml"

    <ear destfile="${EAR}/PartyEAR.ear" appxml="..\PartyEJB\ejbModule\META-INF\ejb-jar.xml">
        <fileset dir="${class}" includes="PartyEJB.jar"/>
    
        <zipfileset dir="${lib.dir}" prefix="lib">
            <include name="PartyEJBClient.jar"/>
        </zipfileset>
    
    </ear> 
    
4

2 回答 2

0

Verify that in your build.xml you are referring to the bin location directly, where as Ant trying to add bin to the path you have mentioned. Please remove /bin in build.xml from where you are invoking.

If it's a Web-Project or Java EE project, Dynamic Web project which doesn't have EJB's wouldn't require appxml.

于 2012-04-19T06:03:15.030 回答
0

将 JBOSS_HOME 环境变量设置为 D:\jboss-6.1.0.Final 然后运行 ​​run.bat

于 2012-04-19T05:20:11.760 回答