You can not write that ant task in the wsdd file...
What you can do is that create an ant script which first copy the class file in the desired folder and then execute the wsdd file..
 
Cheers...
----- Original Message -----
Sent: Friday, May 28, 2004 11:20 AM
Subject: RE: problem in Custom Deployment process

Hi Pranav

 

Thanks a lot.

 

I did not catch it correctly. Please could u explain a bit more it is grate?

 

Really what I want know we can write ant tasks inside that WSDD?

 

Thanks & Regards

 

G J Asanka Priyanjith

 

 

-----Original Message-----
From: Pranav Kapil [mailto:[EMAIL PROTECTED]

Sent: Friday, May 28, 2004 11:31 AM
To:
[EMAIL PROTECTED]
Subject: Re: problem in Custom Deployment process

 

Yuo can write an ant script to install the webservice(by executing 

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

and then copying the class file in the desired location.

 

Cheers... 

----- Original Message -----

Sent: Friday, May 28, 2004 10:49 AM

Subject: RE: problem in Custom Deployment process

 

Hi Pranav

 

Thanks it is working now.

I also like to know, can use ant task to automate this file copying process?, if it is possible then how can we re write this WSDD to do that ?

 

Thanks & Regards

 

G J Asanka Priyanjith  

 

 

-----Original Message-----
From: Pranav Kapil [mailto:[EMAIL PROTECTED]
Sent: Friday, May 28, 2004 10:55 AM
To: [EMAIL PROTECTED]
Subject: Re: problem in Custom Deployment process

 

There are so many things wrong in this process...

1. the class name is Calc but you have given the class name as "Cal" in the deploy.wsdd file and the most interesting part is the error "Could not find class for the service named: Calc1" which means the service name it is taking is Calc1 not Calc or Cal as mentioned in the  deploy.wsdd file.

 

2. The other thing wrong is that the place you have copied the class file wrong. You have to copy the class file under

   %AXIS_HOME%\WEB-INF\classes folder.

 

Try again and let me know if it works..

 

Cheers...

----- Original Message -----

Sent: Friday, May 28, 2004 10:07 AM

Subject: problem in Custom Deployment process

 

Hi All

 

Please some one help me to do custom deployment using AdminClient

 

Because I try to flow the steps in user guide and do that but it’s not work.

 

This are steps witch I flow.

 

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:

 

Compile the class.

 

Step 4:

 

 

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 following 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 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:

 

 

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.


--------------------------------------------------------------------------------------------------
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.


--------------------------------------------------------------------------------------------------
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.

Reply via email to