1. you just compile your web-service into aar file (not include bean files), copy the aar into axis2\WEB-INF\services.
2. all libs hibernate (and jar drivers), you have to copy in axis2\WEB-INF\lib.
3. all bean(include xx.hbm.xml files) classes which are must be in axis2\WEB-INF\classes.
4. that's all.

补充:

1.

hibernate.cfg.xml在webapps\axis2\WEB-INF\classes下。

2.

各类及xml在相应的路径中,如:

webapps\axis2\WEB-INF\classes\person中

Person.class,Person.hbm.xml,PersonWebservice.class

3.

personservice.aar放在webapps\axis2\WEB-INF\services

这是我一个测试的文件结构:

├─axis2-web
│ │ ActivateService.jsp
│ │ admin.jsp
│ │ deleteService.jsp
│ │ disengage.jsp
│ │ EngageToServiceGroup.jsp
│ │ engagingglobally.jsp
│ │ engagingtoanoperation.jsp
│ │ engagingtoaservice.jsp
│ │ error.jsp
│ │ errorModule.jsp
│ │ globalModules.jsp
│ │ HappyAxis.jsp
│ │ InActivateService.jsp
│ │ index.jsp
│ │ LeftFrame.jsp
│ │ listFaultyService.jsp
│ │ listGroupService.jsp
│ │ listModules.jsp
│ │ listService.jsp
│ │ ListServiceGroup.jsp
│ │ listServices.jsp
│ │ listSingleService.jsp
│ │ Login.jsp
│ │ MainFrame.jsp
│ │ SelectService.jsp
│ │ ServiceParaEdit.jsp
│ │ TopFrame.jsp
│ │ upload.jsp
│ │ ViewContexts.jsp
│ │ ViewGlobalHandlers.jsp
│ │ viewphases.jsp
│ │ viewServiceContext.jsp
│ │ viewServiceGroupContext.jsp
│ │ ViewServiceHandlers.jsp
│ │
│ ├─css
│ │ axis-style.css
│ │
│ ├─Error
│ │ AuthError.html
│ │ error404.jsp
│ │ error500.jsp
│ │ GenError.html
│ │
│ ├─images
│ │ asf-logo.gif
│ │ axis.gif
│ │ axis.jpg
│ │ axis_l.jpg
│ │
│ └─include
│ adminfooter.inc
│ adminheader.inc
│ adminheader.jsp
│ footer.inc
│ header.inc
│ httpbase.jsp
│ link-footer.inc
│ link-footer.jsp

├─META-INF
│ MANIFEST.MF

├─org
│ └─apache
│ └─axis2
│ └─soapmonitor
│ └─applet
│ SOAPMonitorApplet$ServiceFilterPanel.class
│ SOAPMonitorApplet$SOAPMonitorData.class
│ SOAPMonitorApplet$SOAPMonitorFilter.class
│ SOAPMonitorApplet$SOAPMonitorPage.class
│ SOAPMonitorApplet$SOAPMonitorTableModel.class
│ SOAPMonitorApplet$SOAPMonitorTextArea.class
│ SOAPMonitorApplet.class

└─WEB-INF
│ web.xml

├─classes
│ │ commons-logging.properties
│ │ hibernate.cfg.xml
│ │ log4j.properties
│ │
│ ├─META-INF
│ │ LICENSE
│ │ NOTICE
│ │
│ ├─org
│ │ └─apache
│ │ └─axis2
│ │ ├─transport
│ │ │ └─http
│ │ │ AxisAdminServlet.class
│ │ │
│ │ └─webapp
│ │ AdminAgent.class
│ │ AxisAdminServlet.class
│ │
│ └─person
│ HibernateUtil.class
│ Person.class
│ Person.hbm.xml
│ PersonDetail.class
│ PersonWebservice.class

├─conf
│ axis2.xml
│ axis2.xml.bak

├─lib
│ activation-1.1.jar
│ activation-LICENSE.txt
│ antlr-2-LICENSE.txt
│ antlr-2.7.7.jar
│ apache-mime4j-core-0.7.2.jar
│ apache-mime4j-core-LICENSE.txt
│ axiom-api-1.2.13.jar
│ axiom-api-LICENSE.txt
│ axiom-dom-1.2.13.jar
│ axiom-dom-LICENSE.txt
│ axiom-impl-1.2.13.jar
│ axiom-impl-LICENSE.txt
│ axis2-adb-1.6.2.jar
│ axis2-adb-codegen-1.6.2.jar
│ axis2-clustering-1.6.2.jar
│ axis2-codegen-1.6.2.jar
│ axis2-corba-1.6.2.jar
│ axis2-fastinfoset-1.6.2.jar
│ axis2-java2wsdl-1.6.2.jar
│ axis2-jaxbri-1.6.2.jar
│ axis2-jaxws-1.6.2.jar
│ axis2-jibx-1.6.2.jar
│ axis2-json-1.6.2.jar
│ axis2-kernel-1.6.2.jar
│ axis2-LICENSE.txt
│ axis2-metadata-1.6.2.jar
│ axis2-mtompolicy-1.6.2.jar
│ axis2-saaj-1.6.2.jar
│ axis2-soapmonitor-servlet-1.6.2.jar
│ axis2-spring-1.6.2.jar
│ axis2-transport-http-1.6.2.jar
│ axis2-transport-local-1.6.2.jar
│ axis2-xmlbeans-1.6.2.jar
│ bcel-5.1.jar
│ bcel-LICENSE.txt
│ c3p0-0.9.2.1.jar
│ commons-beanutils.jar
│ commons-cli-1.2.jar
│ commons-cli-LICENSE.txt
│ commons-codec-1.3.jar
│ commons-codec-LICENSE.txt
│ commons-collections.jar
│ commons-fileupload-1.2.jar
│ commons-fileupload-LICENSE.txt
│ commons-httpclient-3.1.jar
│ commons-httpclient-LICENSE.txt
│ commons-io-1.4.jar
│ commons-io-LICENSE.txt
│ commons-lang.jar
│ commons-logging-1.1.1.jar
│ commons-logging-LICENSE.txt
│ commons-logging.jar
│ dom4j-1.6.1.jar
│ ezmorph-1.0.6.jar
│ geronimo-annotation-LICENSE.txt
│ geronimo-annotation_1.0_spec-1.1.jar
│ geronimo-jaxws-LICENSE.txt
│ geronimo-jaxws_2.2_spec-1.0.jar
│ geronimo-jta-LICENSE.txt
│ geronimo-jta_1.1_spec-1.1.jar
│ geronimo-saaj-LICENSE.txt
│ geronimo-saaj_1.3_spec-1.0.1.jar
│ geronimo-stax-api-LICENSE.txt
│ geronimo-stax-api_1.0_spec-1.0.1.jar
│ geronimo-ws-metadata-LICENSE.txt
│ geronimo-ws-metadata_2.0_spec-1.1.2.jar
│ hibernate-c3p0-4.2.5.Final.jar
│ hibernate-commons-annotations-4.0.2.Final.jar
│ hibernate-core-4.2.5.Final.jar
│ hibernate-entitymanager-4.2.5.Final.jar
│ hibernate-jpa-2.0-api-1.0.1.Final.jar
│ httpcore-4.0.jar
│ httpcore-LICENSE.txt
│ jalopy-LICENSE.txt
│ javassist-3.15.0-GA.jar
│ jaxb-api-2.1.jar
│ jaxb-api-LICENSE.txt
│ jaxb-impl-2.1.7.jar
│ jaxb-impl-LICENSE.txt
│ jaxb-xjc-2.1.7.jar
│ jaxb-xjc-LICENSE.txt
│ jaxen-1.1.1.jar
│ jaxen-LICENSE.txt
│ jaxws-tools-2.1.3.jar
│ jaxws-tools-LICENSE.txt
│ jboss-logging-3.1.0.GA.jar
│ jboss-transaction-api_1.1_spec-1.0.1.Final.jar
│ jettison-1.0-RC2.jar
│ jettison-LICENSE.txt
│ jibx-bind-1.2.jar
│ jibx-bind-LICENSE.txt
│ jibx-run-1.2.jar
│ jibx-run-LICENSE.txt
│ json-lib-2.4-jdk15.jar
│ jsr311-api-1.0.jar
│ jsr311-api-LICENSE.txt
│ juli-6.0.16.jar
│ juli-LICENSE.txt
│ log4j-1.2.15.jar
│ log4j-LICENSE.txt
│ mail-1.4.jar
│ mail-LICENSE.txt
│ mchange-commons-java-0.2.3.4.jar
│ mex-1.6.2-impl.jar
│ neethi-3.0.2.jar
│ neethi-LICENSE.txt
│ regexp-1.2.jar
│ regexp-LICENSE.txt
│ spring-asm-3.2.0.M1.jar
│ spring-beans-3.2.0.M1.jar
│ spring-core-3.2.0.M1.jar
│ sqljdbc4.jar
│ tribes-6.0.16.jar
│ tribes-LICENSE.txt
│ woden-api-1.0M9.jar
│ woden-api-LICENSE.txt
│ woden-impl-commons-1.0M9.jar
│ woden-impl-commons-LICENSE.txt
│ woden-impl-dom-1.0M9.jar
│ woden-impl-dom-LICENSE.txt
│ wsdl4j-1.6.2.jar
│ wsdl4j-LICENSE.txt
│ wstx-asl-3.2.9.jar
│ wstx-LICENSE.txt
│ xalan-2.7.0.jar
│ xalan-LICENSE.txt
│ xml-resolver-1.2.jar
│ xml-resolver-LICENSE.txt
│ xmlbeans-2.3.0.jar
│ xmlbeans-LICENSE.txt
│ XmlSchema-1.4.7.jar
│ XmlSchema-LICENSE.txt

├─modules
│ addressing-1.6.2.mar
│ axis2-jaxws-mar-1.6.2.mar
│ mex-1.6.2.mar
│ modules.list
│ mtompolicy-1.6.2.mar
│ ping-1.6.2.mar
│ scripting-1.6.2.mar
│ soapmonitor-1.6.2.mar

├─POJO
│ SimpleService.class

└─services
Axis2WB.aar
personservice.aar
services.list
version-1.6.2.aar

Hibernate 、 Axis2发布的更多相关文章

  1. Java借助axis2发布WebService

    Webservice: 1.Xml: 2.WSDL: Web service描述语言(WSDL)就是这样一个基于XML(标准通用标记语言下的一个子集)的语言,用于描述Web service及其函数.参 ...

  2. 新手Axis2 发布Web Service之路

    由于公司的需求,需要写几个银行接口写模拟器(Mock Server),此次接口需要发布成一个WEB Service. 一开始,我以为只要负责写接口的业务层就行了,具体的框架或是环境搭建可以不用管.在与 ...

  3. Axis2发布服务,支持Tomcat和Weblogic的SSHWeb项目部署

    先说下遇到的问题,在SSHWeb项目中使用JDK自带的jar发布WebService(Endpoint.publish),在tomcat下可以正常发布,但是在Weblogic报奇葩错误,如Struts ...

  4. Eclipse + Apache Axis2 发布RESTful WebService(三)第一个程序Hello Axis2 !(未成功)

    此路不通 Axis2发布SOAP WebService非常简单,建一个Dynamic Web Project,然后为它建一个Axis的Web Service(Tomcat7+JDK),就会生成Clas ...

  5. WebService学习之旅(七)Axis2发布WebService的几种方式

    前面几篇文章中简单的介绍了如何使用Axis2发布WebService及如何使用Axis2实现Web服务的客户端调用,本节將详细介绍Axis2发布WebService的几种方式. 一.使用aar包方式发 ...

  6. WebService学习之旅(五)基于Apache Axis2发布第一个WebService

    上篇博文介绍了如何將axis2 webservice引擎安装到Web容器中,本节开始介绍如何基于apache axis2发布第一个简单的WebService. 一.WebService服务端发布步骤 ...

  7. 使用JDK和axis2发布webservice

    最近使用webservice进行远程调用一直很火,自从JDK1.6版本发布后,发布一个webservice项目变得更加简单了 笔者由于工作的需要针对JDK和axis2如何发布webservice做过相 ...

  8. 微信小程序访问webservice(wsdl)+ axis2发布服务端(Java)

    0.主要思路:使用axis2发布webservice服务端,微信小程序作为客户端访问.步骤如下: 1.服务端: 首先微信小程序仅支持访问https的url,且必须是已备案域名.因此前期的服务器端工作需 ...

  9. 用AXIS2发布WebService的方法

    Axis2+tomcat6.0 实现webService 服务端发布与客户端的调用. 第一步:首先要下载开发所需要的jar包 下载:axis2-1.6.1-war.zip http://www.apa ...

随机推荐

  1. selectHelper

    转:适有修改并调试OK var Sys = (function (ua) { var s = {}; s.IE = ua.match(/msie ([\d.]+)/) ? true : false; ...

  2. CRF 及CRF++ 安装与解释

    CRF简介 Conditional Random Field:条件随机场,一种机器学习技术(模型) CRF由John Lafferty最早用于NLP技术领域,其在NLP技术领域中主要用于文本标注,并有 ...

  3. WhyGL:一套学习OpenGL的框架,及翻写Nehe的OpenGL教程

    最近在重学OpenGL,之所以说重学是因为上次接触OpenGL还是在学校里,工作之后就一直在搞D3D,一转眼已经毕业6年了.OpenGL这门手艺早就完全荒废了,现在只能是重学.学习程序最有效的办法是动 ...

  4. 从javascript读取cookies说开去:谈谈网页的本地化存储

    学习要点:1.cookies 2.cookies 局限性 3.其他存储 随着 Web 越来越复杂,开发者急切的需要能够本地化存储的脚本功能.这个时候,第一个出现的方案:cookie 诞生了.cooki ...

  5. 基础学习:C#中float的取值范围和精度

    float类型的表现形式: 默认情况下,赋值运算符右侧的实数被视为 double. 因此,应使用后缀 f 或 F 初始化浮点型变量,如以下示例中所示: float x = 3.5F; 如果在以上声明中 ...

  6. Java方法重写与方法重载

    方法重载:发生在同一个类中,方法名相同方法形参列表不同就会重载方法. 方法重写:发生在继承当中,如果子的一个类方法与父类中的那个方法一模一样(方法名和形参列表一样),那么子类就会重写父类的方法. 方法 ...

  7. 廖雪峰的python学习网址

    http://www.liaoxuefeng.com/wiki/001374738125095c955c1e6d8bb493182103fac9270762a000/00140737570055886 ...

  8. XXX全球 IP 地址库

    XXX全球 IP 地址库 Bulgaria 93.123.23.1 93.123.23.2 93.123.23.3 93.123.23.4 93.123.23.5 93.123.23.6 93.123 ...

  9. (LeetCode 78)SubSets

    Given a set of distinct integers, S, return all possible subsets. Note: Elements in a subset must be ...

  10. POJ--2449--Remmarguts' Date【dijkstra_heap+A*】第K短路

    链接:http://poj.org/problem?id=2449 题意:告诉你有n个顶点,m条边.并把这些边的信息告诉你:起点.终点.权值.再告诉你s.t.k.需求出s到t的第k短路,没有则输出-1 ...