通过提供各种编译错误和警告,J2EE项目的Ant构建失败

时间:2015-08-03 06:52:20

标签: java java-ee ant weblogic12c

我正在研究一个java项目,我正在使用Web逻辑12c服务器进行部署。我编写了一个构建文件,其中包含init,build,compile和deploy阶段。但是在编译时ant构建失败。我包括构建文件和错误日志。请告诉我有关Web逻辑服务器的信息。如果有的话,还建议在构建文件中进行任何更正。

<link rel="stylesheet" href="design/css/reset.css" type="text/css" media="screen">
<link rel="stylesheet" href="design/css/style.css" type="text/css" media="screen">
<link rel="stylesheet" href="design/css/grid.css" type="text/css" media="screen">
<script src="design/js/jquery-1.6.3.min.js" type="text/javascript"></script>
<script src="design/js/cufon-yui.js" type="text/javascript"></script>
<script src="design/js/cufon-replace.js" type="text/javascript"></script>
<script src="design/js/Kozuka_Gothic_Pro_OpenType_300.font.js" type="text/javascript"></script>
<script src="design/js/Kozuka_Gothic_Pro_OpenType_500.font.js"  type="text/javascript"></script>
<script src="design/js/FF-cash.js" type="text/javascript"></script>
<script type="text/javascript" src="design/js/jquery.easing.1.3.js"></script>
<script type="text/javascript" src="design/js/tms-0.3.js"></script>
<script type="text/javascript" src="design/js/tms_presets.js"></script>
<script src="design/js/jcarousellite_1.0.1.js" type="text/javascript"></script>

错误日志

 <project name="CaptchaTest" default="build" basedir=".">
    <property name="weblogic-home" value="\C:\Oracle\Middleware\Oracle_Home\user_projects\domains\DevDomain" />
    <description>
        Build file for CaptchaTest
    </description>

    <path id="build.classpath">
      <fileset dir="WebContent/WEB-INF/lib" includes="*.jar" />
      <fileset dir="${weblogic-home}/lib" includes="*.jar" />
      <pathelement location="."/>
    </path>

    <target name="init">
        <delete dir="dist" />
        <mkdir dir="dist" />
    </target>

    <target name="build" depends="init">
        <war destfile="./dist/captchatest.war">
            <fileset dir="WebContent">
            </fileset>
        </war>
    </target>

    <target name="compile" depends="build">
        <javac includeantruntime="false" srcdir="./src/com/amgen/sharedservices/"
               destdir="./WebContent/WEB-INF/classes" classpathref="build.classpath"/>
    </target>

    <taskdef name="wldeploy" 
        classname="weblogic.ant.taskdefs.management.WLDeploy" 
        classpath="C:/Oracle/Middleware/Oracle_Home/wlserver/server/lib/weblogic.jar" />

    <target name="deploy" depends="compile">
        <wldeploy action="deploy" name="captcha" source="./dist/captchatest.war"
        user="DevDomain"
        password="" 
        verbose="true"
        adminurl="t3://localhost:7001"
        upload="true"
        targets="AdminServer" />

    </target>

    <target name="undeploy">

    </target>
</project>    

1 个答案:

答案 0 :(得分:2)

你有什么不清楚的?在删除软件包时,您会收到很多关于使用专有API和一些错误的警告(这就是他们警告不要使用它们的原因)。

在不使用任何com.sun.*软件包的情况下重写您的软件。