war包在tomcat下发布webservice不会有问题,但到weblogic下会发布失败:web
AxisConfiguration getRepository returns null, cannot deploy scriptsapache
解决办法:tomcat
在web.xml文件中的AxisServlet中加入axis2.repository.path参数dom
<servlet>spa
<servlet-name>AxisServlet</servlet-name>xml
<servlet-class>org.apache.axis2.transport.http.AxisServlet</servlet-class>blog
<!--axis2repository下必须有modules、services文件夹--> ip
<init-param>get
<param-name>axis2.repository.path</param-name>webservice
<param-value>/home/bea/user_projects/domains/base_domain/axis2repository</param-value>
</init-param>
<load-on-startup>1</load-on-startup>
</servlet>
但愿能帮到有须要的人