Hi Perry usally axis does not run from the tomcat webapps dirctory. we add new context to the tomcat called axis by putting axis.xml into tomcat webapps. (sure you can run it by coping to the webapps at the tomcat but then u should not have that axis.xml .....?? do u have it or not )
hope this helps regards Srinath sample axis.xml <Context path="/axis" docBase="/usr/work/xml-axis-10/webapps/axis" debug="0" privileged="true"> <Logger className="org.apache.catalina.logger.FileLogger" prefix="axis_log." suffix=".txt" timestamp="false"/> </Context> On Fri, 2003-08-01 at 00:12, Marcia Perry (DSD staff) wrote: > Hi, > I'm getting started w/ axis (axis-1_1 distrib w/ Tomcat v3.1.24 on > linux rh 7.2, jdk1.3). I'm following the instructions, commands, etc. > in the "Installing and deploying applications using xml-axis" doc and > got confused while playing with the samples/stock web service about > how/where axis w.s. are executed from. > > I copied the axis1_1/webapps/ into a tomcat webapps/axis/ directory. > I went into the axis distrib. dir's samples/stock subdir and did: > 'java -cp $AXISCLASSPATH org.apache.axis.client.AdminClient > -lhttp://myhost:8080/axis/services/AdminClient deploy.wsdd' > Sure enough the stock quote is listed in the web page that appears > when I click the "View" link in the axis main page. And when I > invoke the client w/: > % cd $AXIS-HOME/samples/stock > (where AXIS_HOME is the axis distrib directory) > % java -cp $AXIS_CLASSPATH samples.stock.GetQuote > -lhttp://myhost:8080/axis/servlet/AxisServlet -uuser1 -wpass1 XXX > (or IBM) > I do get the expected output. Cool.... > > BUT... to understand stuff, I deleted the class files from the > tomcat webapps tree, restarted tomcat, and the client invocation > STILL WORKED! I put the class files back into > $TOMCAT/webapps/axis/WEB-INF/classes/samples/stock but deleted the > class files from the axis-distrib. directory. Now the invocation > fails. > > So I'm confused.... it seems like the web services are running from the > axis distribution directory, not from tomcat/webapps. > If this is true, why does the doc say: "The first step is to add your > code to the server. In the WEB-INF directory, look for (or create) a > 'classes' directory (i.e., axis/WEB-INF/classes). In this directory, > copy the compiled Java classes you wish to install...."? > > I understand that axis itself is a servlet and running commands to > deploy/undeploy w/ a .wsdd file is invoking this servlet so some > entry can be made into axis' internal 'database' and I note the > argument to the client invocation -- > "lhttp://host:port/axis/servlet/AxisServlet" so again it's pretty > clear that a servlet is being invoked. I assume the term "axis engine" > refers to AxisServlet, no? > > So I'm still unclear as to where the actual web services classes (in > this case, GetQuote, etc.) are executed from? > > Thanks to anyone who can clear my befuddled newbie misunderstandings-- > Marcia