0 0

一个Axis问题,一个c3p0问题,谢谢大家5

基于Axis1.4开发的web services在Tomcat6下调试正常,可放在Resin3下却出错误, ,错误信息如下。
java.lang.IncompatibleClassChangeError: Class org.apache.axis.MessageContext does not implement the requested interface javax.xml.rpc.handler.MessageContext
at org.apache.axis.transport.http.ServletEndpointContextImpl.getServletContext(ServletEndpointContextImpl.java:39)
at org.springframework.remoting.jaxrpc.ServletEndpointSupport.init(ServletEndpointSupport.java:84)
at org.apache.axis.providers.java.JavaProvider.getNewServiceObject(JavaProvider.java:238)
at org.apache.axis.providers.java.JavaProvider.getServiceObject(JavaProvider.java:91)
at org.apache.axis.providers.java.JavaProvider.invoke(JavaProvider.java:287)
at org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:32)
at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:118)
at org.apache.axis.SimpleChain.invoke(SimpleChain.java:83)
at org.apache.axis.handlers.soap.SOAPService.invoke(SOAPService.java:454)
at org.apache.axis.server.AxisServer.invoke(AxisServer.java:281)
at org.apache.axis.transport.http.AxisServlet.doPost(AxisServlet.java:699)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:153)
at org.apache.axis.transport.http.AxisServletBase.service(AxisServletBase.java:327)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:91)
at com.caucho.server.dispatch.ServletFilterChain.doFilter(ServletFilterChain.java:103)
at com.caucho.server.webapp.WebAppFilterChain.doFilter(WebAppFilterChain.java:187)
at com.caucho.server.dispatch.ServletInvocation.service(ServletInvocation.java:266)
at com.caucho.server.http.HttpRequest.handleRequest(HttpRequest.java:270)
at com.caucho.server.port.TcpConnection.run(TcpConnection.java:678)
at com.caucho.util.ThreadPool$Item.runTasks(ThreadPool.java:721)
at com.caucho.util.ThreadPool$Item.run(ThreadPool.java:643)
at java.lang.Thread.run(Thread.java:619)

2.Resin下部署啦两个网站,都是用啦c3p0,启动时报错,

21:23:02,453 WARN ActiveManagementCoordinator:56 - A C3P0Registry mbean is already registered. This probably means that an application using c3p0 was undeployed, but not all PooledDataSources were closed prior to undeployment. This may lead to resource leaks over time. Please take care to close all PooledDataSources.
21:23:02,453 WARN ActiveManagementCoordinator:69 - Failed to set up C3P0RegistryManager mBean. [c3p0 will still function normally, but management via JMX may not be possible.]
javax.management.InstanceNotFoundException: com.mchange.v2.c3p0:type=C3P0Registry
at com.caucho.jmx.MBeanContext.unregisterMBean(MBeanContext.java:285)
at com.caucho.jmx.AbstractMBeanServer.unregisterMBean(AbstractMBeanServer.java:477)
at com.mchange.v2.c3p0.management.ActiveManagementCoordinator.attemptManageC3P0Registry(ActiveManagementCoordinator.java:62)
at com.mchange.v2.c3p0.C3P0Registry.attemptRegisterRegistryMBean(C3P0Registry.java:217)
at com.mchange.v2.c3p0.C3P0Registry.reregister(C3P0Registry.java:242)
at com.mchange.v2.c3p0.impl.PoolBackedDataSourceBase.<init>(PoolBackedDataSourceBase.java:228)
at com.mchange.v2.c3p0.impl.AbstractPoolBackedDataSource.<init>(AbstractPoolBackedDataSource.java:62)
at com.mchange.v2.c3p0.ComboPooledDataSource.<init>(ComboPooledDataSource.java:108)
at com.mchange.v2.c3p0.ComboPooledDataSource.<init>(ComboPooledDataSource.java:104)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:83)
at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:61)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateBean(AbstractAutowireCapableBeanFactory.java:911)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:873)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:514)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:485)
at java.security.AccessController.doPrivileged(Native Method)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:455)
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:251)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:169)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:248)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:170)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:413)
at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:735)
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:369)
at org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:251)
at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:190)
at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:45)
at com.caucho.server.webapp.WebApp.start(WebApp.java:1864)
at com.caucho.server.deploy.DeployController.startImpl(DeployController.java:667)
at com.caucho.server.deploy.StartAutoRedeployAutoStrategy.startOnInit(StartAutoRedeployAutoStrategy.java:72)
at com.caucho.server.deploy.DeployController.startOnInit(DeployController.java:549)
at com.caucho.server.deploy.DeployContainer.start(DeployContainer.java:160)
at com.caucho.server.webapp.WebAppContainer.start(WebAppContainer.java:659)
at com.caucho.server.host.Host.start(Host.java:450)
at com.caucho.server.deploy.DeployController.startImpl(DeployController.java:667)
at com.caucho.server.deploy.StartAutoRedeployAutoStrategy.startOnInit(StartAutoRedeployAutoStrategy.java:72)
at com.caucho.server.deploy.DeployController.startOnInit(DeployController.java:549)
at com.caucho.server.deploy.DeployContainer.start(DeployContainer.java:160)
at com.caucho.server.host.HostContainer.start(HostContainer.java:484)
at com.caucho.server.cluster.Server.start(Server.java:1315)
at com.caucho.server.cluster.Cluster.startServer(Cluster.java:710)
at com.caucho.server.cluster.ClusterServer.startServer(ClusterServer.java:542)
at com.caucho.server.resin.Resin.start(Resin.java:703)
at com.caucho.server.resin.Resin.initMain(Resin.java:1157)
at com.caucho.server.resin.Resin.main(Resin.java:1360)
SOA 
2008年7月24日 21:10

2个答案 按时间排序 按投票排序

0 0

采纳的答案

第一个问题可能是jar包冲突导致的。

resin的lib目录有jaxrpc-15.jar,而你的web项目的lib里也应该有类似的jar的。你把web项目的jaxrpc.jar去掉即可。或者替换掉resin的Lib下的jaxrpc-15.jar包。

第二个问题不能算是错误,仍然可以正常运行.

要去掉警告,在项目的web-inf\classes目录下建立一个c3p0.properties文件,里面添加1行:
com.mchange.v2.c3p0.management.ManagementCoordinator=com.mchange.v2.c3p0.management.NullManagementCoordinator。
应该就不会出现第二个问题的信息了。

以上只是估计,希望有所帮助

2008年7月25日 12:46
0 0

遮住的部分是NullManagementCoordinator

2008年7月25日 15:18

相关推荐

    介绍AXIS的文档

    Axis(Apache eXtensible Interaction System)是一款开源的WebService运行引擎,它是SOAP协议的一个实现,其本身来源于Apache的另一个项目Apache SOAP。 Axis分为1.x系列和Axis 2系列,两个系列体系结构和使用上有...

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

    这是一个StAX API的实现包,删除它可以避免与Weblogic Server的冲突。 将应用部署在Weblogic Server中时,可能会遇到与Axis2冲突的问题。可以通过配置weblogic.xml文件或删除相关的jar包来解决这个问题。 另外,在...

    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-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 ...

    axis1.4和axis2相关jar文件

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

    axis复杂类型axis复杂类型

    axis复杂类型axis复杂类型axis复杂类型axis复杂类型

    Axis搭建一个简单的web工程

    搭建一个web工程,里面加入webservice中的Axis,用java编程实现在服务端提供一个求两数之和的方法。然后在客户端传递两个数字的参数到服务端 计算出结果返回到客户端。

    学习AXIS2遇到的一个问题与解决

    本人在学习Axis2过程中,使用axis2提供的两个myeclipse插件时,生成代码最后点“完成”时,老出现java_lang_reflect_InvocationTargetException错误。弄了两天时间,终于找到解决的办法。

    axis2客户端调用axis1服务接口

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

    一个wsdl文件,用axis2解析

    一个wsdl文件,用axis2解析,一个wsdl文件,用axis2解析,

    axis 1.x与axis2.x开发

    axis 1.x与axis2.x开发 以及jar

    axis2组件漏洞问题

    推荐版本1.7.5

    axis2教程 axis2应用方法

    axis教程 axis教程 axis教程 axis教程 axis教程

    Web Service WebService Axis一个完整的客户端代码

    Web Service WebService Axis一个完整的客户端代码

    axis的包axis的包axis的包axis的包axis的包

    axis的包axis的包axis的包axis的包

    axis2例子 webservice axis2 示例

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

    webService—Axis实例webService—Axis实例webService—Axis实例

    webService—Axis实例webService—Axis实例webService—Axis实例webService—Axis实例webService—Axis实例webService—Axis实例webService—Axis实例

    axis2方式开发webservice

    axisdemo是一个普通的javaweb工程,里面有一个简单的接口,在此工程的基础用,利用axis2工具生成服务端的wsdl文件。 axisClient Maven Webapp是一个maven web工程,在这个工程里面,介绍了2种axis2访问服务端接口的...

    axis2-1.7.0

    Apache Axis2 1.7.0是一个主要版本,包含许多错误修复和改进,其中一些引入了与Axis2 1.6.x相关的向后不兼容的更改(如下所述)。可在此处找到此版本中已修复的JIRA问题的完整列表。请注意,其中一些修复程序也被...

    axis打包

    axis打包axis打包axis打包axis打包axis打包axis打包axis打包axis打包axis打包axis打包axis打包axis打包axis打包axis打包axis打包axis打包axis打包axis打包axis打包axis打包axis打包axis打包axis打包axis打包axis打包...

Global site tag (gtag.js) - Google Analytics