Forum Stats

  • 3,827,861 Users
  • 2,260,833 Discussions


fmw 12c wsa is throwing java.lang.ClassNotFoundException:

User10385252-Oracle Member Posts: 7
edited Sep 3, 2013 5:59AM in TopLink/JPA

I am using wsa (Web Service Assembler) to generated web services I am using below ant task in FMW 11g PS5 ( and working fine,

<java jar="${jdev.home}/../oracle_common/modules/oracle.webservices_11.1.1/wsa.jar" failonerror="true" fork="true">

      <arg line="genInterface"/>

      <arg line="-dataBinding jaxb20"/>

      <arg line="-debug true"/>

      <arg line="-searchSchema true"/>

      <arg line="-wsdl ${schema.dir}/wsdl/ProductControlService.wsdl"/>

      <arg line="-bindingInfo ${schema.dir}/schema/types/jaxb-bindings.xml"/>

      <arg line="-output ${build.src}/"/>

      <arg line="-packageName org.comms.inv.webservice.types"/>

      <arg line="-valueTypePackagePrefix org.comms.inv.webservice.types"/>


I have modified to "oracle_common/modules/" from wsa.jar as "wsa.jar" file is renamed. but above ant script is throwing exception and stack trace details given below

exception is not resolved even after adding "${jdev.home}/oracle_common/modules/" in classpath

[java] '/tools/CGBU/supplychain/software/linux/JDeveloper12.1.2/oracle_common/modules/'

     [java] 'genInterface'

     [java] '-dataBinding'

     [java] 'jaxb20'

     [java] '-debug'

     [java] 'true'

     [java] '-searchSchema'

     [java] 'true'

     [java] '-wsdl'

[java] The ' characters around the executable and arguments are

     [java] not part of the command.

     [java] Exception in thread "main" java.lang.NoClassDefFoundError: oracle/j2ee/ws/common/tools/api/SeiValidationException

     [java] at

     [java] at

     [java] at

     [java] Caused by: java.lang.ClassNotFoundException:



  • This issue was resolve after changing the <java> ant tag usage.  I have modified the tag to use classname instead of jar file.

    <java classname=""  .....>

    and added all jars required.  I am not sure why external classpath is not reflected when java tag is executing jar file.

This discussion has been closed.