首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 服务器 > 其他服务器 >

用ant 编译 openacs开源软件时出现的有关问题jboss-4.2.2.GA\server\default\lib not found

2012-12-15 
用ant 编译 openacs开源软件时出现的问题jboss-4.2.2.GA\server\default\lib not found.用 ant编译编译开

用ant 编译 openacs开源软件时出现的问题jboss-4.2.2.GA\server\default\lib not found.
用 ant编译编译开源软件openacs时出错.
D:\work\skyhopper\acs_server\openacs-src-0.3\openacs>ant
Buildfile: build.xml

make:

make:

make:
    [javac] Compiling 114 source files to D:\work\skyhopper\acs_server\openacs-s
rc-0.3\openacs\acs-ejb\build\jar

BUILD FAILED
D:\work\skyhopper\acs_server\openacs-src-0.3\openacs\build.xml:13: The following
 error occurred while executing this line:
D:\work\skyhopper\acs_server\openacs-src-0.3\openacs\acs-war\b.xml:9: The follow
ing error occurred while executing this line:
D:\work\skyhopper\acs_server\openacs-src-0.3\openacs\acs-ejb\b.xml:24: C:\Progra
m Files\jboss-4.2.2.GA\server\default\lib not found.

Total time: 0 seconds

////////////////
acs-ejb\b.xml如下
<?xml version="1.0" encoding="UTF-8"?>
<project basedir="." default="make" name="acs-war-impl">
    <property file="../build.properties"/>
    
    <target name="clean">
        <delete dir="build"/>
        <delete dir="dist"/>
    </target>
    <target name="make">
        <mkdir dir="build"/>
        <mkdir dir="build/jar"/>
        <copy todir="build/jar/META-INF">
            <fileset dir="src/conf"/>
        </copy>
        <mkdir dir="build/jar/META-INF/wsdl"/>
        <manifest file="build/jar/META-INF/MANIFEST.MF" mode="update">
            <attribute name="Class-Path" value="js.jar"/>
        </manifest>

        <taskdef classname="com.sun.xml.rpc.tools.ant.Wscompile" name="wscompile">
            <classpath path="${wscompile.lib}"/>
        </taskdef>
        
        <javac destdir="build/jar" fork="yes" includeantruntime="false" srcdir="src/java" target="1.5"  debug="on">
            <classpath>
                <fileset dir="${j2ee.lib}"> <include name="**/*.jar"/> </fileset> 
                <fileset dir="lib"> <include name="**/*.jar"/> </fileset> 
                <path path="@{classpath}"/>
            </classpath>
            <compilerarg line="-Xlint:unchecked"/> 
        </javac>


        <mkdir dir="build/wsbinary"/>
        <mkdir dir="build/wsservice"/>
        <wscompile base="build/wsbinary" config="src\java\org\openacs\ws\OpenACS-config.xml" define="true" features="strict, rpcliteral" fork="true" keep="true" mapping="build/jar/META-INF/OpenACS-mapping.xml" nonClassDir="build/jar/META-INF/wsdl" sourceBase="build/wsservice" verbose="true" xPrintStackTrace="true" >
            <classpath>
                <pathelement location="${wscompile.lib}" />
                <pathelement location="${j2ee.lib}/jboss-jaxrpc.jar" />
                <fileset dir="${j2ee.lib}"> <include name="**/*.jaar"/> </fileset> 
                <path path="@{classpath}"/>
                <path path="build/jar" />
            </classpath>
        </wscompile>
        <mkdir dir="dist"/>
        <jar compress="${jar.compress}" jarfile="dist/acs-ejb.jar" manifest="build/jar/META-INF/MANIFEST.MF" >
            <fileset dir="build/jar"/>
        </jar>
        
    </target>
    
</project>


我的环境变量如下:
ANT_HOME = D:\downloads\apache-ant-1.7.1-bin\apache-ant-1.7.1
JAVA_HOME = C:\Program Files\Java\jdk1.5.0_07
JBOSS_HOME = D:\downloads\jbossapplicationserver-4.2.2.GA\jboss-4.2.2.GA

在线等待解决.分不够再加.紧急!!!

[解决办法]
我也是

热点排行