Return-Path: Delivered-To: apmail-ws-axis-user-archive@www.apache.org Received: (qmail 64976 invoked from network); 18 Jan 2008 13:56:34 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 18 Jan 2008 13:56:34 -0000 Received: (qmail 26490 invoked by uid 500); 18 Jan 2008 13:56:17 -0000 Delivered-To: apmail-ws-axis-user-archive@ws.apache.org Received: (qmail 26472 invoked by uid 500); 18 Jan 2008 13:56:17 -0000 Mailing-List: contact axis-user-help@ws.apache.org; run by ezmlm Precedence: bulk Reply-To: axis-user@ws.apache.org list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list axis-user@ws.apache.org Received: (qmail 26461 invoked by uid 99); 18 Jan 2008 13:56:17 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 18 Jan 2008 05:56:17 -0800 X-ASF-Spam-Status: No, hits=1.2 required=10.0 tests=SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: local policy) Received: from [87.194.0.68] (HELO smtp1.bethere.co.uk) (87.194.0.68) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 18 Jan 2008 13:55:50 +0000 Received: from mx.bedbookers.com (87-194-108-109.bethere.co.uk [87.194.108.109]) by smtp1.bethere.co.uk (Postfix) with SMTP id 63238A001E for ; Fri, 18 Jan 2008 13:55:55 +0000 (GMT) Received: from [192.168.0.45] (87-194-108-104.bethere.co.uk [87.194.108.104]) by mx.bedbookers.com (8.14.1/8.14.1/Debian-8ubuntu1) with ESMTP id m0IDtrcG032472 for ; Fri, 18 Jan 2008 13:55:54 GMT Message-ID: <4790AFF1.80404@bedbookers.com> Date: Fri, 18 Jan 2008 13:56:01 +0000 From: Mar Reply-To: martin@bedbookers.com User-Agent: Thunderbird 2.0.0.9 (Windows/20071031) MIME-Version: 1.0 To: axis-user@ws.apache.org Subject: Resolving an issue of the deployment of wsdd using Axis in Command line Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org Hi, I've been running through the tutorials and keep hitting similar errors regarding accessing classes from within a Jar file. I'm trying to deploy the AdminService via the AdminClient as described in the tutorial. I can access webservices via regular http://localhost:8080/axis/*.jws and access http://localhost:8080/axis/happyaxis.jsp which describes all the needed components as being installed and detected. Once I try and run the command to deploy the wsdd I get the following error: Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/axis/client/AdminClient This exception is trigged by the following command inside the folder (\axis\WEB-INF\classes\samples\stock): java -cp "%AXISCLASSPATH%" org.apache.axis.client.AdminClient -lhttp://localhost:8080/axis/services/AdminService deploy.wsdd My setup is as follows: I'm running Tomcat 6.0 and Axis 1_4 on an Windows XP installation. I've set my environment variables up in the following manner: Variable Name: AXIS_HOME Variable Value: C:\Program Files\Apache Software Foundation\Tomcat 6.0\webapps\Axis1_4\axis-1_4 Variable Name: AXIS_LIB Variable Value: %AXIS_HOME%\lib Variable Name: AXISCLASSPATH Variable Value: %AXIS_LIB%\axis.jar;%AXIS_LIB%\commons-discovery-0.2.jar;%AXIS_LIB%\commons-logging-1.0.4.jar;%AXIS_LIB%\jaxrpc.jar;%AXIS_LIB%\saaj.jar;%AXIS_LIB%\log4j-1.2.8.jar;%AXIS_LIB%\xml-apis.jar;%AXIS_LIB%\xercesImpl.jar NB: (I have changed the .jar files on commons-discovery.jar to commons-discovery-0.2.jar and on the commons-logging.jar to commons-logging-1.0.4.jar) The servlet setup on the web.xml file is the same as the defaulted web.xml in the Axis distribution. This setup includes the Axis Admin Servlet and the servlet mapping. servlet-class point to "org.apache.axis.transport.http.AdminServlet" and the servlet url-pattern in the servlet mapping pointing to "/servlet/AdminServlet". Once inside the AXIS_LIB folder, I can see all the .jar files that have been specified by the AXISCLASSPATH. In my project in Eclipse when importing org.apache.axis.client.AdminClient I can see there are methods for undeployment (undeployService() and undeployHandler()) but no specific methods listed for deployment. Is this correct? Regarding the java.lang.NoClassDefFoundError, I understand why its happening but troubleshooting the issue is becoming problematic. I've checked the locations of the environment variables and checked the commands that i'm running and the location with which i'm running. Can you help? Thanks, Martin --------------------------------------------------------------------- To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org For additional commands, e-mail: axis-user-help@ws.apache.org