【问题标题】:JADE Agent Integration with WSIGJADE 代理与 WSIG 的集成
【发布时间】:2016-05-13 21:38:54
【问题描述】:

安装了将 Web 服务与 Jade 集成的所有必要先决条件。当尝试在命令提示符中使用 ant 测试 wsig 玉插件时,像这样
>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】:

    我认为这与它试图针对的 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>
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2021-09-11
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2018-08-08
      相关资源
      最近更新 更多