Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/java/329.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Java Axis类强制转换异常_Java_Liferay - Fatal编程技术网

Java Axis类强制转换异常

Java Axis类强制转换异常,java,liferay,Java,Liferay,我在liferay中面临一个奇怪的axis问题。每当部署portlet时,控制台中都会出现以下错误: 1org.apache.axis.deployment.wsdd.WSDDException: java.lang.ClassCastException: org.apache.axis.encoding.ser.BeanSerializerFactory cannot be cast to org.apache.axis.encoding.SerializerFactory 虽然这不会影响我

我在liferay中面临一个奇怪的axis问题。每当部署portlet时,控制台中都会出现以下错误:

1org.apache.axis.deployment.wsdd.WSDDException: java.lang.ClassCastException: org.apache.axis.encoding.ser.BeanSerializerFactory cannot be cast to org.apache.axis.encoding.SerializerFactory
虽然这不会影响我的功能,但是portlet可以工作,但是我需要删除这个异常


如需帮助,请:(

请检查您的类路径-路径上是否有axis的两个冲突版本?检查已部署的应用程序,而不是开发环境中的应用程序。

当我通过Ctrl+Shift+T找到AxisServlet时,我发现有两个AxisServlet来自util-java.jar和axis.jar,这是问题吗?还有一件事,在buildPath中在我的portlet项目中,我在Liferay portlet插件API上只找到了一个axis.jar