Ant, JDev, Project Layouts

I am trying to develop an IDE-neutral build process for use within our development team. I have worked with Maven, and like many of its features, but have decided that sticking with Ant is best for the time being. At the very least, I am confident that efforts invested in learning Ant will be time well spent.
In the course of working with both JDeveloper and Eclipse, I am finding that each like to impose their own project structure, neither of which suit my preferences. Could anyone, who has struggled with these issues, kindly share some insight regarding how they have dealt with them? I would also appreciate advice from anyone who has adopted the practice of continuous integration, particularly regarding pitfalls they may have encountered along the way.
Thanks,
Eric Adamson
Lansing, Michigan

Hi Shay,
Thanks for your follow-up. I'm trying to set up two parallel directory trees to separate unit tests from application code, like this:
  MyProject
    build
      main
      test
    dist
    lib
    src
      main
      testIn this case, src/main will have build/main for its output folder, and similarly, src/test will have build/test for its output folder. Using Customize Settings under Project Properties, I'm able to create the two source folders, I cannot figure out how to create more than one output folder.
Eric

Similar Messages

  • Sample ANT-generated project

    Anyone know where I can download source for a simple project that uses ANT/XDoclet and is built, verified and deployed to the Sun Java System Application Server Platform Edition 8? Ideally, such a project would house CMP beans and an application client. I've been messing around with this off an on for ages but am constantly stymied by cryptic error messages and a glacial deployment process. For the record, I'll list ANT script that I'm using and the resultant problems. Perhaps someone will immediately recognize a rookie mistake. I'd be just as happy, though, if someone could simply direct me to a functional example that I can copy and tweak. I'd love to focus on actually learning J2EE rather than struggling with configuration issues.
    Working
    * Java Application Verification Kit for the Enterprise StaticArchiveTest/SourceScan
    * Delpoying the application and viewing JSP/HTML pages
    * Creating and finding CMP beans from JSP
    * Deplying application client via deploytool
    Crashing and Burning
    * Verifying EAR
    Error Name : Exception : java.io.IOException: Verify Error: Module specified in application.xml not found in ear file:
    Error Description : java.io.IOException: Verify Error: Module specified in application.xml not found in ear file:
    at com.sun.enterprise.tools.verifier.Verifier.updateClasspath(Verifier.java:3023)
    * Verifying JAR
    Test Name : tests.ejb.runtime.ASEntBeanCmpResource
    Test Assertion : Enterprise beans cmp-resource test. cmp-resource element contains the database to be used for storing CMP beans in an ejb-jar
    Test Description : For [ C:-eclipse-workspace-test-jars-test_ear-test.jar#test.jar#Building ]
    FAILED [AS-EJB cmp-resource] : jndi-name cannot be an empty string
    * Deploying an application client via "asadmin deploy"
    CLI171 Command deploy failed : Deployment Error -- Error while running ejbc -- F
    atal Error from EJB Compiler -- com.hollis.residentiator.interfaces.BuildingMgrS
    essionHome
    WARNING|sun-appserver-pe8.0.0_01|javax.enterprise.system.stream.err|_ThreadID=12;|java.lang.ClassNotFoundException
    at com.sun.enterprise.loader.EJBClassLoader.findClass(EJBClassLoader.java:505)
    * Running an application client with 'appclient'
    C:\eclipse\workspace\testclient\jars>appclient -client testClient.jar
    #### Error: Unable to load module. File -client does not exist.
    Client Container Error:
    Failed to load the archive specified
    C:\eclipse\workspace\testclient\jars>appclient testClient.jar
    Please specify uri for the the client jar using -uri
    Usage: appclient <client-archive> [-uri <uri>] [client-arg1 client-arg2 ..]
    ANT file
    <project name="Test project" default="deploy" basedir=".">
         <property file="build.properties"/>
         <property environment="env"/>
         <path id="xdocletlib">
              <fileset dir="${xdoclet.dir}/lib"><include name="**/*.jar"/></fileset>
              <pathelement location="${env.ANT_HOME}/lib/ant.jar"/>
              <pathelement location="${env.J2EE_HOME}/lib/j2ee.jar"/>
         </path>
         <target name="setup">
              <copy todir="${env.J2EE_HOME}/lib/system">
                   <!-- log4j file -->
                   <fileset dir="${log4j.dir}/dist/lib" includes="*.jar"/>
              </copy>
         </target>
         <target name="xdoclet">
              <mkdir dir="${xdoclet.output}"/>
              <!-- clear out original xdoclet files -->
              <delete includeemptydirs="true">
                   <fileset dir="${xdoclet.output}" includes="**/*"/>
              </delete>
              <mkdir dir="${xdoclet.output}/java"/>
              <taskdef
               name="ejbdoclet"
               classname="xdoclet.modules.ejb.EjbDocletTask"
               classpathref="xdocletlib"
              />
              <ejbdoclet destDir="${xdoclet.output}/java" excludedTags="@version,@author,@todo">
                   <fileset dir="${entity.ejb.src.dir}"><include name="**/*Ejb.java"/></fileset>
                   <fileset dir="${session.ejb.src.dir}"><include name="**/*Ejb.java"/></fileset>
                   <packageSubstitution packages="ejb" substituteWith="interfaces"/>
                   <remoteinterface/>
                   <homeinterface/>
                   <localinterface/>
                   <localhomeinterface/>
                   <entitypk/>
                   <entitycmp/>
                   <session/>
                   <utilobject>
                        <packageSubstitution packages="ejb" substituteWith="util"/>
                   </utilobject>
                   <valueobject>
                        <packageSubstitution packages="ejb" substituteWith="model"/>
                   </valueobject>
                   <deploymentdescriptor
                    destdir="${xdoclet.output}/META-INF"
                    validateXml="true"
                   />
                   <sunone destdir="${xdoclet.output}/META-INF"/>
              </ejbdoclet>
         </target>
         <target name="compile" depends="xdoclet">
              <mkdir dir="${build.dir}"/>
              <javac destdir="${build.dir}">
                   <classpath>
                        <fileset dir="${log4j.dir}/dist/lib"><include name="*.jar"/></fileset>
                        <pathelement location="${env.J2EE_HOME}/lib/j2ee.jar"/>
                   </classpath>
                   <src path="${entity.ejb.src.dir}"/>
                   <src path="${session.ejb.src.dir}"/>
                   <src path="${xdoclet.output}/java"/>
              </javac>
         </target>
         <target name="webdoclet">
              <taskdef
               name="webdoclet"
               classname="xdoclet.modules.web.WebDocletTask"
               classpathref="xdocletlib"
              />
              <webdoclet destdir="${xdoclet.output}/${web.dir}/META-INF" excludedtags="@version,@author">
                   <deploymentdescriptor
                    schema="http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd"
                    displayname="Test App"
                    description="A quick and dirty test"
                   >
                        <welcomefile file="index.html"/>
                        <welcomefile file="index.jsp"/>
                   </deploymentdescriptor>
                   <fileset dir="${entity.ejb.src.dir}"/>
                   <fileset dir="${session.ejb.src.dir}"/>
              </webdoclet>
         </target>
         <target name="build" depends="compile,webdoclet">
              <mkdir dir="${jars.dir}"/>
              <jar destfile="${jars.dir}/test.jar">
                   <fileset dir="${build.dir}"/>
                   <fileset dir="${xdoclet.output}" includes="META-INF/*ejb-jar.xml"/>
              </jar>
              <war
               basedir="${web.dir}"
               destfile="${jars.dir}/test.war"
               webxml="${xdoclet.output}/${web.dir}/META-INF/web.xml"
              >
                   <classes dir="${build.dir}">
                        <include name="**/*Local.class"/>
                        <include name="**/*LocalHome.class"/>
                   </classes>
              </war>
              <!-- Build ear -->
              <ear destfile="${jars.dir}/test.ear" appxml="META-INF/application.xml">
                   <fileset dir="${jars.dir}" includes="*.jar,*.war"/>
                   <fileset dir="${basedir}" includes="META-INF/sun-application.xml"/>
                   <!-- client -->
                   <fileset dir="${basedir}/../testclient/${jars.dir}" includes="*.jar"/>
              </ear>
         </target>
         <target name="test">
              <exec executable="${env.J2EE_HOME}\bin\verifier.bat">
                   <arg value="${jars.dir}/test.ear"/>
              </exec>
              <property
               name="cpath"
               value="${avk.home}/appserver/lib/sun-appserv-ant.jar:${avk.home}/lib/javke-ant.jar"
              />
              <taskdef
               name="ArchiveTest"
               classname="org.apache.tools.ant.taskdefs.optional.sun.verification.StaticArchiveTest"
               classpath="${cpath}"
              />
              <ArchiveTest appName="${jars.dir}/test_ear/test.jar"/>
              <taskdef name="SourceScan"
               classname="org.apache.tools.ant.taskdefs.optional.sun.verification.SourceScan"
               classpath="${cpath}"
              />
              <SourceScan srcDir="${basedir}/entity_ejb_src" srcServer="sunone"/>
              <SourceScan srcDir="${basedir}/session_ejb_src" srcServer="sunone"/>
         </target>
         <target name="deploy" depends="build">
              <copy todir="${env.J2EE_HOME}/domains/domain1/autodeploy" file="${jars.dir}/test.ear"/>
              <ant target="start_server"/>
         </target>
         <target name="undeploy" depends="stop_server">
              <delete file="/**/*">
                   <fileset dir="${env.J2EE_HOME}/domains/domain1/autodeploy" includes="**/*"/>
              </delete>
         </target>
         <target name="start_server">
              <exec dir="${env.J2EE_HOME}\bin" executable="${env.J2EE_HOME}\bin\asadmin.bat">
                   <arg value="start-domain"/>
                   <arg value="domain1"/>
              </exec>
         </target>
         <target name="stop_server">
              <exec dir="${env.J2EE_HOME}\bin" executable="${env.J2EE_HOME}\bin\asadmin.bat">
                   <arg value="stop-domain"/>
                   <arg value="domain1"/>
              </exec>
         </target>
    </project>

    There are quite a few sample apps and blueprint apps that Sun provides. Have you looked at any ofThanks for the response. I looked over the Sun examples and can get them to work. I'm just not interested in manually writing so much code. Every bean seems to require a zillion files and configuration settings. XDoclet was supposed to help me avoid all the typing. I'd also like to steer clear of the deploytool; being able to do a complete build in one step is very important to me. I suppose I could compare and contrast with the functional examples but it's such slow going...

  • Regarding permissions needed to run a jdev project

    Hi All,
    i am having database access and proper dbc file for a instance. Are these 2 things sufficient to run a jdev project against a instance or any other permissions are needed?
    Regards
    Lokesh

    Hi
    you must have a user id and password with any responsiblity in same instance ,that u need to mention in project setting --> runtime connection ,with application name and key of responsibility assigned to user .
    thanx
    Pratap

  • Debug between jdev projects - no source

    I'm using JDeveloper 3.2.2
    I have split my project in smaller jdev projects with 10-15 files each. They all are stored in different subdirectories in my big project.
    My problem is that when I'm debugging any of those projects debugger does not find source of files in other projects.
    How does the source file search works for debugging - where shall I write those paths to get debugger work through all of my source code no matter in which project they are?
    Thanks in advance,
    Casper-
    null

    For the project (or projects) that you use when debugging, bring up the Project Properties dialog. On the Paths page, make sure that the Source Root Directories field contains ALL the directories where you source files are located.
    However, don't include the package directories. For example if you source file is called test.java and it is in package casper.testing and the fully qualified filename is C:\mysources\casper\testing\test.java then you should enter C:\mysources in the SourceRootDirectories field.
    Liz
    null

  • Retrieve the jdev project from the ear file

    I have an ear file, but I've lost the original jdev project.
    How can I retrieve the project from the ear file?
    I would know if there's a function in jdev or with another tool to convert an ear file to the original project in jdeveloper.
    Thanks.

    Try the File->Import menu option.

  • More than one ANT Build-Script "build.xml" in a JDev Project?

    Hi,
    were using JDev 10.1.3.3 with our Projects in which i am trying to inject the code coverage tool "Cobertura".
    We want to handle Cobertura through ANT-Targets, so we have to set up an .XML-Buildscript.
    But we already have a Build.xml to cover our deployment needs.
    I don't want to put the cobertura-targets into our Build.xml - would be a mix of purpose to me...
    Instead of having one big .xml, i wanted to have "Build.xml" and "Cobertura.xml", but when generate the latter and put in the ANT-Project it isn't recognized as an ANT-Script, but as an ordinary XML.
    With new-->Ant-->buildfile i can only generate the "Build.xml".
    Is it possible to convert a regular XML into an Ant-Script, so that JDev would recognize them?!
    regards,
    Henning
    Edited by: Haymaker84 on 03.12.2008 03:00

    whoops...
    i was able to generate another buildscript with the standart dialog!

  • How to copy a Jdev project to another Jdev on a different machine

    I have an application running in JDev 9052 using uix and bc4j objects connecting to an Oracle database. It is running on a Terminal Server Windows 2000 machine.
    I want to move this project to a different PC in a different location running Windows XP professional and Oracle Personal Version.
    I have done a clean install of JDeveloper 9052 and zipped up the project on the Terminal Server and downloaded it to the new location. I setup my JDeveloper environment to be identical to the original. Same JDevhome and My work environment and so on.
    The only difference is that the connection information is slightly different since the host name and SID are different. The connection name is the same.
    After unzipping the project into the new environment, I open the projects JWS file to add it in. I then rebuild the bc4j and web portions of the project. I can then run the bc4j part and see the database records. I can also open up my UIX pages in the preview section and they connect to the database properly.
    When I run the application from JDeveloper I get the following error: The page cannot be found
    This is caused by the URL being rendered improperly. What it tries to find is:
    http://192.168.1.101:8988/SMART/Login.uix%20"%1"
    If I erase the characters at the end in the browser address field and get:
    http://192.168.1.101:8988/SMART/Login.uix
    Then the application will work.
    The only thing I can figure out is that I don't transfer the application properly.
    Does anyone have any ideas on what is wrong here?
    Thanks ver much, Steve

    Here is how I got it working
    1. open the projects and make sure the Dependencies are checked for the other project
    2. open the JClient client project that contains the calling form
    3. select the databinding.cpx file and you see that one datacontrol is used
    4. To add the other datacontrol (the other BC project) select an attribute from it in the data control palette and drop it to the calling JClient panel.
    5. Delete the create item because all that we care for is to get the the second data control registered in the project's cpx file
    6. Open the databinding.cpx file of the second (the called JClient project) and copy everything between the <containee> elements into the clipboard. Note that you can have one or more of them
    For my example, the databinding.cpx content of the second JClient project contained the following binding reference
    <Containee
    id="FormUIModel"
    ObjectType="BindingContainerReference"
    FullName="mypackage3.FormUIModel" >
    </Containee>
    7. Open the databinding.cpx file of the calling project in a text editor and paste the content of the clipboard to it. Save the file.
    8. Add the following code to a button that calls the JClient form in the other project (in my example the called form has a name of "Form" and is in a packe mypackage3 that I imported
    Form frm = new Form();
    frm.setBindingContext(panelBinding.getBindingContext());
    frm.setVisible(true);
    The reason you have to do all this is because the binding context is passed from one form to the other, which means that its databinding.cpx file need to contain all the binding information.
    You could make your life a lot simpler if you don't use two model projects. But this is your design decision and i can only tell you how to get it working.
    Frank

  • Project layout and themes missing PSE7

    Hello,
    Now and then when i turn on my computer , which is running Windows XP I click on the Adobe photoshop Elements 7 icon. Once the PSE
    7 welcome screen appears i click on organize, this brings up some previous photos ive imported with key word tags. I'll click on on
    any of the photos and then click the Create tab in the top right hand corner. Then it wil ask me what would i like to create on the ri
    ght side. There will also be a More Options tab, when i click on the More options tab it shows options to create greeting cards, cd
    jackets, dvd jackets, cd/dvd labels etc. The problem is when i click on any of those options the Project screen and Pallete comes u
    p but the themes and layouts in the Pallete bin don't show up at all. It shows a black empty box where the themes and layouts should
    be. When i reinstall the PSE7 they will show up again but after awhile they dissappear or get deleted some how after i shut my com
    puter off. Is there a way i can avoid this without having to leave my computer on all the time and having to reinstall PSE 7 everyt
    ime this happens? I attached a screen shot of the black empty box of the project bin.

    I FINALLY FOUND A FIX TO THIS PROBLEM!!!
    I copied the pref file off of my old powerbook over the pref file on my new mac book pro. the buttons came back. Here's how I figured it out, and why it worked.
    I did a "show contents" on the Aperture application and found that the buttons I was missing are still in Aperture. I also knew that it should work because updating doesn't remove them, its just installing the newest update before launching aperture for the first time that does it. My old Powerbook that was running the newest Aperture still had the layout buttons in the toolbar. I copied my prefs over and they came back.
    I would be happy to email you my pref file if you like. Just post your email on here that you want me to send it to.
    ~ Lou

  • *URGENT* importing third party package into Jdev project

    hi,
    our company has bought a thrid party package instead of developing one to speed up the project pace. Some how we cannot import the package into our project environment,
    this is what we do with the package.
    set the class path to where the *.jar files are, for example: C:\AccBank\beta\creditcheck.jar
    please note that the "C:\AccBank\beta\" is where the project file locates.
    and follow is the import statement
    import thirdparty.package1.*;
    please tell us what did we do wrong, if the case in question is not clear, please tell us the steps we need to do to import and use a third party package with JDev.
    Also, please tell me the different purpose between the directory :
    PROJECTFILES and CLASSFILES under the main project directory
    Thank you very much for your time and your help
    Augustina
    null

    Hello,
    I'm not sure about what you mean,
    but in order to use a given package within JDevelopper, you should:
    - select project/project properties,
    - find the libraries tab
    - click "add", then "new"
    - click "class path"
    - click "add ZIP/JAR" and add the various jar files you want to include
    Note: if the included libraries contain subpackages of packages like javax, and you want to deploy your project (as EJB for instance) you will have to edit the deployment profiles in order to add the 3rd party libraries, otherwise, these subpackages won't be deployed (by default, packages suvh as java.lang, javax etc.. are not excluded from the deployment).
    about the PROJECTFILES and CLASSFILES items, they refer to the directories in which your project's source code (PROJECTFILES) and compiled classes (CLASSFILES) are stored
    Hope this helps, Remi
    <BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by Augustina:
    hi,
    our company has bought a thrid party package instead of developing one to speed up the project pace. Some how we cannot import the package into our project environment,
    this is what we do with the package.
    set the class path to where the *.jar files are, for example: C:\AccBank\beta\creditcheck.jar
    please note that the "C:\AccBank\beta\" is where the project file locates.
    and follow is the import statement
    import thirdparty.package1.*;
    please tell us what did we do wrong, if the case in question is not clear, please tell us the steps we need to do to import and use a third party package with JDev.
    Also, please tell me the different purpose between the directory :
    PROJECTFILES and CLASSFILES under the main project directory
    Thank you very much for your time and your help
    Augustina <HR></BLOCKQUOTE>
    null

  • TransactionConflictException during ant osb project export

    Hey,
    I am getting more and more failed ant exports of osb projects.
    Searching on com.bea.wli.config.transaction.TransactionConflictException doesnt give any hits whatsoever, i suspect however something is going wrong with the eclipse workspace or something.
    It is running on a dedicated machine so workspace being locked or something. Even fetching deleting the workspace and pulling anew from the SVN doesn't resolve this.
    Synchronizing "OSB-[xxxx]_configuration"...
    [java] <Apr 26, 2013 10:53:39 AM CEST> <Warning> <ConfigFwk> <BEA-000000> <Setting transaction '13' as rollback only. Rollback reason:
    [java] com.bea.wli.config.transaction.TransactionConflictException: Transaction ALSB Resource Synchronization conflicts with ALSB Resource Synchronization for transactional resource lazy value cache and will be rolledback
    [java]      at com.bea.wli.config.transaction.TransactionManager.testConflict(TransactionManager.java:1361)
    [java]      at com.bea.wli.config.transaction.TransactionManager.enlistAsRead(TransactionManager.java:981)
    [java]      at com.bea.wli.config.transaction.CopyOnWriteTransactionalOwner.getState(CopyOnWriteTransactionalOwner.java:65)
    [java]      at com.bea.wli.config.transaction.TransactionalMap.containsKey(TransactionalMap.java:72)
    [java]      at com.bea.wli.config.component.impl.LazyValueCache.containsKey(LazyValueCache.java:105)
    [java]      at com.bea.wli.config.component.impl.ComponentTypeImpl.exists(ComponentTypeImpl.java:738)
    [java]      at com.bea.wli.config.impl.ConfigContextImpl.exists(ConfigContextImpl.java:917)
    [java]      at com.bea.wli.config.component.impl.ComponentTypeImpl.validateForCreate(ComponentTypeImpl.java:428)
    [java]      at com.bea.wli.config.component.impl.ComponentTypeImpl.createBare(ComponentTypeImpl.java:877)
    [java]      at com.bea.wli.config.component.impl.ComponentTypeImpl.create(ComponentTypeImpl.java:860)
    [java]      at com.bea.wli.config.task.impl.CreateResourceTask._execute(CreateResourceTask.java:97)
    [java]      at com.bea.wli.config.task.impl.SessionedTask.doExecute(SessionedTask.java:228)
    [java]      at com.bea.wli.config.task.impl.SessionedTask.doExecute(SessionedTask.java:191)
    [java]      at com.bea.wli.config.task.impl.CreateResourceTask.createResource(CreateResourceTask.java:82)
    [java]      at com.bea.alsb.core.internal.config.synchronize.tasks.UpdateResourceTask.execute0(Unknown Source)
    [java]      at com.bea.alsb.core.internal.config.synchronize.tasks.AbstractSynchronizerTask._execute(Unknown Source)
    [java]      at com.bea.alsb.core.internal.config.synchronize.tasks.ExecutionTask._execute(Unknown Source)
    [java]      at com.bea.wli.config.task.impl.SessionedTask$1.execute(SessionedTask.java:233)
    [java]      at com.bea.wli.config.transaction.TransactionalTask._doExecute(TransactionalTask.java:217)
    [java]      at com.bea.wli.config.transaction.TransactionalTask._doExecuteWithRetry(TransactionalTask.java:162)
    [java]      at com.bea.wli.config.transaction.TransactionalTask.doExecute(TransactionalTask.java:142)
    [java]      at com.bea.wli.config.task.impl.SessionedTask.doExecute(SessionedTask.java:236)
    [java]      at com.bea.wli.config.task.impl.SessionedTask.doExecute(SessionedTask.java:191)
    [java]      at com.bea.alsb.core.internal.config.synchronize.AbstractSynchronizer.executeEx(Unknown Source)
    [java]      at com.bea.alsb.core.internal.config.synchronize.AbstractSynchronizer.execute(Unknown Source)
    [java]      at com.bea.alsb.core.internal.config.synchronize.DeltaSynchronizer.run(Unknown Source)
    [java]      at com.bea.alsb.core.internal.config.synchronize.DeltaSynchronizer.run(Unknown Source)
    [java]      at com.bea.alsb.core.internal.config.synchronize.SynchronizerService.run0(Unknown Source)
    [java]      at com.bea.alsb.core.internal.config.synchronize.SynchronizerService.access$2(Unknown Source)
    [java]      at com.bea.alsb.core.internal.config.synchronize.SynchronizerService$1.run(Unknown Source)
    [java]      at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:1975)
    [java]      at com.bea.alsb.core.internal.config.synchronize.SynchronizerService.runInWorkspace(Unknown Source)
    [java]      at com.bea.alsb.core.internal.config.synchronize.SynchronizerService.run(Unknown Source)
    [java]      at com.bea.alsb.core.internal.config.synchronize.SynchronizerService$Synchronizer.resourceChanged(Unknown Source)
    [java]      at org.eclipse.core.internal.events.NotificationManager$2.run(NotificationManager.java:291)
    [java]      at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
    [java]      at org.eclipse.core.internal.events.NotificationManager.notify(NotificationManager.java:285)
    [java]      at org.eclipse.core.internal.events.NotificationManager.broadcastChanges(NotificationManager.java:149)
    [java]      at org.eclipse.core.internal.resources.Workspace.broadcastBuildEvent(Workspace.java:311)
    [java]      at org.eclipse.core.internal.events.AutoBuildJob.doBuild(AutoBuildJob.java:140)
    [java]      at org.eclipse.core.internal.events.AutoBuildJob.run(AutoBuildJob.java:242)
    [java]      at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)
    Ant export process:
         <target name="export" depends="export.generic">
              <antcall target="deleteOldJar" />
              <antcall target="deleteMetadata" />
              <echo message="config.project: ${config.project} configJar: ${basedir}/${config.jar} config.subprojects ${config.subprojects}"/>
              <java dir="${eclipse.home}" jar="${eclipse.home}/plugins/org.eclipse.equinox.launcher_1.1.0.v20100507.jar" fork="true" failonerror="false" maxmemory="768m">
                        <arg line="-data ${workspace.dir}" />
                        <arg line="-application com.bea.alsb.core.ConfigExport" />
                        <arg line="-configProject ${config.project}" />
                        <arg line="-configJar ${basedir}/${config.jar}" />
                        <arg line="-configSubProjects ${config.subprojects}"/>
                        <sysproperty key="com.bea.plateng.common.util.logging.useJDKlogger" value="true" />
                        <sysproperty key="weblogic.home" value="${weblogic.home}"/>
              <sysproperty key="osb.home" value="${osb.home}"/>
              <sysproperty key="osgi.bundlefile.limit" value="2000"/>
              <sysproperty key="harvester.home" value="${osb.home}/harvester"/>
              <sysproperty key="osgi.nl" value="en_US"/>
              <sysproperty key="sun.lang.ClassLoader.allowArraySyntax" value="true"/>
                   </java>
              <tstamp/>
              <copy failonerror="false" file="${metadata.dir}/.log" tofile="${log}/metadata${DSTAMP}${TSTAMP}.log"/>
              <antcall target="deleteMetadata" />
              <delete file="${workspace.dir}/${config.project}/.settings/com.bea.alsb.core.prefs"/>
         </target>
    Any help is much appreciated!

    Oracle provides prebuilt code for OSB migration
    you may refer to following
    http://biemond.blogspot.in/2010/07/osb-11g-ant-deployment-scripts.html
    http://docs.oracle.com/cd/E21764_01/doc.1111/e15022/app_config.htm#i1012336
    http://docs.oracle.com/cd/E21764_01/doc.1111/e15022/bestprac.htm#sthref44

  • IMovie 10: Events / Projects layout

    Is there an option/setting in iMovie version 10 to sort/list events and projects the same way as iMovie 11 version 9, events up top and projects below? The current layout is very confusing. Thanks.

    Basically no.  Projects are now part of events and not separate from them.
    Geoff.

  • How to import BC4J package into JDEV project without server.xml file?

    Dear,
    I need to bring the seeded BC4J package into my JDEV OAF project. Usually to do that, once I am sure that all I need is accessible, I open the server.xml file for the BC4J that I need and I am all set - all the items from under that BC4J are brought in.
    How about if there is no server.xml file for that BC4J, for example, under oracle.apps.icx.por.req.webui, and I need to have a controller from under there in my project? Do I create this package (oracle.apps.icx.por.req.webui) manually? If I do that and then open the controller the controller is being brought into JDEV outside the package.
    Thank you.
    Anatoliy

    Sumit,
    Thank for quick response.
    Yes, I agree for the controller.
    But let's say I want to bring over some other xml staff, like some shared regions for example from under that webui. They are also brought outside the package. You have an idea?
    Regards,
    Anatoliy

  • NullPointerException when showing libraries page in JDev project settings

    I'm running 10.1.3.0.4 on Windows and also Linux. Both systems are referencing the same external libraries, which are defined with relative paths to avoid naming convention problems across systems. This has been fine for at least 3 years until recently when some developers started using 10.1.3.x (as opposed to 10.1.2) on a number of machines the following occurs.
    When double-clicking on the project to open the project settings page and then selecting "Libraries" i'm getting the following exception in a popup window.
    java.lang.NullPointerException
         at oracle.jdeveloper.library.JLibraryManager.findJDK(JLibraryManager.java:294)
         at oracle.jdeveloper.library.JLibraryManager.findJDKMatch(JLibraryManager.java:342)
         at oracle.jdeveloper.library.LibraryReference.getLibrary(LibraryReference.java:81)
         at oracle.jdeveloper.model.JProjectLibraries.getJDK(JProjectLibraries.java:115)
         at oracle.jdeveloper.model.JProjectLibrariesPanel.reload(JProjectLibrariesPanel.java:260)
         at oracle.jdeveloper.model.JProjectLibrariesPanel.onProjectPanelEntry(JProjectLibrariesPanel.java:217)
         at oracle.ide.model.panels.ProjectSettingsTraversablePanel.onEntry(ProjectSettingsTraversablePanel.java:87)
         at oracle.ide.panels.MDDPanel.enterTraversableImpl(MDDPanel.java:926)
         at oracle.ide.panels.MDDPanel.enterTraversable(MDDPanel.java:899)
         at oracle.ide.panels.MDDPanel.mav$enterTraversable(MDDPanel.java)
         at oracle.ide.panels.MDDPanel$Tsl.updateSelectedNavigable(MDDPanel.java:1348)
         at oracle.ide.panels.MDDPanel$Tsl.updateSelection(MDDPanel.java:1216)
         at oracle.ide.panels.MDDPanel$Tsl.actionPerformed(MDDPanel.java:1210)
         at javax.swing.Timer.fireActionPerformed(Timer.java:271)
         at javax.swing.Timer$DoPostEvent.run(Timer.java:201)
         at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
         at java.awt.EventQueue.dispatchEvent(EventQueue.java:461)
         at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:242)
         at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:163)
         at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:153)
         at java.awt.Dialog$1.run(Dialog.java:515)
         at java.awt.Dialog.show(Dialog.java:536)
         at java.awt.Component.show(Component.java:1300)
         at java.awt.Component.setVisible(Component.java:1253)
         at oracle.bali.ewt.dialog.JEWTDialog.runDialog(Unknown Source)
         at oracle.bali.ewt.dialog.JEWTDialog.runDialog(Unknown Source)
         at oracle.ide.dialogs.WizardLauncher.runDialog(WizardLauncher.java:55)
         at oracle.ide.panels.TDialogLauncher.showDialog(TDialogLauncher.java:276)
         at oracle.ide.model.panels.ProjectPropertiesDialog.showDialog(ProjectPropertiesDialog.java:223)
         at oracle.ide.model.panels.ProjectPropertiesDialog.showDialog(ProjectPropertiesDialog.java:89)
         at oracle.ide.model.panels.ProjectPropertiesDialog.showDialog(ProjectPropertiesDialog.java:80)
         at oracle.jdeveloper.model.JProjectStructureController.handleEvent(JProjectStructureController.java:111)
         at oracle.jdeveloper.model.JProjectStructureController$JProjectMenuListener.handleDefaultAction(JProjectStructureController.java:576)
         at oracle.ide.controller.ContextMenu.fireDefaultAction(ContextMenu.java:343)
         at oracle.ideimpl.explorer.BaseTreeExplorer.fireDefaultAction(BaseTreeExplorer.java:1504)
         at oracle.ideimpl.explorer.BaseTreeExplorer.dblClicked(BaseTreeExplorer.java:1841)
         at oracle.ideimpl.explorer.BaseTreeExplorer.mouseReleased(BaseTreeExplorer.java:1862)
         at oracle.ideimpl.explorer.CustomTree.processMouseEvent(CustomTree.java:176)
         at java.awt.Component.processEvent(Component.java:5253)
         at java.awt.Container.processEvent(Container.java:1966)
         at java.awt.Component.dispatchEventImpl(Component.java:3955)
         at java.awt.Container.dispatchEventImpl(Container.java:2024)
         at java.awt.Component.dispatchEvent(Component.java:3803)
         at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4212)
         at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3892)
         at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3822)
         at java.awt.Container.dispatchEventImpl(Container.java:2010)
         at java.awt.Window.dispatchEventImpl(Window.java:1774)
         at java.awt.Component.dispatchEvent(Component.java:3803)
         at java.awt.EventQueue.dispatchEvent(EventQueue.java:463)
         at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:242)
         at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:163)
         at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:157)
         at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:149)
         at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)
    It's always a problem now on linux machines and some windows versions.

    I eventually fixed this by removing the following block from all the affected project files (.jpr)
    <hash n="internalDefinitions">
    <list n="jdkDefinitions"/>
    <list n="libraryDefinitions"/>
    </hash>
    <hash n="jdkReference">
    <value n="id" v="1.4.2_04"/>
    <value n="isJDK" v="true"/>
    <value n="jdkVersion" v="1.4.2_04"/>
    </hash>

  • ADF Faces & BC: Best pratices for project layout

    Season greetings my fellow JDevelopers!
    Our software group has been working with ADF for around 5 years and through the years we have accumulated a good amount of knowledge working with JDeveloper and ADF. Much of our current application structure has been resurrected in the early days of JDeveloper 10 where there were more samples codes floating around then there were "best pratice" documentation. I understand this is a subjective topic and varies site to site, but I believe there is a set of common practices our group has started to identify as critical to streamlining a development process(reusable decorated ui components, modular common biz logic, team development with svn, continuous integration/build, etc..). One of our development goals is to minimize dependency between each engineer as everyone is responsible for both client and middle layer implementation without losing coding consistency. After speaking with a couple of the aces at the last openworld, I understand much of our anticipated architectural requirements are met with JDeveloper 11(with the introduction of templates, declarative components, bounded task flows, etc..) but due to time constraints on upcoming deliverables we are still about an year away before moving on with that new release. The following is a little bit about our group/application.
    JDeveloper version: 10.1.3.4
    Number of developers: 7
    Developer responsibilties: Build both faces & bc code
    We have two applications currently in our production environments.
    1.A flavor of Steve Muench's dynamic jdbc credentials login module
    2.Core ADF Faces & BC application
    In our Core ADF Faces application, we have the following structure:
    OurApplication
         -OurApplicationLib (Common framework files)
         -OurApplicationModel (BC project)
              -src/org/ourapp/module1
              -src/org/ourapp/module2
         -OurApplicationView (Faces project)
              public_html/ourapp/module1
              public_html/ourapp/module2
              src/org/ourapp/backing/module1
              src/org/ourapp/backing/module2
              src/org/ourapp/pageDefs/
    Total Number of Application Modules: 15 (Including one RootApplicationModule which references module specific AMs)
    Total Number View Objects: 171
    Total Number of Entities: 58
    Total Number of BC Files: 1734
    Total Number of JSPs: 246
    Total Number of pageDefs: 236
    Total Number of navigation cases in faces-config.xml: 127
    Total Number of application files: 4183
    Total application size: 180megs
    Are there any other ways to divide up this application? Ie: module specific projects with seperate faces-config files/databindings? If so, how can these files be "hooked" together? A couple of the aces has recommended that we should separate all the entity files into its own project which make sense. Also, we are looking into the maven builds which should remove those pesky model.jpr files that constantly gets “touched”. I would to love hear how other groups are organizing their application and anything else they would like to share as an ADF best pratice.
    Cheers,
    Wes

    After discussions over the summer/autumn by members of the ADF Methodology Group I have published an ADF Coding Standards wiki page that people may find useful:
    [http://wiki.oracle.com/page/ADF+Coding+Standards]
    It's aimed at ADF 11g and is intended to be a living document - if you have comments or suggestions please post them to the ADF Methodology google group ( [http://groups.google.com/group/adf-methodology?hl=en] ).

  • How to create and remove package in Jdev project

    hi,
    I created a package for all my utils, then I import that package into my project, manually by inserting import myutils.*, somehow the other package can see it,
    then I tried importing this same package by the wizard tool, I have a conflict message that duplicate code, of course this is true since both of them works, then I want to remove one of the packe from my ptroject, but I cannot remove either package from my project. Please tell me how
    Thanks
    BM

    BM,
    If you want to import the utils package into your code, then the location of the utils package has to be in your CLASSPATH. JDeveloper uses libraries to define a project's CLASSPATH.
    I'm not sure exactly what's going on here, but you might want to read the information about packages and class libraries in the online documentation. It's under:
    User Guides
    -> Working with JDeveloper
    -> Packages and Class Libraries
    Blaise

Maybe you are looking for

  • Do we write variable customer exits for virtual key figures in Bex?

    Hi all, Am I thinking the right here " We write variable customer exits in CMOD for virtual key figures in BEx " or am I totally wrong. If thats the case where do we write it. Thanks, JB

  • Where is this Log located?

    Hi, I´m getting this Access Denied error and it says that I should look for an ID in the log file, but can´t find the log where I can look for this Id: Access denied (Object(s): portal_content/com.sap.pct/specialist/com.sap.pct.crm/com.sap.pct.crm.ro

  • Connection of One BI Dev with Two R/3 system

    Hi All, I am working on the BI project and i am having below problem/daubt. we are having three system landscape for R/3 .i.e R/3 dev,R/3 qty,R/3 Prod. In BI we are having two system landscape BI Dev and BI production. R/3 Dev is connected to BI dev

  • Trigger email after PO release

    Dear Guru , We have a scenario which is the system will send email to PO creator after someone released the Purchase Order . I found there has object BUS2012 has event 'RELEASE', but it is not working in the workflow . Can you please let me know if i

  • Why can't i install leapard 10.5 leapard?

    i trying to install 10.5 leapard onto my powermac g4 dual 1.25 cpu with 1.75 ram and 160 gb harddrive.  It tells me mac os x can not be installed on this computer.  But i don't know why.