Building J2EE examples with Ant 1.3 on WinXP

I just installed J2EE 1.3.1 and set all environment variables according to J2EE/Ant documentation. I am trying to build the examples with Ant 1.3 and just before it tries to compile the first example, I get a "NTVDM.EXE Error while setting up environment" error window. This occurs every time I try this examples build. After I close this error window, the compiles fail mostly because the javax.ejb package classes cannot be found.
Have I overlooked something here? Can anyone shed some insight on this problem?
-Ryan

Didn't think I'd be replying to so many of my own messages :-) ..., but anyway the problem with the NTVDM.EXE error message does not go away. I found that it's happens when Ant reads the system environment in the "property" task in build.xml under examples directory:
<property environment="myenv" />
<!--
references to ${myenv.J2EE_HOME} and so on
-->
So I replaced occurences of ${myenv.<J2EE_HOME>} with the literal value, in my case, "C:\j2sdkee1.3.1" and now it works. Hope this helps.
Cheers,
Lakshmi.

Similar Messages

  • Building weblogic ejbs with ant...

    Hi, it may be not the proper place, but I haven't found a better one...
    Here comes my question:
    I have an ant build.xml file where I have the following tasks defined:
    <property name="ejb.dtd.location" value="weblogic/ejb/deployment/xml/ejb-jar.dtd"/>
        <condition property="ejb.dtd.location" value="weblogic/ejb20/dd/xml/ejb11-jar.dtd">
          <equals arg1="${weblogic.major.version}" arg2="6"/>
        </condition>
        <property name="weblogic.ejb.dtd.location" value="weblogic/ejb/deployment/xml/weblogic-ejb-jar.dtd"/>
        <condition property="ejb.dtd.location" value="weblogic/ejb20/dd/xml/weblogic510-ejb-jar.dtd">
          <equals arg1="${weblogic.major.version}" arg2="6"/>
        </condition>
    <!-- compiles EJBs -->
      <target name="compile.ejb" depends="init">
        <javac srcdir="${srcDir.ejb}"
              destdir="${srcDir.ejb}"
                debug="${npm.debug}">
          <classpath id="ejb.cpath">
             <pathelement path="${weblogic.sp.path}"/>
             <pathelement path="${weblogic.core.path}"/>
             <pathelement location="${outDir.core}${file.separator}npm.jar"/>
             <pathelement location="${srcDir.ejb}"/>
           </classpath>
        </javac>
      </target>
      <!-- delivers EJBs -->
      <target name="make.ejb" depends="prepare, compile.ejb">
        <!-- ejbc 'n jar 'em -->
        <ejbjar srcdir="${srcDir.ejb}">
           <weblogic destdir="${outDir.ejb}"
                     compiler="${compiler.ejb}"
                     keepgeneric="false"
                     suffix=".jar"
                     args="-g -nowarn"
                     oldCMP="false">
             <classpath refid="ejb.cpath"/>
           </weblogic>
           <include name="**/*-ejb-jar.xml"/>
           <exclude name="**/*-weblogic-ejb-jar.xml"/>
           <!-- WLS v5 DTDs!!! -->
           <dtd publicId="-//Sun Microsystems, Inc.//DTD Enterprise JavaBeans 1.1//EN"
                location="${ejb.dtd.location}"/>
           <dtd publicId="-//BEA Systems, Inc.//DTD WebLogic 5.1.0 EJB//EN"
                location="${weblogic.ejb.dtd.location}"/>
        </ejbjar>
      </target>This should build my ejbs with either the wls61 ejbc or the wls51 one. Anyway ant seems to have problems finding the local dtds in the classpath, although this is specified in the documentation. When I set both location attributes to point to files it works perfect. The problem is that these are in weblogic.jar for the wls61 release. This has two solutions, but either are bad in my opinion:
    1. extract the needed dtds to a temp dir with a jar task and then delete em...
    2. put the proper wls.jar in the classpath so ejbc could automatically resolve the dtds
    Can anyone help or may be send his ant build file, where a <dtd> nested element is used for <ejbjar> for wls61?
    Thank you in advance
    Anton

    Anton,
    Your second solution is the correct one. If you look at dtd element description under ejbjar task in the Ant manual, you'll see that vendors jars are required in Ant's classpath in order for ejbjar task to resolve DTD dependencies, in which case you don't need to specify dtd elements. I don't particularly like it either. If you find a better way to solve this problem, let me know.
    -Dmitry

  • Error when build J2EE example - web

    I use ANT 1.4.1 in C:\ANT directory and set up all environment variables ANT_HOME, JAVA_HOME etc
    When I do a build on the "web example as following:
    ant web
    I got the following error:
    BUILD FAILED
    java.lang.NullPointerException
    at org.apache.tools.ant.taskdefs.Property.loadEnvironment(Property.java:
    253)
    at org.apache.tools.ant.taskdefs.Property.execute(Property.java:183)
    at org.apache.tools.ant.Task.perform(Task.java:217)
    at org.apache.tools.ant.Target.execute(Target.java:184)
    at org.apache.tools.ant.Target.performTasks(Target.java:202)
    at org.apache.tools.ant.Project.executeTarget(Project.java:601)
    at org.apache.tools.ant.Project.executeTargets(Project.java:560)
    at org.apache.tools.ant.Main.runBuild(Main.java:454)
    at org.apache.tools.ant.Main.start(Main.java:153)
    at org.apache.tools.ant.Main.main(Main.java:176)
    Any suggestion. Appreciate your help
    Tom

    Are you running ant in the <j2eetutorial_home>\examples directory> ?J2eetutorial_home refers to the directory where the tutorial is installed. I don't think this is the problem, but I thought i might check.

  • Building web project with ANT

    Hi,
    I am using jdeveloper 11g TP4 , and for building my web application i am using Jdev,
    but now for some extra work i am using ANT, so my requirement is when i am doing make(build) of my web project it should run that Ant file (build.xml)
    i have checked the run/debug configuration but not able to run the ant implicitly..
    can anybody knows ..
    Thanks in advance
    Edited by: 982899 on Jan 29, 2013 3:59 AM

    Hi,
    I am not sure if this is the only answer but when I want to run an ANT file for my project I do right click on my build.xml and simply run the target I want to run. On the other hand, you can configure your RUN profile and play a bit to see if its possible to configure in there ANT to be run automatically when you run your project by using JDeveloper itself.

  • Can't build JAXB examples using ant

    I'm getting the following errors when trying to build the JAXB sampls using ant. I've followed all the instructions, not sure what the prob is.
    I'm using JDK 1.6 and JWSDP 2.0 on Windows XP.
    Any ideas?
    C:\Sun\jwsdp-2.0\jaxb\samples\unmarshal-read>ant
    Buildfile: build.xml
    compile:
    [echo] Compiling the schema...
    [xjc] C:\Sun\jwsdp-2.0\jaxb\samples\unmarshal-read\gen-src\primer.po is not found and thus excluded from the dependency check
    [xjc] Compiling file:/C:/Sun/jwsdp-2.0/jaxb/samples/unmarshal-read/po.xsd
    BUILD FAILED
    C:\Sun\jwsdp-2.0\jaxb\samples\unmarshal-read\build.xml:34: java.lang.IllegalArgumentException: Expected class javax.xml.bind.annotation.XmlAccessType but found class javax.xml.bind.annotation.AccessType

    I'm getting the following errors when trying to build
    the JAXB sampls using ant. I've followed all the
    instructions, not sure what the prob is.
    I'm using JDK 1.6 and JWSDP 2.0 on Windows XP.
    Any ideas?
    C:\Sun\jwsdp-2.0\jaxb\samples\unmarshal-read>ant
    Buildfile: build.xml
    compile:
    [echo] Compiling the schema...
    [xjc]
    C:\Sun\jwsdp-2.0\jaxb\samples\unmarshal-read\gen-src\
    rimer.po is not found and thus excluded from the
    dependency check
    [xjc] Compiling
    file:/C:/Sun/jwsdp-2.0/jaxb/samples/unmarshal-read/po
    xsd
    BUILD FAILED
    C:\Sun\jwsdp-2.0\jaxb\samples\unmarshal-read\build.xml
    :34: java.lang.IllegalArgumentException: Expected
    class javax.xml.bind.annotation.XmlAccessType but
    found class javax.xml.bind.annotation.AccessTypeI'm having the same problem only using 1.5.0.10 jdk running windows XP, I'm not using ant, just command line...

  • Build SAP EAR with ant

    Hi,
    Im using Netweaver 7.1 DS and want to automate the building of my ejb jar and sap specific ear file.
    I can write the ant script for the ejb jar, but I normally build hte ear by selecting 'Export -> SAP EAR File' in the DS.
    Is there a way to automate this through ant?
    Im not really worried about deploying it through ant, as we will be using JSPM, and I can create the sda's and sca's from the ear files already.
    Is there also a list of all sap related ant tasks?
    Many thanks.
    Regards,
    Andrew

    Hi Andrew,
    i am facing the same problem, would you share your solution?
    thanks in advance,
    Rene

  • Ant build & deploy script with CEP

    Hi,
    I want to create a build & deploy script with ant for our application that runs on CEP. I succeeded on creating one that is working well. I had one problem, which is that I now assume that the server is up when the script is running. I wanted to add a target to the script that will start the server if it's not running. The problem is that startwlevs script start the server and remain open. This effectivily pause the build script indefinitely. Does anyone have any idea how to overcome this?
    Thanks

    Just fork the execution of the script. Alternatively call java directly (that's all the script does) and fork that.

  • J2EE Tutorial: Exception when building with ant

    I am trying to build the converter example on page 48 of the J2EE tutorial using ant. Ant seems to choke on the following line from the build.xml:
    <property environment="myenv" />
    The output of the "ant converter" command is:
    Buildfile: build.xml
    init:
    BUILD FAILED
    /usr/j2sdkee1.3/j2eetutorial/examples/src/build.xml:18: /usr/j2sdkee1.3/j2eetutorial/examples/src/build.xml:18: java.lang.StringIndexOutOfBoundsException: String index out of range: -1
    --- Nested Exception ---
    /usr/j2sdkee1.3/j2eetutorial/examples/src/build.xml:18: java.lang.StringIndexOutOfBoundsException: String index out of range: -1
    --- Nested Exception ---
    java.lang.StringIndexOutOfBoundsException: String index out of range: -1
    at java.lang.String.substring(String.java:1525)
    at org.apache.tools.ant.taskdefs.Property.loadEnvironment(Property.java:248)
    at org.apache.tools.ant.taskdefs.Property.execute(Property.java:172)
    at org.apache.tools.ant.Target.execute(Target.java:153)
    at org.apache.tools.ant.Project.runTarget(Project.java:898)
    at org.apache.tools.ant.Project.executeTarget(Project.java:536)
    at org.apache.tools.ant.Project.executeTargets(Project.java:510)
    at org.apache.tools.ant.Main.runBuild(Main.java:421)
    at org.apache.tools.ant.Main.main(Main.java:149)
    Total time: 1 second
    My best guess is that the "myenv" line in the build.xml requires some additional attribute. I'm using ant version 1.3. My OS is Solaris (noted for possible environment-related issues).
    Thanks in advance!
    Eric Smith

    On Windows XP Pro, the line
    <property environment="myenv" />
    in the init target of build.xml for the j2ee tutorial examples triggers a windows error message:
    16 bit MS-DOS Subsystem
    =======================
    C:\WINDOWS\system32\ntvdm.exe
    Error while setting up environment for the application. Choose 'Close' to terminate the application.
    <<Close>> <<Ignore>>
    So it looks as if ant is trying and failing to access the winnt system environment here.
    According to Ant Developers Handbook (Sams, October 2002, chapter 4, p. 151), the ant environment property "specifies a prefix, giving access to OS-specific environment variables. This is not supported on all platforms." Until this problem is fixed, it appears that on XP systems anyway, any ant settings in build.xml files that rely on direct access to the system environment will fail. Here is some debug output from the j2ee tutorial examples init target which demonstrates this:
    C:\apps\j2sdkee1.3.1\j2eetutorial\examples>ant init
    Buildfile: build.xml
    init:
    [echo] starting init target
    [echo] reached marker 1
    [echo] reached marker 2
    [echo] value of J2EE_HOME is ${myenv.J2EE_HOME}
    [echo] finished init target
    BUILD SUCCESSFUL
    where the task:
    <property environment="myenv" />
    (which generates the OS error popup noted above) occurs between marker 1 and marker 2. Clearly the value of J2EE_HOME is NOT being successfully read from the system environment here.

  • How to use ant1.3 in Wndows ME to build the examples in J2EE Tutorial?

    When I tried to build the examples bundled with j2ee tutorial in the ..\j2eetutorial\examples directory using the ant 1.3 on Wndows ME I get the following exception.Anybody please help me.Is there any other build tool available for download?
    StringIndexOutOfboundsException
    D:\JAVATUTORIAL\J2EE\j2eetutorial\examples> ant -verbose all
    Ant version 1.3 compiled on March 2 2001
    Buildfile: build.xml
    Detected Java Version: 1.3
    Detected OS: Windows Me
    parsing buildfile D:\JAVATUTORIAL\J2EE\j2eetutorial\examples\build.xml with URI
    = file:D:/JAVATUTORIAL/J2EE/j2eetutorial/examples/build.xml
    Project base dir set to: D:\JAVATUTORIAL\J2EE\j2eetutorial\examples
    Build sequence for target `all' is [init, savingsaccount, bank, cart, checker, c
    onfirmer, converter, enroller, order, salesrep, storagebin, teller, htmlreader,
    warehouse, simplemessage, cmproster, ejb, date, hello1, hello2, bookstore1, web-
    ejb, bookstore2, bookstore3, web, all]
    Complete build sequence is [init, savingsaccount, bank, cart, checker, confirmer
    , converter, enroller, order, salesrep, storagebin, teller, htmlreader, warehous
    e, simplemessage, cmproster, ejb, date, hello1, hello2, bookstore1, web-ejb, boo
    kstore2, bookstore3, web, all, create-storagebin-table, get-cci-jar, procs, cci,
    connector, create-salesrep-table, create-procs-alias, create-coffee-table, abou
    t, create-enroller-table, create-savingsaccount-table, create-web-db, create-war
    ehouse-table, create-bank-table, clean, create-order-table, create-teller-table,
    prepare, create-ejb-db]
    init:
    [property] Loading Environment myenv.
    BUILD FAILED
    D:\JAVATUTORIAL\J2EE\j2eetutorial\examples\build.xml:19: D:\JAVATUTORIAL\J2EE\j2
    eetutorial\examples\build.xml:19: java.lang.StringIndexOutOfBoundsException: Str
    ing index out of range: -1
    --- Nested Exception ---
    D:\JAVATUTORIAL\J2EE\j2eetutorial\examples\build.xml:19: java.lang.StringIndexOu
    tOfBoundsException: String index out of range: -1
    --- Nested Exception ---
    java.lang.StringIndexOutOfBoundsException: String index out of range: -1
    at java.lang.String.substring(String.java:1476)
    at org.apache.tools.ant.taskdefs.Property.loadEnvironment(Property.java:
    248)
    at org.apache.tools.ant.taskdefs.Property.execute(Property.java:172)
    at org.apache.tools.ant.Target.execute(Target.java:153)
    at org.apache.tools.ant.Project.runTarget(Project.java:898)
    at org.apache.tools.ant.Project.executeTarget(Project.java:536)
    at org.apache.tools.ant.Project.executeTargets(Project.java:510)
    at org.apache.tools.ant.Main.runBuild(Main.java:421)
    at org.apache.tools.ant.Main.main(Main.java:149)
    Total time: 2 seconds
    D:\JAVATUTORIAL\J2EE\j2eetutorial\examples>
    *********************************************************************

    Please Help Me

  • Problem building with ant

    Hi all,
    For some reason i get the following error message when trying to build any of the code in the j2ee tutorial.
    C:\WINDOWS\system32\ntvdm.exe
    Error while setting up environment for the application. Choose 'close' to terminate the application
    If anyone has any ideas as to why this happens, any help would be much appreciated.
    thanks

    i'm using windows xp pro. i have actually sorted that problem out by replacing ant 1.3 with ant 1.5
    I now have another error message. When i try to run the application client with the foolowing command:
    C:\forte4j\j2sdkee1.3\bin>runclient client \examples\ears\SavingsAccountApp.ear -name SavingsAccountClient -textauth
    I get the following
    Initiating login ...
    Username = null
    Enter Username:guest
    Enter Password:guest123
    Binding name:`java:comp/env/ejb/SimpleSavingsAccount`
    Application threw an exception:java.lang.NoClassDefFoundError: SavingsAccountHome
    Unbinding name:`java:comp/env/ejb/SimpleSavingsAccount`
    Not sure why i am getting the exception.

  • Error while building Web Services for Invoking PL/SQL with ANT

    Hello,
    i tried to build the demo- webservice for plsql- stored procedure, but while i want to run the demo with ant i get the following error:
    The same Error occures while Run the Demo with seperate commands: Step 5a(1) Assembly:
    env-check:
    init:
    [mkdir] Created dir: D:\ORAWebServices\webservices_demos\webservices_demos\db\plsql\build\classes\service
    wsa:
    [java] Fehler: oracle.j2ee.ws.tools.wsa.cli.CommandLineMessageBundle_de
    BUILD FAILED
    D:\ORAWebServices\webservices_demos\webservices_demos\db\plsql\build.xml:45: The following error occurred while executing this line:
    D:\ORAWebServices\webservices_demos\webservices_demos\common.xml:74: Java returned: 1
    Total time: 3 seconds
    The Database runs on a remote system and the service-connfig.xml is updated.
    Thanks for Help.

    I assume you have OC4J 10.1.3 webservices installed. Then you should not be using service-config.xml. Check out the 10.1.3 documentation about WebServiceAssembler. I am afraid, you are using 10.1.2 style service-config.xml along with 10.1.3 style WebServiceAssembler.

  • Ant help - building a jar with image files.

    I have a jar that contains a handful of image files in a "resources" folder. I used the following command:
    jar -cf resources.jar resources/Now I need to make ANT do the same thing. I tried the following, with no success:
    <property name="build" location="bin"/>
    <property name="dist" location="jars"/>
    <jar jarfile="${dist}/resources.jar" basedir="${build}">
      <arg value="-cf" />
    </jar>In the above example, the "bin" directory contains the "resources" directory that I want to put into the jar. Basically, I need to know how to specify the "-cf" args, and how to specify the target directory as "resources." Can anyone tell me how this is done?
    Thanks.

    Hi micah,
    I can just give you an hint:
    With Ant each tasks has its own properties wich are described in xml. So for your jar generation you should look for the possibilities in the description of the ant task in.
    http://ant.apache.org/manual/index.html
    I guess you need some <include> elements in your <jar> target.
    Regards,
    Martin

  • Build with ant in a new way

    Hello everyone,
    I'm not sure if the title is proper, but I have a project to upgrade to weblogic 10, along with the upgrade I'm going to enhance the build files. Currently we have 450 ant file. There are many dependencies and all build files have hardcoded paths such "c:\sourcecode ...". Our application is about 6000000 lOC. Anyway, my job is to replace these paths with properties and change some old ant tasks.
    You now imagine what I'm going to go through. Obviously, I need to edit 450 (can build tool for that) and do check in and out. Then test to make sure I didn't missed up with the dependency.
    I'm no expert in ANT but we did some evaluation to ANT, Maven, Jam and we found ANT is the best fit for our environment because we have some structuring issues.
    While working I have got this idea, however I'm not sure if it's the best, so I hope you can help here and give me your advice.
    I will create a utilityBuild.xml. This ant file will contain the entire tasks we perform in all the 450. Rest of 450 ant will perform call to this utilityBuild.xml whenever it needs to do something e.g .
    {color:#008000}<!-- Create Jar file of the classes in the ${tempdir} and then apply appc compilation on them-->{color}
    <ant inheritAll="true" dir="${ROOT}" antfile="${UTILITYBUILD}" target="appc"/>
    Note: UTILITYBUILD = utilityBuild.xml
    UtilityBuild.xml has this task as
    {color:#008000}<!-- Perform weblogic.appc on the given Jar file to generate the Skeleton files -->{color}
    <target name="appc" depends="jar.ejb" >
    <java classname="weblogic.appc" fork="yes">
    <sysproperty key="weblogic.home" value="${WL_HOME}"/>
    <arg line="-compiler javac ${appdir}/${jarfile}"/>
    <classpath>
    <pathelement path="$classpath"/>
    </classpath>
    </java>
    </target>
    The {color:#ff0000}*benefit*{color} of doing this is {color:#ff0000}*if we decide to use wlcompile and wlappc instead of the above we only need to change one place utilityBuild.xml*{color} . I understand that I can make a custom ant task instead of relying on the properties that's passed when calling the child ant task.
    {color:#0000ff}*For complete Source file* {color}
    UtilityBuild.xml
    <project name="SIMIS" basedir=".">
    <!-- set global properties for this build -->
    <property environment="env"/>
    <property file="gosi.properties"/>
    <target name="maketempdir" description="Create ${tempdir} directory">
    <echo message="#### S T A R T B U I L D I N G ####"/>
    <echo message="Started on ${TODAY} at ${TSTAMP}"/>
    <mkdir dir="${tempdir}"/>
    <mkdir dir="${tempdir}/META-INF"/>
    <copy todir="${tempdir}/META-INF">
    <fileset dir="${xmldir}">
    <include name="*.xml"/>
    </fileset>
    </copy>
    </target>
    <!-- Clean all build related dirs, jars and xmls -->
    <target name="cleantemp" description="Deletes ${build.dir}/** and ${dist.dir}/**." >
    <delete includeEmptyDirs="true" failonerror="false">
    <fileset dir="${clientclasses}" includes="**/*EJB.class"/>
    <fileset dir="${tempdir}" includes="**/*"/>
    </delete>
    <delete dir="${tempdir}"/>
    <echo message="#### E N D B U I L D I N G ####"/>
    </target>
    <!-- Perform weblogic.appc on the given Jar file to generate the Skeleton files -->
    <target name="appc" depends="jar.ejb" >
    <java classname="weblogic.appc" fork="yes">
    <sysproperty key="weblogic.home" value="${WL_HOME}"/>
    <arg line="-compiler javac ${appdir}/${jarfile}"/>
    <classpath>
    <pathelement path="$classpath"/>
    </classpath>
    </java>
    </target>
    <target name="jar.ejb" >
    <jar jarfile="${appdir}/${jarfile}"
    basedir="${tempdir}" update="yes">
    </jar>
    </target>
    <target name="javac">
    <javac srcdir="${sourcedir}" destdir="${destinationdir}" includes="${include}" excludes="${exclude}" classpath="${classpath}" />
    </target>
    <target name="copy" description="copy contents to directory">
    <copy todir="${todir}">
    <fileset dir="${fromdir}">
    <include name="${include}"/>
    <exnclude name="${exclude}"/>
    </fileset>
    </copy>
    </target>
    <target name="clean" description="clean contents of directory">
    <delete includeEmptyDirs="true" failonerror="false">
    <fileset dir="${cleandir}" includes="${include}" excludes="${exclude}"/>
    </delete>
    </target>
    <target name="delete" description="delete entire directory">
    <delete dir="${deletedir}"/>
    </target>
    <!-- deploy split directory application -->
    <target name="deploy"
    description="Deploy ear to WebLogic on ${wls.hostname}:${wls.port}.">
    <wldeploy
    user="${wls.username}"
    password="${wls.password}"
    adminurl="t3://${wls.hostname}:${wls.port}"
    debug="true"
    action="deploy"
    source="${appdir}/${jarfile}"
    failonerror="${failondeploy}"/>
    </target>
    </project>
    CMN_Core_Session.xml (one of the 450 files)
    <project name="default" default="build">
    <!-- Specific Properties to this file. Please don't change these names, because it has been used by the ${UTILITYBUILD} -->
    <property file="../gosi.properties"/>
    <property name="srcdir" value="${SOURCE_CODE}/gosi/core"/>
    <property name="xmldir" value="${SOURCE_CODE}/gosi/core/projects/session"/>
    <property name="jarfile" value="CMN_Session.jar"/>
    <!-- Main build task for this ant file -->
    <target name="build" description="Builds components.">
    <!-- Create Temp folders and copy the deployment descriptor their -->
    <ant inheritAll="true" dir="${ROOT}" antfile="${UTILITYBUILD}" target="maketempdir"/>
    <!-- Compile the java classes in to ${clientclasses} -->
    <ant inheritAll="true" dir="${ROOT}" antfile="${UTILITYBUILD}" target="javac">
    <property name="sourcedir" value="${srcdir}"/>
    <property name="destinationdir" value="${clientclasses}"/>
    <property name="include" value="**/*Session.java,**/*SessionHome.java"/>
    <property name="exclude" value="**/*MaintainDateChangeSession.java,**/*MaintainDateChangeSessionEJB.java,**/*MaintainDateChangeSessionHome.java,**/*MaintainHolidaysSession.java,**/*MaintainHolidaysSessionEJB.java,**/*MaintainHolidaysSessionHome.java,**/*StartupUtilitySession.java,**/*StartupUtilitySessionEJB.java,**/*StartupUtilitySessionHome.java,**/UserSession.java"/>
    </ant>
    <!-- Compile the java classes again in to ${tempdir} this folder will be used to create the Jar file -->
    <ant inheritAll="true" dir="${ROOT}" antfile="${UTILITYBUILD}" target="javac">
    <property name="sourcedir" value="${srcdir}"/>
    <property name="destinationdir" value="${tempdir}"/>
    <property name="include" value="**/*Session.java,**/*SessionHome.java,**/*SessionEJB.java"/>
    <property name="exclude" value="**/*MaintainDateChangeSession.java,**/*MaintainDateChangeSessionEJB.java,**/*MaintainDateChangeSessionHome.java,**/*MaintainHolidaysSession.java,**/*MaintainHolidaysSessionEJB.java,**/*MaintainHolidaysSessionHome.java,**/*StartupUtilitySession.java,**/*StartupUtilitySessionEJB.java,**/*StartupUtilitySessionHome.java,**/UserSession.java"/>
    </ant>
    <!-- Create Jar file of the classes in the ${tempdir} and then apply appc compilation on them-->
    <ant inheritAll="true" dir="${ROOT}" antfile="${UTILITYBUILD}" target="appc"/>
    <!-- Remove all file in ${tempdir} -->
    <ant inheritAll="true" dir="${ROOT}" antfile="${UTILITYBUILD}" target="cleantemp"/>
    </ant>
    </target>
    <!-- Main deploy task for this ant file -->
    <target name="deploy" description="Deploy the components">
    <ant inheritAll="true" dir="${ROOT}" antfile="${UTILITYBUILD}" target="deploy"/>
    </ant>
    </target>
    </project>
    gosiProperties file
    ### Build Files Properties File ###
    -- Configure the global properties for the ant build files
    -- You may need to change this section to match your machine
    BEA_HOME=C:/bea
    SIMIS_DOMAIN=${BEA_HOME}/gosiprojects/server/simis
    WL_HOME=${BEA_HOME}/wlserver_10.0/server
    JAVA_HOME=${BEA_HOME}/jdk150_06
    SOURCE_CODE=C:/sourcecode
    ROOT=${SOURCE_CODE}/build_files
    UTILITYBUILD=UtilityBuild.xml
    -- Here we set the JARs directory and server and client classes
    appdir=${SIMIS_DOMAIN}/applications
    tempdir=${SIMIS_DOMAIN}/classes
    clientclasses=${SIMIS_DOMAIN}/clientclasses
    serverclasses=${SIMIS_DOMAIN}/serverclasses
    web-inf=${appdir}/GOSI/WEB-INF/classes
    startup=${appdir}/StartUp/WEB-INF/classes
    -- Set the ClassPath for the ant tool
    classpath=${JAVA_HOME}/lib/tools.jar;${WL_HOME}/lib/weblogic.jar;${WL_HOME};${SIMIS_DOMAIN}/APP-INF/lib/CMN_DMS_WS_RequestClient.jar;
    Thanks and regards
    Edited by: Nawaf on Mar 9, 2008 8:18 AM

    Any idea, I'm looking for your opinion, what do you think of the above

  • Building with Ant

    Hi,
    I try to build my application using Ant. Here is the fragment
    from build.xml:
    <java jar="${flex.mxmlc.jar}" fork="true">
    <arg line="-file-specs ${src.dir}/${app.name}.mxml"/>
    <arg line="-load-config ${flex.dist.config}"/>
    </java>
    When I run this, I get this error:
    [java] command line: Error: default arguments may not be
    interspersed with other options
    [java] Use 'mxmlc -help' for information about using the
    command line.
    When I do not use "-load-config" option, I get following:
    [java] defaults: Error: unable to open './flex-config.xml'
    What is wrong?
    Thanks.
    .Vlad.

    I wasn't able to reproduce the first error you got. But the
    second error happens for me.
    Somehow, invoking mxmlc.jar from a directory other than the
    flex frameworks directory leads to an error where it's looking for
    files relative to flex frameworks.
    I got around this by specifying a dir to invoke the VM in.
    i.e
    <property name="flex.dir" value="c:\flex\sdk" />
    <property name="flex.mxmlc.jar"
    value="${flex.dir}/lib\mxmlc.jar" />
    <java jar="${flex.mxmlc.jar}" dir="${flex.dir}/frameworks"
    fork="true">
    <arg line="-file-specs ${src.dir}/${app.name}.mxml"/>
    </java>

  • Building the ADF 11g project with ANT or MAVEN

    I want to automate the build process of my project using ant or maven. Is there already some build scripts for ant / maven. which can compile and package it using the structure which JDeveloper follows?

    Anthony,
    You probably can. However, since I wrote the original article, I have changed my way of thinking on this; at the time I wrote the article, ojdeploy was not working - now it is. Installing JDev on a build machine takes a bit of space, but it's not a big deal; it doesn't require a license or anything. If I were doing this today, there is no way I would consider anything but ojdeploy for doing the build - it guarantees that what I set up in JDev is what gets built. The one thing that could make me change my mind is if and when JDeveloper gets fully-baked Maven support, including keeping a POM in synch with any libraries added to a project, but that's neither here today nor a certainty, since Oracle hasn't made any specific announcements that I am aware of about the direction of Maven support in JDev.
    We did have a discussion about this on the [url http://groups.google.com/group/adf-methodology/browse_thread/thread/52f7aab00d201b4c/bec6e076a7c82520?lnk=gst&q=ojdeploy#bec6e076a7c82520]ADF Enterprise Methodology Group a while back, and I recall quite a discussion in the forums as well about ojdeploy vs ANT/Maven. I used to be more of a "purist" mindset (i.e. don't make me install an IDE on the build server), but if you like, don't think of it as an IDE in this function - it doesn't require a user to operate it, it's just another build tool that you'd install on the server. That build tool can be integrated with ANT using the ojdeploy tasks.
    John

Maybe you are looking for

  • Windows 8.1 upgrade fails with error code 0x80070057

    I have attempted to upgrade Windows 8 Pro (Msdn) to 8.1. The install gets as far as 'Applying changes, then comes up wiith the extremely helpful error message 'The application wasn't installed'.  Clicking on view details gives, the  equally helpful,

  • Debugging a script and smart form

    Hi   Can u explain me How to Debug a Script and Smart from in Real time

  • An audio problem and a video problem

    1. I'm a total novice about audio filters. Which filder would be best to take out wind noise? I used a rabbit fur baffle but still got a bit of wind noise. It cannot be reshot. 2. Sometimes when I try to put a transition between two clips it seems to

  • End Payment Plan

    Hi All, My requirement is such that I want to stop the Payment plan (Status as STOP as seen in the T-CODE EK94). Can you please let me know how can I achieve this. Regards, Manish

  • Connector pane pattern bug

    LV2011, cant check other versions right now. The Connector pane pattern window doesn't mark/show your currently selected pattern. Not a big bug, but i still classify it as such. /Y LabVIEW 8.2 - 2014 "Only dead fish swim downstream" - "My life for Ku