users@jax-rpc.java.net

Re: Help... ClassNotFoundException when running wscompile

From: Mark A Bradbury <Mark_A_Bradbury_at_raytheon.com>
Date: Tue, 10 May 2005 07:21:42 -0500

Doug,

I changed the classpath arguement to just include "C:\foo\classes" as
suggested but still get the same error. All of the class files that are
in the "classes" directory including the WebService.class file now show
up in the output, but it still throws a ClassNotFoundException.

target name="generate-wsdl" depends="compile-server">
       <!-- Generate the WSDL file -->
       <wscompile
           keep="true"
           base="${classes}"
           sourceBase="${server_generated_dir}"
           server="true"
           xPrintStackTrace="true"
           verbose="true"
           config="${config.file}"
           model="${classes}/${model}">
           <classpath>
               <path refid="compile.path"/>
               <fileset dir="${classes}"/>
           </classpath>
       </wscompile>
   </target>

generate-wsdl:
[wscompile] command line: wscompile -d C:\foo\classes -gen:server -keep
-model C:\foo\classes\model-wsdl-foo.xml.gz -s C
:\foo\src\generated\server -verbose -Xprintstacktrace
C:\foo\config\ws\config.xml -classpath C:\foo\ext\activation.jar;C:\fo
o\ext\arcims_jconnect.jar;C:\foo\ext\axis-ant.jar;C:\foo\ext\axis.jar;C:\foo\ext\castor-0.9.5.jar;C:\foo\ext\cmp.jar;C:\foo\ext\co
mmons-beanutils.jar;C:\foo\ext\commons-collections.jar;C:\foo\ext\commons-dbcp.jar;C:\foo\ext\commons-digester.jar;C:\f
oo\ext\commons-discovery.jar;C:\foo\ext\commons-fileupload.jar;C:\foo\ext\commons-lang.jar;C:\foo\ext\commons-logging
.jar;C:\foo\ext\commons-net-1.2.2.jar;C:\foo\ext\commons-pool.jar;C:\foo\ext\commons-resources.jar;C:\foo\ext\commons-v
alidator.jar;C:\foo\ext\concurrent.jar;C:\foo\ext\dbunit-2.1.jar;C:\foo\ext\jax-qname.jar;C:\foo\ext\jaxp-api.jar;C:\foo\ext\jaxrp
c-api.jar;C:\foo\ext\jaxrpc-impl.jar;C:\foo\ext\jaxrpc-spi.jar;C:\foo\ext\jaxrpc.jar;C:\foo\ext\jboss\jboss-common-jdbc-wrapper
.jar;C:\foo\ext\jboss\jbossall-client.jar;C:\foo\ext\jms.jar;C:\foo\ext\jstl.jar;C:\foo\ext\jts-1.4.1.jar;C:\foo\ext\junit.jar;C:\foo\ex
t\mail.jar;C:\foo\ext\objectplanet.jar;C:\foo\ext\relaxngDatatype.jar;C:\foo\ext\saaj-api.jar;C:\foo\ext\saaj-impl.jar;C:\foo\ext\s
aaj.jar;C:\foo\ext\saxpath.jar;C:\foo\ext\sdoapi.jar;C:\foo\ext\standard.jar;C:\foo\ext\struts-adapter.jar;C:\foo\ext\struts-legac
y.jar;C:\foo\ext\struts.jar;C:\foo\ext\swiftmq.jar;C:\foo\ext\tar.jar;C:\foo\ext\wsdl4j.jar;C:\foo\ext\xalan.jar;C:\foo\ext\xercesIm
pl.jar;C:\foo\ext\xml-apis.jar;C:\foo\ext\xsdlib.jar;C:\foo\lib\concurrent.jar;C:\foo\lib\jbossall-client.jar;C:\foo\lib\jts-1.4.1.jar;C
:\foo\lib\sdoapi.jar;C:\foo\lib\xsl.jar;C:\foo\classes\bar\webservice\ejb\WebService.class;C:\foo\classes\bar\webservice\ejb\
WebServiceBean.class;C:\foo\classes\bar\webservice\ejb\WebServiceHelper.class;C:\foo\classes\bar\webservice\ejb\WebS
erviceHome.class
[wscompile] [creating model: WebService]
[wscompile] [creating service: WebService]
[wscompile] RmiModeler error: java.lang.ClassNotFoundException:
bar$webservice$ejb$WebService
[wscompile] at
com.sun.xml.rpc.processor.modeler.rmi.RmiModeler.modelPort(RmiModeler.java:685)
[wscompile] at
com.sun.xml.rpc.processor.modeler.rmi.RmiModeler.buildEncodedModel(RmiModeler.java:523)...

Thanks,
Mark