Hi All,
 
I was trying to build my Weblogic web service with jwsc task with Ant
Following is the ant file code that I used
 
//*****************************
ANT File
 
<project default="">
 <!--
 <target name="build" depends="jwsc">
  <wldeploy action="deploy" name="RequestInformation" 
   source="com/RequestInformatione.war"
   user="weblogic" 
   password="weblogic"
   adminurl="t3://localhost:7021/" 
   targets="AdminServer" />
 </target>
 -->
 <property name="wls.username" value="weblogic" />
 <property name="wls.password" value="weblogic" />
 <property name="wls.hostname" value="localhost" />
 <property name="wls.port" value="7001" />
 <property name="wls.server.name" value="AdminServer" />
 <property name="ear.deployed.name" value="RequestInformationEar" />
 <property name="ear-dir" value="output" />
 <property name="tmp-dir" value="c:/temp" />
 <property name="clientclass-dir" value="src/com/sdo" />
 <property name="WEBLOGIC_SERVER_LIB"
value="c:/bea_922/weblogic92/server/lib" />
 <property name="JAVA_HOME" value="c:/dev/tools/sunjdk/1.5.0_12" />
 
 <path id="project.class.path">
  <fileset dir="C:/SB_JAR">
    <include name="*.jar" />
   </fileset>
  <fileset dir="${WEBLOGIC_SERVER_LIB}">
   <include name="**/*.jar" />
  </fileset>
  <fileset dir="C:/bea_922/weblogic92/common/lib">
   <include name="apache_xbean.jar"/>
  </fileset>
  <fileset dir="${JAVA_HOME}">
   <include name="**/*.jar" />
  </fileset>
  <pathelement path="${java.class.path}" />
  <pathelement path="${clientclass-dir}" />
 </path>
 
 <taskdef name="jwsc" classname="weblogic.wsee.tools.anttasks.JwscTask">
  <classpath refid="project.class.path" />
 </taskdef>
 <taskdef name="clientgen"
classname="weblogic.wsee.tools.anttasks.ClientGenTask">
  <classpath refid="project.class.path" />
 </taskdef>
 <taskdef name="wldeploy"
classname="weblogic.ant.taskdefs.management.WLDeploy">
  <classpath refid="project.class.path" />
 </taskdef>
 
 <target name="build-service">
  <echo>destdir is: ${ear-dir}</echo>
  <jwsc tempdir="${tmp-dir}" 
   debug="true" 
   verbose="true" 
   srcdir="src" 
   destdir="${ear-dir}" 
   classpathref="project.class.path" 
   keepGenerated="true">
   <jws file="com/RequestInformation.java" explode="true" />
  </jwsc>
 </target>
</project>
 
//***********************************END OF FILE
 
 
However it fails with the following error output
 
//************************************
OUTPUT
 
Buildfile:
C:\bea_922\user_projects\w4WP_workspaces\Untitled\TestProject\build.xml
build-service:
[echo] destdir is: output/helloWorldEar
[jwsc] JWS: processing module /com/RequestInformation
[jwsc] Parsing source files
[jwsc] Parsing source files
[jwsc] 1 JWS files being processed for module /com/RequestInformation
[jwsc] JWS:
C:\bea_922\user_projects\w4WP_workspaces\Untitled\TestProject\src\com\Re
questInformation.java Validated.
[AntUtil.deleteDir] Deleting directory C:\temp\_x85513
BUILD FAILED
java.lang.AssertionError: java.io.IOException
Total time: 19 seconds
END OF OUTPUT
//*********************************************************
 
I am new to ant build enviroment so I may be missing out some of the
minute details, so please help me in that direction.
regards

Sanchit Srivastava
Morgan Stanley | Technology
Bldg. 5, Sector 30, Mindspace, Goregaon (West) | Floor 02
Mumbai (Ex Bombay), 400 090 | India

Phone: +91 -22 -6641 0712
[EMAIL PROTECTED]
--------------------------------------------------------

NOTICE: If received in error, please destroy and notify sender. Sender does not 
intend to waive confidentiality or privilege. Use of this email is prohibited 
when received in error.

Reply via email to