axis-java2wsdl task classpath setting problem

Posted by qkrsppopcmpt on Stack Overflow See other posts from Stack Overflow or by qkrsppopcmpt
Published on 2010-03-26T23:57:16Z Indexed on 2010/03/27 0:03 UTC
Read the original article Hit count: 205

Filed under:
|

Hey Guys,

here is my build.xml

<?xml version="1.0" standalone="yes"?>

<path id='axis2.classpath'> 
<fileset dir='D:\Tools\axis2-1.5.1-bin\axis2-1.5.1\lib'>
            <include name='**/*.jar' />
        </fileset>  
</path>

<path id='compiled.class.path'>
<fileset dir='./bin/pkg'>
            <include name='*.class' />
        </fileset>  
</path>

<taskdef resource="axis-tasks.properties" classpathref="axis2.classpath" />

<target name="run" >        
    <axis-java2wsdl 
        output="out/TestService.wsdl"
        location="http://localhost:8080/axis2/service/TestService"
        namespace="service"
        classname="TestService">
        <classpath refid="compiled.class.path"/>        
        <mapping namespace="TestService" package="pkg"/>
    </axis-java2wsdl>
</target> 

here is my file structure:

prj->bin->pkg->TestService.class/////////// prj->src->pkg->TestService.java/////////// prj->build.xml

I get java.lang.ClassNotFoundException: TestService.

Can anybody tell me how to fix it? Thanks so much. !!!!!!!!!!!!!

© Stack Overflow or respective owner

Related posts about axis2

Related posts about web-services