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 Asanka Priyanjitih <AP...@virtusa.com> on 2004/05/28 06:37:34 UTC

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. 

Re: problem in Custom Deployment process

Posted by Pranav Kapil <pr...@seeconsulting.com>.
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 ----- 
  From: Asanka Priyanjitih 
  To: axis-user@ws.apache.org 
  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.