Installing OC4J using ANT

Is there an ANT task that will allow me to install OC4J either locally or remotely and then start it?
Thanks in advance
Angus

I haven't tried this yet myself, but just came across this reference in the OC4J Security Guide:
http://iasdocs/iasdl/101300doc_final/web.1013/b14429/ovsecadm.htm#sthref238
Activation of the oc4jadmin Account
The oc4jadmin account (formerly the admin account) is activated during Oracle Application Server installation, but is initially deactivated for the file-based provider in standalone OC4J. It is activated under the following circumstances:
* When standalone OC4J is first started (and you are prompted for a password)
* When you run the OracleAS JAAS Provider Admintool with the -activateadmin option
You also specify the password as part of this command:
% java -jar jazn.jar -activateadmin password
So it looks like you could unzip, run the above command, and then start oc4j. That is assuming that the above command isn't dependent on some other initialization that occurs the first time you start oc4j.
-Patrick Vinograd

Similar Messages

  • 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

  • Deploying Application in OC4J 1013 using Ant

    Hello All
    I am trying to deploy my application in OC4J 1013 container using Ant. I am getting
    /view/webappdev3_cruise_view/vobs/Apps/eTA/build_deploy_appl.xml:26: Execute failed: java.io.IOException: /oracle/apps/product/dev/sso/1013/opmn/bin/opmnctl: cannot execute
    I have attached my build.xml file. Please let me know what could be the reason for this.
    Thanks
    Sri
    Edited by: user3539708 on Oct 15, 2009 6:57 PM

    Denis -- This sounds like maybe the RMI port that you are using to connect is the one used by the home instance. Have a look at the other instance you deployed it to and see what RMI port it is using.
    Thanks -- Jeff

  • 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>

  • Deploying using ant to oc4j 10.0.3

    We previously deployed our application using ant to OC4J 902.
    Now we try to deploy to OC4J 10.0.3 but it seems that
    com.evermind.client.orion.OrionConsoleAdmin doesn't exist anymore.
    Could someone plz tell me by what it is replaced ?
    I found com.evermind.client.orion.OrionConsoleAdmin but i'm not shure of this is the right one

    Actually, I'd recommend that you not use the direct classname in your ant scripts (it's not really a public class) and instead fork off a Java process to run the public admin.jar utility. If Oc4JAdminConsole is ever changed, using admin.jar insulates you from it.
    It's basically the same, just runs the Jar file instead.
    <target name="deploy" depends="core">
    <java jar="${j2ee.home}/admin.jar" fork="yes">
    <arg value="${oc4j.deploy.ormi}"/>
    <arg value="${oc4j.deploy.username}"/>
    <arg value="${oc4j.deploy.password}"/>
    <arg value="-deploy"/>
    <arg value="-file"/>
    <arg value="${this.build}/${this.ear}"/>
    <arg value="-deploymentName"/>
    <arg value="${this.application.name}"/>
    </java>
    </target>
    See http://radio.weblogs.com/0132383/stories/2004/03/16/antDeploymentToOc4j.html
    for examples to do undeployent and webbindings.
    cheers
    -steve-

  • ESB Server connection could not be established via Jdeveloper or using ant

    When I try to deploy a ESB project using ant in a remote virtual linux machine
    via command mode,I am getting deployment failed message as below suggesting to check whether ESB server is running.
    ./ant outputs the following:
    Buildfile: build.xml
    deployProjects:
    [echo] deploying esb project files
    [deployESBProjects] Deployment Failed ...Check if server at 132.146.44.93 is running
    [deployESBProjects] ESB Project </data/ESB_Samples/CPL_US_001> successfully deployed
    [echo] esb project files deployed
    BUILD SUCCESSFUL
    Total time: 0 seconds
    ./opmnctl status -l oututs the following:
    Processes in Instance: SOA_NFT.RHEL4AS
    -------------------------------------------------------------------------------------------------------+------
    ias-component | process-type | pid | status | uid | mused | uptime | ports
    -------------------------------------------------------------------------------------------------------+------
    OC4JGroup:default_group | OC4J:home | 1051 | Alive | 1610238535 |3616 | 20:41:30 | jms:12601,http:8888,rmis:12701,rmi:12401
    ASG | ASG | N/A | Down | N/A | N/A | N/A | N/A
    HTTP_Server | HTTP_Server | 1050 | Alive | 1610238534 |1820 | 20:41:20 | https1:4443,http2:7200,http1:7777
    ./opmnctl status -app outputs the following:
    Applications in Instance: SOA_NFT.RHEL4AS
    application type: OC4J
    pid | name | state | rtid | classification | routable | parent
    1051 | hw_services | started | g_rt_id | internal-BPEL | true | orabpel
    1051 | ruleauthor | started | g_rt_id | internal-Rules | true | default
    1051 | system | started | g_rt_id | external | true |
    1051 | WSIL-App | started | g_rt_id | internal | true | default
    1051 | orainfra | started | g_rt_id | internal | true | default
    1051 | datatags | started | g_rt_id | internal | true | default
    1051 | orabpel | started | g_rt_id | internal-BPEL | true | default
    1051 | gateway | started | g_rt_id | internal-WSM | true | default
    1051 | rulehelp | started | g_rt_id | internal-Rules | true | default
    1051 | ccore | started | g_rt_id | internal-WSM | true | default
    1051 | policymanager | started | g_rt_id | internal-WSM | true | default
    1051 | default | started | g_rt_id | external | true | system
    1051 | esb-rt | started | g_rt_id | internal-ESB | true | esb-dt
    1051 | ascontrol | started | g_rt_id | external | true | system
    1051 | coreman | started | g_rt_id | internal-WSM | true | default
    1051 | esb-dt | started | g_rt_id | internal-ESB | true | default
    1051 | javasso | started | g_rt_id | internal | true | default
    Also when I try to create Appliocation Server connection using opmn port 6003 from my local Jdeveloper,the test connection fails.
    While creating Application Server connection in Jdeveloper, the connection Test succeeds when I select Standalone server and
    using RMI port 12401.Maenwhile, the Integration Server connection using the above Application Server connection created and port 8888 when tested
    displays
    Application Server: OK
    BPEL Process Manager Server: OK
    ESB Server: FAILED
    ESB Server failue detail: ESB connection failed.
    ESB Server connection could not be established.
    The SOA was installed in silent mode after resolving many issues detailed in SR 6622260.992

    Can you try changing the port to 80 while creating connection.

  • 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.

  • Using Ant to execute WLST setAppMetadataRepository command

    I am having a problem using Ant to execute the setAppMetadataRepository WLST command. This command puts an entry in adf-config.xml that points to the MDS datasource.
    This is the ant task that I'm using. These commands work from the WLST tool, but when using them with Ant, I get the error below.
       <target name="setAppMetadataRepositoryUsingWlst">
          <wlst debug="true" failonerror="true">
             <script>
                archive = getMDSArchiveConfig(fromLocation='C:/ADE/michande_platSavedSearch/commsplatform/ri/dist/comms-ri.ear')
                archive.setAppMetadataRepository(repository='mds-commsRepository',partition='riPartition', type='DB', jndi='jdbc/mds/commsRepository')
                archive.save()
            </script>
          </wlst>
       </target>Here is the error that I get (NameError: getMDSArchiveConfig). This is saying that getMDSArchiveConfig isn't a recognized command. Other commands (like connect(...)) work ok from ant, but not these MDS commands. Is this a bug or am I doing something wrong here?
    [wlst] <WLSTTask> All lines will be trimmed by 12
    [wlst] <WLSTTask> Line: archive = getMDSArchiveConfig(fromLocation='C:/ADE/michande_platSavedSearch/commsplatform/ri/dist/comms-ri.ear'). Final trim length: 12, String length: 124
    [wlst] <WLSTTask> Line: archive.setAppMetadataRepository(repository='mds-commsRepository',partition='riPartition', type='DB', jndi='jdbc/mds/commsRepository') . Final trim length: 12,
    String length: 147
    [wlst] <WLSTTask> Line: archive.save(). Final trim length: 12, String length: 26
    [wlst] <WLSTTask> The script that will be executed
    [wlst] archive = getMDSArchiveConfig(fromLocation='C:/ADE/michande_platSavedSearch/commsplatform/ri/dist/comms-ri.ear')
    [wlst] archive.setAppMetadataRepository(repository='mds-commsRepository',partition='riPartition', type='DB', jndi='jdbc/mds/commsRepository')
    [wlst] archive.save()
    [wlst]
    [wlst] Error: Error executing the script snippet
    [wlst] archive = getMDSArchiveConfig(fromLocation='C:/ADE/michande_platSavedSearch/commsplatform/ri/dist/comms-ri.ear')
    [wlst] archive.setAppMetadataRepository(repository='mds-commsRepository',partition='riPartition', type='DB', jndi='jdbc/mds/commsRepository')
    [wlst] archive.save()
    [wlst]
    [wlst] due to:
    [wlst] Traceback (innermost last):
    [wlst] File "<string>", line 1, in ?
    {color:red} [wlst] NameError: getMDSArchiveConfig{color}
    Thanks,
    Mike

    Not all WLST installations are equivalent. Have a read of [http://www.oracle.com/technetwork/articles/adf/part10-085778.html]this, specifically the paragraph right after Figure 13 for something to try. Bottom line - the WLST that comes with the base WLS server install cannot do the MDS operations.
    John

  • Error installing OC4J 10.1.3.1.0

    Hi there,
    I have unzipped the file, I've installed jdk-1_5_0_09 and I have a problem when I try to install OC4J, I execute "java -jar jazn.jar -activateadmin password", I always get an java.lang.NoClassDefFoundError exception oracle/xml/parser/v2/Parser
    Any idea?
    Thanks in advance

    user543710
    You said:
    I've installed jdk-1_5_0_09For your information, there is now JDK 5.0 Update 10 available.
    You also asked:
    Any idea?Maybe, if you can provide the following information:
    * Are you using OC4J stand-alone, or Oracle Application Server (OAS)?
    * Which version of OC4J (or OAS)?
    * Are you trying to install it using the following command?
    java -jar jazn.jar -activateadmin password* What platform are you on?
    Also, please post the entire error message and stack trace you are getting.
    Good Luck,
    Avi.

  • Installing OC4J

    Hi,
    I want to Install OC4J with oracle 10g
    I have oracle 10j and it already installed ,
    I have windows XP,
    I downloaded (oc4j_extended_101350.zip)
    But how I will install oc4j any idea about this, I want any idea to start with this..
    Best Regards.

    Do you have Oracle 10g Application Server installed already? If so then you can use the dcmctl utility to create a new OC4J instance.
    Otherwise you can install based on the Oracle documentation, see here:
    tahiti.oracle.com
    A good reference on how to install JUST the OC4J:
    http://www.dbasupport.com/oracle/ora10g/OC4J1.shtml
    Regards,
    Ben Prusinski, Oracle ACE and Oracle Certified Professional (OCP)

  • Install OC4J

    Hi,
    I want to Install OC4J with oracle 10g
    I have oracle 10j and it already installed ,
    I downloaded (oc4j_extended_101350.zip)
    But how I will install oc4j any idea about this, I want any idea to start with this..
    Best Regards.
    Mohd.

    Aside from the excellent advice already provided (which is to ask where people who deal with the product are watching), you could also read the documentation (shudder). http://download.oracle.com/docs/cd/E14101_01/doc.1013/e13978/install.htm#BABIBGCA
    The first step is to get an operating system. That might be one of your issues, 'cause - you being an IT person and knowing that things work different on different operating systems (and even version and editions and distros), I'm pretty sure you would have told us which operating system you use, if you had one.
    Once you get that operating system, you unzip or untar or otherwise extract the OC4J into a directory. (Since you have a .zip file, using unzip is reasonable.)
    Then, as per the documentation, you run the oc4j.jar with the install option. The exact syntax has changed between 10.1.2.0 and 10.1.3.5. In fact, in 10.1.3.5, the first run does the deployment.

  • Debug aplication started using ant

    Hello,
    I wonder if it is possible to stop and debug an aplication in a breakpoint when this aplication was started using ant from eclipse as IDE. I use eclipse ver. 3.0.
    thanks a lot for any help or ideea

    Not all WLST installations are equivalent. Have a read of [http://www.oracle.com/technetwork/articles/adf/part10-085778.html]this, specifically the paragraph right after Figure 13 for something to try. Bottom line - the WLST that comes with the base WLS server install cannot do the MDS operations.
    John

  • ERROR INSTALLING OC4J CONFIGURATION FILES

    Hi,
    Steps:
    1. Downloaded Oracle11g Rel2 from download.oracle
    2.Installed Software only option and completed installation on my laptop Windows7 ultimate. Selected Enterprise Version, unchecked OLAP,DATA MINING.
      Error message during installation, some files missing .jar files. I have opted to ignore and continue and finally got success installation message.
    3.Configured DB using DBCA.
    4.Able to connect as SYS, SYSTEM.
    Problem.
    I tried to reconfigure DB using DBCA for OEM, received the msg
    ERROR INSTALLING OC4J CONFIGURATION FILES. The summary error log is here.   Appreciate any help.
    java.io.FileNotFoundException: C:\app\Administrator\product\11.2.0\dbhome_1\oc4j\j2ee\OC4J_DBConsole\config\jms.xml (The system cannot find the file specified)
    java.io.FileNotFoundException: C:\app\Administrator\product\11.2.0\dbhome_1\oc4j\j2ee\OC4J_DBConsole\config\rmi.xml (The system cannot find the file specified)
    CONFIG: Could not find or correctly parse file C:\app\Administrator\product\11.2.0\dbhome_1\oc4j\j2ee\OC4J_DBConsole\config\http-web-site.xml in searching for tag web-site with attribute port
    java.io.FileNotFoundException: C:\app\Administrator\product\11.2.0\dbhome_1\oc4j\j2ee\OC4J_DBConsole\config\http-web-site.xml (The system cannot find the file specified)
    java.io.FileNotFoundException: C:\app\Administrator\product\11.2.0\dbhome_1\oc4j\j2ee\OC4J_DBConsole\config\server.xml (The system cannot find the file specified)
    Mar 8, 2014 9:15:42 AM oracle.sysman.emcp.EMDBCConfig instantiateOC4JConfigFiles
    CONFIG: Failed to set value in server.xml for application-server tag
    Mar 8, 2014 9:15:42 AM oracle.sysman.emcp.EMConfig perform
    oracle.sysman.emcp.exception.EMConfigException: Error instantiating OC4J configuration files
    CONFIG: Could not find or correctly parse file C:\app\Administrator\product\11.2.0\dbhome_1\oc4j\j2ee\OC4J_DBConsole\config\jms.xml in searching for tag jms-server with attribute port
    java.io.FileNotFoundException: C:\app\Administrator\product\11.2.0\dbhome_1\oc4j\j2ee\OC4J_DBConsole\config\jms.xml (The system cannot find the file specified)
    CONFIG: Could not find or correctly parse file C:\app\Administrator\product\11.2.0\dbhome_1\oc4j\j2ee\OC4J_DBConsole\config\rmi.xml in searching for tag rmi-server with attribute port
    thanks
    Ram

    Hi,
    Seems you have not extracted downloaded zip files into same directory. In that case you get error like
    java.io.FileNotFoundException:
    /Disk2/database/stage/Components/oracle.rsf.hybrid/11.1.0.6.0/1/DataFiles/filegroup12.jar (A file or directory in the path name does not exist.)
    java.io.FileNotFoundException:
    /Disk2/database/stage/Components/oracle.rsf.hybrid/11.1.0.6.0/1/DataFiles/filegroup5.jar (A file or directory in the path name does not exist.)
    Also after installation dbca will throw error.
    Try the below
    For AIX platform:
    unzip in the same folder
    $ mkdir 1120
    $ mv aix.ppc64_11g_database_1of2.zip  1120
    $ mv aix.ppc64_11g_database_2of2.zip  1120
    $ cd 1120
    $ unzip aix.ppc64_11g_database_1of2.zip
    $ unzip aix.ppc64_11g_database_2of2.zip 
    $ cd database
    $ ./runInstaller
    This is true for all platforms on which you get two .zip files to download
    For Windows 64 bit example on 11.2.0.1 you can do the following  :
    - create a directory C:\tmp\1120
    - copy winx64_11g_database_1of2.zip and winx64_11g_database_2of2.zip under  C:\tmp\1120
    - unzip winx64_11g_database_1of2.zip and winx64_11g_database_2of2.zipunder  C:\tmp\1120
    Thanks,
    Krishna

  • How to use Ant

    Hi guys,
      I am working on Adapter Development.I came to know that using Ant we can build .rar files. Can any one please tell me how to use that and where can i get that.
    Regards,
    Gowtham K.

    Hi again,
    you can ANT and a manual at
    http://ant.apache.org!
    But I think you want to use eclipse or the SAP DevStudio to do build your adapter. So you won't have to download that.
    In both cases there is a plugin already installed (Eclipse 3.1). You can get Eclipse at:
    http://www.eclipse.org
    Hope it helps,
    Christian

  • Please help me on installing OC4J as windows Service

    Hi, Guys:
    Could anyone help me on installing OC4J service as a windows service in my computer? I always got the following error message when I tried to start OC4J service:
    The Oracle BI: OC4J Service service on local computer started and then stopped. Some services stop automatically if they are not in use by other servies or programs.
    I am using Windows server 2008, service pack 1, 64 bit operating system.
    OC4J has been successfully installed and I can see enterprise manager from http://localhost:8888/em.
    I set envionment parameters as follows:
    ORACLE_HOME: C:\OC4J\oc4j_extended_101350
    JAVA_HOME: C:\java\JDK7u7 (I use jdk-7-windows-i586)
    J2EE_HOME: %ORACLE_HOME%\j2ee\home
    and I run cmd as administrator, cd to javaservice subdirectory, use javaservices to install OC4J as follows:
    javaservice -install "Oracle BI: OC4J Service" "C:\java\JDK7u7\jre\bin\server\jvm.dll" -XX:MaxPermSize=128m -Xmx512m "-Djava.class.path=C:\OC4J\oc4j_extended_101350\j2ee\home\oc4j.jar" -start oracle.oc4j.loader.boot.BootStrap
    I was told it is installed successfully. But I got the problem as I said before. It was strange though I did it on my local computer which is a windows7, service pack 1, 64 bit operating system successfully. I struggleed for 3 weeks with the same problem on my local PC and suddenly it worked without problem. I did not remember I changed anything. Is there anything that I missed?
    Any suggestion would be appreciated!
    Sam

    Well, I added two lines in OC4J.cmd
    set ORACLE_HOME=C:\OC4J\oc4j_extended_101350
    set JAVA_HOME=C:\JAVA\JDK7u7
    before
    set J2EE_HOME=%ORACLE_HOME%\j2ee\home
    and I restarted the windows. It looks try to run OC4J but failed, as I open services window, it shows OC4J is "stopping". When I try to run it manually, I got the same problem again. is there anything I missed? What is your OC4J, JDK and javaservice version?
    Sam

Maybe you are looking for

  • What are the differences between ECC5.0 and 6.0 new GL functionality

    Hi Experts, What are the differences between ECC5.0 and 6.0 new GL functionality. If we want to implement IFRS, I think New GL functionality is very helpful, but why sap is recommending only for ECC6.0 new GL functionality, Eventhough this functional

  • Switchover_status in standby database showing NOT ALLOWED

    Hi All, My oracle database version is Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - 64bit on windows platform. I need to perform switchover activity with dg_broker=TRUE. When I checked the status of DR database I found that switchover_s

  • Sleep issues after 10.4.7 upgrade

    I upgraded to 10.4.7 immediately after it was issued and I had no issues. A couple of weeks later the FAX software Pagesender would not logout on a scheduled shutdown. I ran Diskwarrior to repair the directory and I thought ev3erything was OK but the

  • OAS 4.0.8 invalid Browse pacakage body

    Hi, In my database browse pacakage body is invalid, which is part of web tool kit reference, It is showing following errors. Line # = 873 Column # = 63 Error Text = PLS-00201: identifier 'SYS.DBA_TABLESPACES' must be declared Line # = 873 Column # =

  • Not able to install d nsu in my pc

    wen i try to install d nsu fr n 70...it cums error 1335..the cabinet fileData1.cab is corrupt or un usable...so wat should i do...how to get it installd