WSDPe2-ant buld, ant install

On WindowsNT
After successful \gs>ant build,
I'm getting error after \gs>ant install:
BUILD FAILED
D:\jwsdp_e2\docs\tutorial\examples\gs\build.xml:41: java.io.FileNotFoundExceptio
n: http://localhost:8080/manager/install?path=%2Fgs&war=file%3AD%3A%5Cjwsdp_e2%2
Fdocs%2Ftutorial%2Fexamples%2Fgs%2Fbuild
My build.properties file is in c:\winnt\profiles\administrator and consist of just 1 line:
username=vgkogut password=sch106.
The tomcat-users.xml file has corresponding line:
<user username="vgkogut" password="sch106" roles="admin,manager,provider"/>
So what might be wrong ?
Thanks,
Vlad

I have the same problem with "ant install" if I login as "root" user.(even if I have created the build.properties file correctly in root account directory) If I login as normal user, "ant install" work. I have no problem getting the example "gs" to build, install and run properly. However, when I run "ant install" on the example: <JWSDP_HOME>/docs/tutorial/examples/web/hello1, it run successfully but there is nothing created for me at the <JWSDP_HOME>/Standard Engine/localhost/hello1 directory. I wonder anybody has encountered this problem and know the solution for this problem! Thank you.

Similar Messages

  • Ant Classpath ${ant.home}/lib/optional/

    Buildfile: build.xml
    init:
    compile:
    [javac] Compiling 1 source file to E:\Sasikumar\build
    BUILD FAILED
    E:\Sasikumar\build.xml:20: Could not create task or type of type: cl
    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 'classpath'.
    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 librarie
    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
    task and make sure it contains more than merely a META-INF/MANI
    If all it contains is the manifest, then rebuild Ant with the n
    libraries present in ${ant.home}/lib/optional/ , or alternative
    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.
    Total time: 4 seconds
    I GOT ABOVE ERROR. please give a solution
    thankx in advance
    Sasikumar

    Put "weblogic.jar" in $ANT_HOME/lib.

  • 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

  • Installing ANT 1.5.3 --Better than the previous post

    Hello all,
    I am a RIT student on my first internship an I'm in over my head. (At least that the way I'm told all first internships feel) Anyway, I am trying to install Apache's POI jar files into my JVM, so that I can easily read and write Excel files. The POI installation says that I need to install two components; ANT as well as FORREST. Below I have pasted some lines from the ANT 1.5.3 installation documentation, of which I have tagged with a few questions. The bold type followed by a Q# shows where I am getting caught up.
    <Install Document>
    Installing Ant
    The binary distribution of Ant consists of the following directory layout:
    ant
    +--- bin  // contains launcher scripts
    |
    +--- lib  // contains Ant jars plus necessary dependencies
    |
    +--- docs // contains documentation
    | +--- ant2    // a brief description of ant2 requirements
    | |
    | +--- images  // various logos for html documentation
    | |
    | +--- manual  // Ant documentation (a must read ;-)
    |
    +--- etc // contains xsl goodies to:
    // - create an enhanced report from xml output of various tasks.
    // - migrate your build files and get rid of 'deprecated' warning
    // - ... and more ;-)
    Only the bin and lib directories are required to run Ant. To install Ant, choose a directory and copy the distribution file there. [Q1] This directory will be known as ANT_HOME.
    Windows 95, Windows 98 & Windows ME Note:
    On these systems, the script used to launch Ant will have problems if ANT_HOME is a long filename (i.e. a filename which is not of the format known as "8.3"). This is due to limitations in the OS's handling of the "for" batch-file statement. It is recommended, therefore, that Ant be installed in a short, 8.3 path, such as C:\Ant.
    On these systems you will also need to configure more environment space to cater for the environment variables used in the Ant lauch script. To do this, you will need to add or update the following line in the config.sys file
    shell=c:\command.com c:\ /p /e:32768 I can do this one ;-)
    Setup
    Before you can run ant there is some additional set up you will need to do:
    Add the bin directory to your path. [Q2]
    Set the ANT_HOME environment variable[Q3] to the directory where you installed Ant. On some operating systems the ant wrapper scripts can guess ANT_HOME (Unix dialects and Windows NT/2000) - but it is better to not rely on this behavior.
    Optionally, set the JAVA_HOME environment variable (see the Advanced section below). This should be set to the directory where your JDK is installed.
    Note: Do not install Ant's ant.jar file into the lib/ext directory of the JDK/JRE. Ant is an application, whilst the extension directory is intended for JDK extensions. In particular there are security restrictions on the classes which may be loaded by an extension.
    </Install Document>
    Questions
    Q1: What is this distrobution File? -- If the directory contents are needed to answer this one, then just perhaps a brief description of what to look for (file extentions or name or somthing) would suffice.
    Q2: Add the bin directory to your path. Ok so how would I do this?
    Q3: Set the ANT_HOME environment variable... How can I do this?

    1) What you downloaded should be a packed file (zip, tar.gz, etc) that needs to be unpacked into the directory of your choice.
    2) & 3) are answered by Ant's installation documentation (the page you're quoting from):
    http://ant.apache.org/manual/index.html

  • Unable to run ALBPM Ant tasks on Linux

    Hi,
    I am trying to execute a simple build script that creates a session with given directory details and deploys/publishes a project on to the Enterprise Server. With usual modifications, this scripts works fine on Windows, but on Linux it keeps on giving an error that makes no sense. I am copying my build file as well as error stack trace below. Please help me on urgent basis.
    OS: Linux 64 bit
    Oracle Enterprise Server: 10.3.1.0.0
    JAVA_HOME=/usr/java/jdk1.6.0_16
    ANT_HOME=/usr/ant/apache-ant-1.8.1
    build.xml
    <!-- This script publishes and deploys a BPM Project, undeploys and unpublishes a BPM Project, Export Organisation.xml -->
    <project name="sampleproj"
         xmlns:fuego="antlib:fuego.tools.ant.enterprise"
         xmlns:fuego.j2ee="antlib:fuego.tools.ant.j2ee">
    <!-- Include properties -->
    <property file="build.properties"/>
    <echo message="Enterprise Home Directory:: ${fuego.basedir}" />
    <echo message="Ant Version:: ${ant.version}" />
    <echo message="Connecting to directory:: ${fuego.directoryid}" />
    <fuego:passport id="passport"
    directoryid="${fuego.directoryid}"
    preset="engine" />
    <target name="publish-on-linux" description="Publish and deploy processes">
    <echo message="Creating session..."/>
    <!-- Open a session to the ALBPM directory -->
    <fuego:session passportref="passport"
    verbose="true"
    haltonerror="true">
    <!-- Publish processes -->
    <fuego:publish fpr="${bpm.project.path}"
    deploy="true"
    engine="${fuego.engine}"
              haltonerror="true"
              importdata="true"
              automapconfigs="true"
              automapvars="true"
              automaproles="true"
              automapbuspars="true"
              importcustomviews="true">
    </fuego:publish>
    </fuego:session>
    </target>
    </project>
    build.properties
    # Enterprise installation directory
    fuego.basedir=/opt/OraBPMwlHome
    # Name of ALBPM Engine to deploy to
    fuego.engine=bpmengine
    # Project to deploy
    bpm.project.path=/usr/test_ant/sampleproj
    # Directory details
    fuego.directoryid=default
    Error on running the target publish-on-linux
    [echo] Enterprise Home Directory:: /opt/OraBPMwlHome
    [echo] Ant Version:: Apache Ant version 1.8.1 compiled on April 30 2010
    [echo] Connecting to directory:: default
    publish-on-linux:
    [echo] Creating session...
    [fuego:session] fuego base dir [opt/OraBPMwlHome]
    BUILD FAILED
    /usr/test_ant/build1.xml:25: java.lang.NullPointerException
    at fuego.tools.ant.BaseFuegoTask.getClassLoader(Unknown Source)
    at fuego.tools.ant.BaseFuegoTask.executeTask(Unknown Source)
    at fuego.tools.ant.enterprise.taskdefs.DirectorySessionTask.executeImpl(Unknown Source)
    at fuego.tools.ant.BaseFuegoTask.execute(Unknown Source)
    at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
    at org.apache.tools.ant.Task.perform(Task.java:348)
    at org.apache.tools.ant.Target.execute(Target.java:390)
    at org.apache.tools.ant.Target.performTasks(Target.java:411)
    at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1397)
    at org.apache.tools.ant.Project.executeTarget(Project.java:1366)
    at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
    at org.apache.tools.ant.Project.executeTargets(Project.java:1249)
    at org.apache.tools.ant.Main.runBuild(Main.java:801)
    at org.apache.tools.ant.Main.startAnt(Main.java:218)
    at org.apache.tools.ant.launch.Launcher.run(Launcher.java:280)
    at org.apache.tools.ant.launch.Launcher.main(Launcher.java:109)
    Total time: 0 seconds

    Amit Zini wrote:
    Dear All,
    I am unable to run my oracle 10g forms application on Linux machine which is runing Fedora 16.
    i have tried to install jre 6 but mozilla firefox 10 is not loading my oracle 10 forms application, it says plugin missing.
    Kindly help me to short out the problem.
    java version "1.6.0_24"
    OpenJDK Runtime Environment (IcedTea6 1.11.1) (fedora-65.1.11.1.fc16-i386)
    OpenJDK Server VM (build 20.0-b12, mixed mode)
    Regards.
    Amit.Try with down grade of Mozilla firefox. may be version 6 to 8. not 9/10.
    Firefox with 9 and higher doesn't support JRE version 1.6.XX.
    Hopes this helps

  • B2B SelfService Error creating Trading Partner .zip import file using ant

    SOA 11g 11.1.1.5 B2B - We are trying to create an import file for out trading partners into SOA B2B 11g but are getting errors when we run the ant script to build the import zip file.
    We ran the ant-b2b-util to get the b2bselfservice.xsd file, loaded that into jDev to show the selfservice.xml structure.
    We have built a trading partner xml file and at this point have stripped it down to one TP just to see if we could get it to work and we keep getting the same error messages.
    From the $SOA_ORACLE_HOME/bin directory (where we have placed our TP xml file: TPD_NA.xml) here is the command and results from running the ant script:
    [oracle@nalinoap05 bin]$ ant -f ant-b2b-util.xml b2bselfservice -Dinput=$ORACLE_HOME/bin/TPD_NA.xml -Doutput=$ORACLE_HOME/bin/TP_Docs.zip
    Buildfile: ant-b2b-util.xml
    b2bselfservice:
    weblogic_dependencies:
    [echo]
    [echo] Weblogic server location: /oracle/SOAWDEV/11.1.1.5/Oracle/Middleware/wlserver_10.3
    [echo] JNDI properties folder location: /oracle/SOAWDEV/11.1.1.5/Oracle/Middleware/Oracle_SOAWDEV/bin
    [echo]
    verifyargs:
    utility:
    [echo]
    [echo] java.naming.provider.url=${java.naming.provider.url}
    [echo] java.naming.factory.initial=${java.naming.factory.initial}
    [echo] java.naming.security.principal=${java.naming.security.principal}
    [echo] java.naming.security.credentials=*****
    [echo]
    [echo]
    [echo] args=selfservice
    [echo]
    [java] Commandline arguments 1: [selfservice]
    [java] 2012.04.10 at 13:27:35:559: main: (INFO) Input file location(s) :[oracle/SOAWDEV/11.1.1.5/Oracle/Middleware/Oracle_SOAWDEV/bin/TPD_NA.xml]
    [java] 2012.04.10 at 13:27:35:559: main: (INFO) Output file location :/oracle/SOAWDEV/11.1.1.5/Oracle/Middleware/Oracle_SOAWDEV/bin/TP_Docs.zip
    [java] 2012.04.10 at 13:27:35:596: main: (INFO) TradingPartner created :/soa/b2b/tp_id1AC191488133.xml
    [java] 2012.04.10 at 13:27:35:600: main: (SEVERE) TPD_NA.xml: Combination of Documentprotocol=EDI_X12 docVersion=4010VICS docType=852 docDef=852Def not found in doc_*.xml file
    [java] 2012.04.10 at 13:27:35:600: main: (SEVERE) TPD_NA.xml: Combination of Documentprotocol=EDI_X12 docVersion=4010 docType=997 docDef=997Def not found in doc_*.xml file
    [java] 2012.04.10 at 13:27:35:600: main: (SEVERE) TPD_NA.xml: Combination of Documentprotocol=EDI_X12 docVersion=5010 docType=850 docDef=850Def not found in doc_*.xml file
    [java] 2012.04.10 at 13:27:35:601: main: (SEVERE) TPD_NA.xml: Combination of Documentprotocol=EDI_X12 docVersion=5010 docType=860 docDef=860Def not found in doc_*.xml file
    [java] 2012.04.10 at 13:27:35:601: main: (SEVERE) TPD_NA.xml: Combination of Documentprotocol=EDI_X12 docVersion=4010VICS docType=864 docDef=864Def not found in doc_*.xml file
    [java] 2012.04.10 at 13:27:35:601: main: (SEVERE) TPD_NA.xml: Combination of Documentprotocol=EDI_X12 docVersion=5010 docType=864 docDef=864Def not found in doc_*.xml file
    [java] 2012.04.10 at 13:27:35:601: main: (SEVERE) TPD_NA.xml: Combination of Documentprotocol=EDI_X12 docVersion=5010 docType=997 docDef=997Def not found in doc_*.xml file
    [java] 2012.04.10 at 13:27:35:602: main: (SEVERE) TPD_NA.xml: Combination of Documentprotocol=EDI_X12 docVersion=5010 docType=856 docDef=856Def not found in doc_*.xml file
    [java] 2012.04.10 at 13:27:35:602: main: (SEVERE) TPD_NA.xml: Combination of Documentprotocol=EDI_X12 docVersion=5010 docType=810 docDef=810Def not found in doc_*.xml file
    [java] 2012.04.10 at 13:27:35:691: main: (SEVERE) TPD_NA.xml: Error in Validation:
    [java] [org.xml.sax.SAXParseException: XML-24536: (Error) Missing Attribute 'documentDefinitionRef',
                   org.xml.sax.SAXParseException: XML-24536: (Error) Missing Attribute 'documentDefinitionRef',
                   org.xml.sax.SAXParseException: XML-24536: (Error) Missing Attribute 'documentDefinitionRef',
                   org.xml.sax.SAXParseException: XML-24536: (Error) Missing Attribute 'documentDefinitionRef',
                   org.xml.sax.SAXParseException: XML-24536: (Error) Missing Attribute 'documentDefinitionRef',
                   org.xml.sax.SAXParseException: XML-24536: (Error) Missing Attribute 'documentDefinitionRef',
                   org.xml.sax.SAXParseException: XML-24536: (Error) Missing Attribute 'documentDefinitionRef',
                   org.xml.sax.SAXParseException: XML-24536: (Error) Missing Attribute 'documentDefinitionRef',
                   org.xml.sax.SAXParseException: XML-24536: (Error) Missing Attribute 'documentDefinitionRef']
    [java] Java Result: 255
    BUILD SUCCESSFUL
    Total time: 1 second
    Here is the contents of TPD_NA.xml:
    <?xml version="1.0" encoding="UTF-8"?>
    <SelfService xmlns="http://xmlns.oracle.com/integration/b2b/selfservice/profile">
    <TradingPartners>
    <TradingPartner hosted="false" name="OvvvvvvvX" >
    <Identification name="EDI Interchange ID" value="18xxxxxxxxxX" />
    <Identification name="EDI Interchange ID Qualifier" value="14" />
    <Identification name="DUNS" value="18xxxxxxxxxX" />
    <Identification name="Generic Identifier" value="18xxxxxxxxxX" />
    <Identification name="AS2 Identifier" value="18xxxxxxxxxX" />
    <SupportedDocumentDefinition initiator="true" docTypeName="852" docProtocolVersion="4010VICS" docProtocolName="EDI_X12" docDefName="852Def" />
    <SupportedDocumentDefinition initiator="true" docTypeName="997" docProtocolVersion="4010" docProtocolName="EDI_X12" docDefName="997Def" />
    <SupportedDocumentDefinition initiator="true" docTypeName="850" docProtocolVersion="5010" docProtocolName="EDI_X12" docDefName="850Def" />
    <SupportedDocumentDefinition initiator="true" docTypeName="860" docProtocolVersion="5010" docProtocolName="EDI_X12" docDefName="860Def" />
    <SupportedDocumentDefinition initiator="true" docTypeName="864" docProtocolVersion="4010VICS" docProtocolName="EDI_X12" docDefName="864Def" />
    <SupportedDocumentDefinition initiator="true" docTypeName="864" docProtocolVersion="5010" docProtocolName="EDI_X12" docDefName="864Def" />
    <SupportedDocumentDefinition initiator="true" docTypeName="997" docProtocolVersion="5010" docProtocolName="EDI_X12" docDefName="997Def" />
    <SupportedDocumentDefinition initiator="false" docTypeName="856" docProtocolVersion="5010" docProtocolName="EDI_X12" docDefName="856Def" />
    <SupportedDocumentDefinition initiator="false" docTypeName="810" docProtocolVersion="5010" docProtocolName="EDI_X12" docDefName="810Def" />
    </TradingPartner>
    </TradingPartners>
    </SelfService>
    We have exported our metadata and looked at the doc_EDI_X12.xml file and ALL of these referenced documents exist in that file and can be seen by going to Administration --> Document and under the Document Protocols navigation --> EDI_X12 --> 5010 --> 810 --> 810Def (as an example).
    If we strip out all of the SupportedDocumentDefiinition lines then the ant script will build an import file with just the trading partners and Identifications.
    What are we doing incorrectly or what is not working properly to get the ant script to build the import zip file??
    Thanks for any assistance,
    Ken

    Does that mean we have to create all of the document type definitions in the selfservice file?
    We have created (installed) all of the document types by installing them from the B2B Administration --> Document page.
    The definitions in the Trading Partner xml file exactly match the definitions of the installed documents.
    In the selfservice.xsd the <element> SelfService shows the profile:DocumentProtocols as minOccurs as 0 :
         <element name="SelfService">
              <complexType>
                   <sequence>
                        <element minOccurs="0" maxOccurs="1"
                             ref="profile:DocumentProtocols" />
                        <element minOccurs="0" maxOccurs="1"
                             ref="profile:TradingPartners" />
                        <element minOccurs="0" maxOccurs="1"
                             ref="profile:Agreements" />
                   </sequence>
                   <attribute name="version" type="profile:non-empty-string"
                        use="optional" />
              </complexType>
         </element>
    so we thought that since the documents had already been defined (created/installed) to B2B they would not have to be redefined in the selfservice xml.
    If we have to define all of the document types in the selfservice xml file that we are using for the trading partners what are the minimum values that we need to include?
    Could we use minimal definitions such as this:
    <DocumentProtocols>
    <DocumentProtocol name="EDI_X12">
    <DocumentProtocolVersion name="4010">
    <DocumentType name="850">
    <DocumentDefinition name="850def" />
    </DocumentType>
    <DocumentType name="997">
    <DocumentDefinition name="997def" />
    </DocumentType>
    </DocumentProtocolVersion>
    </DocumentProtocol>
    </DocumentProtocols>
    before the <TradingPartners> section of the seflxervice xml file?
    Thanks for your assistance!

  • How to compile a class from a Servlet using ant!!!

    Hi I have the following problem:
    I have a Servlet that must compile a java class.
    Here is the code that i use to compile:
    File buildFile = new File(build.xml path);
    String[] arg = { "-buildfile", buildFile.toString(), "compile" };
    Properties userProps = null;
    ClassLoader loader = ClassLoader.getSystemClassLoader();
    Main.start(arg, userProps, loader);
    The build.xml file was written correctly, infact if i lunch the command ant by dos it is correctly done.
    When I put my application in tomcat/webapps and try to compile with code above I have the following error:
    BUILD FAILED C:\......: Could not create task or type of type: property.
    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 'property'.
    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.

    Java code Snippet
    import org.apache.tools.ant.*;// ant.jar
    String SourceDir="c:\java";
         String DestinationDir="c:\classes";
         Project project = new Project();
         try
    String baseDir = getServletContext().getRealPath( "/WEB-INF/build/");//Build.xml should be in this folder or else make use of the build folder here
         File buildFile = new File( baseDir, "build.xml");
         project.setUserProperty( "SourceDir", SourceDir);
         project.setUserProperty( "DestinationDir", DestinationDir);
         project.setUserProperty( "ant.file", buildFile.getAbsolutePath());
         project.setBaseDir( new File( baseDir));
         project.init();
         ProjectHelper.configureProject( project, buildFile);
         project.executeTarget(project.getDefaultTarget());
         catch (Exception e)
    Build.xml
    <?xml version="1.0"?>
    <project name="Sample" default="compile" basedir=".">
         <property name="SrcDir" value="${SourceDir}"/>
         <property name="DestnDir" value="${DestinationDir}"/>
         <target name="compile">
              <javac srcdir="${SrcDir}" destdir="${DestnDir">
                   <classpath > <!-- If any supporting jars required to compile the file add this-->
                        <fileset dir="${SrcDir}" includes="*.jar" />
                   </classpath>
              </javac>
         </target>
    </project>

  • Database creation using ant/maven/liqubase

    Dear ALL:
    I am creating the database instance using the ant/maven scripts and following are the things I tried but some how it is not creating the database.
    I have installed the 64bit oracle 11gR2 on windows 7 and configured the default database (ORCL). after installation I opened up the command prompt and tried sqlplus and it get connected and I can see the tables. However when I tries to do it using the build script it fails. Following are few things I tried out.
    I plan to created 'orcl as the database with sid=orclusing the ant command 'ant -Denv=dev clean create-db -d' but it failed saying orcl is already running and you need to shut down it and I think it is expected because I am creating the database named orcl which is already created. Then I changed database name to dms and sid=dms then it throws error that you cant connect to the server with following error.
    SQL*Plus: Release 11.2.0.1.0 Production on Wed Jan 12 16:17:11 2011
    Copyright (c) 1982, 2010, Oracle. All rights reserved.
    ERROR:
    ORA-12560: TNS:protocol adapter error
    SP2-0640: Not connected
    ORA-12560: TNS:protocol adapter error
    more information about listener: the output of - lsnrctl stat
    LSNRCTL for 64-bit Windows: Version 11.2.0.1.0 - Production on 12-JAN-2011 16:18:04
    Copyright (c) 1991, 2010, Oracle. All rights reserved.
    Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC1521)))
    STATUS of the LISTENER
    Alias LISTENER
    Version TNSLSNR for 64-bit Windows: Version 11.2.0.1.0 - Production
    Start Date 12-JAN-2011 16:16:51
    Uptime 0 days 0 hr. 1 min. 13 sec
    Trace Level off
    Security ON: Local OS Authentication
    SNMP OFF
    Listener Parameter File C:\oracle\santosh\product\11.2.0\dbhome_1\network\admin\listener.ora
    Listener Log File c:\oracle\santosh\diag\tnslsnr\unknown\listener\alert\log.xml
    Listening Endpoints Summary...
    (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(PIPENAME=\\.\pipe\EXTPROC1521ipc)))
    (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=127.0.0.1)(PORT=1521)))
    Services Summary...
    Service "CLRExtProc" has 1 instance(s).
    Instance "CLRExtProc", status UNKNOWN, has 1 handler(s) for this service...
    Service "orcl" has 1 instance(s).
    Instance "orcl", status READY, has 2 handler(s) for this service...
    Service "qc_dms" has 1 instance(s).
    Instance "qcdms", status READY, has 1 handler(s) for this service...
    Service "qcdmsXDB" has 1 instance(s).
    Instance "qcdms", status READY, has 1 handler(s) for this service...
    The command completed successfully
    Can someone help me out ? how ever the same thing is working fine on the oracle virtual box running on ubuntu 10.04.
    thank,
    Santosh

    I didnt used ORADIM in the script. here is the script that I am using .
    <target name="create-db-oracle"     >
              <echo>creating database ([${database.name}])</echo>
              <exec dir="${target.script.dir}" executable="sqlplus" output="${target.log.dir}/create-db.log" failonerror="true">
                   <arg line="/nolog @create-db_${database.flavor}.sql" />
              </exec>
    </target>
    with following connection properties
    <properties>
              <db.version>1.0</db.version>
              <liquibase.remote.db.prompt>true</liquibase.remote.db.prompt>
              <db.migrate>all</db.migrate>
              <database.driver>oracle.jdbc.driver.OracleDriver</database.driver>
              <database.url>jdbc:oracle:thin:@${database.host}:${database.port}/${database.name}</database.url>
              <database.user>santosh</database.user>
              <database.schema.user>project</database.schema.user>
              <database.admin.user>system</database.admin.user>
              <database.flavor>oracle-11g</database.flavor>
              <database.name>dcm</database.name>
         </properties>
    <properties>
         <database.host>localhost</database.host>
    <database.port>1521</database.port>
         <database.password>A_Pass123</database.password>
         <database.schema.password>projectpassword</database.schema.password>
         <database.admin.password>oracle#</database.admin.password>
    </properties>
    Edited by: user548284 on Jan 12, 2011 5:56 PM

  • Problems with JDev 11g using JBOSS and ANT

    Hi,
    I'm trying to migrate to JDev 11g with JBoss ( version 7.X ) as the AppServer
    With JDev 10g all works fine with JBoss, even the Remote Debug, all OK
    here is the problems I have :
    1) ANT
    JDev doesn't save my ANT settings
    every time I launch ANT : Run Ant Target - I must set the Advance settings
    JDev 10g I only need to do that once, the settings are saved but not in the 11g, why ?
    2) persistence
    I get this error when deploying to JBoss
    16:34:50,967 INFO [org.jboss.as.server] (HttpManagementService-threads - 1) JBA
    S015870: Deploy of deployment "prod_v0.0.1_iDigital.menu.ear" was rolled back wi
    th failure message {"JBAS014771: Services with missing/unavailable dependencies"
    => ["jboss.persistenceunit.\"prod_v0.0.1_iDigital.menu.ear/iDigital.menu-WebApp
    .war#InfraModel\"jboss.naming.context.java.jdbc.stdDSMissing[jboss.persistenceun
    it.\"prod_v0.0.1_iDigital.menu.ear/iDigital.menu-WebApp.war#InfraModel\"jboss.na
    ming.context.java.jdbc.stdDS]","jboss.persistenceunit.\"prod_v0.0.1_iDigital.men
    u.ear#InfraModel\"jboss.naming.context.java.jdbc.stdDSMissing[jboss.persistenceu
    nit.\"prod_v0.0.1_iDigital.menu.ear#InfraModel\"jboss.naming.context.java.jdbc.s
    tdDS]"]}
    it seems that is something related to dependencies not well configured during build stage of the EAR, but with 10g works fine
    BTW, I can't run my project with WebLogic either, gives this error :
    <5/Abr/2013 18H27m BST> <Error> <Deployer> <BEA-149265> <Failure occurred in the execution of deployment request with ID '1365182860563' for task '0'. Error is: 'weblogic.management.DeploymentException: [J2EE:160149]Error while processing library references. Unresolved application library references, defined in weblogic-application.xml: [Extension-Name: adf.oracle.domain, exact-match: false].'
    weblogic.management.DeploymentException: [J2EE:160149]Error while processing library references. Unresolved application library references, defined in weblogic-application.xml: [Extension-Name: adf.oracle.domain, exact-match: false].
         at weblogic.application.internal.flow.CheckLibraryReferenceFlow.prepare(CheckLibraryReferenceFlow.java:26)
         at weblogic.application.internal.BaseDeployment$1.next(BaseDeployment.java:613)
         at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:52)
         at weblogic.application.internal.BaseDeployment.prepare(BaseDeployment.java:184)
         at weblogic.application.internal.EarDeployment.prepare(EarDeployment.java:58)
         Truncated. see log file for complete stacktrace
    >
    <5/Abr/2013 18H27m BST> <Warning> <Deployer> <BEA-149004> <Failures were detected while initiating deploy task for application 'iDigital.menu'.>
    <5/Abr/2013 18H27m BST> <Warning> <Deployer> <BEA-149078> <Stack trace for message 149004
    weblogic.management.DeploymentException: [J2EE:160149]Error while processing library references. Unresolved application library references, defined in weblogic-application.xml: [Extension-Name: adf.oracle.domain, exact-match: false].
         at weblogic.application.internal.flow.CheckLibraryReferenceFlow.prepare(CheckLibraryReferenceFlow.java:26)
         at weblogic.application.internal.BaseDeployment$1.next(BaseDeployment.java:613)
         at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:52)
         at weblogic.application.internal.BaseDeployment.prepare(BaseDeployment.java:184)
         at weblogic.application.internal.EarDeployment.prepare(EarDeployment.java:58)
         Truncated. see log file for complete stacktrace
    can someone give me a clue ?
    thanks
    Edited by: FernandoLeite on Apr 5, 2013 10:31 AM

    I can't say many about the ant stuff, but have you tried to put the parameters in a property file and use this to get the parameters to ant?
    The reason you can't run the application on WLS is that you have not installed the adf runtime on your wls. The error 'application.xml: [Extension-Name: adf.oracle.domain, exact-match: false].' points to this.
    Timo

  • Ant + Junit + html reports question

    Hi,
    I am successfully creating reports from my test suite,
    however instead of listing all classes in the left frame of the html report of all test classes included in the suite, it shows the suite class name and when I click on it it lists all 250 or so test method results.
    I want to be able to click on each test case results and view its methods.
    I have seen this before but wondering how to achieve it, is it a speacial element you must use or an attribute or something like that.
    here is my code,
    <target name="tests" depends="load.im.test.classpath" description="Run tests ant create report">
                        <property name="testinputs.dir" location="C:\johnTemp\testreports"/>
                        <mkdir dir="${TEST_HTML_OUTPUT}"/>
                        <mkdir dir="C:\johnTemp\testreports"/>
                            <junit printsummary="yes"
                                   fork="yes"
                                   forkmode="perBatch"
                                   haltonfailure="no"
                                   showoutput="yes">
                              <formatter type="xml" />
                              <classpath path="../bin/classes/"/>
                               <classpath path="../../common/bin/classes"/>
                               <classpath refid="im.test.path"/>
                               <batchtest todir="${TEST_HTML_OUTPUT}">
                                            <fileset dir="${TEST_CLASSES}">
                                                <include name="**/**ManagerTest**.class"/>
                                            </fileset>
                         </batchtest>
                            </junit>
                            <junitreport todir="${TEST_HTML_OUTPUT}">
                              <fileset dir="${TEST_HTML_OUTPUT}">
                                <include name="TEST-*.xml"/>
                              </fileset>
                               <report format="frames" todir="${TEST_HTML_OUTPUT}"/>
                              <report todir="${TEST_HTML_OUTPUT}"/>
                            </junitreport>
                             <jar destfile="${TEST_OUTPUT}/junitResults.jar" basedir="${TEST_HTML_OUTPUT}"/>
        </target>Thanks for any advice?

    Hmmm...
    I'm getting the same problem with Ant 1.6 installed in /opt/ant. They've changed things in 1.6, but they claim it should work similar...
    I'll search the docs.
    EDIT: SOLUTION:
    I don't know why this was working for me before and isn't now, but I found the solution. junit.jar must be placed in $ANT_HOME/lib because of strange classloader issues. I guess this must be a recent "bug", as it wasn't happening with earlier versions of ant.
    I'm using my local build of ant because it's more recent, but I think hapy's build would also work with junit if you plared junit.jar in /usr/lib.
    Dusty

  • About Using Ant in Web Services Tutorial 1.0.1

    I downloaded the latest version of the Java Web Services Tutorial 1.0.1 and trying to run the
    sa,ple applications from ConvertedApp.java. When I type in "ant build"(ant version is 1.4.1), I
    am gettigng the error saying
    " Usage is java [options] class ........"
    as if implying that the classname is missing somewhere!!
    Can anyone please give any clue what might go wrong here?
    (I am on Windows 2000).
    Thanks

    Hello.
    For example, build.xml is in the folder:
    d:\jwsdp_tutorial\docs\tutorial\examples\gs\build.xml
    Then write a bat-file in the same folder that looks like this:
    -------------------- BEGIN --------------------
    set JAVA_HOME=d:/j2sdk1.4.1
    set ANT_HOME=d:/jakarta-ant-1.5.1
    set CATALINA_HOME=d:/jakarta-tomcat-4.1.18
    %JAVA_HOME%/bin/java -cp %JAVA_HOME%/lib/tools.jar;%JAVA_HOME%/jre/lib/rt.jar;%JAVA_HOME%/jre/lib/jaws.jar;%ANT_HOME%/lib/ant.jar;%ANT_HOME%/lib/optional.jar;%ANT_HOME%/lib/xercesImpl.jar;%ANT_HOME%/lib/xml-apis.jar;%CATALINA_HOME%/server/lib/catalina-ant.jar -Djwsdp.home=d:/jwsdp_tutorial org.apache.tools.ant.Main -logfile build.log -buildfile build.xml
    -------------------- END --------------------
    Additionally you have to install j2sdk1.4.1, jakarta-ant-1.5.1 and jakarta-tomcat-4.1.18.

  • Ant Script

    I have developer one project using JDev. NOw I need to write Ant Build script to compile the Java files under my project and generate TAR file.
    Can any one provide the support steps.... for this
    PROJECT HOME : C:\JDev\xxfdx\cheersupdate\jdev\myproject
    package structure :
    oracle/apps/xxfdx/enable/cheersupdate
    under this directory we have server and webui directories
    oracle/apps/xxfdx/enable/cheersupdate/server
    oracle/apps/xxfdx/enable/cheersupdate/webui

    Shay,
    When I try to build the same build.XML file again from the same location it gives below error
    C:\>cd C:\JDev\xxfdxcheersupdate\jdev\myprojects
    C:\JDev\xxfdxcheersupdate\jdev\myprojects>C:\JDev\jdevbin\ant\bin\ant all
    Buildfile: build.xml
    init:
    [mkdir] Created dir: C:\JDev\xxfdxcheersupdate\jdev\myclasses
    compile:
    [javac] Compiling 30 source files to C:\JDev\xxfdxcheersupdate\jdev\myclasse
    s
    [javac] javac: invalid target release: 1.5
    [javac] Usage: javac <options> <source files>
    [javac] where possible options include:
    [javac] -g Generate all debugging info
    [javac] -g:none Generate no debugging info
    [javac] -g:{lines,vars,source} Generate only some debugging info
    [javac] -nowarn Generate no warnings
    [javac] -verbose Output messages about what the compiler
    is doing
    [javac] -deprecation Output source locations where deprecated
    APIs are used
    [javac] -classpath <path> Specify where to find user class files
    [javac] -sourcepath <path> Specify where to find input source files
    [javac] -bootclasspath <path> Override location of bootstrap class fil
    es
    [javac] -extdirs <dirs> Override location of installed extension
    s
    [javac] -d <directory> Specify where to place generated class f
    iles
    [javac] -encoding <encoding> Specify character encoding used by sourc
    e files
    [javac] -source <release> Provide source compatibility with specif
    ied release
    [javac] -target <release> Generate class files for specific VM ver
    sion
    [javac] -help Print a synopsis of standard options
    BUILD FAILED
    C:\JDev\xxfdxcheersupdate\jdev\myprojects\build.xml:195: Compile failed; see the
    compiler error output for details.
    Total time: 0 seconds
    When I check JDK version it is showing 1.5 only
    C:\JDev\xxfdxcheersupdate\jdev\myprojects>java -version
    java version "1.5.0_10-erdist"
    Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_10-erdist-b2006122
    1)
    Java HotSpot(TM) Client VM (build 1.5.0_10-erdist-b20061221, mixed mode, sharing
    Any idea about this ?

  • ANT scripts for JBI artifacts operations

    HI All,
    I want to write ant scripts for installing,uninstalling and other operations for components ,SA,SU,. Can anybody tell me the way to write scripts....
    Hope a soon reply...

    The JBI 1.0 specification requires implementations to supply the Ant tasks defined in the Management chapter. Obviously the implementation you are using has not passed the JBI 1.0 technological compatibility test (TCK) suite.
    You should speak to the vendor. They cannot claim JBI 1.0 compliance until their implementation passes the TCK. The TCK includes extensive tests of the Ant tasks required by the specification.
    Alternatively, you can use the JBI reference implementation, available at http://java.sun.com/integration. This is a fully complaint implementation of JBI. Using it will allow you to avoid problems posed by other partial or other non-compliant implementations.

  • How to get Ant option under windows- Preferences in Eclipse Luna?

    Hello Eclipse Support,
    I switched from Eclipse Kepler(windows 64-bit) to Eclipse Luna(eclipse-cpp-luna-SR2-win32-x86_64.zip) and I see that Ant option is missing under windows->Preferences.
    I tried this way:
    I saw there was an Apache ant(eclipse\plugins\org.apache.ant_1.9.2.v201404171502) plugin in Eclipse-Luna package like in Eclipse-Kepler.
    I tried to install it through Help->install new software. I was unsuccessful even by giving local path point to the plugin directory of eclipse - it showed error msg stating "could not find file at the location that I had selected"
    or
    the path from apache-ant website(followed the instructions available in ant website to install).
    Could you please let me, whether I am doing wrong and If yes, then what are the right steps to acheive this?
    Thanks & Regards,
    Rashmi

    Hi,
    I found the answer within the eclipse forum.
    My beginning search was not optimized and so, could not reach this post.
    https://www.eclipse.org/forums/index.php/m/628964/?srch=No+Ant+Editor#msg_628964

  • Can not run ant build. Please help me!

    Please help me. Thks U very much in advance
    I've installed java Webservice 1.2 included Ant 1.5 (I haven't installed any
    Ant version before)
    When I run Ant in cmd, the following error occur:
    D:\java\doc\jwstutorial12\examples\gs>ant build
    Exception in thread "main" java.lang.NoClassDefFoundError: Files\j2sdk_nb\j2sdk1
    /4/2\lib\tools/jar;C:\jwsdp-1/2\apache-ant\//\server\lib\catalina-ant/jar;C:\jws
    dp-1/2\apache-ant\//\jaxp\lib\jaxp-api/jar;C:\jwsdp-1/2\apache-ant\//\jaxp\lib\e
    ndorsed\sax/jar;C:\jwsdp-1/2\apache-ant\//\jaxp\lib\endorsed\dom/jar;C:\jwsdp-1/
    2\apache-ant\//\jaxp\lib\endorsed\xercesImpl/jar;C:\jwsdp-1/2\apache-ant\//\jaxp
    \lib\endorsed\xsltc/jar;C:\jwsdp-1/2\apache-ant\//\jaxp\lib\endorsed\xalan/jar;C
    :\jwsdp-1/2\apache-ant\lib\optional/jar;C:\jwsdp-1/2\apache-ant\lib\ant/jar;
    My computer: windows 2000 Adv Server installed:
    1. j2sdk1.4.2 with Netbean IDE 3.5. Installed dir:
         C:\Program Files\j2sdk_nb\j2sdk1.4.2
    2. Java WebService 1.2. Installed dir:
         C:\jwsdp-1.2
    3. My computer environment variables
    ALLUSERSPROFILE=C:\Documents and Settings\All Users
    ANT_HOME=C:\jwsdp-1.2\apache-ant
    APPDATA=C:\Documents and Settings\Administrator\Application Data
    CommonProgramFiles=C:\Program Files\Common Files
    COMPUTERNAME=NHV
    ComSpec=C:\WINNT\system32\cmd.exe
    HOMEDRIVE=C:
    HOMEPATH=\
    include=E:\Program Files\Microsoft Visual Studio\VC98\include
    JAVA_HOME=C:\Program Files\j2sdk_nb\j2sdk1.4.2
    lib=E:\Program Files\Microsoft Visual Studio\VC98\lib
    LOGONSERVER=\\NHV
    NUMBER_OF_PROCESSORS=1
    OS=Windows_NT
    Os2LibPath=C:\WINNT\system32\os2\dll;
    Path=C:\orant\bin;C:\WINNT\system32;C:\WINNT;C:\WINNT\System32\Wbem;C:\orant\jdk
    \bin;C:\jwsdp-1.2\jwsdp-shared\bin;C:\jwsdp-1.2\bin;C:\Program Files\j2sdk_nb\j2
    sdk1.4.2\bin;C:\jwsdp-1.2\apache-ant\bin;E:\Program Files\Microsoft Visual Studi
    o\Common\Tools\WinNT;E:\Program Files\Microsoft Visual Studio\Common\Tools;E:\Pr
    ogram Files\Microsoft Visual Studio\VC98\bin
    PATHEXT=.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH
    PROCESSOR_ARCHITECTURE=x86
    PROCESSOR_IDENTIFIER=x86 Family 6 Model 8 Stepping 3, GenuineIntel
    PROCESSOR_LEVEL=6
    PROCESSOR_REVISION=0803
    ProgramFiles=C:\Program Files
    PROMPT=$P$G
    SystemDrive=C:
    SystemRoot=C:\WINNT
    TEMP=C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp
    TMP=C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp
    USERDOMAIN=NHV
    USERNAME=administrator
    USERPROFILE=C:\Documents and Settings\Administrator
    windir=C:\WINNT

    I have had the same problem as above and spent quite a few nights pulling hair out over it. Adding/removing quotes in the environment var and in the ant batch file didn't seem to work though.
    I added and echo line to spit out the antRun command and found the LOCALCLASSPATH var was stuffed.
    Rather than piss around any further I just wrote a batch file to generate an equivilant variable called JWSDP_ClassPath (for want of a better name).
    The batch file code was simply (line by line to make it easier to read):
    set JWSDP_CLASSPATH="C:\Program Files\Sun\s1studio_jdk\j2sdk1.4.1_02\lib\tools.jar";
    set JWSDP_CLASSPATH=%JWSDP_CLASSPATH%"C:\java\jwsdp-1.3\server\lib\catalina-ant.jar";
    set JWSDP_CLASSPATH=%JWSDP_CLASSPATH%"C:\java\jwsdp-1.3\jaxp\lib\jaxp-api.jar";
    set JWSDP_CLASSPATH=%JWSDP_CLASSPATH%"C:\java\jwsdp-1.3\jaxp\lib\endorsed\xsltc.jar";
    set JWSDP_CLASSPATH=%JWSDP_CLASSPATH%"C:\java\jwsdp-1.3\jaxp\lib\endorsed\xercesImpl.jar";
    set JWSDP_CLASSPATH=%JWSDP_CLASSPATH%"C:\java\jwsdp-1.3\jaxp\lib\endorsed\xalan.jar";
    set JWSDP_CLASSPATH=%JWSDP_CLASSPATH%"C:\java\jwsdp-1.3\jaxp\lib\endorsed\sax.jar";
    set JWSDP_CLASSPATH=%JWSDP_CLASSPATH%"C:\java\jwsdp-1.3\jaxp\lib\endorsed\dom.jar";
    set JWSDP_CLASSPATH=%JWSDP_CLASSPATH%"C:\java\jwsdp-1.3\apache-ant\lib\optional.jar";
    set JWSDP_CLASSPATH=%JWSDP_CLASSPATH%"C:\java\jwsdp-1.3\apache-ant\lib\ant.jar";
    set JWSDP_CLASSPATH=%JWSDP_CLASSPATH%"C:\Program Files\Sun\s1studio_jdk\j2sdk1.4.1_02\lib";
    set JWSDP_CLASSPATH=%JWSDP_CLASSPATH%"C:\Java\jwsdp-1.3\common\lib";
    set JWSDP_CLASSPATH=%JWSDP_CLASSPATH%"C:\Java\jwsdp-1.3\apache-ant\lib";
    set JWSDP_CLASSPATH=%JWSDP_CLASSPATH%"C:\Java\jwsdp-1.3\server\lib";
    I then call this before the antRun command and use JWSDP_CLASSPATH rather than LOCALCLASSPATH in the ant.bat, eg:
    call set_JWSDP_CLASSPATH
    :runAnt
    java -cp %JWSDP_CLASSPATH% "-Dant.home=%ANT_HOME%" "-Djwsdp.home=%ANT_HOME%\.." %ANT_OPTS% org.apache.tools.ant.Main %ANT_CMD_LINE_ARGS%
    This will obviously need to be customised to the install paths on the PC it is run on....
    Anyway hope this helps someone if the above more simle solutions do not.
    BJL
    PS 'carn the LIONS - 4 in a row!!

Maybe you are looking for