Classpath needed to use ant?

Greetings.
What is the entire classpath needed to use Kodo inside an ant script. I know you
need the properties file and the jdo_1_0.jar but what other jars are needed for:
1) Compilation, schema tasks
2) Runtime
I am using 2.5.0 beta.
TIA
-- Robert

Well, all you linked was the developers guide and I looked in there and didn't
find it before I came here. It could be that I missed it. Will you be more
specific please?
-- Robert
"Marc Prud'hommeaux" <[email protected]> wrote in message
news:[email protected]..
Robert-
Check out:
http://docs.solarmetric.com/manual.html#release_file
That should cover all the libraries that Kodo may need, and in what
cases they are required.
In article <bbted2$a9c$[email protected]>, Robert Simmons wrote:
Greetings.
What is the entire classpath needed to use Kodo inside an ant script. I know
you
need the properties file and the jdo_1_0.jar but what other jars are neededfor:
>>
1) Compilation, schema tasks
2) Runtime
I am using 2.5.0 beta.
TIA
-- Robert
Marc Prud'hommeaux [email protected]
SolarMetric Inc. http://www.solarmetric.com

Similar Messages

  • Generating a manifest CLASSPATH using Ant

    I'm using Ant 1.5.4 to build my applications. When I create a JAR file to deploy I ask Ant to add a main class and CLASSPATH to the manifest, like this:
    <target name="deploy" depends="report" description="deploy the application">
        <buildnumber />
        <copy todir="${deploy}">
            <fileset dir="${src.lib}" />
        </copy>
        <pathconvert property="manifest.jars" pathsep=" ">
            <path id="manifest.class.path">
                <fileset dir="${deploy}">
                    <patternset>
                        <include name="**/*.jar" />
                    </patternset>
                </fileset>
            </path>
            <map from="${basedir}/${deploy}/" to=""/>
        </pathconvert>
        <manifest file="META-INF/manifest.mf">
            <attribute name="Implementation-Title" value="${project}" />
            <attribute name="Built-By" value="${user.name}"/>
            <attribute name="Build-Date" value="${TODAY}" />
            <attribute name="Major-Version" value="${major}" />
            <attribute name="Minor-Version" value="${minor}" />
            <attribute name="Build-Number" value="${build.number}" />
            <attribute name="Main-Class" value="${manifest.main}"/>
            <attribute name="Class-Path" value="${manifest.jars}"/>
        </manifest>
        <jar jarfile="${deploy}/${project}.jar"
             manifest="${manifest}/manifest.mf">
            <fileset dir="${output.classes}" excludes="**/*TestCase*.class, **/*TestSuite*.class"/>
        </jar>
    </target>This particular app has several third-party JARs. When I look at the manifest contents, they look like this:
    Class-Path: activation.jar imap.jar junit.jar my-common.jar mail.ja
    r mailapi.jar pop3.jar smtp.jar xalan.jar xerces.jar xml-apis.jar xsl
    tc.jar
    Has anybody else done this with Ant for a long CLASSPATH with many JARs? Are those line breaks inside JAR names a problem? It looks strange to me, and I'm not sure that it's correct or useful. Thanks - MOD

    I'm using Ant 1.5.4 to build my applications. When I create a JAR file to deploy I ask Ant to add a main class and CLASSPATH to the manifest, like this:
    <target name="deploy" depends="report" description="deploy the application">
        <buildnumber />
        <copy todir="${deploy}">
            <fileset dir="${src.lib}" />
        </copy>
        <pathconvert property="manifest.jars" pathsep=" ">
            <path id="manifest.class.path">
                <fileset dir="${deploy}">
                    <patternset>
                        <include name="**/*.jar" />
                    </patternset>
                </fileset>
            </path>
            <map from="${basedir}/${deploy}/" to=""/>
        </pathconvert>
        <manifest file="META-INF/manifest.mf">
            <attribute name="Implementation-Title" value="${project}" />
            <attribute name="Built-By" value="${user.name}"/>
            <attribute name="Build-Date" value="${TODAY}" />
            <attribute name="Major-Version" value="${major}" />
            <attribute name="Minor-Version" value="${minor}" />
            <attribute name="Build-Number" value="${build.number}" />
            <attribute name="Main-Class" value="${manifest.main}"/>
            <attribute name="Class-Path" value="${manifest.jars}"/>
        </manifest>
        <jar jarfile="${deploy}/${project}.jar"
             manifest="${manifest}/manifest.mf">
            <fileset dir="${output.classes}" excludes="**/*TestCase*.class, **/*TestSuite*.class"/>
        </jar>
    </target>This particular app has several third-party JARs. When I look at the manifest contents, they look like this:
    Class-Path: activation.jar imap.jar junit.jar my-common.jar mail.ja
    r mailapi.jar pop3.jar smtp.jar xalan.jar xerces.jar xml-apis.jar xsl
    tc.jar
    Has anybody else done this with Ant for a long CLASSPATH with many JARs? Are those line breaks inside JAR names a problem? It looks strange to me, and I'm not sure that it's correct or useful. Thanks - MOD

  • Need build.xml to create Ear file using Ant in jdeveloper 11g??

    Hi all,
    I think Jdeveloper use ANT to create Ear file and how to get build.xml from Jdeveloper.
    1) I have created ADF Fusion web Application having separte Model and View Controller.
    2) Now when I select View Controller project and then i create New ant-> Build.xml i get the required build.xml which can be used to create war file for my View Controller project.
    3) Similarly when I select Model project and then i create New ant-> Build.xml i get the required build.xml which can be used to create Jarfile for my Model project.
    4) If I select my application and then i click deploy... I'm able to create my ear file having both war file for View Controller and Jar File for Model.
    5) But I dont know how to get built.xml file which will create ear file having both View Controller and Model in it.
    Thanks a lot....

    However note the generated Ant script includes unnecessary targets. See the following blog post: http://one-size-doesnt-fit-all.blogspot.com/2010/11/using-ojdeploy-and-ant-for-creating-adf.html
    CM.

  • Addon not starting - help needed in using ExtensionPackage tool

    Hi,
    I have deployed my addon using Lightweight Deployment in 9.1 PL00.
    When starting my addon, I get the error: SapProject1 has stopped working.
    What may be the issue?
    I packaged my addon using ExtensionPackage tool. In the SBO compatibility tab, we need to give the  version like 910.000.00. How should I check I my exact version number? In SAP application->Help->About SAP Business One, it shows version as 9.10.105, but in ExtensionPackage tool, I am supposed to write as nnn.nnn.nn. So how should I mention there?
    Secondly, in the Register 32-Bit Microsoft COM DLLs tab, should I select the DLLs: Interop.SAPbobsCOM.dll and Interop.SAPbouiCOM.dll ?
    Please guide me. I am trying to do it for first time.
    Thanks.

    I have never ran the DocCheck from the command prompt, so I really don't know how to do it, but I do run it succesfully using ant (build tool from apache - jakarta, if you use tomcat you already have it installed).
    So.. if you do use ant.. this will help:
    <target name="doccheck" depends="prepare">
         <javadoc
              packagenames="${packages}"
                    destdir="${doccheck.home}"
              doclet="com.sun.tools.doclets.doccheck.DocCheck"
              docletpath="${doccheck.path}" >
              <classpath refid="project.classpath"/>
              <sourcepath refid="project.classpath"/>
         </javadoc>
    </target>If you don't use it.. I guess I was of no help, sorry.
    Ylan

  • Help needed in using the DocCheck utility

    Hi
    Can somebody help me to use the DocCheck utility.I need to check that all the java files have the required javadoc tags and they are correct.
    I have downloaded the zip file and I have been giving the following commands
    c:\javadoc -doclet com.sun.tools.doclets.doccheck.DocCheck -docletpath c:\svk\jdk1.2.2\bin\doccheck1.2b1\lib\doccheck.jar -sourcepath<full path with the file name>
    But I get the following error message : No package or class specified.
    I also tried giving the following command:
    D:\SegaSource\sega\src\com\sega\account>javadoc -doclet com.sun.tools.doclets.do
    ccheck.DocCheck -docletpath d:\jdk1.3\doccheck1.2b1\lib\doccheck.jar User.java
    But I get the following message:
    Loading source file User.java...
    Constructing Javadoc information...
    javadoc: warning - Import not found: com.sega.account.address.Address - ignoring
    javadoc: warning - Import not found: com.sega.account.icon.Icon - ignoring!
    javadoc: warning - Import not found: com.sega.common.DateUtil - ignoring!
    javadoc: warning - Import not found: atg.nucleus.GenericService - ignoring!
    javadoc: warning - Cannot find class com.sega.account.icon.Icon
    javadoc: warning - Cannot find class com.sega.account.address.Address
    javadoc: warning - Cannot find class com.sega.account.MasterManager
    7 warnings
    please help
    Thanks
    SVK

    I have never ran the DocCheck from the command prompt, so I really don't know how to do it, but I do run it succesfully using ant (build tool from apache - jakarta, if you use tomcat you already have it installed).
    So.. if you do use ant.. this will help:
    <target name="doccheck" depends="prepare">
         <javadoc
              packagenames="${packages}"
                    destdir="${doccheck.home}"
              doclet="com.sun.tools.doclets.doccheck.DocCheck"
              docletpath="${doccheck.path}" >
              <classpath refid="project.classpath"/>
              <sourcepath refid="project.classpath"/>
         </javadoc>
    </target>If you don't use it.. I guess I was of no help, sorry.
    Ylan

  • JSP precompilation and my .java files compilation issues /  building WAR file using ANT

    Hello.
    I am new to working with WAR files and the whole process of it. A little
    background on what we are using. We are using, WLS 6.1 SP3. I am using the
    ant.bat that is supplied in the bin directory of the WLS install.
    I am trying to work with ANT and getting it to build the file. I am making
    progress, but at a point where I am having trouble getting my java code
    files to compile using ant. I am having one issue and looking to do one
    other item.
    1) I would like to precompile the JSPs if possible prior to putting into the
    WAR file. Not sure if this is done or not, but there was a utility when I
    was working with ibm's app server that gave us the ability to do a batch
    complile. Was thinking that maybe a similair concept is possibly here.
    2) Having issue getting ant to compile code properly. In the compile
    section of the build.xml file for ant, I tell it where the source files are,
    and the destionation folder for the compiled class files. I then try to set
    the classpath so that it finds the .jar files that are necessary for my
    source files to complile. But, it won't find them. And not sure how come.
    I may be going about this all wrong, but dont know. Here is the compile
    section of the build.xml I am using:
    <target name="compile" depends="prepare">
    <javac srcdir="classes" destdir="${deploy.home}/WEB-INF/classes"
    classpath="$(lib.home)"
    debug="on" optimize="on" deprecation="off"/>
    </target>
    One note, I've tried many different items in the classpath line, which
    don't work. if I do *.jar it fails at complie time, invalid argument. As
    well as if I use *.* and so on. if I list the explicit file names, it still
    doesn't seem to find them.
    I was wondering if anyone could help, if you need anymore information let me
    know, I can send the entire build.xml if necessary. I may be missing
    items, seeing that this is my first try at using ANT.
    Any help is appreciated and thanks in advance. Hopefully not sounding too
    off the wall. Hopefully get some clarification and understanding.
    Thank you.
    Kevin.

    Kevin Price wrote:
    Hello.
    I am new to working with WAR files and the whole process of it. A little
    background on what we are using. We are using, WLS 6.1 SP3. I am using the
    ant.bat that is supplied in the bin directory of the WLS install.
    I am trying to work with ANT and getting it to build the file. I am making
    progress, but at a point where I am having trouble getting my java code
    files to compile using ant. I am having one issue and looking to do one
    other item.
    1) I would like to precompile the JSPs if possible prior to putting into the
    WAR file. Not sure if this is done or not, but there was a utility when I
    was working with ibm's app server that gave us the ability to do a batch
    complile. Was thinking that maybe a similair concept is possibly here.you can use weblogic.jspc
    http://e-docs.bea.com/wls/docs70/jsp/reference.html#57794
    or just set the precompile flag in weblogic.xml
    You can configure WebLogic Server to precompile your JSPs when a Web
    Application is deployed or re-deployed or when WebLogic Server starts up
    by setting the precompile parameter to true in the <jsp-descriptor>
    element of the weblogic.xml deployment descriptor.
    >
    2) Having issue getting ant to compile code properly. In the compile
    section of the build.xml file for ant, I tell it where the source files are,
    and the destionation folder for the compiled class files. I then try to set
    the classpath so that it finds the .jar files that are necessary for my
    source files to complile. But, it won't find them. And not sure how come.
    I may be going about this all wrong, but dont know. Here is the compile
    section of the build.xml I am using:
    <target name="compile" depends="prepare">
    <javac srcdir="classes" destdir="${deploy.home}/WEB-INF/classes"
    classpath="$(lib.home)"
    debug="on" optimize="on" deprecation="off"/>
    </target>
    maybe because you are not using curly braces there on lib.home??
    if you do it the way above, you would have to list all your jars
    classpath="$(lib.home)\lib1.jar:$(lib.home)\lib2.jar"
    or you can nest
    <javac srcdir="classes" destdir="${deploy.home}/WEB-INF/classes"
    debug="on" optimize="on" deprecation="off">
         <classpath>
              <fileset dir="${lib.home}" includes="*.jar" />
         </classpath>
    </javac>
    One note, I've tried many different items in the classpath line, which
    don't work. if I do *.jar it fails at complie time, invalid argument. As
    well as if I use *.* and so on. if I list the explicit file names, it still
    doesn't seem to find them.
    I was wondering if anyone could help, if you need anymore information let me
    know, I can send the entire build.xml if necessary. I may be missing
    items, seeing that this is my first try at using ANT.
    Any help is appreciated and thanks in advance. Hopefully not sounding too
    off the wall. Hopefully get some clarification and understanding.
    Thank you.
    Kevin.

  • Deploying servlet on Tomcat using "ant install" not working. Please help.

    Hello. Normally I can find answers by using search, but I can't today for some reason. So please bare with me if this has been mentioned before. I will try to provide as much info as possible so that helping me isn't too much a chore. Thank you.
    I have downloaded and installed the JWSDP 1.3. and Tomcat is running. I am also using Ant 1.5.4 (previous installation - not one included with JWSDP) and modeled my build.xml file after the template provided here:
    http://jakarta.apache.org/tomcat/tomcat-5.0-doc/appdev/build.xml.txt.
    When I run ant on my respository, everything builds fine. But when I run Ant with the install target, I get the following error:
    BUILD FAILED
    file:C:/owl/build.xml:366: java.io.IOException: Server returned HTTP response co
    de: 401 for URL: http://localhost:8080/manager/deploy?path=%2Fowl&war=file%3A%2F
    %2FC%3A%5Cowl%2Fbuild
    Here is line 366 build.xml:
    localWar="file://${build.home}"/>
    ...which is included in this block for the target "install":
    <target name="install" depends="compile"
    description="Install application to servlet container">
    <deploy url="${manager.url}"
    username="${manager.username}"
    password="${manager.password}"
    path="${app.path}"
    localWar="file://${build.home}"/>
    </target>
    When I point my brower to the url located in the error verbose, I get the following:
    FAIL - Encountered exception java.lang.NullPointerException
    I am trying to get my environment set up correctly before I start spending time developing servlets, but I am getting tempted to just develop to servlets and "manually" installing/deploying them either by copying and pasting or by using the Tomcat manager. I would really like to do everything from Ant though if possible. Please help.

    I don't think this is at all correct:
    localWar="file://${build.home}"/>You've got to create a real WAR file - a JAR file with WEB-INF and all its minions inside it:
    http://access1.sun.com/techarticles/simple.WAR.html
    That's the file you need to refer to there. You can manage that with Ant too, of course.
    Here's what my Ant build.xml looks like for Web apps (there's a build-web.properties file that follows):
    build-web.xml
    <project name="Tomcat Build Tasks" default="clean" basedir=".">
        <target name="init-props">
            <tstamp>
                <format property="touch.time" pattern="MM/dd/yyyy hh:mm aa" />
            </tstamp>
            <filterset id="ant.filters">
                <filter token="DATE" value="${TODAY}" />
                <filter token="TIME" value="${TSTAMP}" />
            </filterset>
            <!-- Load in all the settings in the properties file -->
            <property file="build.properties" />
            <!-- Load in all Tomcat settings in the properties file -->
            <property file="build-web.properties" />
        </target>
        <target name="prepare" depends="init-props">
            <mkdir dir="${war.classes}"/>
            <mkdir dir="${war.lib}"/>       
            <mkdir dir="${manifest}" />
        </target>
        <target name="clean" depends="init-props" description="clean up temporary files">
            <delete file="${project}.war" />   
            <delete dir="${war.root}"/>
            <delete dir="${manifest}" />
        </target>
        <target name="set-tomcat-classpath" depends="prepare">
            <path id="tomcat.class.path">                  
                <fileset dir="${tomcat.home}/bin">
                    <patternset>
                        <include name="**/*.jar" />
                    </patternset>
                </fileset>
                <fileset dir="${tomcat.home}/shared/lib">
                    <patternset>
                        <include name="**/*.jar" />
                    </patternset>
                </fileset>
                <fileset dir="${tomcat.home}/common/lib">
                    <patternset>
                        <include name="**/*.jar" />
                    </patternset>
                </fileset>
                <fileset dir="${tomcat.home}/server/lib">
                    <patternset>
                        <include name="**/*.jar" />
                    </patternset>
                </fileset>
                <fileset dir="${ant.home}/lib">
                    <patternset>
                        <include name="**/*.jar" />
                    </patternset>
                </fileset>
            </path>              
        </target>
        <target name="create" depends="set-tomcat-classpath" description="create the war file">
            <!-- All files at root level -->       
            <!-- Temporarily put the JSPs at root until you figure this out -->
            <copy todir="${war.root}">
                <fileset dir="${src.jsp}"/>
            </copy>
    <!--
            <copy todir="${war.root}">
                <fileset dir="${src.html}" includes="*.html"/>
            </copy>
    -->
            <copy todir="${war.root}/css">
                <fileset dir="${src.css}"/>
            </copy>
            <copy todir="${war.root}/images">
                <fileset dir="${src.images}"/>
            </copy>
            <copy todir="${war.root}/js">
                <fileset dir="${src.js}"/>
            </copy>
            <!-- All files at the WEB-INF level and below -->       
            <copy todir="${war.web}">
                <fileset dir="${src.etc}" includes="web.xml"/>
            </copy>
            <!-- All files in the CLASSPATH lib -->
            <copy todir="${war.web}/lib">
                <fileset dir="${src.lib}" includes="**/*.jar" excludes="**/*-tests.jar, **/junit.jar"/>
            </copy>
            <!-- Put the dispatcher XML in WEB-INF/config -->
            <copy todir="${war.web}/config">
                <fileset dir="${src.etc}" includes="${project}-config.xml"/>
            </copy>
            <!-- Put XSL stylesheets in WEB-INF/xsl -->
            <copy todir="${war.web}/xsl">
                <fileset dir="${src.xsl}" includes="**/*.xsl"/>
            </copy>
            <!-- Put the project JAR file in WEB-INF/lib -->
            <copy todir="${war.web}/lib">
                <fileset dir="${deploy}" includes="**/${project}.jar"/>
            </copy>
            <!-- Create the manifest -->
            <buildnumber />
            <manifest file="${manifest}/manifest.mf">
                <attribute name="Implementation-Title"      value="${project}" />
                <attribute name="Built-By"                  value="${user.name}"/>
                <attribute name="Build-Date"                value="${TODAY}" />
                <attribute name="Major-Version"             value="${major}" />
                <attribute name="Minor-Version"             value="${minor}" />
                <attribute name="Build-Number"              value="${build.number}" />
            </manifest>
            <!-- Create the WAR file -->
            <jar jarfile="${project}.war"
                 manifest="${manifest}/manifest.mf">
                <fileset dir="${war.root}"/>
                <metainf dir="${src.etc}" includes="context.xml"/>
            </jar>
        </target>
        <target name="create-tomcat-admin-tasks" depends="set-tomcat-classpath">
    <!--
            <pathconvert targetos="windows" refid="tomcat.class.path" property="converted.class.path" />
            <echo message="CLASSPATH: ${converted.class.path}" />
    -->       
            <taskdef name="install"     classname="org.apache.catalina.ant.InstallTask"     classpath="tomcat.class.path"/>
            <taskdef name="remove"      classname="org.apache.catalina.ant.RemoveTask"      classpath="tomcat.class.path"/>       
            <taskdef name="reload"      classname="org.apache.catalina.ant.ReloadTask"      classpath="tomcat.class.path"/>
            <taskdef name="deploy"      classname="org.apache.catalina.ant.DeployTask"      classpath="tomcat.class.path"/>       
            <taskdef name="undeploy"    classname="org.apache.catalina.ant.UndeployTask"    classpath="tomcat.class.path"/>       
            <taskdef name="start"       classname="org.apache.catalina.ant.StartTask"       classpath="tomcat.class.path"/>       
            <taskdef name="stop"        classname="org.apache.catalina.ant.StopTask"        classpath="tomcat.class.path"/>       
            <taskdef name="list"        classname="org.apache.catalina.ant.ListTask"        classpath="tomcat.class.path"/>       
            <taskdef name="resources"   classname="org.apache.catalina.ant.ResourcesTask"   classpath="tomcat.class.path"/>       
            <taskdef name="roles"       classname="org.apache.catalina.ant.RolesTask"       classpath="tomcat.class.path"/>
        </target>
        <target name="install" depends="create-tomcat-admin-tasks" description="install the war file on Tomcat">
            <install    url="${tomcat.manager.url}"
                        username="${tomcat.username}"
                        password="${tomcat.password}"
                        path="/${project}"
                        config="file:/${basedir}/${src.etc}/context.xml"
                        war="file:/${basedir}/${project}.war" />
        </target>
        <target name="remove" depends="create-tomcat-admin-tasks" description="remove the war file on Tomcat">
            <remove     url="${tomcat.manager.url}"
                        username="${tomcat.username}"
                        password="${tomcat.password}"
                        path="/${project}" />
        </target>
        <target name="reload" depends="create-tomcat-admin-tasks" description="reload the war file on Tomcat">
            <reload     url="${tomcat.manager.url}"
                        username="${tomcat.username}"
                        password="${tomcat.password}"
                        path="/${project}" />
        </target>
        <target name="deploy" depends="create-tomcat-admin-tasks" description="deploy the war file on Tomcat">
            <deploy    url="${tomcat.manager.url}"
                        username="${tomcat.username}"
                        password="${tomcat.password}"
                        path="/${project}"
                        config="file:/${basedir}/${src.etc}/context.xml"
                        war="file:/${basedir}/${project}.war" />
        </target>
        <target name="undeploy" depends="create-tomcat-admin-tasks" description="undeploy the war file on Tomcat">
            <undeploy   url="${tomcat.manager.url}"
                        username="${tomcat.username}"
                        password="${tomcat.password}"
                        path="/${project}" />
        </target>
        <target name="start" depends="create-tomcat-admin-tasks" description="start an application on Tomcat">
            <start      url="${tomcat.manager.url}"
                        username="${tomcat.username}"
                        password="${tomcat.password}"
                        path="/${project}"/>
        </target>
        <target name="stop" depends="create-tomcat-admin-tasks" description="stop an application on Tomcat">
            <stop       url="${tomcat.manager.url}"
                        username="${tomcat.username}"
                        password="${tomcat.password}"
                        path="/${project}" />
        </target>
        <target name="list" depends="create-tomcat-admin-tasks" description="list all applications running on Tomcat">
            <list       url="${tomcat.manager.url}"
                        username="${tomcat.username}"
                        password="${tomcat.password}"/>
        </target>
        <target name="resources" depends="create-tomcat-admin-tasks" description="list all resources on Tomcat">
            <resources  url="${tomcat.manager.url}"
                        username="${tomcat.username}"
                        password="${tomcat.password}"/>
        </target>
        <target name="data-sources" depends="create-tomcat-admin-tasks" description="list all data sources on Tomcat">
            <resources  url="${tomcat.manager.url}"
                        username="${tomcat.username}"
                        password="${tomcat.password}"
                        type="javax.sql.DataSource"/>
        </target>
        <target name="roles" depends="create-tomcat-admin-tasks" description="list all user roles on Tomcat">
            <roles      url="${tomcat.manager.url}"
                        username="${tomcat.username}"
                        password="${tomcat.password}"/>
        </target>
    </project>
    build.properties
    # Properties file for setting up an Ant build.xml
    # Project specific items that change each time
    project=api-prototype
    major=1
    minor=0
    version=${major}.${minor}
    jar.name=${project}
    versiondate=${TODAY}
    # Directory structure (these should never change)
    bin=bin
    deploy=deploy
    doc=doc
    manifest=META-INF
    xml=xml
    # Everything under src should come out of a repository
    src=src
    src.bin=${src}/bin
    src.config=${src}/config
    src.data=${src}/data
    src.dtd=${src}/dtd
    src.java=${src}/java
    src.lib=${src}/lib
    src.profile=${src}/profile
    src.properties=${src}/properties
    src.schema=${src}/schema
    src.sql=${src}/sql
    src.templates=${src}/templates
    src.testdata=${src}/testdata
    src.xml=${src}/xml
    src.xsl=${src}/xsl
    # These are created and deleted by Ant each time
    javadocs=javadocs
    reports=reports
    output=output
    output.classes=${output}/classes
    output.lib=${output}/lib
    # Required for proper use of XDoclet
    xdoclet.home = C:/Tools/xdoclet-1.2b3
    build-web.properties
    war.root=war-root
    war.pages=${war.root}/pages
    war.web=${war.root}/WEB-INF
    war.classes=${war.web}/classes
    war.css=${war.web}/css
    war.js=${war.web}/js
    war.lib=${war.web}/lib
    war.tld=${war.web}/tld
    # Properties needed by Tomcat tasks
    ant.home =
    tomcat.home         =
    tomcat.manager.url  = http://localhost:8080/manager
    tomcat.username     =
    tomcat.password     = MOD

  • How to Starting and Stopping OC4J Server using Ant

    How to Starting and Stopping OC4J Server using Ant
    In the ant task definitions for ant-oracle-classes.jar (see antlib.xml) there are two tasks called
         name="restartServer" classname="oracle.ant.taskdefs.deploy.JSR88StartServer"
         name="shutdownServer" classname="oracle.ant.taskdefs.deploy.JSR88ShutdownServer"
    I thought that these would shutdown and start the OC4J server. I guessed the parameters as – (Does anyone know where 50 ant targets are documented?)
    <oracle:restartServer
    userid="${oc4j.admin.user}"
         password="${oc4j.admin.password}"
         deployeruri="${deployer.uri}"
    />
    <oracle:shutdownServer
         userid="${oc4j.admin.user}"
         password="${oc4j.admin.password}"
         deployeruri="${deployer.uri}"
    />
    This, however does not start and stop the SOA suite. To do that I've hacked this solution together -
    <path id="oc4j.console">
         <pathelement location="${oracle.home}/config"/>
         <pathelement location="${oracle.home}/jlib/startupconsole.jar"/>
         <pathelement location="${oracle.home}/opmn/lib/optic.jar"/>
         <pathelement location="${oracle.home}/lib/xmlparserv2.jar"/>
    </path>
    <target name="stop" description="stop oc4j server" depends="init">
         <java classname="oracle.appserver.startupconsole.view.Runner">
              <classpath refid="oc4j.console"/>
              <sysproperty key="ORACLE_HOME" path="${oracle.home}"/>
              <arg value="stop"/>
         </java>
    </target>
    <target name="start" description="restart oc4j server" depends="init">
         <java classname="oracle.appserver.startupconsole.view.Runner">
              <classpath refid="oc4j.console"/>
              <sysproperty key="ORACLE_HOME" path="${oracle.home}"/>
              <arg value="start"/>
         </java>
    </target>
    This sort of works – except when the SOA suite doesn't stop cleanly – and needs user interaction to press a Close button. This isn't very useful when doing a continous integration build and deploy.
    So, does anyone have any suggestions or alternative methods to do this?
    - frank

    Actually if the server throws exceptions when it stops (which it always has since we applied patch 10.1.3.3) this technique will pause until a user responds to pop-up ... So a better way (I think) is -
    <target name="start" description="start oc4j server" depends="init">
    <java classname="oracle.appserver.startupconsole.view.Runner">
    <classpath refid="oc4j.console"/>
    <sysproperty key="ORACLE_HOME" path="${oracle.home}"/>
    <arg value="start"/>
    </java>
    </target>
    <target name="stop" description="stop oc4j server" depends="init">
    <echo message="We expect OC4J *NOT* to stop cleanly, so we will timeout after 3 minutes ..."/>
    <java classname="oracle.appserver.startupconsole.view.Runner" fork="true" timeout="180000">
    <classpath refid="oc4j.console"/>
    <sysproperty key="ORACLE_HOME" path="${oracle.home}"/>
    <arg value="stop"/>
    </java>
    </target>
    <target name="restart" description="restart oc4j server">
    <antcall target="stop"/>
    <!-- wait for server to quieten down -->
    <waitfor maxwait="2" maxwaitunit="minute">
    <not><http url="http://${oc4j.http.hostname}:${oc4j.http.port}"/></not>
    </waitfor>
    <antcall target="start"/>
    </target>

  • Error deploying JDeveloper project using ant-sca-compile.xml

    Hi all, I'm having problems on deploying a JDeveloper project using ant-sca-compile.xml. The output in C:\XXXX\YYYYY\SCA-INF\classes\scac.log is:
    java.lang.NoClassDefFoundError: 4\jdeveloper\////oracle_common
    Caused by: java.lang.ClassNotFoundException: 4\jdeveloper\....oracle_common
         at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
         at java.security.AccessController.doPrivileged(Native Method)
         at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
         at java.lang.ClassLoader.loadClass(ClassLoader.java:305)
         at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
         at java.lang.ClassLoader.loadClass(ClassLoader.java:246)
    Could not find the main class: 4\jdeveloper\/../oracle_common. Program will exit.
    Exception in thread "main"
    What's missing in wich classpath?
    Regards
    Efren.

    Same composite we were able to deploy successfully without any error, from Monday onward we are experiencing this issue.
    We checked in Installation Guide provided by oracle. Oracle has suggested few memory related changes in ant-sca-compile.xml file.
    Increasing Memory to avoid Compilation Errors
    To avoid out-of-memory errors during compilation of a SOA composite application, you need to
    increase the following memory settings.
    To increase memory settings:
    1. Open the ant-sca-compile.xml file in the SOA_HOME/bin directory.
    2. Under the scac element, increase the following memory settings.
    <jvmarg value="-Xms2048m"/>
    <jvmarg value="-Xmx2048m"/>
    <jvmarg value="-XX:PermSize=32m"/>
    <jvmarg value="-XX:MaxPermSize=256m"/>
    3. For Windows change the following memory settings to.
    <jvmarg value="-Xms1536m"/>
    <jvmarg value="-Xmx1536m"/>
    <jvmarg value="-XX:PermSize=32m"/>
    <jvmarg value="-XX:MaxPermSize=256m"/>
    We did those changes but still experiencing same error. I checked H:\AIASOAProject\AIAReceiptInterface\ReceiptListEbizProvider\SCA-INF\classes\scac.log ; file its showing Could not create the Java virtual machine.
    Regards
    Manish

  • NW7.3] Problem while trying to deploy an EAR using ant task

    (I posted this in another forum, but I think this is the right one )
    Hello!
    I'm trying to deploy a EAR file to my Netweaver instance using ANT but I'm facing the following problem.
    I've downloaded all the files from j2ee/deployment and j2ee/j2eeclient as SAP's documentation states, the classpath is correctly set, however I get this error:
    BUILD FAILED!
    build.xml:16: taskdef class com.sap.engine.services.dc.ant.convert.SAPImportEAR cannot be found
    I've taken a look at tcjedc_ant.jar, which I downloaded from my instance, and it appears that SAPImportEAR is missing.
    By opening the file I can see com.sap.engine.services.dc.ant.deploy, com.sap.engine.services.dc.ant.undeploy and com.sap.engine.services.dc.ant.params, but the whole package com.sap.engine.services.dc.ant.convert is missing.
    Is it suposed to be anywhere else? All the articles/posts I found state that it should be on tcjedc_ant.jar.
    Thanks in advance!

    Hi,
    I guess this example_build.xml is outdated (belongs to NW 7.1).
    To build an SDA, look at make_SDA.csh.
    Class is com.sap.engine.lib.deploy.sda.SDAProducer.
    To buid an EAR, you do not need SAPImportEAR at all, just <taskdef "sapdeploy"...
    Regards
    Rolf

  • Deploying using Ant

    Hi,
    Im trying to deploy my BPEL process to server using ant.Im using JDeveloper of version 10.1.3.1. I dont have SOA suit deployed on my server and only have a patch of JDeveloper on my system.In the build.xml I have pointed my $(oracle.home) to C:/JDeveloper
    I have configured my ant-orabpel.properties file pointing to the host which I intend to deploy my process.
    When I try to deploy my processes using Ant the validation task fails with the following error:
    BUILD FAILED
    C:\JDeveloper\jdev\mywork\AntTest\ProcessCalled\build.xml:55: Could not cr
    eate task or type of type: validateTask.
    Ant could not find the task or a class this task relies upon.
    This is common and has a number of causes; the usual
    solutions are to read the manual pages then download and
    install needed JAR files, or fix the build file:
    - You have misspelt 'validateTask'.
    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
    Remember that for JAR files to be visible to Ant tasks implemented
    in ANT_HOME/lib, the files must be in the same directory or on the
    classpath
    Please neither file bug reports on this problem, nor email the
    Ant mailing lists, until all of these causes have been explored,
    as this is not an Ant bug.
    Can anyone help me how to overcome this error and have ant completed with Build successful.
    Any help is highly appreciated.
    Thanks,
    Deepti.

    Thanks Mark,
    I have copied the jar files from ORACLE_HOME\OracleAS_1\bpel\lib to JDeveloper\integration\bpel\lib and have set the my CLASSPATH to the same and my ant started working successfully.
    Thanks,
    Deepti

  • Using Ant to deploy manually

    Hi,
    I am hoping that someone can point to the correct documentation regarding using Ant to compile and deploy a BPEL process.
    I am attempting to deploy a BPEL flow in a test environment from the command line. I have copied the BPEL flow project to the BPEL SOA server (HP Linux, BPEL version 10.1.3.1), but I do not think I have my environment variables set up correctly.
    What environment variables need to be defined? Also, in the ant command syntax how do I specify the revision/version number of the flow?
    The following is transcript from a session showing the various errors and the variables I have set:
    [bpel@omv1rrm2 test]$ ant
    -bash: ant: command not found
    [bpel@omv1rrm2 test]$ export PATH=$PATH:$BPEL/ant/bin
    [bpel@omv1rrm2 test]$
    [bpel@omv1rrm2 test]$ ant
    Error: JAVA_HOME is not defined correctly.
    We cannot execute java
    [bpel@omv1rrm2 test]$
    [bpel@omv1rrm2 test]$ export JAVA_HOME=$BPEL/jdk
    [bpel@omv1rrm2 test]$
    [bpel@omv1rrm2 test]$ ant
    Buildfile: build.xml does not exist!
    Build failed
    [bpel@omv1rrm2 test]$ cd ManageVoiceMail/
    [bpel@omv1rrm2 ManageVoiceMail]$
    [bpel@omv1rrm2 ManageVoiceMail]$ ant
    Buildfile: build.xml
    BUILD FAILED
    /home/bpel/anitpatel/test/ManageVoiceMail/build.xml:25: Cannot find ${oracle.home}/integration/bpel/utilities/ant-orabpel.xml imported from /home/bpel/anitpatel/test/ManageVoiceMail/build.xml
    Total time: 0 seconds
    [bpel@omv1rrm2 ManageVoiceMail]$

    You need to set bpel_home, oracle_home and ant_home, add you ant home/bin directory to PATH. Also add all the required jar files in classpath. Then you can run your ant command.
    For bpel process revision, in build.xml pls check the sections "Compiling bpel process ${process.name}, revision ${rev}" and "eploying bpel process ${process.name} on ${http.hostname}, port ${http.port}" for compiling and deploying bpel processes. In that section the revision is read from property ${rev} and it is read from your build.properties(or you build property) file.
    I could not find specific documentation that I can point you out. Perhaps the previous discussions in this forum can help you more to achieve your task.

  • Creating SDA (or other suitable archives) using ANT

    I have just competed writing a LoginModule that calls our product from WebAS. Until now I was using the NetWeaver Developer Studio to create the SDA file. But we need to create the SDA file (or onother suitable archive file) using ANT scripts so our automated build process can create it along with deployment files for other platforms. Please let me know if anyone can provide any info on this. Search of the forums and help has not yielded any result the whole day.
    Thanks in advance.
    Roshan

    Yes, about a month back I discovered that I dont have to rename the zip file, but was too lazy to write it here.
    About " do you have a task which deploys the sda to the server?" :
    Search the forum. I remember reading something about deploying. There is also a PDF doc "Deploying J2EE Applications on SAP NetWeaver". I can email it to you if you cant find it.
    I have some scripts that I copied from the forum but never used. You can check it out if it works:
    <target name="deploy">
         <property name="webas.j2ee.home" value="D:/usr/sap/TWD/JC00/j2ee" />
         <property name="webas.deploying.dir" value="${webas.j2ee.home}/deploying" />
         <property name="app.name" value="SALoginModule" />
         <property name="webas.user" value="Administrator" />
         <property name="webas.password" value="Integra7" />
         <exec dir="${webas.deploying.dir}" executable="${webas.deploying.dir}/deploymanager.bat">
              <arg value="$/sap/Deployer.xml"/>
         </exec>
         <telnet server="localhost" port="50008">
              <read>Login:</read>
              <write>${webas.user}</write>
              <read>Password:</read>
              <write>${webas.password}</write>
              <read>&gt;</read>
              <write>JUMP 0</write>
              <read>You jumped on node</read>
              <write>ADD DEPLOY</write>
              <read>&gt;</read>
              <write>START_APP ${app.name}</write>
              <read>&gt;</read>
         </telnet>
    </target>
    <project name="test_sdm" basedir="." default="deploy">
    <!--
    AUTHOR: David Beisert http://www.beisert-btc.de
    -->
    <!--property name="server" value="localhost"/>
    <property name="httpport" value="56000"/>
    <property name="sdmport" value="56018"/-->
    <property name="server" value="vmw0004"/>
    <property name="httpport" value="54100"/>
    <property name="sdmport" value="54118"/>
    <property name="SDM_HOME" value="C:/usr/sap/SNE/JC60/SDM"/>
    <target name="deploy">
         <taskdef name="sdm" classname="dbeisert.ant.ext.sap.SDMRemoteDeployTask" >
              <classpath >
                   <pathelement location="$/sdmAnt.jar"/>
                   <pathelement location="$\program\bin\SDM.jar"/>
                   <fileset dir="$\program\lib">
                   <include name="*/.jar"/>
                   </fileset>
              </classpath>
         </taskdef>
         <sdm
              host="$"
              port="$"
              password="sdm"
              archive="../MY_EAR/MY_EAR.ear"/>
    </target>
    </project>

  • NoClassdeffounderror while using ant

    Hi,
    I am using ant to test some sample examples in the java xml security library, for which it needs junit. I have downloaded junit and have put junit.jar in my CLASSPATH.
    but even then i get an error
    java.lang.noClassdeffoundError: junit/framework/TestCase
    I know that this class exists in junit.jar file, but even then there is no success.....Any ideas?
    Silveroaks

    ant uses it's own classpath. To use junit, you have to put the junit.jar into .../ant1.6.0/lib

  • Error in starting weblogic server using ant

    Hi,
    I am trying to start the weblogic server using ant.I used the following command:
    <taskdef name="wlserver" classname="weblogic.ant.taskdefs.management.WLServer">
    <classpath>
    <pathelement location="${BEA_HOME}/weblogic81/server/lib/weblogic.jar" />
    </classpath>
    </taskdef>
    <target name="start-weblogic">
    <wlserver username="weblogic" password="weblogic" failonerror="false" servername="myserver" domainname="rwadomain" dir="${BEA_HOME}/user_projects/domains/rwadomain" host="localhost" port="7001" weblogichome="${BEA_HOME}/weblogic81" beahome="${BEA_HOME}" policy="${BEA_HOME}\weblogic81\server\lib\weblogic.policy" />
    </target>
    But it is giving me an error that java.lang.NoClassDefFoundError: weblogic/Server
    I also tried the following command:
    <target name="start-weblogic">
    <java classname="weblogic.Server" fork="yes" classpathref="weblogic.classes" failonerror="true">
    <sysproperty key="weblogic.Domain" value="rwadomain"></sysproperty>
    <sysproperty key="weblogic.RootDirectory" value="C:\bea\user_projects\domains\rwadomain"></sysproperty>
    <sysproperty key="weblogic.ConfigFile" value="config.xml"></sysproperty>
    <sysproperty key="weblogic.ListenAddress" value="localhost"></sysproperty>
    <sysproperty key="weblogic.ListenPort" value="7001"></sysproperty>
    <arg line="-ms200m -mx200m"></arg>
    </java>
    </target>
    But the problem with this command is that it does not reurn control to execute the further commands.
    Please suggest something.
    Thanks in advance
    -amit

    Hi,
    You should take a look at the <parallel> ant task.
    Regards,
    LG

Maybe you are looking for