How to build projects of ADF application

I need to use ANT to deploy EAR file to weblogic 10.3.5. I download source code from SVN. Then, in the Jdev 11.1.1.4, I create build.xml and build.properties for Model and ViewController using Jdev .
Then, I delete all this application and re download source code from SVN. After that, I add build.xml and build.properties to Model and ViewController. I use ant to build these 2 projects. Then, I use ojdeploy to create EAR file.
However, this EAR file is not correct and smaller than the EAR file created by Jdev.
If I rebuild Model and ViewController using Jdev, I can use ojdeploy to create correct EAR file.
<ora:parameter name="nocompile" value="false"/> does not rebuild the 2 projects
How to use ANT or ojdeploy to rebuild ADF application?

chk this
http://vtkrishn.wordpress.com/2011/06/21/ojdeploy-how-to-include-taskflow-related-files-to-include/
you have remove the entry in the ojdeploy snippet
<ora:parameter name="nocompile" value="true"/>
http://one-size-doesnt-fit-all.blogspot.com/2010/11/using-ojdeploy-and-ant-for-creating-adf.html

Similar Messages

  • How to deploy the 11g adf application on OAS 10.1.3.4

    Hi Experts,
    how can I deploy the adf application that is build using 11g on OAS 10.1.3.4
    is it possible to do that
    we are unable to fine the OAS connection wizard in 11g
    Thank
    Gayaz

    Hi Gayaz,
    Since we got stuck in the same swamp I can tell you what our local Oracle Support told us: there is no other choice but to buy new license of Oracle WebLogic Server Standard or Enterprise Edition.
    Even with maintenance license you cannot upgrade to Oracle WebLogic server 11g... a very bad news for developers... but maybe Oracle is preparing something new - but this is the question for Oracle Support Staff
    regards,
    Branislav

  • How to Build and Deploy Flex application in EP6

    Hi All,
    Can anyone tell how to build and deploy Flex application in EP6.
    I want to build a normal application in flex and present it through iviews. How do I configure my Iiview to have flex component running in Portal Environment.
    Thanks
    Deepak

    A good book to start with is Enterprise JavaBeans by Monson-Haefel (O'Reilly press). It covers deployment of EJBs on J2EE servers. Also check out sites specific to your server, sometimes they have specific requirements (like Weblogic).

  • Build Automation for ADF Application using Jenkins CI

    Hi
    I am trying to implement automated builds( creating .ear file) and deployments for ADF Applications using Jenkins. I am using Ant Build Scritps using OJDEPLOY on Jenkins.
    but the build scripts does not create .ear file at the path mention in the outputfile parameter.
    Please help. Thanks,
    Below is my build script and ojdeploy status log.
    <?xml version="1.0" encoding="windows-1252" ?>
    <!--Ant buildfile generated by Oracle JDeveloper-->
    <!--Generated Jul 10, 2013 12:26:00 PM-->
    <project name="OrganisationApproval" default="all" basedir=".">
      <property file="build.properties"/>
      <path id="library.SOA.Designtime"/>
      <path id="library.SOA.Runtime"/>
      <path id="library.BPEL.Runtime"/>
      <path id="library.Mediator.Runtime"/>
      <path id="library.MDS.Runtime">
        <pathelement location="{oracle.middleware}/oracle_common/modules/oracle.mds_11.1.1/mdsrt.jar"/>
      </path>
      <path id="library.BC4J.Service.Runtime">
        <pathelement location="{oracle.middleware}/oracle_common/modules/oracle.adf.model_11.1.1/adfbcsvc.jar"/>
        <pathelement location="{oracle.middleware}/oracle_common/modules/oracle.adf.model_11.1.1/adfbcsvc-share.jar"/>
        <pathelement location="{oracle.middleware}/oracle_common/modules/commonj.sdo_2.1.0.jar"/>
        <pathelement location="{oracle.middleware}/modules/org.eclipse.persistence_1.1.0.0_2-1.jar"/>
        <pathelement location="{oracle.middleware}/oracle_common/modules/oracle.webservices_11.1.1/wsclient.jar"/>
        <pathelement location="{oracle.middleware}/oracle_common/modules/oracle.web-common_11.1.1.jar"/>
      </path>
      <path id="library.TopLink">
        <pathelement location="{oracle.middleware}/modules/com.oracle.toplink_1.0.0.0_11-1-1-5-0.jar"/>
        <pathelement location="{oracle.middleware}/modules/org.eclipse.persistence_1.1.0.0_2-1.jar"/>
        <pathelement location="{oracle.middleware}/modules/com.bea.core.antlr.runtime_2.7.7.jar"/>
        <pathelement location="{oracle.middleware}/modules/javax.persistence_1.0.0.0_2-0-0.jar"/>
      </path>
      <path id="library.Oracle.Rules"/>
      <path id="classpath">
        <path refid="library.SOA.Designtime"/>
        <path refid="library.SOA.Runtime"/>
        <path refid="library.BPEL.Runtime"/>
        <path refid="library.Mediator.Runtime"/>
        <path refid="library.MDS.Runtime"/>
        <path refid="library.BC4J.Service.Runtime"/>
        <path refid="library.TopLink"/>
        <path refid="library.Oracle.Rules"/>
      </path>
      <target name="init">
        <tstamp/>
        <mkdir dir="${output.dir}"/>
      </target>
      <target name="all" description="Build the project"
              depends="deploy,compile,copy"/>
      <target name="clean" description="Clean the project">
        <delete includeemptydirs="true" quiet="true">
          <fileset dir="${output.dir}" includes="**/*"/>
        </delete>
      </target>
      <target name="deploy" description="Deploy JDeveloper profiles"
              depends="init,compile">
        <taskdef name="ojdeploy"
                 classname="oracle.jdeveloper.deploy.ant.OJDeployAntTask"
                 uri="oraclelib:OJDeployAntTask"
                 classpath="${oracle.jdeveloper.ant.library}"/>
        <ora:ojdeploy xmlns:ora="oraclelib:OJDeployAntTask"
                      executable="${oracle.jdeveloper.ojdeploy.path}"
                      ora:buildscript="${oracle.jdeveloper.deploy.dir}/ojdeploy-build.xml"
                      ora:statuslog="${oracle.jdeveloper.deploy.dir}/ojdeploy-statuslog.xml">
          <ora:deploy>
            <ora:parameter name="workspace"
                           value="${oracle.jdeveloper.workspace.path}"/>
            <ora:parameter name="project"
                           value="${oracle.jdeveloper.project.name}"/>
            <ora:parameter name="profile"
                           value="${oracle.jdeveloper.deploy.profile.name}"/>
            <ora:parameter name="nocompile" value="true"/>
            <ora:parameter name="outputfile"
                           value="${oracle.jdeveloper.deploy.outputfile}"/>
          </ora:deploy>
        </ora:ojdeploy>
      </target>
      <target name="compile" description="Compile Java source files" depends="init">
        <javac destdir="${output.dir}" classpathref="classpath"
               debug="${javac.debug}" nowarn="${javac.nowarn}"
               deprecation="${javac.deprecation}" encoding="UTF-8" source="1.6"
               target="1.6">
          <src path="/u02/jenkins/Portal/OrganisationApprovalApp/Dev/SCA-INF/src"/>
        </javac>
      </target>
      <target name="copy" description="Copy files to output directory"
              depends="init">
        <patternset id="copy.patterns">
          <include name="**/*.gif"/>
          <include name="**/*.jpg"/>
          <include name="**/*.jpeg"/>
          <include name="**/*.png"/>
          <include name="**/*.properties"/>
          <include name="**/*.xml"/>
          <include name="**/*.ejx"/>
          <include name="**/*.xcfg"/>
          <include name="**/*.cpx"/>
          <include name="**/*.dcx"/>
          <include name="**/*.sva"/>
          <include name="**/*.wsdl"/>
          <include name="**/*.ini"/>
          <include name="**/*.tld"/>
          <include name="**/*.tag"/>
          <include name="**/*.xlf"/>
          <include name="**/*.xsl"/>
          <include name="**/*.xsd"/>
          <include name="**/*.exm"/>
          <include name="**/*.xml"/>
        </patternset>
        <copy todir="${output.dir}">
          <fileset dir="/u02/jenkins/Portal/OrganisationApprovalApp/Dev/SCA-INF/src">
            <patternset refid="copy.patterns"/>
          </fileset>
          <fileset dir="/u02/jenkins/Portal/OrganisationApprovalApp/Dev/SCA-INF/src">
            <patternset refid="copy.patterns"/>
          </fileset>
        </copy>
      </target>
    </project>
    =====================================================================================
    <?xml version="1.0"?>
    <ojdeploy-log>
      <exception msg="null">
      <![CDATA[
      java.lang.NullPointerException
      at oracle.jdevimpl.deploy.DeployScriptEngine.createExpandedDeployTasks(DeployScriptEngine.java:180)
      at oracle.jdevimpl.deploy.DeployScriptEngine.access$000(DeployScriptEngine.java:54)
      at oracle.jdevimpl.deploy.DeployScriptEngine$TaskIterator.hasNext(DeployScriptEngine.java:533)
      at oracle.jdevimpl.deploy.DeployRunner.runCommand(DeployRunner.java:58)
      at oracle.ideimpl.Main.start(Main.java:192)
      at oracle.ideimpl.Main.main(Main.java:146)
      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 oracle.ide.boot.PCLMain.callMain(PCLMain.java:62)
      at oracle.ide.boot.PCLMain.main(PCLMain.java:54)
      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 oracle.classloader.util.MainClass.invoke(MainClass.java:128)
      at oracle.ide.boot.IdeLauncher.bootClassLoadersAndMain(IdeLauncher.java:189)
      at oracle.ide.boot.IdeLauncher.launchImpl(IdeLauncher.java:89)
      at oracle.ide.boot.IdeLauncher.launch(IdeLauncher.java:65)
      at oracle.ide.boot.IdeLauncher.main(IdeLauncher.java:54)
      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 oracle.ide.boot.Launcher.invokeMain(Launcher.java:713)
      at oracle.ide.boot.Launcher.launchImpl(Launcher.java:115)
      at oracle.ide.boot.Launcher.launch(Launcher.java:68)
      at oracle.ide.boot.Launcher.main(Launcher.java:57)
      ]]>
      </exception>
      <summary>
        <start-time>2013-07-10 14:47:29 SAST</start-time>
        <end-time>2013-07-10 14:47:29 SAST</end-time>
        <total-tasks>0</total-tasks>
        <failures>0</failures>
        <status exitcode="1">FAILED</status>
      </summary>
    </ojdeploy-log>

    Have you tried to call ojdeploy directly instead of using the ojdeploy task?
    I remember that the ant task has had some bugs. You can use the exec task and execute ojdeploy directly. Then you don't even need to include the path elements as you use the jdev project which includes all the information.
    ojdeploy.executable=path_to_your_jdev_installation/jdev/bin/ojdeploy.exe
        <target name="ojdeploy" description="execute ojdeploy">
                <exec executable="${ojdeploy.executable}" dir="."
                    output="${log.filename}" failonerror="true">
                    <arg value="-buildfile"/>
                    <arg value="${build.filename}"/>
                </exec>
        </target>
    Timo

  • How can build a bar code application ?

    Hello All!
    I am new in form 6i and Oracle 8i. My question is that how can i build a simple bar code reader application. Please write some code if anybody have or give the reference to study to build the bar code applications.
    Thanks in Advance.
    Ather

    It depends on the bar code reader you have - most wil have some sort of interface like DLL and Forms would integrate with that...so its not really a Forms issue - its more dependant on you barcode reader
    Regards
    Grant Ronald

  • How to start a Java ADF application from Forms 10g

    Hi,
    I have a Java ADF application deployed to the OAS.
    How can I start the application from Forms 10g?

    By using the web.show_document forms built-in procedure... passing the web address of your ADF app as parameter.....
    Greetings...
    Sim

  • How to build project in NWDS from ear file?

    I do know that it maynot be possible to build a project from a .ear file but I am sure there must be a way out. I am sure someone else would have faced the same problem that I am facing.
    This is what happened. We had a consultant working on our ESS/MSS appplications in the studio. He made changes to a few ESS/MSS applications. However, while deploying, he did not use NWDI even though we do have NWDI available. He simply imported the .ear files in all the development, quality and production portals. Because of this, the changed source code is not available on NWDI and when I import the configuration from NWDI, I only get the old source code.
    I do have al the .ear files he deployed. So, my question is, is there anyway for me to build the project from the .ear file? I do know how to decompile the CLASS files on the ear file and look at the code but I was hoping for a way to build the entire project with the changed source code in NWDS. Or Is there anyway to synchronize the NWDI source code with the deployed source code. Please respond ONLY if you have actually managed to resolve this problem.

    Hi Santosh,
    This is hardly possible even if you have Java decompiler -- WD has a lot compile(design)-time only artifcats that are not exist in generated EAR.
    Regards,
    Vipin.

  • How to build Project Budget report with "IF-then" formula?

    HI
    I have user requirement to create this report:
    Controlling Area Currency CAC
    Object Currency (OC)
    Amount to be returned calculation
    Amount to be used for Budget Return
    Budget (CAC)
    Actual (CAC)
    Remaining Budget (CAC)
    Budget (OC)
    Actual (OC)
    Remaining Budget (OC)
    CAC Remaining
      Budget converted to OC using Budget rate (OC)
    OC Remaining Budget converted to CAC using Budget rate (CAC)
    (1)
    (2)
    (3)
    (4)
    (5)
    (6)
    (7) = (3) * Budget rate
    (8) = (6) / Budget rate
    if (8) => (3) then
      (7), else (6)
    Project 1
    Project 2
    Project 3
    Project 4
    Project 5
    My dilemma is wich tool to use to build the report & how.
    CJE2 & CJE6  Project Hierarchy Reports
    I have managed to create columns 1 - 6 using a copy of forms from SP1 Reporting Group
    but I fail to create "IF - then" formula
    GRR2 Report Painter
    SP1 & SP2 Reports are not available there to copy from, while  SP3 has no Budget data available
    GR32 Report Writer
    I'm just not sure how to manage it & where to start from? Is that realistinc to do without special training?
    Please could you help me to figure out how can get to deliver that user requirement?
    What shall better do?
    Thank you very much in advance,
    Daria

    Hi Daria,
    In addition to what Sunil has mentioned , i think you don't need to get into the AFVC table unless you are using network activities under the WBS. Even then I don't see a need for AFVC as your budgeting is at the WBS level.
    And  your requirement is to capture Budget, Actual Cost and Remaining Budget and Return as per your formula..  here You should be looking at the below tables:
    1. PROJ : For Getting the list of Project.
    2. PRPS : for getting the WBS for the Projects..
    3. COEP or COSP OR RPSCO.
    Though you can get all your values in RPSCO but this is a huge table and you can hit some performance issues.. So you can use COEP or COSP ( if you want to use Line items or totals)..
    Rest you can go with the logic given by Sunil.. Just filter the values by the Value type for each project and you should get your desired result..
    Regards
    Sammar

  • How can build a separate java application?

    We know we can build any C or C++ application and run it on Unix OS by command "XX &"
    . If I am going to build a non-stop background process using java, yet must I run it by command "java XX &"? I want to know how can I build a process and run it like "c process", JBuilder and Weblogic?

    Why not create a wrapper script?
    If you are on Unix then it's generally the preferable way...
    Have a look at http://jakarta.apache.org/tomcat for the way they do it...
    From the Users POV they won't notice the difference, this is standard Unix alias type functionality...
    i.e. do something like:
    #!/bin/sh
    $JAVA_HOME/java $*Simplistic, but it would do...although your CLASSPATH would get lost along the way...you can get around that though...

  • How to build a small database application?

    Hi experts,
    I am quite new to java, and now, my company has a demand to build a clients tracing system, clients can input their profiles, but every client can only retrieve or modify his/her own records.
    Database will be mysql.
    My questions:
    1. how to control the security? it means how to control it by login-out?
    2. Do I need application server, i.e. Tomcat?
    3. What technology can I use to code? Servlet or JSP? I think it is not so complex that I have to use Servlet, right?
    Thanks.
    Lonely.Wolf

    My questions:
    1. how to control the security? it means how to control it by login-out?It depends.
    2. Do I need application server, i.e. Tomcat?Will this be a Web-based application, allowing clients to access the database over the Internet? Will you be using servlets/JSPs? If so, Tomcat is a fine servlet/JSP engine, but there are others. You'll probably want some kind of application server. Which one depends on your design and budget.
    3. What technology can I use to code? Servlet or JSP?Yes.
    I think it is not so complex that I have to use Servlet, right?Whether or not you use servlets has nothing to do with complexity. Use servlets to respond to HTTP requests.
    Hard to design anything based on what you've posted. But a JSP view, servlet controller, and DAO persistence layer will get this system up and running.
    Do you know servlets, JSPs, and JDBC well enough to do this?

  • How to build a stable, reliable application with consumer and producer

    Hi all,
    As a frontend solution, Flex is really powerful and fascinate. On the other hand, it inevitiably needs to exchange data. And I am trying to find a good way to build a stable and reliable application.
    Here's the workaround. On server side, blazeDS or LCDS is involved and on frontend component Consumer and Producer are used to interact. A group of users cooperates on the whole processing. Everybody will send an update once he finished current job.
    Of course each frontend need to subscribe first. But if one frontend is disconnect temporarily and other frontends send message to backend during that time, how can the disconnect one get message it missed? How can I fix the inconsistent status?
    Thanks and regards,

    Hello meshgraphics,
    Your reply is useful, but feasible I have to say. Creating DB tables, updating entries and synchronizing contents involve a lot of work. As we can use blazeDS and LCDS, that'll be good option. From online help, it doesn't explain what will happen if consumer disconnects temporarily which is very important to me. If some messages are missed, the whole process can't move on smoothly.
    Simply speaking, I hope below issues can be solved with blazeDS or LCDS:
    1) how to ensure messages are delivered to subscribed consumers if they are temporarily disconnected?
    2) how to recover work if consumers are thoroughly disconnect?
    Thanks and regards,
    Felix

  • How to build project in xcode 4.2(build it but not run it)

    i just want to build the project and see if it has errors and don't want to run it yet, this was possible with xcode 3.x  

    B

  • How to build a Small composite application from scratch ?

    Hi,
        Could anyone help me out in developing Composite application on top of AP ?
    Thanks & regards,
    Jomy

    Hi Jomy,
    look at the SAP Composite Application Framework - CAF Tutorial Center [original link is broken] [original link is broken]
    here you'll find some simple tutorials.
    Regards.
    Luca

  • How to remotely deploy adf application using ant script

    Please suggest some pointer on how to remotely deploy adf application using ant script.
    I have created automatic inbuild ant script using jdevloper and ojdeploy that create a war file into my adf application deploy folder.
    Now i want my war to be deploy remotely on weblogic server.
    Is there any inbuld functionality provided by jdeveloper for same.
    Can any one please share build.xml for adf application for deploying application remotely.
    I try to use wlserver but not much success.
    Thanks in advance.
    Sumit Bhasin

    [url http://download.oracle.com/docs/cd/E12839_01/web.1111/e13706/wldeploy.htm]the docs are pretty good.
    John

  • How to configure ADF application to use OAM Identity Assertion ? web.xml

    We have a web application developed using ADF (application development framework) and deployed on WebCenter 11.1.1.2 (weblogic 10.3.2)
    OID Authentication and OAM identity assertion is configured in WebLogic 10.3.2 .
    How to configure security in ADF application (web.xml or weblogic.xml) so that it uses OAM identity assertion (already configured as authentication providers in weblogic server)
    Any pointers or documentation so that application (developed using ADF) check for identity tocken and verifies it with one of identity assertion providers.

    John,
    I have to concur. With OAM you don't need this. OAM intercepts the calls and inserts a cookie for WLS to get user information from.
    I strongly advise to go through the above mention OFM Security Guide. Esp. Chapter 10 tells you in every detail how to implement OAM SSO with WLS (with or without OHS as a proxy).
    Reading this chapter saves you time and turnarounds on this topic...
    --olaf                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

Maybe you are looking for

  • How do I create mutliple events from a single event?

    I have a large event clip which I want to divide into multiple smaller clips. The edit commands only seem to effect the clips in a project. In view of this I inserted the clip into a new project and then split the clip. However I cannot now transfer

  • Is it possible to make a phone call from contact in Cambodia with Miss Siri ?

    I've got a Iphone 4S which's shiped from Singapore , love it so much . But one thing , i couldn't understand , many thing i can ask Miss siri to do for me exclude make a phone call for contact or any number . I tried to use 10 digits number of my con

  • How to add the backslash to the subject

    X500Principal p = new X500Principal("cn=test\xyzi"); I get this error Exception in thread "main" java.lang.IllegalArgumentException: improperly specified input name: cn=test\xyz      at javax.security.auth.x500.X500Principal.<init>(X500Principal.java

  • What is ogre.log?

    I was looking at my computer and there's a thing in my hard drive called "ogre.log." I tried googling it, but I don't understand what it is. Can someone please explain what it is to me in the simplest terms possible?

  • IPad shuts down unexpectedly and does a time reset

    Hey, I have an iPad2 iOS 5.0.1 and I have this problem: When I ever try to just use my iPad normaly like playing or listening to music for somereason it shuts down everytime. after powering the iPad up and it does a time reset to 01.01.1970  4:00 AM