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 Vinicius Carvalho <ja...@gmail.com> on 2006/01/30 14:43:59 UTC

Java2WsdlAntTask help with class not found question

Hello there I've this ant script:

<path id="project.class.path">
                        <pathelement location="${bin.dir}" />
                        <pathelement path="${java.class.path}" />
                        <pathelement location="${lib.dir}"/>
</path>
<target name="generate-wsdl" depends="init">
             <path refid="axis.classpath"/>
             <taskdef name="java2wsdl" classname="
org.apache.axis.tools.ant.wsdl.Java2WsdlAntTask">
                    <classpath refid="axis.classpath"/>
                     <classpath refid="project.class.path"></classpath>
              </taskdef>
              <java2wsdl output="web/wsdl/AlterarPlano.wsdl"
                           classname="
com.way.cplus.services.alterarplano.impl.AlterarPlanoServiceImpl"
                           namespace="urn:AlterarPlano"
                           location="
http://localhost:8080/wayservices/services/alterarPlano"

 exclude="getPacoteBO,setPacoteBO,getAlterarPlanoBO,setAlterarPlanoBO"
                         style="document"
                           use="literal"
                  >
              <mapping namespace="urn:CadastroService" package="
com.mgjug.services.impl"/>
              </java2wsdl>
        </target>

Well on the lib dir I have some common classes including
GenericBusinesObject which is a super class of one of the properties from my
service.
When I run the task I get the error:
[java2wsdl] java.lang.NoClassDefFoundError:
com/synos/model/bo/GenericBusinessObject

Well, if it's in the classpath that should not being happen should it? I
know it's my fault, just dunno where ;)

PS: Same happens when using WTP 1.0 to generate the WebService

Best Regards