Building the ADF 11g project with ANT or MAVEN

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

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

Similar Messages

  • Debugging question (project with Ant)

    Hi,
    Could anyone tell me how to debug a project with Ant?
    There is no main class to execute.
    Only Ant script runs it as below.
    Thanks in advance,
    <?xml version="1.0" encoding="UTF-8"?>
    <project basedir="." default="all" name="run1">
    <target name="all">
    <java classname="zeus.agents.ANServer" failonerror="true" fork="true">
    <arg line="Nameserver2 -t 0.1 -f dns.db"/>
    </java>
    </target>
    </project>

    how simple was that... Thanks Mark.
    Now I have another problem - how can I specify deployment targets when creating a new dataspace? I'm using a DspCommonCommands.py script, which targets deployments to any server and cluster in the specified domain:
    targets = wlst.get('Targets')
    wlst.invoke('createDataSpace',[dataspaceName,targets],['java.lang.String','java.util.Set'])
    which results in 2 problems:
    1. targeting projects to inappropriate servers (like AdminServer)
    2. targeting project to cluster and all servers belonging to that cluster (which results in errors when trying to start corresponding request_handlers application)
    I thought I can simply list the names of clusters I would like the project to be targeted to, but it results in:
    javax.management.RuntimeOperationsException: RuntimeException occured trying to invoke operation createDataSpace
    Caused by: java.lang.IllegalArgumentException: argument type mismatch
    I can't find the class with createDataSpace() method to check what it's all about and how should I format the target names.
    Regards,
    Tomek

  • Building web project with ANT

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

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

  • Compiling Flash Builder Projects with ant - error

    I'm fairly new to FlashBuilder as well as using ant to build projects.
    I'm working on a project in FlashBuilder 4.5. I'm using a 3rd party SWC that contains an alchemy-compiled C application in the SWC. Building my entire project within FlashBuilder is working fine. However, due to other parts of the project (not imported into FlashBuilder) I need to build with ant on occasion.
    The Class specific to the C app within the SWC is throwing errors when building with ant - it says it can not find the source. I had one recommendation to look into adding/editing something within the build.xml file, but I don't know what that addition/edit would be.
    Any help appreciated.

    Apparently related to switching workspaces... the error log identifies a path to an old workspace I changed out of weeks ago. I created a new workspace and moved the project (just the source, etc, not the settings) into it. been running fine for a while now... though funny how this problem didn't show up until yesterday.

  • Cann't launch the ADF Swing Project

    Hello,
    I have created java-application(swing,adf bc) in Jdev10.1.3, and created the Java Web Start(JNLP) files for the application ,run ant target: sign. it created all files ,build ok.
    but when I run the local.html in the Jdev1013, it open IE window, then I clicke the Launch JClient Link and it asks me to download the local.jsp file or open the file.
    If I download , the file "local.jsp.jnlp" would be saved, if I open, it display beblow:
    <?xml version="1.0" encoding="Big5" ?>
    - <jnlp spec="1.0" codebase="http://127.0.0.1:8991/TestJClient-View-context-root">
    - <information>
    <title>Title</title>
    <vendor>Vendor</vendor>
    <description>My ADF Swing Project</description>
    </information>
    - <security>
    <all-permissions />
    </security>
    - <resources>
    <j2se version="1.3+" />
    <jar href="client.jar" />
    <jar href="mymt.zip" />
    <extension name="common" href="localmt.jsp" />
    </resources>
    <application-desc main-class="test.view.test" />
    </jnlp>
    I review the local.jsp in Jdev1013, find some error "should not exist the element jnlp" about below:
    <?xml version="1.0" encoding="Big5"?>
    <jnlp spec="1.0" codebase="<%= buf.toString() %> ">
    Maybe that is jdev1013 bug.
    Anyone know the reason or how to deal with the error ?
    Thanks

    Hi,
    you are mixing releases here. You start with JClient in JDeveloper 10.1.2 and end up with ADF Swing in 10.1.3. Now what is the release you have the problem with. For 10.1.2 we have a whitepaper explaining how to use Java WebStart. We didn't upgrade this paper for 10.1.3, but I get Web Start deployment working when i tried it last time in JDeveloper 10.1.3.
    Note that no file should be downloaded to teh client and instead the JSP file should be executed to generate the JNLP file
    Frank

  • How to deploy ADF-BC (SDO) with ANT

    I have an ADF-BC exposed as an webserivce. I can deploy it via JDeveloper, but how do I deploy it with ANT. Does anyone has an ANT script example, based on ADF-BC
    Marc
    http://orasoa.blogspot.com

    I am using JDev 11g (ps1). The link you mentioned, is about deploying artifacts to the MDS. I want to deploy and ADFBC exposed as an webservice , (aka SDO object) to the server via ANT.
    Marc

  • PB with beans binding in a netbeans 6 java project with ant script existing

    Hi all,
    I am using netbeans 6.01.
    I want to use beans binding in a simple swing form created with Matisse designer. If i do beans binding in a Netbeans java project with existing ant script i have the following error :
    java.lang.UnsupportedOperationException: No PCPE/PCPMI found for classpath/compile in MasterFileObject@25 .... etc
    Beans binding works very well in normal java project ( Java Desktop App for instance ).
    How can i make it work in an existing java ant script project ?

    You need to add the Beans Binding (beansbinding-1.2.1) that come with NetBeans 6 in your projects class path.

  • Failed to build the OLAP cubes (Project Server 2013)

    We are receiving errors when attempting to build our OLAP cubes.  We've attempted to install the 2008 version of the SQL server native client 2008 but still the error appears.  Please advise.
    Configuration:
    Project Server 2013
    SharePoint 2012
    SQL Server 2012
    Error Message:
    ===== Initiating OLAP database build process =====
    [1/7/2014 2:00 AM] Cube build request message has been added to the Project Server queue ===== Verifying and running pre-build server event handler =====
    [1/7/2014 2:00 AM] Verifying and running pre-build server event handler ===== Determining database and OLAP database structure =====
    [1/7/2014 2:00 AM] Cube build initialization started ===== Building database and cubes =====
    [1/7/2014 2:00 AM] Cube build session started ===== Verifying and running post-build server event handler =====
    [1/7/2014 2:00 AM] Verifying and running post-build server event handler ===== Processing OLAP database =====
    [1/7/2014 2:00 AM] Process OLAP database session started ===== Process Completed =====
    [1/7/2014 2:00 AM] Failed to build the OLAP cubes. Error: Failed to process the Analysis Services database OLAP_FTF on the XYZ server. Error: Errors in the back-end database access module. The provider 'SQLNCLI10' is not registered.
    The following system error occurred:  Class not registered Errors in the high-level relational engine. A connection could not be made to the data source with the DataSourceID of 'Project Reporting data source', Name of 'Project Reporting
    data source'.
    Errors in the OLAP storage engine: An error occurred while the dimension, with the ID of 'Project List', Name of 'Project List' was being processed.
    Errors in the OLAP storage engine: An error occurred while the 'Start Date' attribute of the 'Project List' dimension from the 'OLAP_FTF' database was being processed.
    Internal error: The operation terminated unsuccessfully.
    Server: The current operation was cancelled because another operation in the transaction failed.

    Hi Importek,
    Please have a look to a similar threads that has been answered.
    http://social.msdn.microsoft.com/Forums/en-US/a2696e29-e68e-45a8-8dae-fa8fa5640575/receive-the-following-error-when-trying-to-build-cube-errors-in-the-highlevel-relational-engine?forum=sqlanalysisservices
    http://social.technet.microsoft.com/Forums/projectserver/en-US/420958bd-4613-451c-ac06-a1f149f64da9/problem-when-trying-to-build-the-cube?forum=projectserver2010general
    Finally an article by Brian Smith:
    http://blogs.msdn.com/b/brismith/archive/2007/07/16/yet-another-olap-error-message-the-longest-yet.aspx
    This might be an issue of the SQL instance alias.
    Hope this helps.
    Guillaume Rouyre - MBA, MCP, MCTS

  • Classpath error while building the web dynpro project

    Hi
    I have created an application in which on clicking the button on one view , next view opens and data is displayed in the tables. This data i am giving as static, and for that i have created a java file. this java file is located in the subfolder i have created in the package path i have given. While building the application, i get these two errors :
    1) The project was not built due to classpath errors (incomplete or involved in cycle).
    2) Missing required source folder 'BPOutageTable/BPOT'
    BPOutageTable is the application name, and BPOT is the subfolder in which java file is present.
    This application is similar to "The Master/Detail Viewer Application" example in the tutorials.
    Can anybody please help in this?
    Thanks & regards,
    Anupreet

    Hi,
       You have give your classpath in your "lib" folder of the Dynpro application.
       check your lib folder shows exact class path or not.
    if you wish to add any jar files import it to your lib folder so you will not have compilation problem.
    Hope it helps.If it is then close this thread.
    Regards,
    Guru

  • ADF 11g - Issue with Custom Skin for CommandButton & InputNumberSlider.

    Hi,
    Any Help relative will be greatly appreciated !!!
    Currenlty we have an requirement to override the UI Skin of ADF to custom one.
    Where the page design has some command button & InputNumberSlider(replace with skin of scroll bar)
    FYI, we are working with Integrated Weblogic Server, Jdeveloper Version(Build JDEVADF_MAIN.BOXER_GENERIC_081002.2127.5156)
    Following is the JSPX, containing style (CSS) with in
    ==============================================================================================================================
    <?xml version='1.0' encoding='windows-1252'?>
    <jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="2.1"
    xmlns:f="http://java.sun.com/jsf/core"
    xmlns:h="http://java.sun.com/jsf/html"
    xmlns:af="http://xmlns.oracle.com/adf/faces/rich"
    xmlns:trh="http://myfaces.apache.org/trinidad/html">
    <jsp:directive.page contentType="text/html;charset=windows-1252"/>
    <f:view>
    <af:document binding="#{backingDisplayImageShell.document1}" id="document1">
    <af:form binding="#{backingDisplayImageShell.form1}"
    inlineStyle='align:center; background-image:url("img/flex-skin.jpg");background-repeat:repeat;'
    id="form1">
    <style type="text/css">
    @platform window, linux {
    @agent ie, gecko {
    af|inputNumberSlider::minus-button {
    background-image: url('../img/skin/horizontal_scrollbar_arrowUp.gif');
    af|inputNumberSlider::plus-button{
    background-image: url('../img/skin/horizontal_scrollbar_arrowDown.gif');
    af|inputNumberSlider::thumb-icon-style{
    background-image : url('../img/skin/horizontal_scrollbar_knobLarge.gif');
    af|inputNumberSlider::thumb{ 
    background-image: url('../img/skin/horizontal_scrollbar_knobLarge.gif');
    af|inputNumberSlider:vertical::thumb{ 
    background-image: none;
    af|inputNumberSlider:vertical::thumb:rtl{ 
    background-image: none;;
    af|inputNumberSlider:vertical:disabled::thumb{ 
    background-image: none;
    af|inputNumberSlider:vertical:disabled::thumb:rtl{ 
    background-image: none;
    af|inputNumberSlider:disabled::minus-button{ 
    background-image: none;;
    af|inputNumberSlider:disabled::plus-button{
    background-image: none;;
    af|inputNumberSlider:disabled::thumb{ 
    background-image: none;
    af|inputNumberSlider::minor-tick{
    background-image : none;
    </style>
    <trh:script>goGetShuffled = function(event) { var source =
    event.getSource(); AdfCustomEvent.queue( source, "OnImageClick"
    , {}, false); event.cancel(); }; /*function hidePopUpWindow(){
    hide(); }*/</trh:script>
    <af:spacer height="100"/>
    <af:panelGroupLayout layout="horizontal" halign="center"
    id="panelGroup4CmdButtons"
    inlineStyle="width:45%; height:16px; background-color:transparent;"
    clientComponent="true">
    <af:commandButton text="Download" icon="/img/download.jpg"
    inlineStyle='background-image:url("img/skin/commandButton.gif"); background-repeat:no-repeat; border-color:transparent; border-style:none;'/>
    <af:commandButton text="Promote" icon="/img/promote.jpg"
    inlineStyle='background-image:url("img/skin/commandButton.gif"); background-repeat:no-repeat; border-color:transparent; border-style:none'/>
    <af:commandButton text="Delete" icon="/img/delete.jpg"
    inlineStyle='background-image:url("img/skin/commandButton.gif"); background-repeat:no-repeat; border-color:transparent; border-style:none'/>
    <af:commandButton text="Zoom" icon="/img/zoom.jpg" partialSubmit="true"
    immediate="true"
    inlineStyle='background-image:url("GlowingButton_disabledSkin.png"); background-repeat:no-repeat; border-color:transparent; border-style:none'></af:commandButton>
    <af:commandButton text="Open" icon="/img/open.jpg"
    inlineStyle='background-repeat:no-repeat; border-color:transparent; border-style:none'/>
    </af:panelGroupLayout>
    <af:spacer height="50"/>
    <!-- Scroll Bar for pagination : Start -->
    <af:panelGroupLayout id="panelGrpScrollBar" layout="horizontal"
    halign="center" valign="top"
    inlineStyle="width:60%; background-color:transparent;">
    <af:commandImageLink icon="img/skin/horizontal_scrollbar_arrowUp.gif"
    action="#{backingDisplayImageShell.previousShelf}"/>
    <af:inputNumberSlider simple="true" autoSubmit="true" immediate="true"
    binding="#{backingDisplayImageShell.inputNumberSlider1}"
    id="inputNumberSlider1"
    valueChangeListener="#{backingDisplayImageShell.sliderValueChgLstnr}"
    minimum="0" maximum="7" minimumIncrement="1"
    contentStyle="width:1100px;" rendered="true"
    inlineStyle="text-decoration:none; border-color:transparent; border-style:none; border-width:0px; font-size:0%;"/>
    <!-- 0.05 -->
    <af:commandImageLink action="#{backingDisplayImageShell.nextShelf}"
    icon="img/skin/horizontal_scrollbar_arrowUp.gif"/>
    <af:commandLink/>
    <af:outputText value="0 - 20"
    binding="#{backingDisplayImageShell.outputText1}"
    noWrap="true" id="outputText1"/>
    </af:panelGroupLayout>
    <!-- Scroll Bar for pagination : End-->
    </af:form>
    </af:document>
    </f:view>
    <!--oracle-jdev-comment:auto-binding-backing-bean-name:backingDisplayImageShell-->
    </jsp:root>
    ==============================================================================================================================
    Thanks
    Rani Velu

    With the Skin changes provided in CSS is not been reflected.
    Since, it seems to have ADF Skin, but not the custom one.
    I tried even using this way as well, but not progress.
    <af:inputNumberSlider simple="true" autoSubmit="true" immediate="true" styleClass="af|inputNumberSlider::major-tick { border-color: red; }"
    id="inputNumberSlider1" inlineStyle="border-color:transparent; border-style:none"
    minimum="0" maximum="7" minimumIncrement="1"
    contentStyle="width:100px;" rendered="true"
    />

  • ADF 11g: Error with IE8, Win 7 OS

    Hi ,
    I am using ADF version 11.1.1.3.0, my hosted application is running fine with IE-7 on XP, Vista OS
    But when i am trying to access application using IE - 8 on Win 7 OS i am getting below mentioned error:
    Webpage error details
    User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; InfoPath.3; MS-RTC LM 8)
    Timestamp: Fri, 7 Jan 2011 10:41:38 UTC
    Message: Permission denied
    Line: 4354
    Char: 1
    Code: 0
    URI: http://10.21.136.19:8103/EmersonMMI-EmMMI-context-root/afr/partition/ie/default/opt/boot-11.1.1.3.0-0084.js
    Please help to resolve this
    Thanks n Regards
    Manav Ratra

    Hi Manav Ratra,
    Me too having the same configuration as said but i am running all ADF apps fine....
    U might have local machine problem... try running the same in IE-8 compatibility mode and also try with Win 7 Firefox
    Regards,
    Suganth.G

  • Raise the PR through project with unknown item category "U"

    HI,
    In my business process, i have raised the PR's through the projects. at the time of material assignment we need to give the item category N or L  .But at the time of material assignment to the activity,whether third party sale or local sale is not decide .it's only  decide at the time of PO creation .is there any options or configuration process to assign the unknown item category at the material assignment the PROJECT?
    Regards
    Bhavani

    Item category available is either N or L. I don't think there is any U available.
    If you are referring account assignment in PR. for project it should Q, P or N. U is not for project.
    What is the purpose of assigning / planning materials in your project during the initial stage?, is it for cost planning? if it is only for cost planning then follow what Virendra has recommended.
    Please also read sap help on Material in Projects.

  • ADF 11g SelectOrdershuttle editing the items...

    Hi,
    I am using selectordershuttle compenent to display the User levels on the adf 11g page.
    How can i edit and delete the values which are in the shuttle component?
    Thanks in advance.
    CM

    Hi,
    if you bind the shuttle to a List<SelectItem> in a managed bean you only need to take entries out of this list. Its a bit more difficult using ADF list bindings unless you are happy to delete the referenced list items from the database. However, ADF bindings also allow you to remove objects from the collection that builds the list. You should be able to access the iterator binding used by the list binding, get the row to remove and remove it from the collection (don't use the remove or delete operations in this case).
    Frank

  • OpenScript recording is slow with FireFox and ADF 11g

    Hi everybody;
    I trying the OpenScript for recording some scenarios, and I am facing some problems:
    1-     When I use the internet explorer (IE) it records fine with an acceptable speed, but when I replay the recorded script it misses out the fields and the links that I clicked, meaning: it starts to highlight other places on my page which I didn’t click while I was recording.
    2-     When I use FirexFox, I get other kind of problems. First the recording is unbelievably slow. It might take a minute or two for every link I click to respond. Also when I replay the script it executes faster than it did while recording but much more slower than doing the same scenario in real time meaning: doing it directly on the browser by a real user.
    Kindly note that my application is an ADF 11g application with EJB3 and the application server is Weblogic 11 and the database is oracle 10g.
    Any ideas will be appreciated
    Thank you all

    Note that Firefox 36 has been released officially.
    *https://www.mozilla.org/en-US/firefox/36.0/releasenotes/
    It is possible that your security software (firewall, anti-virus) blocks or restricts Firefox or the plugin-container process without informing you, possibly after detecting changes (update) to the Firefox program.
    Remove all rules for Firefox and the plugin-container from the permissions list in the firewall and let your firewall ask again for permission to get full, unrestricted, access to install for Firefox and the plugin-container process and the updater process.
    See:
    *https://support.mozilla.org/kb/Server+not+found
    *https://support.mozilla.org/kb/Firewalls
    *https://support.mozilla.org/kb/fix-problems-connecting-websites-after-updating

  • OLT 12.2.0.1 & ADF 11g R2 (11.1.2.3)

    Hi,
    I am evaluating the OLT ADF Module for testing applications developed with JDeveloper/ADF 11g R2.
    Unfortunately, the latest version of JDeveloper/ADF 11.1.2.3(PS3) looks like not compatible with OLT release 12.2.0.1 (Openscript 12.2.0.1 Build 238). During the playback I get the error “Failed to solve variable web.framesrc.afrPushIframe using path .//IFRAME[@name='afr::PushIframe']/@src“ even in a very simple “hello world” application.
    Conversely the same project running in JDeveloper/ADF 11.1.2.1 (PS1) works fine.
    In the OpenScript Users’ Guide there is no reference for ADF R2 but only for only for the ADF R1.
    Is the ADF 11g R2 supported in the current release of OLT ?
    Additionally if anyone has any tip for how to use the OLT 12.2.0.1.0 with ADF R2 PS3 it would be very helpful to share it with me.
    Yiannis

    Tses wrote:
    Am I the only one in the world who tried ΟLT 12c with ADF 11g R2 PS3 ?
    :-(Hi! You're not alone :)
    We tried to record some load tests (OpenScript 12.2.0.1 Build 223) for our ADF R2 application.
    But during the playback I had the same error: "Failed to solve variable web.framesrc.afrPushIframe using path .//IFRAME[@name='afr::PushIframe']/@src ".
    Haven't you found the solution yet?
    By the way, when I use operation "Revert to Recorded" for all nodes of my test and playback it again, I see in results that the script has passed without errors, but nothing has changed in database.
    Thanks.
    Natalie

Maybe you are looking for

  • Problem with ytdump-200.6.1.1-1377716466. It is a, "Yahoo crash log", uses up all free space on C: drive

    Your Question: Ever since my firefox was updated to be more compatible with Yahoo I have a terrible problem with ytdump-200.6.1.1-1377716466. It is a, "Yahoo crash log dump", that fills up all the free space on my C: drive drive, no matter when and h

  • How to output characters?

    Hi, I just started java and I wanted to know how i can output characters such as " or a degrees symbol or anything like that. I understand each character has a unicode number but I just dont know the code to output that unicode number as the characte

  • Cannot install drivers off of

    It crashes every time right after playing the video, right when I click "Next". The DemoShield Player then crashes, and if I send an error report to Microsoft it tells me the problem is related to Quicktime. Does the installer use Quicktime for somet

  • Acrobat Pro 9 & XI both installed on Mac. How can I uninstall Acrobat Pro 9 & not affect Acrobat XI?

    Adobe Acrobat Pro 9 and Acrobat Pro XI are installed on the same iMac with OS X 10.8.5.  How do I safely uninstall only Acrobat Pro 9 without affecting Acrobat Pro XI? When I first installed Acrobat Pro XI, I thought maybe I was suppose to leave Acro

  • Some records not transfer from ODS to infocube

    Hello BW folks , We have an ODS which stores the various sales doc. types. We are transfering all the data from this ODS to infocube. We do not have any routine or filter conditions while loading data from ODS to infocube. In the update rules of info