myeclipse91安装axis2插件_第1页
myeclipse91安装axis2插件_第2页
myeclipse91安装axis2插件_第3页
myeclipse91安装axis2插件_第4页
myeclipse91安装axis2插件_第5页
全文预览已结束

下载本文档

版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领

文档简介

1、myeclipse9.1 安装axis2插件1. 下载Myeclipse Axis2插件/dist/ws/axis2/tools/1_4_1/下载axis2-eclipse-codegen-wizard.zip和axis2-eclipse-service-archiver-wizard.zip 下载axis2-1.5-war.zip2. 将 axis2-eclipse-codegen-wizard.zip和 axis2-eclipse-service-archiver-wizard.zip 解压到 $ECLIPSE_HOME$MyEclipse

2、9dropins 文件夹下,目录结构如下图:3. 使用下面的工具类,打印出一个字符串,将所有的字符串加入到$ECLIPSE_HOME$ MyEclipse 9configurationorg.eclipse.equinox.simpleconfigurator 中的文件的末尾。工具类如下:package app;import java.io.File; import java.util.ArrayList; import java.util.List; public class PluginConfigCreator public PluginConfigCreator

3、() public void print(String path) List<String> list = getFileList(path); if (list = null) return; int length = list.size(); for (int i = 0; i < length; i+) String result = "" String thePath = getFormatPath(getString(list.get(i); File file = new File(thePath); if (file.isDirectory(

4、) String fileName = file.getName(); if (fileName.indexOf("_") < 0) print(thePath); continue; String filenames = fileName.split("_"); String filename1 = filenames0; String filename2 = filenames1; result = filename1 + "," + filename2 + ",file:/" + path + &quo

5、t;" + fileName + ",4,false" System.out.println(result); else if (file.isFile() String fileName = file.getName(); if (fileName.indexOf("_") < 0) continue; int last = fileName.lastIndexOf("_");/ 最后一个下划线的位置 String filename1 = fileName.substring(0, last); String fil

6、ename2 = fileName.substring(last + 1, fileName .length() - 4); result = filename1 + "," + filename2 + ",file:/" + path + "" + fileName + ",4,false" System.out.println(result); public List<String> getFileList(String path) path = getFormatPath(path); path

7、= path + "/" File filePath = new File(path); if (!filePath.isDirectory() return null; String filelist = filePath.list(); List<String> filelistFilter = new ArrayList<String>(); for (int i = 0; i < filelist.length; i+) String tempfilename = getFormatPath(path + filelisti); fil

8、elistFilter.add(tempfilename); return filelistFilter; public String getString(Object object) if (object = null) return "" return String.valueOf(object); public String getFormatPath(String path) path = path.replaceAll("", "/"); path = path.replaceAll("/", "

9、;/"); return path; public static void main(String args) /*你的插件的安装目录*/ String plugin = "E:Program FilesMyEclipseCommonmypluginAxis2_Service_Archiver_1.3.0" new PluginConfigCreator().print(plugin); 4. 删除 $ECLIPSE_HOME$ MyEclipse 9configurationorg.eclipse.update 这个文件夹。5. 在 $ECLIPSE_HOME$

10、 MyEclipse 9 文件夹下建立 bat 文件,内容如下:myeclipse.exe clean 6. 启动 bat 文件即可。7. 在file->new->other中即可看到Axis2 Wizards,至此,axis2插件安装成功!二 、1. 使用其生成 wsdl 文件时报如下错误:An error occurred while completing process-java.lang.reflect.InvocationTargetException的错误 。解决方法如下:step 1、从AXIS2的LIB库中复制"geronimo-sta

11、x-api_1.0_spec-1.0.1.jar"和 "backport-util-concurrent-3.1.jar"文件到Axis2_Codegen_Wizard_1.3.0的lib目录中,同时修改Axis2_Codegen_Wizard_1.3.0下的plugin.xml文件,在<runtime>中添加<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="*"/></lib

温馨提示

  • 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
  • 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
  • 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
  • 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
  • 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
  • 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
  • 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。

评论

0/150

提交评论