Forum Stats

  • 3,827,861 Users
  • 2,260,833 Discussions
  • 7,897,399 Comments

Discussions

fmw 12c wsa is throwing java.lang.ClassNotFoundException: oracle.j2ee.ws.common.tools.api.SeiValidat

User10385252-Oracle
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 (11.1.1.6.0) 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"/>

</java>

I have modified to "oracle_common/modules/com.oracle.webservices.fmw.ws-assembler-classes-impl_12.1.2.jar" 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/com.oracle.webservices.fmw.wsclient-rt-impl_12.1.2.jar" in classpath

[java] '/tools/CGBU/supplychain/software/linux/JDeveloper12.1.2/oracle_common/modules/com.oracle.webservices.fmw.ws-assembler-classes-impl_12.1.2.jar'

     [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 oracle.j2ee.ws.tools.wsa.Main.formatAndReportAnyErrorCondition(Main.java:128)

     [java] at oracle.j2ee.ws.tools.wsa.Main.mainNoSystemExit(Main.java:117)

     [java] at oracle.j2ee.ws.tools.wsa.Main.main(Main.java:49)

     [java] Caused by: java.lang.ClassNotFoundException: oracle.j2ee.ws.common.tools.api.SeiValidationException

Tagged:

Answers

  • 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="oracle.j2ee.ws.tools.wsa.Main"  .....>

    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.