`
悠悠我心2010
  • 浏览: 16783 次
  • 性别: Icon_minigender_2
  • 来自: 上海
社区版块
存档分类
最新评论

部署Axis2 在weblogic上出错

阅读更多
部署Axis2 能成功部署在tomcat上,但是在weblogic上出错
"AxisServlet" failed to preload on startup in Web application: "axis2.war". java.lang.ExceptionInInitializerError at org.apache.axis2.transport.http.AxisServlet.initConfigContext
网上找了很多办法都没解决问题,最后用下面的方法解决了:

加入weblogic.xml 在Axis2.xml 的WEB-INF文件夹,这文件从AXIS2_1.3的源文件里拷过来的,因为我发现1.3以前的都可以成功部署

<!--
  ~ Licensed to the Apache Software Foundation (ASF) under one
  ~ or more contributor license agreements. See the NOTICE file
  ~ distributed with this work for additional information
  ~ regarding copyright ownership. The ASF licenses this file
  ~ to you under the Apache License, Version 2.0 (the
  ~ "License"); you may not use this file except in compliance
  ~ with the License. You may obtain a copy of the License at
  ~
  ~ http://www.apache.org/licenses/LICENSE-2.0
  ~
  ~ Unless required by applicable law or agreed to in writing,
  ~ software distributed under the License is distributed on an
  ~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
  ~ KIND, either express or implied. See the License for the
  ~ specific language governing permissions and limitations
  ~ under the License.
  -->
<!DOCTYPE weblogic-web-app PUBLIC "-//BEA
Systems, Inc.//DTD Web Application 7.0//EN"
"http://www.bea.com/servers/wls700/dtd/weblogic700-web-jar.dtd">
<weblogic-web-app>
<container-descriptor>
<prefer-web-inf-classes>true</prefer-web-inf-classes>
</container-descriptor>
</weblogic-web-app>

然后还有一个Log的错误是这样解决的:
environment --> server--> select your server --> logging --> advance --> change logger from jdk to log4j



http://ws.apache.org/axis/java/install.html#depend

WebLogic 8.1
WebLogic 8.1 ships with webservices.jar that conflicts with Axis' saaj.jar and prevents Axis 1.2 from working right out of the box. This conflict exists because WebLogic uses an older definition of javax.xml.soap.* package from Java Web Services Developer Pack Version 1.0, whereas Axis uses a newer revision from J2EE 1.4.

However, there are two alternative configuration changes that enable Axis based web services to run on Weblogic 8.1.

•In a webapp containing Axis, set <prefer-web-inf-classes> element in WEB-INF/weblogic.xml to true. An example of weblogic.xml is shown below:
<weblogic-web-app>
  <container-descriptor>
    <prefer-web-inf-classes>true</prefer-web-inf-classes>
  </container-descriptor>
</weblogic-web-app>If set to true, the <prefer-web-inf-classes> element will force WebLogic's classloader to load classes located in the WEB-INF directory of a web application in preference to application or system classes. This is a recommended approach since it only impacts a single web module.

•In a script used to start WebLogic server, modify CLASSPATH property by placing Axis's saaj.jar library in front of WebLogic's webservices.jar.
NOTE: This approach impacts all applications deployed on a particular WebLogic instance and may prevent them from using WebLogic's webservices.

For more information on how WebLogic's class loader works, see WebLogic Server Application Classloading.

Step 3: starting the web server
This varies on a product-by-product basis. In many cases it is as simple as double clicking on a startup icon or running a command from the command line.

Step 4: Validate the Installation
After installing the web application and dependencies, you should make sure that the server is running the web application.
分享到:
评论

相关推荐

    将应用部署在weblogic中于axis2冲突的问题及解决方案

    将应用部署在weblogic中于axis2冲突的问题及解决方案

    weblogic部署Axis2

    NULL 博文链接:https://shihuan830619.iteye.com/blog/2364826

    部署axis2c的文档

    axis2c的在windows上的安装操作步骤

    学习在JBoss上部署Axis

    学习在JBoss上部署Axis

    axis2安装和部署

    使用Axis来开发Web services 需要准备 web 服务器,Axis API。本文使用的Web container 是Tomcat5.5, Axis API 采用版本2

    axis2-1.5.1-bin.zip axis2-1.5.1-war.zip axis2部署使用

    axis2-1.5.1-bin.zip axis2-1.5.1-war.zip webservice部署axis所需要是包

    Eclipse配置Axis2总结

    对Eclipse4.3(Kepler server release2)版本配置Axis2-1.6.2,开发webservice服务接口,里面是自己配置过程中的总结和一些相关的插件压缩包,还有一份word文档是我操作的一些总结,希望对大家有所帮助。

    部署WebService(eclipse-axis2)

    部署WebService(eclipse-axis2)部署WebService(eclipse-axis2)部署WebService(eclipse-axis2)部署WebService(eclipse-axis2)部署WebService(eclipse-axis2)

    axis2独立部署简单实例

    axis2在实际应用中的比较广泛的一种部署方式。同我发布的hessina接口实例一样,也是比较简单的实例。可以直接下载运行

    axis2客户端调用axis1服务接口

    axis2客户端调用axis1服务接口 调用方式 使用RPC方式调用WebService,为了防止冲突可以增加 // 与weblogic的lib冲突配置 System.setProperty("javax.xml.stream.XMLInputFactory", ...

    Axis2部署WebService

    使用Axis2部署WebService,这是我的一点学习 笔记, 仅供初学者了解用,呵呵呵 不需要资源分的

    axis2例子 webservice axis2 示例

    axis2例子 webservice axis2 示例axis2例子 webservice axis2 示例axis2例子 webservice axis2 示例axis2例子 webservice axis2 示例axis2例子 webservice axis2 示例

    axis2-1.6.2.zip

    在D:\Work_Program_Files\axis2-1.6.2\bin目录有一个wsdl2java.bat文件; 3、设置环境变量,加入AXIS2_HOME=&lt;Axis2客户端安装目录&gt;,path中追加;%AXIS2_HOME%\bin 4、打开cmd,执行命令 wsdl2java -uri ...

    完整的axis2 jar包包含实例.zip

    axis2 webservice 服务端jar包: --&gt;axis2-kernel-1.6.1.jar --&gt;axis2-spring-1.6.1.jar --&gt;axis2-transport-http-1.6.1.jar --&gt;XmlSchema-1.4.7.jar --&gt;wsdl4j-1.6.2.jar --&gt;axiom-api-1.2.12.jar --&gt;axiom...

    axis2-1.7.8.zip

    在D:\Work_Program_Files\axis2-1.6.2\bin目录有一个wsdl2java.bat文件; 3、设置环境变量,加入AXIS2_HOME=Axis2客户端安装目录,path中追加;%AXIS2_HOME%\bin 4、打开cmd,执行命令 wsdl2java -uri ...

    axis2在tomcat上配置

    axis2在tomcat上配置的必要工具

    axis2相关的jar包

    axis2-adb-1.5.4.jar axis2-adb-codegen-1.5.4.jar axis2-codegen-1.5.4.jar axis2-corba-1.5.4.jar axis2-fastinfoset-1.5.4.jar axis2-java2wsdl-1.5.4.jar axis2-jaxbri-1.5.4.jar axis2-jaxws-1.5.4.jar axis2-...

    springboot集成axis2-1.7.9实例

    springboot集成axis2-1.7.9部署和调用实例

    axis2发布webservice和调用axis2服务接口

    本案例实现使用Axis2生成.arr包发布WebService服务,并使用Axis2生成客户端代码方式调用WebService

    axis1.4和axis2相关jar文件

    axis1.4和axis2相关jar文件,axis1.4和axis2相关jar文件

Global site tag (gtag.js) - Google Analytics