安装了将web服务与jade集成的所有必要先决条件。当试图在这样的命令提示符下用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
答案 0 :(得分: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>