JADE代理与WSIG集成

问题描述 投票:1回答:1

安装了将网络服务与玉器集成的所有必要先决条件。当试图在这样的命令提示符下用ant测试wsig jade-addon时 >ant deploy-examples

它加载并显示100个错误,尝试不同的东西(记录器保持弹出错误)。请大家帮忙,因为这对我来说是个大项目。谢谢

这是控制台错误

Microsoft Windows [Version 6.2.9200]
(c) 2012 Microsoft Corporation. All rights reserved.

C:\Users\THEOPHY>cd C:\jade\add-ons\wsig

C:\jade\add-ons\wsig>ant deploy-examples
Buildfile: C:\jade\add-ons\wsig\build.xml

init:
     [echo] JAVA_HOME C:\Program Files\Java\jdk1.8.0_51
     [echo] CATALINA_HOME C:\juddi
     [echo] source dir C:\jade\add-ons\wsig\src
     [echo] build dir C:\jade\add-ons\wsig\webModule\WEB-INF\classes
     [echo] OS platform is Windows 8

SubWCRev:

compile:
    [javac] Compiling 46 source files to C:\jade\add-ons\wsig\webModule\WEB-INF\classes
    [javac] warning: [options] bootstrap class path not set in conjunction with -source 1.5
    [javac] warning: [options] source value 1.5 is obsolete and will be removed in a future release
    [javac] warning: [options] target value 1.5 is obsolete and will be removed in a future release
    [javac] warning: [options] To suppress warnings about obsolete options, use -Xlint:-options.
    [javac] C:\jade\add-ons\wsig\src\com\tilab\wsig\WSIGConfiguration.java:49: error: cannot find symbol
    [javac]     private static Logger logger = Logger.getMyLogger(WSIGConfiguration.class.getName());
    [javac]                                          ^
    [javac]   symbol:   method getMyLogger(String)
    [javac]   location: class Logger
    [javac] C:\jade\add-ons\wsig\src\com\tilab\wsig\WSIGConfiguration.java:67: error: cannot find symbol
    [javac]     public static final String KEY_WSIG_PRESERVE_JAVA_TYPE = SLCodec.PRESERVE_JAVA_TYPES;
    [javac]                                                                     ^
    [javac]   symbol:   variable PRESERVE_JAVA_TYPES
    [javac]   location: class SLCodec
    [javac] C:\jade\add-ons\wsig\src\com\tilab\wsig\WSIGConfiguration.java:184: error: cannot find symbol
    [javac]             return getProperty(jade.core.Profile.LOCAL_PORT);
    [javac]                                                 ^
    [javac]   symbol:   variable LOCAL_PORT
    [javac]   location: class Profile
java web-services agent agents-jade
1个回答
0
投票

我认为这与它试图定位的java版本有关。正如您所看到的,有一些警告表明源和目标已过时。我必须做的就是删除build.xml中对源和目标的引用,以强制它使用默认值。

例如更改:

<target name="compile" depends="init,SubWCRev" description="Compile WSIG sources">
        <javac  srcdir="${wsigSrc.dir}" 
                debug="${debug-build}"
                destdir="${wsigBuild.dir}" 
                encoding="ISO-8859-1"
                optimize="${optimised-build}"
                includeAntRuntime="no"
                target="1.5"
                source="1.5">
            <classpath refid="wsigCompile.classpath"/>
        </javac>
        <echo>Compilation complete</echo>
    </target>

对此:

<target name="compile" depends="init,SubWCRev" description="Compile WSIG sources">
        <javac  srcdir="${wsigSrc.dir}" 
                debug="${debug-build}"
                destdir="${wsigBuild.dir}" 
                encoding="ISO-8859-1"
                optimize="${optimised-build}"
                includeAntRuntime="no">
            <classpath refid="wsigCompile.classpath"/>
        </javac>
        <echo>Compilation complete</echo>
    </target>
© www.soinside.com 2019 - 2024. All rights reserved.