You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by anup sinha <kr...@yahoo.co.in> on 2004/06/01 06:12:28 UTC

Re: Problem in deploying web services client using AdminClient

Hi 
 I was getting the same error, but when i moved  class to WEB-INF\Class folder, its working fine. Try this 
 
Anup Kumar

Asanka Priyanjitih <AP...@virtusa.com> wrote:

st1\:*{behavior:url(#default#ieooui) }
 

Hi All

 

 

I try to deploy some web service using AdminClinet, but after deploying that I can able to access AdminServlet (http://127.0.0.1:8080/axis/servlet/AxisServlet)

 

It display following error 

 

And now... Some Services

AXIS error

Sorry, something seems to have gone wrong... here are the details:

 

Fault - Could not find class for the service named: Calc1

Hint: you may need to copy your class files/tree into the right location (which depends on the servlet system you are using).; nested exception is: 

      java.lang.ClassNotFoundException: Calc1

AxisFault

 faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.generalException

 faultSubcode: 

 faultString: Could not find class for the service named: Calc1

Hint: you may need to copy your class files/tree into the right location (which depends on the servlet system you are using).; nested exception is: 

      java.lang.ClassNotFoundException: Calc1

 faultActor: 

 faultNode: 

 faultDetail: 

 

 

I flowed following step to deploy my services 

 

Step 1:

 

Wrote following java program

 

public class Calc

{

 

public int Add(int ia,int ib)

{

 

return ia+ib;

 

}

 

}   

 

Step 2:

 

Save This file in the c:\ Axis Ex directory (Calc.java)

 

Step 3

 

 

Wrote following wsdd file 

 

<deployment xmlns="http://xml.apache.org/axis/wsdd/" xmlns:java="http://xml.apache.org/axis/wsdd/providers/java">

 

 <service name="Cal" provider="java:RPC">

  <parameter name="className" value="Cal"/>

  <parameter name="allowedMethods" value="*"/>

 </service>

 

</deployment>

 

Step 4

 

Run the command 

 

 

C:\Axis Ex>java -cp .;%AXISCLASSPATH% org.apache.axis.client.AdminClient deploy.wsdd

 

After run that command 

It display

 

 

C:\Axis Ex>java -cp .;%AXISCLASSPATH% org.apache.axis.client.AdminClient deploy.wsdd

Processing file deploy.wsdd

<Admin>Done processing</Admin>

C:\Axis Ex>

 

Step 5

Then I was try to axis AdminServlet (http://127.0.0.1:8080/axis/servlet/AxisServlet)

 

It display above error 

 

 

 

Please help me to resolve this issue 

 

 

Thanks & Regards

 

G J Asanka Priyanjith

 

 

 

 



---------------------------------
--------------------------------------------------------------------------------------------------
This message, including any attachments, contains confidential information intended for a specific individual and purpose, and is intended for the addressee only. Any unauthorized disclosure, use, dissemination, copying, or distribution of this message or any of its attachments or the information contained in this e-mail, or the taking of any action based on it, is strictly prohibited. If you are not the intended recipient, please notify the sender immediately by return e-mail and delete this message. 



Yahoo! India Matrimony: Find your partner online.