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 Su...@t-systems.com on 2006/07/12 08:33:44 UTC

axis-java2wsdl Not working via ANT ..

Hello,

 

Can anyone let me know reason why following code is not getting executed and giving classnotfoundexception... 

 

<target name="java2wsdl" depends="compile.ws">

                        <axis-java2wsdl

                                    output="${build.dir}"

                                    location="http://localhost:8080/axis/hello"

                                    namespace="urn:ws.hello"

                                    porttypename="com.tsystems.framework.ws.hello.HelloWSInterface">

                                    <classpath>

                                                <path refid="axis.classpath"/>

                                    </classpath>

                                    <mapping

                                                package="hello.ws"

                                                namespace="urn:ws.hello"/>

                        </axis-java2wsdl>

</target>

 

Looking forward for your prompt reply....

 

Regards,
Sushil Agarwal

Disclaimer: - This transmittal and/or attachments may be privileged or confidential. If you are not the intended recipient, you are hereby notified that you have received this transmittal in error; any review, dissemination, or copying is strictly prohibited. If you received this transmittal in error, please notify us immediately by reply and immediately delete this message and all its attachments. Thank you.

 

 


Re: axis-java2wsdl Not working via ANT ..

Posted by Nilesh Ghorpade <ni...@yahoo.com>.
Hi Sushil,
  
  The only reason for giving a "ClassNotFoundException" is when the JVM  is not able to load the class. In the Ant code snippet which you have  mentioned in the mail has a classpath element refid pointing to "axis.classpath". Please verify if the "axis.classpath" is defined correctly in your Ant script file.
  
  Hope this helps. 
  
  Cheers
  
  Nile
  
Sushil.Agarwal@t-systems.com wrote:                                Hello,
     
    Can anyone let me know reason why following code is not  getting executed and giving classnotfoundexception&#8230; 
     
    <target name="java2wsdl"  depends="compile.ws">
                             <axis-java2wsdl
                                         output="${build.dir}"
                                         location="http://localhost:8080/axis/hello"
                                         namespace="urn:ws.hello"
                                         porttypename="com.tsystems.framework.ws.hello.HelloWSInterface">
                                         <classpath>
                                                     <path refid="axis.classpath"/>
                                         </classpath>
                                         <mapping
                                                     package="hello.ws"
                                                     namespace="urn:ws.hello"/>
                             </axis-java2wsdl>
    </target>
     
    Looking forward for your prompt reply&#8230;.
     
    Regards,
  Sushil Agarwal
    Disclaimer: - This transmittal and/or attachments  may be privileged or confidential. If you are not the intended recipient, you  are hereby notified that you have received this transmittal in error; any  review, dissemination, or copying is strictly prohibited. If you received this  transmittal in error, please notify us immediately by reply and immediately delete  this message and all its attachments. Thank you.
     
     
    
    

 		
---------------------------------
Yahoo! Messenger with Voice. Make PC-to-Phone Calls to the US (and 30+ countries) for 2ยข/min or less.