我正在尝试导入包:
import org.apache.axis2.context.ConfigurationContext;
import org.apache.axis2.description.AxisService;
import org.apache.axis2.engine.ServiceLifeCycle;
但我收到错误:
package org.apache.axis2.context does not exist
package org.apache.axis2.description does not exist
package org.apache.axis2.engine does not exist
我已经添加%AXIS2_HOME%\bin
in my PATH
环境变量也设置了C:\apache-tomcat-6.0.30\webapps\axis2\WEB-INF\lib
in my CLASSPATH
,但由于同样的错误,我仍然无法编译我的 Java 文件。
有谁知道可能的原因是什么?
如果您使用的是 axis2 版本 1.6.2 ,您可以使用下面的 jar 来解决这个问题。
AXIS_HOME/lib/axis2-kernel-1.6.2.jar
OR
如果需要maven依赖
<dependency>
<groupId>org.apache.axis2</groupId>
<artifactId>axis2-kernel</artifactId>
<version>1.6.2</version>
</dependency>
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)