ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From <Srikrishna_Parthasara...@timeinc.com>
Subject Ear file build....with weblogic......8.1sp2
Date Mon, 24 Oct 2005 22:45:56 GMT



I am trying to create a Ear file out of the following. It is complaining


\ejb-jar.xml
    [copy] Copying C:\finalmessage\build.xml to
C:\finalmessage\build\META-INF
uild.xml
     [jar] Building jar: C:\finalmessage\dist\OMSQueueEngine.jar
     [jar] adding directory META-INF/
     [jar] adding entry META-INF/MANIFEST.MF
     [jar] adding entry META-INF/build.xml
     [jar] adding entry META-INF/ejb-jar.xml
     [jar] adding entry META-INF/weblogic-ejb-jar.xml
     [jar] adding entry OMSQueueEngine.class
     [jar] adding entry OMSQueueEngineBean.class
     [jar] adding entry OMSQueueEngineHome.class

UILD FAILED
:\finalmessage\build.xml:77: Could not create task or type of type:
wlappc.

nt could not find the task or a class this task relies upon.

his is common and has a number of causes; the usual
olutions are to read the manual pages then download and
nstall needed JAR files, or fix the build file:
- You have misspelt 'wlappc'.
  Fix: check your spelling.
- The task needs an external JAR file to execute
    and this is not found at the right place in the classpath.
  Fix: check the documentation for dependencies.
  Fix: declare the task.
- The task is an Ant optional task and the JAR file and/or libraries
    implementing the functionality were not found at the time you
    yourself built your installation of Ant from the Ant sources.
  Fix: Look in the ANT_HOME/lib for the 'ant-' JAR corresponding to the
    task and make sure it contains more than merely a
META-INF/MANIFEST.MF.
    If all it contains is the manifest, then rebuild Ant with the needed
    libraries present in ${ant.home}/lib/optional/ , or alternatively,
    download a pre-built release version from apache.org
- The build file was written for a later version of Ant
  Fix: upgrade to at least the latest release version of Ant
- The task is not an Ant core or optional task
    and needs to be declared using <taskdef>.
- You are attempting to use a task defined using
   <presetdef> or <macrodef> but have spelt wrong or not
  defined it at the point of use

emember that for JAR files to be visible to Ant tasks implemented
n ANT_HOME/lib, the files must be in the same directory or on the
lasspath


My build.properties file

#############################################
# This file contains property settings for  #
# use in  ant build scripts.       #
#############################################
## application specific properties 

machine=itappstage
port=7001
JAVA_HOME=C:\bea\jdk142_04

###  Examples src and domain directory locations  ###
-- Configure per your Examples source location.

apps.domain.dir=.
apps.dir=${apps.domain.dir}/applications

###  Ant evaluted o/s  ###
win.os="Windows XP,Windows 2000,Windows NT,Windows 98,Windows 95"
unix.os="HP-UX,Solaris,SunOS,AIX,Linux"



###  Compile options  ###
-- See Ant documentation for more information on build.compiler.
compiler=modern
debug=yes
deprecation=yes
debug=false
    


<project name="ejblink" default="all" basedir=".">
  <!-- set global properties for this build -->
  <property file="build.properties"/>
  <property name="build.compiler" value="${compiler}"/>
  <property name="source" value="."/>
  <property name="build" value="${source}/build"/>
  <property name="dist" value="${source}/dist"/>
  <property name="ejbc_jar_file" value="OMSQueueEngine.jar" />
  <property name="war_file" value="OMSQueueEngine.war" />
  <property name="ear_file" value="OMSQueueEngine.ear" />
  <!-- <property name="client_file" value="OMSQueueEngine_client.jar" />
-->

  <target name="all" depends="clean, ear"/>

<path id="project.class.path">
<pathelement location="." />
<pathelement location="lib/tools.jar" />
<pathelement location="lib/weblogic.jar" />
<pathelement location="lib/webservices.jar" />
<pathelement location="lib/ejbgen.jar" />
</path>







  <target name="clean">
    <delete dir="ejbcgen" />
    <delete dir="${build}" />
    <delete file="${war_file}"/>
    <delete file="${apps.dir}/${ear_file}"/>
    <delete file="${client_file}"/>
  </target>

  <target name="ear" depends="build-ejb">
<echo message="" file="logcreation.log" append="false"/>

    <delete dir="${build}" />
    <mkdir dir="${build}" />
    <copy todir="${build}" file="${dist}/${ejbc_jar_file}"/>    
    <servicegen
    	destEar="${apps.dir}/${ear_file}"
    	warName="${war_file}" 
    	contextURI="OMS">
    	<service
    		ejbJar="${build}/${ejbc_jar_file}"
 
targetNamespace="http://{machine}:{portno}/OMS/OMSQueueEngine"
    		serviceName="OMSQueueEngine"
    		serviceURI="/OMSQueueEngine"
    		generateTypes="True"
    		expandMethods="True" >
    </service>
    </servicegen>
  </target>

  <target name="build-ejb">
    <delete dir="${build}" />
    <delete dir="${dist}" />
    <mkdir dir="${build}" />
    <mkdir dir="${dist}"/>
    <javac srcdir="./src" destdir="${build}"
classpathref="project.class.path" />    
<copy todir="${build}/META-INF" >
      <fileset dir="." >
        <include name="*.xml"/>
      </fileset>
    </copy>
    <jar jarfile="${dist}/${ejbc_jar_file}"
         basedir="${build}"
         update="yes"/>
   
 

 <wlappc debug="${debug}"
      source="${dist}/${ejbc_jar_file}"
classpathref="project.class.path" 
      />






  </target>


</project>

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Mime
View raw message