我們正在使用RAD(7.0.0.x)開發Websphere 6.1。在我們的ant腳本中,我們有以下內容:wsdl2Java從無頭螞蟻失敗
<!-- *************************************************** -->
<!-- ** Generate WebService Client classes -->
<!-- *************************************************** -->
<target name="-generate-classes" if="ejbmodulesrcdir.exists">
<wsdl2java url="${ejbmodule.src.dir}/META-INF/wsdl/TransportationWebService.wsdl" output="${java.genSrc.dir}" role="client" container="none" introspect="false" genjava="true" verbose="true" />
<echo>Transportation WS Client classes generated successfully</echo>
</target>
當在RAD環境內執行目標時,不存在問題。但是,當我們作爲一個無頭的Ant腳本運行,我們再看看下面的錯誤:
HeadlessWorkspaceSettings: INITIAL autoBuild=true maxFile=1048576
HeadlessWorkspaceSettings: TEMP autoBuild=false maxFile=-1
Buildfile: buildWebServiceClientClasses.xml
genTransportationWSClientClasses:
[wsdl2java] java.lang.ExceptionInInitializerError
[wsdl2java] at java.lang.J9VMInternals.initialize(J9VMInternals.java:218)
[wsdl2java] at sun.misc.Unsafe.ensureClassInitialized(Native Method)
[wsdl2java] at sun.reflect.UnsafeFieldAccessorFactory.newFieldAccessor(UnsafeFieldAccessorFactory.java:43)
[wsdl2java] at sun.reflect.ReflectionFactory.newFieldAccessor(ReflectionFactory.java:150)
[wsdl2java] at java.lang.reflect.Field.acquireFieldAccessor(Field.java:962)
[wsdl2java] at java.lang.reflect.Field.getFieldAccessor(Field.java:929)
[wsdl2java] at java.lang.reflect.Field.get(Field.java:388)
[wsdl2java] at org.eclipse.emf.ecore.plugin.RegistryReader$EPackageDescriptor.getEPackage(RegistryReader.java:168)
[wsdl2java] at org.eclipse.emf.ecore.impl.EPackageRegistryImpl.getEPackage(EPackageRegistryImpl.java:112)
[wsdl2java] at com.ibm.ejs.models.base.extensions.transappclientext.impl.TransactionAppClientExtPackageImpl.init
有更多的線路不知道我是否應該張貼在這裏所有。
已完成搜索,但無法找到任何東西。任何方向 - 看到任何錯誤?
Thyanks
我投票發佈整個例外。 :)我敢打賭,那裏有更多的相關細節。 – jsight