小菜毛毛技術分享

          與大家共同成長

            BlogJava :: 首頁 :: 聯系 :: 聚合  :: 管理
            164 Posts :: 141 Stories :: 94 Comments :: 0 Trackbacks

          轉載  axis2 java.lang.reflect.InvocationTargetException 收藏

          http://loshamo.javaeye.com/blog/627020

          [i][/i]在使用codegen1.3插件來從WSDL生成代碼,到了最后一步竟然出然 了"An error occurred while completing process -java.lang.reflect.InvocationTargetException"的錯誤
          產生這種錯誤的原因一般有2種:首先關閉eclipse。
          1.jar包缺失
          從AXIS2的LIB庫中復制"geronimo-stax-api_1.0_spec-1.0.1.jar"和"backport-util-concurrent-3.1.jar"文件到Codegen的lib目錄中,同時修改plugin.xml文件,添加

          <library name="lib/geronimo-stax-api_1.0_spec-1.0.1.jar">
          <export name="*"/>
          </library>
          <library name="lib/backport-util-concurrent-3.1.jar">
          <export name="*"/>
          </library>
          2.版本問題
          F:\Program Files\MyEclipse 6.0\eclipse\plugins\Axis2_Codegen_Wizard_1.3.0\plugin.xml中
          <plugin
             id="Axis2_Codegen_Wizard"
             name="Axis2 Codegen Wizard Plug-in"
             version="1.3.0"
             provider-name="Apache Software Foundation"
             class="org.apache.axis2.tool.codegen.eclipse.plugin.CodegenWizardPlugin"& gt;看看自己下載的axis2版本是否和這個配置一致,像我的是axis2-1.5.1則需修改上面的配置為<plugin
             id="Axis2_Codegen_Wizard"
             name="Axis2 Codegen Wizard Plug-in"
             version="1.5.1"         //對應的版本號
             provider-name="Apache Software Foundation"
             class="org.apache.axis2.tool.codegen.eclipse.plugin.CodegenWizardPlugin">
          然后再將文件夾的名字Axis2_Codegen_Wizard_1.3.0改為Axis2_Codegen_Wizard_1.5.1
          修改完以上2步重新啟動eclipse即可。
          posted on 2010-10-11 17:29 小菜毛毛 閱讀(3918) 評論(2)  編輯  收藏 所屬分類: webservice

          Feedback

          # re: axis2 java.lang.reflect.InvocationTargetException [未登錄] 2011-09-29 09:28 Sam
          頂  回復  更多評論
            

          # re: axis2 java.lang.reflect.InvocationTargetException [未登錄] 2011-09-29 09:29 Sam
          試了好幾天,改了版本問題,果然對了,太感謝你了,菜毛!  回復  更多評論
            

          主站蜘蛛池模板: 隆德县| 墨竹工卡县| 南昌市| 惠水县| 兴仁县| 驻马店市| 孟州市| 卢龙县| 昌邑市| 丰都县| 常熟市| 邹平县| 瑞丽市| 手机| 乐亭县| 丰城市| 民权县| 思茅市| 射洪县| 当阳市| 南通市| 图们市| 建平县| 日喀则市| 达孜县| 南安市| 大石桥市| 沙湾县| 安陆市| 镇赉县| 琼结县| 长乐市| 马尔康县| 甘南县| 株洲县| 扶风县| 司法| 巴东县| 九寨沟县| 桐乡市| 偃师市|