Unable to create a simple web service with WebLogic Server

Abstract: Unable to create a simple web service with WebLogic Server


  • Product Name: JBuilder Enterprise
  • Product Version: 2005
  • Product Component:Web�Services creation with WebLogic Application�server
  • Platform/OS Version: Windows

  • Description:

    Compilation of a simple web service in JBuilder targetted for WebLogic fails.

    The following error is displayed:

    .... taskdef A class needed by class weblogic.ant.taskdefs.webservices.clientgen.ClientGenTask cannot be found: org/apache/tools/ant/Task

    Answer/Solution:

    The AntHome variable needs to be set for the web service to point to that of the WebLogic Application server with the following steps:

    1. Project | Properties | Build | Ant

    2. Change Ant Home to <WebLogic installation directory> (eg. C:/bea/weblogic81/server)

    This will allow JBuilder to find the Ant libraries and resolve the above error.