You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by learn_n_share <am...@gmail.com> on 2008/03/14 07:47:37 UTC

newbie: is Axis binary also required with .war

hi
i m new to axis. I ve downloaded .war axis2, pasted in my tomcat home
folder, and found that axis dir got generated automatically.

1)
while going through the axis installation tut, i felt as if it is necassary
to have the binary distribution of the same as well.
--> am i correct?

2)
i have created the AXIS2_HOME variable to point to the directory of axis2
binary distribution which i placed in "C:\axis2" and not to the one
contained in the "webapps" directory of "tomcat" as i thought that there is
no "bin" named folder inside the latter directory.
-->  is this correct?

3) have also created the following environment variables:

path = %path%;c:\axis2\bin

AXIS2_HOME = C:\axis2
AXIS2_LIB = %AXIS2_HOME%\lib
AXIS2CLASSPATH =
%AXIS2_LIB%\axis2.jar;%AXIS2_LIB%\commons-discovery.jar;%AXIS2_LIB%\commons-logging-1.1.jar;%AXIS2_LIB%\jaxrpc.jar;%AXIS2_LIB%\saaj.jar;%AXIS2_LIB%\log4j-1.2.14.jar;%AXIS2_LIB%\xml-apis-1.3.03.jar;%AXIS2_LIB%\xercesImpl-2.8.1.jar

i created a folder named pojo inside the "C:\Program Files\Apache Software
Foundation\Tomcat 6.0\webapps\axis2\WEB-INF" , i.e., the container dir for
tomcat webapps
inside pojo, there is a simple java file named "SimplePojo.java" as simple
as:

"import org.apache.axis2.AxisFault;
import org.apache.axis2.engine.AxisServer;

public class SimplePojo {

        public int addnumbers(int x, int y){
                return x+y;
        }

        public static void main(String[] args)throws AxisFault {
                new AxisServer().deployService(SimplePojo.class.getName());
        }
}" 
-- 
View this message in context: http://www.nabble.com/newbie%3A-is-Axis-binary-also-required-with-.war-tp16045280p16045280.html
Sent from the Axis - Dev mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org