I'm trying to import packages:
import org.apache.axis2.context.ConfigurationContext;
import org.apache.axis2.description.AxisService;
import org.apache.axis2.engine.ServiceLifeCycle;
But I'm getting errors:
package org.apache.axis2.context does not exist
package org.apache.axis2.description does not exist
package org.apache.axis2.engine does not exist
I've added %AXIS2_HOME%\bin
in my PATH
environment variable and have also set C:\apache-tomcat-6.0.30\webapps\axis2\WEB-INF\lib
in my CLASSPATH
, but I still can't compile my Java file due to the same errors.
Does anyone know what are the possible reasons?
If you are using axis2 version 1.6.2 , you can use below jars to solve this.
OR
If you need maven dependency
You need to link/reference all the jars in %AXIS2_HOME%\lib
As setting the CLASSPATH is not helping, there is an alternative to specify the
lib jar
files withjavac
andjava
command i.e. using-extdirs
Compile your code as
and then run your code as
Here the path
D:\Software\axis2-1.6.2\lib
is of axis2 binary distribution and not of axis2 warClientMainClass
has your main method that will call your remote method using generated stub.Hope this works for you.
All the best :)