Jdeveloper and ant

hello,
i need execute ant script before create EAR and WAR file
i found the option in the project war properties ant xml execute but the build.xml don't run ,
any ideas for jdeveloper and Ant integration ?
the use case this i want create a properties file with svn version.
thanks!!

<?xml version="1.0" encoding="windows-1252" ?>
<project xmlns="antlib:org.apache.tools.ant" default="generar">
<path id="path.svnant">
<pathelement location="libs/svnant/svnant.jar"/>
<pathelement location="libs/svnant/svnClientAdapter.jar"/>
<pathelement location="libs/svnant/svnjavahl.jar"/>
<pathelement location="libs/svnant/svnkit.jar"/>
<pathelement location="libs/svnant/ganymed.jar"/>
<pathelement location="libs/svnant/jna.jar"/>
</path>
<typedef resource="org/tigris/subversion/svnant/svnantlib.xml" classpathref="path.svnant"/>
<target name="find_revision" >
<property name="directorio" value="${buildir}"/>
<!-- find out revision number of HEAD, need svn.exe installed on local machine -->
<exec executable="svn" outputproperty="svnlog.out">
<arg line="log ../"/>
</exec>
<echo>${homedir}</echo>
<echo>${svnlog.out}</echo>
<taskdef resource="net/sf/antcontrib/antcontrib.properties">
<classpath>
<pathelement location="libs/svnant/ant-contrib-1.0b3.jar"/>
</classpath>
</taskdef>
<propertyregex property="revision.number" input="${svnlog.out}" select="\1">
<regexp pattern="r([0-9]*)"/>
</propertyregex>
<echo file="src\org\sidoc\common\BuildInfo.java">
package org.common;
public class BuildInfo {
public static final String revisionNumber="${revision.number}";
</echo>
</target>
</project>
works!

Similar Messages

  • 10g BPEL process upgrade to 11g hangs in Jdeveloper and Ant script

    I have successfully upgraded several 10g (10.1.3.4) BPEL processes and ESB services using Jdeveloper 11g (11.1.1.6.0) migration wizard and deployed them to an 11g environment. Both 10g and 11g environments are up and running.
    However, my 11g jdeveloper hangs when migrating the next BPEL process. It hangs at the message box with the title: "Migration Status". I tried the Ant script and it hangs too. It hangs after printing out:
    "CompositeRefs
    [upgrade] WARNING: UPGBPEL-02009: No Binding setup for : "soapCheckPrivileges"
    . This will cause compilation of the upgraded project to fail. Check SOA Upgrade
    documentation on manual steps necessary to bind this composite reference. If ne
    cessary, upgrade and deploy any dependencies. If planning to retain 1013x nodes
    in this projects dependency tree, check earlier part of this log for 1013x WSDL
    URLs that can be used."
    I guess it makes sense since Jdeveloper and Ant script use the same code base for migration.
    One other observation is that if I kill the hanging jdeveloper process and reopen it and go through the migration wizard again, it will be successful without hanging. However, when I fix all the wsdl reference and do a build and deploy to sar. The resulting sar is defective and cannot be deployed to Weblogic even if both build and deploy to sar report success. The defective sar contains only scac.log and scac-log.xml, not even composite.xml.
    One difference between this BPEL process and others I have successfully upgraded is that it depends on an ESB service (this esb service has been upgraded and deployed to 11g).
    Any ideas?
    Thanks,

    I will answer my question. I killed the migrating Java process and the migrating wizard will report failure of migrating the .jpr file. Actually, the only thing missing in the migrated .jpr file is deployment profile which I can generate from deployment menu. And I can deploy the migrated process. This works as a workaround.

  • Howto - JDev 10.1.3 - Audit tools and Ant

    Hi
    I'm playing around with Audit tools. I want to be able to call this from Ant. One primitive method is as follows:
    <target name="Audit" description="Running audit on source code">
    <property name="audit" value="ojaudit"/>
    <property name="profile" value="-profile MyRules"/>
    <property name="project" value="test3.jpr"/>
    <property name="output" value="-output d:\result.xml"/>
    <exec executable="cmd.exe" os="Windows XP" >
    <arg line="/c ${audit} ${profile} ${project} ${output}"/>
    </exec>
    </target>
    With results like:
    Audit:
    [exec] Oracle JDeveloper 10g Early Access Audit 10.1.3.0.3.3412
    [exec] Copyright (c) 2003-2005 Oracle. All Rights Reserved.
    [exec]
    [exec] Audit completed: 1 violation, no exceptions, 2 documents, 3 seconds
    BUILD SUCCESSFUL
    Total time: 3 seconds
    But then I'm unable to handle the result - unless I parse the output file. I want the Ant build file to fail if ojaudit find errors. Is this possible?
    I know the PMD extension exist but I really like the Jdev Audit stuff - but I need an interface to Ant to make it really useful: We have a build tool which build on every SCM check in. I would like the JDev Audit be part of that process so that source code problems (audit, metrics) are handles in the same process as well.
    By the way JDev 10.1.3 is great...
    johnny

    No not really (thanks anyway). The link shows basically the same as my input except for the better formatting of the output.
    Both my and the example given both uses the Ant <exec> tag which start ojaudit from the command line. The problems still exist because I would like Ant to know if something was reported and the stop the Ant build process. A kind of "failOnValidationError".
    PMD has this (example below shows and Ant tag called pmd which is part of the PMD system.
    <pmd printToConsole="yes" failOnRuleViolation="on">
    Can ojaudit also do something like this? Or is there a way Ant can "scan" the result from the audit process and take the appropriate action?

  • JDev9033, SQLJ and Ant

    Hi, can anybody help me with this?
    In this project we use JDev9033, JDK1.4.2_02, SQLJ, Ant1.54 and Oracle 9.2.0.1 client. Now I have a problem integrating OJC and Ant, since we want to use Ant from within JDev to build the project.
    I have set up the paths and class paths according to Oracle 9i SQLJ Developers Guide (Release 2). If I compile from JDev without Ant, JDev compiles the projects *.java and *.sqlj classes corretly.
    I have set the build.properties and build.xml file according to the paths specified in the build.xml file, which JDev can generate for me. And I have included jdev.jar and ojc.jar in the class path.
    Any way I get the exception with the -debug flag set i Ant:
    BUILD FAILED
    file:D:/JDev/GCSSMLIS/Tests/build.xml:166: Compiler Adapter 'oracle.jdeveloper.compiler.ant.teskdefs.OjcAdapter' can't be found.
         at org.apache.tools.ant.taskdefs.compilers.CompilerAdapterFactory.resolveClassName(CompilerAdapterFactory.java:195)
    In build.properties I have:
    # COMPILATION SETTINGS
    compiler=oracle.jdeveloper.compiler.ant.teskdefs.OjcAdapter
    source="1.4"
    target="1.4"
    deprecation="on"
    optimize="off"
    debug="on"
    optimize=off
    and in build.xml:
    <javac
    compiler="${compiler}"
    srcdir="${comp.dir}"
    destdir="${build.dir}"
    includes="**/*.java, **/*TEST*.java, **/Test*.java"
    >
    <classpath refid="classpath" />
    </javac>
    with classpath:
    <path id="classpath">
    <fileset dir="${javac.path}" >
    <include name="*.jar" />
    </fileset>
    <fileset dir="${jdev.home}/sqlj/lib" >
    <include name="*.jar" />
    </fileset>
    <pathelement location="${jdev.home}/jdev/lib/jdev.jar" />
    <pathelement location="${jdev.home}/jdev/lib/ojc.jar" />
    <pathelement location="${ora.home}/jdbc/lib/ojdbc14.jar" />
    <pathelement location="${ant.path}/optional.jar"/>
    <pathelement location="${junit.path}/junit.jar" />
    </path>
    Regards
    Flemming

    Matthew,
    Thank for your replies. I manages to get rid of the Ant error by using the first method. I would expect the second to work to.
    I do not expect the OjcAdapter to translate the sqlj files into java files. I have read those chapters in the SQLJ Developers Guide.
    I would like to do obtain is the following:
    1) Use Ant as build system. I do not care, if Ant is external or internal to JDeveloper since both version are 1.5.3. But we have a lot of other steps like ftp to development server, running JUnit, updating CVS and VSS, documentation and so on, so I need Ant to make one build file that every body in the project can use.
    2) Use jre/sdk 1.4.2, sqlj and Oracle client 9.2.0. So I have to translate the projects sqlj files to x.generate.java files before I pass all projects files to a Java compiler.
    3) I tried to build an Ant precompile task in this way:
    a) copy all java and sqlj files from src directory to compile directory.
    b) From the Ant task run the sqlj translator on the compile directory
    c) pass the translated files to javac or ojc
    Since I can translate and compile the project with jdsk1.4.2 from the Jdev Make/Recompile menu point I assume I should be able to write Ant tasks to behave as I have want it to.
    Flemming

  • Cannot test portlet using JDeveloper and built-in OC4J

    Hi everybody,
    I'm not trying to sound stupid but my problem seems to be very basic but i cannot solve it. I'm new to Jdeveloper. Here's my problem.
    I'm using Jdeveloper 10.1.2.1.0 (build 1913) to develope a portlet. I deployed it to the built-in Standalone OC4J of Jdeveloper and got the following messages:
    ---- Deployment started. ---- Sep 6, 2006 7:46:11 PM
    Target platform is Standalone OC4J (AppServerConnection2).
    Wrote WAR file to D:\jdev1012\jdev\mywork\Uma_OWHO\Uma\deploy\UmaPortlets.war
    Wrote EAR file to D:\jdev1012\jdev\mywork\Uma_OWHO\Uma\deploy\UmaPortlets.ear
    Invoking OC4J admin tool...
    D:\jdev1012\jdk\jre\bin\javaw.exe -jar D:\jdev1012\j2ee\home\admin.jar ormi://cuongttlabtop/ admin **** -deploy -file D:\jdev1012\jdev\mywork\Uma_OWHO\Uma\deploy\UmaPortlets.ear -deploymentName UmaPortlets
    checkIsLocalHost() error: cuongttlabtop/: cuongttlabtop/
    Uploading file D:\jdev1012\jdev\mywork\Uma_OWHO\Uma\deploy\UmaPortlets.ear to oc4j server side
    Notification ==> Application Deployer for UmaPortlets STARTS [ 2006-09-06T19:46:17.406ICT ]
    Notification ==> Undeploy previous deployment
    Notification ==> Copy the archive to D:\jdev1012\j2ee\home\applications\UmaPortlets.ear
    Notification ==> Unpack UmaPortlets.ear begins...
    Notification ==> Unpack UmaPortlets.ear ends...
    Notification ==> Initialize UmaPortlets.ear begins...
    Notification ==> Initialize UmaPortlets.ear ends...
    Notification ==> Initialize UmaPortlets begins...
    Notification ==> Initialize UmaPortlets ends...
    Notification ==> Application Deployer for UmaPortlets COMPLETES [ 2006-09-06T19:46:19.000ICT ]
    Exit status of OC4J admin tool (-deploy): 0
    D:\jdev1012\jdk\jre\bin\javaw.exe -jar D:\jdev1012\j2ee\home\admin.jar ormi://cuongttlabtop/ admin **** -bindWebApp UmaPortlets UmaPortlets http-web-site /UmaPortlets
    checkIsLocalHost() error: cuongttlabtop/: cuongttlabtop/
    Exit status of OC4J admin tool (-bindWebApp): 0
    Use the following context root(s) to test your web application(s):
    http://cuongttlabtop:8888/UmaPortlets
    Elapsed time for deployment: 12 seconds
    ---- Deployment finished. ---- Sep 6, 2006 7:46:23 PM
    When i tried to access the URL: http://cuongttlabtop:8888/UmaPortlets by Mozilla Firefox nothing came up instead : 403 Forbidden Directory browsing not allowed
    Please help me everybody!!!!! It's urgent. My boss will check my work on this Friday :((.

    I tried to access both URL you gave me and got the error:
    404 Not Found
    Resource /UmaPortlets/providers not found on this server
    I really dont understand what's going wrong here?? I followed exactly what Oracle tutorials tell me :(

  • Cannot make .war file using tomcat with eclipse and ant

    i have made all necesary configuration for deploying application using eclipse and ant for the tomcat server.
    when i start the server by clicking the tomcat icon on eclipse toolbar, the message is prompted that "missing application web.xml and using defaults". i have placed the web.xml file in the web/WEB-INF directory of the source project directory.
    also when i use ant by right-clicking on the build.xml file and choose Run as ant.. the process creates a desired .war file in webapps folder of the tomcat server but that war file does not works.
    where is the error i cannot figure out.
    am attaching the code of build.xml for reference.
    please help.
    build.xml:-
    <project name="BecilCTI" default="compile" basedir=".">
    <property file="build.properties"/>
    <property file="${user.home}/build.properties"/>
    <property name="app.name" value="BecilCTI"/>
    <property name="app.path" value="/${app.name}"/>
    <property name="app.version" value="0.1-dev"/>
    <property name="build.home" value="${basedir}/build"/>
    <property name="catalina.home" value="c:/Tomcat_5.5"/> <!-- UPDATE THIS! -->
    <property name="dist.home" value="${basedir}/dist"/>
    <property name="docs.home" value="${basedir}/docs"/>
    <property name="manager.url" value="http://localhost:8080/manager"/>
    <property name="src.home" value="${basedir}/src"/>
    <property name="web.home" value="${basedir}/web"/>
    <property name="compile.debug" value="true"/>
    <property name="compile.deprecation" value="false"/>
    <property name="compile.optimize" value="true"/>
    <!--<property name="build.compiler" value="org.eclipse.jdt.core.JDTCompilerAdapter"/>-->
    <path id="compile.classpath">
    <!-- Include all elements that Tomcat exposes to applications -->
    <pathelement location="${catalina.home}/common/classes"/>
    <fileset dir="${catalina.home}/common/endorsed">
    <include name="*.jar"/>
    </fileset>
    <fileset dir="${catalina.home}/common/lib">
    <include name="*.jar"/>
    </fileset>
    <pathelement location="${catalina.home}/shared/classes"/>
    <fileset dir="${catalina.home}/shared/lib">
    <include name="*.jar"/>
    </fileset>
    </path>
    <target name="all" depends="clean,compile"
    description="Clean build and dist directories, then compile"/>
    <target name="clean"
    description="Delete old build and dist directories">
         <echo message="Cleaning all dirs."/>
    <delete dir="${build.home}"/>
    <delete dir="${dist.home}"/>
    </target>
    <target name="compile" depends="prepare"
    description="Compile Java sources">
    <!-- Compile Java classes as necessary -->
    <mkdir dir="${build.home}/WEB-INF/classes"/>
    <javac srcdir="${src.home}"
    destdir="${build.home}/WEB-INF/classes"
    debug="${compile.debug}"
    deprecation="${compile.deprecation}"
    optimize="${compile.optimize}">
    <classpath refid="compile.classpath"/>
    </javac>
    <!-- Copy application resources -->
    <copy todir="${build.home}/WEB-INF/classes">
    <fileset dir="${src.home}" excludes="**/*.java"/>
    </copy>
    </target>
    <target name="dist" depends="compile"
    description="Create binary distribution">
    <!-- Copy documentation subdirectories
    <mkdir dir="${dist.home}/docs"/>
    <copy todir="${dist.home}/docs">
    <fileset dir="${docs.home}"/>
    </copy> -->
    <!-- Create application JAR file -->
    <jar jarfile="${catalina.home}/webapps/${app.name}.war"
    basedir="${build.home}"/>
    <!-- Copy additional files to ${dist.home} as necessary -->
    </target>
    <target name="install" depends="compile"
    description="Install application to servlet container">
    <deploy url="${manager.url}"
    username="${manager.username}"
    password="${manager.password}"
    path="${app.path}"
    localWar="file://${build.home}"/>
    </target>
    <target name="list"
    description="List installed applications on servlet container">
    <list url="${manager.url}"
    username="${manager.username}"
    password="${manager.password}"/>
    </target>
    <target name="prepare">
    <!-- Create build directories as needed -->
    <mkdir dir="${build.home}"/>
    <mkdir dir="${build.home}/WEB-INF"/>
    <mkdir dir="${build.home}/WEB-INF/classes"/>
    <!-- Copy static content of this web application -->
    <copy todir="${build.home}">
    <fileset dir="${web.home}"/>
    </copy>
    <mkdir dir="${build.home}/WEB-INF/lib"/>
    </target>
    <target name="reload" depends="compile"
    description="Reload application on servlet container">
    <reload url="${manager.url}"
    username="${manager.username}"
    password="${manager.password}"
    path="${app.path}"/>
    </target>
    <target name="remove"
    description="Remove application on servlet container">
    <undeploy url="${manager.url}"
    username="${manager.username}"
    password="${manager.password}"
    path="${app.path}"/>
    </target>
    </project>

    So is context.xml actually overwriting the settings found in server.xml?I think so. The way I understand it is the the context.xml file saves you from having to edit server.xml. It is preferred for each web app to do its own config, rather than lumping them all together in server.xml.
    And what would be the best way to create the war file? IAt its heart, a WAR is just a zip file with its contents laid out in according to the specification of a web application directory structure.
    So the simplest way to make a war file is to zip up your directory structure with a tool like winzip, and rename it to be myApp.war.
    Regarding ant, I would recommend you take a look through [url http://jakarta.apache.org/tomcat/tomcat-4.1-doc/appdev/index.html
    ]this tutorial. It explains the basics of website layout, configuration and deployment.
    On [url http://jakarta.apache.org/tomcat/tomcat-4.1-doc/appdev/source.html] this page  in particular, it includes a link to a basic ant file that you can use as a starting point.
    Cheers,
    evnafets

  • HELP: include another page in with JDeveloper and ADF

    Hi all,
    I am trying to make a layout page with JDeveloper and ADF. But I just can't make things work. I have the pre-coded header and footer html pages and want to include them in a jspx somehow. I tried panelPage too, but the rendering style is away from our pre-coded header and footer.
    1. Use jsp:include.
    header works fine but footer is rendered before the page content, even if the footer is placed after the page content. Is there a way to customize the position?
    <f:facet name="footerFacet">
    <f:subview id="footerView"
    binding="#{backing_welcomePage.footerView}">
    <jsp:include page="/footer.jspf"/>
    </f:subview>
    </f:facet>
    2. Use frameBorderLayout.
    I followed the doc and use the document tag. But the frame page is rendered but none of included pages are rendered. So I got a blank page.
    <!-- frame page -->
    <f:view>
    <afh:html>
    <afh:head title="my frame page">
    <meta http-equiv="Content-Type"
    content="text/html; charset=windows-1252"/>
    </afh:head>
    <afh:body>
    <afh:frameBorderLayout height="100%" width="100%">
    <f:facet name="center">
    <afh:frame source="topPage.jspx" name="topPage3"/>
    </f:facet>
    <f:facet name="top">
    <afh:frame source="topPage.jspx" height="200" name="topPage2"/>
    </f:facet>
    <f:facet name="bottom">
    <afh:frame source="topPage.jspx" height="200" name="topPage1"/>
    </f:facet>
    </afh:frameBorderLayout>
    </afh:body>
    </afh:html>
    </f:view>
    <!-- top page -->
    <f:view>
    <af:document title="FrameBorderLayout Demo">
    <af:form>
    <af:panelGroup layout="vertical">
    <f:facet name="separator">
    <af:objectSeparator />
    </f:facet>
    <af:outputFormatted styleUsage="instruction" value="&lt;b>A frameBorderLayout&lt;/b>"/>
    </af:panelGroup>
    </af:form>
    </af:document>
    </f:view>

    for #1 have you tried throwing a verbatim tag around your includes like:
    <f:verbatim>
    <jsp:directive.include file="/includes/footer.jsp"/>
    </f:verbatim>
    it's how we got around intermixing html and jsf

  • JDeveloper and JSP

    I am a new person to JDeveloper technology.
    I wanted to know that if I create JSP using JDeveloper 3.0, and then upload the JSP pages on a UNIX server, will I need application server.
    What is JServer ?

    Anny,
    You can developer Java Server Pages using JDeveloper and deploy them to any platform.
    If your deployment platform is UNIX, you will need an application server that supports the Servlet API. Apache plus Tomcat is a good option. You can learn more about it at www.apache.org.
    JServer is the VM that runs inside the Oracle8i database. You can learn more about it on the Oracle8i page of OTN.
    Laura

  • Oracle's XML Publisher in JDeveloper and XSQL Servlet

    A While ago, in this thread JDeveloper 10g, XSQL and FOP , was mentioned an ongoing effort for the "integration of Oracle's XML Publisher in JDeveloper and XSQL Servlet", Is this still happening ?, will this be something will be able to use without having to be an Oracle Apps shop? Any additional info would be appreciated.

    Hi,
    is there any progress about XML publisher integration with JDeveloper. I'm right now examining XML publisher but there is no explicit directions and explanations of using XML publisher with jdeveloper.
    any news !?
    best regards...
    --barisk                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • JDeveloper and ADF 11g Release 2(11.1.2.0.x) compatible WebCenter Version

    We are looking to upgrade ADF to 11.1.2.0 and looking for WebCenter compatibility.
    Could you please let me know WebCenter compatible version for JDeveloper and ADF 11g Release 2 (11.1.2.0.x) ?
    Thanks
    JP

    Looking at 11.1.2.0.0 note on
    http://www.oracle.com/technetwork/developer-tools/jdev/downloads/index.html
    and seeing, "This version of JDeveloper doesn't include the SOA and WebCenter pieces - to use these components you'll need to download Oracle JDeveloper 11.1.1.5.0."
    Does that mean, 11.1.2.0.0 can't be used with WebCenter?

  • Jheadstart, JDeveloper and CVS and TeamWork

    Hi
    We're four-developer team and we've been working with Jheadstart for some months. Now we want to work with team options that provide jdeveloper (CVS or SCM). But, we are a too much suprised with all the problems that other developers had with CVS, we read it in some jdeveloper forums (JDeveloper and CVS and TeamWork and JDeveloper and CVS
    I get very worry about the problems that developers had with CVS and that at last they don't find a better solution than migrate to jdeveloper 10.1.3. All the forums recomend migrate to jdeveloper 10.1.3 for better support of team work, but I read (some time ago) that jdeveloper 10.1.3 still doesn't support ADF, then I assume we cannot use it with Jheadstart, Am I right? Is there a way to use Jheadstart with JDeveloper 10.1.3 Preview right now?
    What do you recomend for team work with Jheadstart?
    Thanks in advance
    Liceth

    Liceth,
    As you problably know, the JHeadstart team consists of consultants and we face the exact same problems and share the exact same frustrations as you do on an every day basis at our customer projects. It is indeed not easy to use JDeveloper in a multi-developer environment. In all fairness much of this is a given when doing file-based development, and I have seen the exact same problems in situations where other IDE's such as Eclipse etc were used. But using advanced frameworks like ADF and BC4J makes matters more complex, because the declarative way of developing these applications using drag&drop and powerful wizards make you as a developer be less 'in touch' with the file or files that are actually created and updated, and also there tend to be more files in such an architecture that are changed simultaneously by many developers at once.
    Merging is the only way out of this mess, and merge tools are not perfect, far from it. They get better and better but at some point you'll need to understand the semantics of the files that are to be merged to be able to merge them correctly, and merge tools will in all likelyhood never become that smart.
    Until they do, the only thing one can do is to tackle the problem from the other side: if merge tools dont understand the files they merge, we should take into account the weaknesses of these merge tools, and set up our files so that changes CAN be automatically merged, or in most cases at least. Indeed, JDeveloper 10.1.3 is taking good steps in this direction for notoriously tricky files such as JPR files and such. But the problem will never completely go away.
    As for using 10.1.3, well, as you said the preview does not contain ADF so JHeadstart will never run on it. We are developing JHeadstart 10.1.3 that will run on the production version of JDeveloper 10.1.3, but it will be a long time before that release will see the light. And although JDeveloper 10.1.3 is a kick-ass IDE (imho), it will not magically solve all multi-user issues. It will just be a bit more bearable.
    Is there ever a real solution for it? I don't know. I have worked intensively with the Oracle Designer product before I switched to Java, and that tool, which uses a database rather than files to store its information, was almost perfect when dealing with multi-user development. It could do so because the level at which conflicts occur is VERY finegrained (so not at 'code line' level but sometimes as far as 'individual properties in a property inspector' level), plus the advantages of instantaneous locking in the database when modifying something. And, thinking of it, it could do so because it dealt with 'structured objects' rather than files, thereby having some 'semantic' information about the data. I have this feeling we can only 'get it right' if we will treat, for instance, a Java file not as a collection of lines of code, but of a structured object tree with members, constructors, methods, parameters etc. etc., and store it as such, instead of storing it as a flat OS file.
    Just ranting here (this really should be a personal BLOG entry rather than a forum post, but oh well). As you can tell, its a subject that is very close to every developer's heart.
    Kind regards,
    Peter Ebell
    JHeadstart Team

  • JDeveloper and CVS and TeamWork

    Hi,
    we have a small team with 4 members and are developing in JDeveloper 10.1.2 with CVS plug-in (struts, toplink, jsp).
    We are beginners and are frustrated now: every commit/update causes problems.
    Always are problems with
    - project.jpr files (synchronization among developers)
    - sessions.xml (we cannot really add this file to cvs)
    - state of offline tables (and digrams) are sometimes wrong show: restart of JDeveloper is necessary
    - many JDevelopers files are unvisible, but must be added to cvs
    - and more and more
    Please - are somebody using JDeveloper & CVS in team with satisfaction? Are our problems beginner-problems or is this way wrong?
    Thanks for your experience.
    Jara

    My biggests issues with JDeveloper and CVS are as follows:
    1. Oracle puts out an article that talks about Version controllable XML and the biggest culprits of violators of this rule are the Oracle project files: StrutsPAgeFlow.oxd_struts, ViewController.jpr, and Model.jpr. Not nice when you can no longer open your Struts-config.xml file due to all the <==== lines in the file! In almost all instances, since we've built most of the files and aren't adding/removing much from the project as a whole, we can easily correct these problems then commit again, or just issue a clean update on them, and disregard (especially when it appears to be an ordering issue)
    2. Also, we've seen model.jpr files switch contents (areas look like they are swapped around) in between versions. Why? The files are identical except the position of the nodes.
    3. I really want to know my OUT-OF-SYNC files BEFORE I do an update. Kind of like the Uncommitted files window, I'd like: Hey, how out of sync am I?
    4. The COMPARE utility is very nice, however, once CVS takes over and does the automatic MERGE, you're really left with a mess (at times). Any time we get a "failure to update" message, we issue a compare against the current reposistory version verses version on disk and see what the differences are. Then we search for whether our stuff was merged properly.
    5. The only docs I've seen on Jdeveloper and CVS are "introductory" type documentation. Don't put out a document that talks about issues that are "out-of-scope" when these are the very issues that people need to deal with every day, and are looking for answers. The "oracle jdeveloper 10g" handbook is no better, offering about 4 pages of an "overview of CVS".
    6. People have asked before about CVS, even on Metalink and an answer from Oracle is to look at an OTN post. I'm sorry, but that really doesn't cut it, especially when your support bill is over $500K/year.
    enough rambling...
    CVS and Jdeveloper 10.1.2 are working at our shop with 3-4 developers on the project, but it can be paintful during the "conflicts during merge" times.

  • JDeveloper and XML Publisher with EBS ?

    Hi All,
    Can anyone clarify my doubts ?
    I am new to Java and i have some experience in XMLP, but i saw in the User guide the Java API's, how to and where to run those API's.
    And is JDeveloper used with XMLP to run Java API's ?, if yes can u pls explain how to start working on that and what is the relation between JDeveloper and XML Publisher in EBS.
    I really appriciate your early reply.
    Thanks in advance.

    XML Publisher ships with 2 XDK parsers a 9i version for backward compatibility and 10g version - you can switch at runtim using the properties. However, you have to make sure that the XML Publisher versions of the libraries are used and not the ones coming with i.e. jdeveloper version or oc4j version that you are using. You should use the version shipped with XML Publisher, because these versions are thoroughly tested with XML Publisher.
    See the deployment notes in the install document:
    Oracle OC4J Deployment Notes
    The version of the XML Parser shipped with Oracle OC4J is incompatible with XML Publisher. When you create an XML Publisher application for OC4J you need to configure the system to use the XML Publisher version of the XML Parser. This can be accomplished by setting an orion-web.xml configuration file with the following content:
    <?xml version = '1.0' encoding = 'windows-1252'?>
    <orion-web-app>
    <web-app-class-loader search-local-classes-first="true" />
    </orion-web-app>

  • I create simple session bean in jdeveloper and it has a problem in lookup

    the code of bean
    import java.util.*;
    import javax.naming.Context;
    import javax.naming.InitialContext;
    import javax.rmi.PortableRemoteObject;
    import javax.naming.*;
    public class CartClient {
    public static void main(String[] args) {
    try {
    Context initial = getInitialContext() ;
    // Object objref = initial.lookup("java:comp/env/ejb/SimpleCart");
    Object objref = initial.lookup("Cart");
    CartHome home =
    (CartHome)PortableRemoteObject.narrow(objref,
    CartHome.class);
    Cart shoppingCart = home.create("Duke DeEarl","123");
    shoppingCart.addBook("The Martian Chronicles");
    shoppingCart.addBook("2001 A Space Odyssey");
    shoppingCart.addBook("The Left Hand of Darkness");
    Vector bookList = new Vector();
    bookList = shoppingCart.getContents();
    Enumeration enumer = bookList.elements();
    while (enumer.hasMoreElements()) {
    String title = (String) enumer.nextElement();
    System.out.println(title);
    shoppingCart.removeBook("Alice in Wonderland");
    shoppingCart.remove();
    System.exit(0);
    } catch (BookException ex) {
    System.err.println("Caught a BookException: " + ex.getMessage());
    System.exit(0);
    } catch (Exception ex) {
    System.err.println("Caught an unexpected exception!");
    ex.printStackTrace();
    System.exit(1);
    private static Context getInitialContext() throws NamingException {
    Hashtable env = new Hashtable();
    env.put(Context.INITIAL_CONTEXT_FACTORY, "com.evermind.server.rmi.RMIInitialContextFactory");
    env.put(Context.SECURITY_PRINCIPAL, "admin");
    env.put(Context.SECURITY_CREDENTIALS, "admin");
    env.put(Context.PROVIDER_URL, "ormi://localhost:23791CartApp");
    return new InitialContext(env);
    } javax.naming.NameNotFoundException: Cart not found
         java.lang.Object com.evermind.server.rmi.RMIContext.lookup(java.lang.String)
              RMIContext.java:130
         java.lang.Object javax.naming.InitialContext.lookup(java.lang.String)
              InitialContext.java:350
         void CartClient.main(java.lang.String[])
              CartClient.ja
    exception

    Please post your question in jdeveloper forum at
    JDeveloper and ADF
    for quick response.
    Regards,
    Anupama
    http://otn.oracle.com/sample_code/content.html

  • FlexBuilder 3 = MXMLC and ANT?

    Hi all-
    Admittedly I'm a flash / flex newbie, I have kindof a basic
    question... Flex Builder 3 has the .project and
    .actionScriptProperties files. I'm aware that MXMLC has a
    "--load-config" option. What is the best way to unify those two
    things? I've been trying for a week to get this stuff working using
    basic MXMLC stuff and I've got some things but I don't think it's
    the same thing that running a build in FlexBuilder does.
    The command I'm running is:
    mxmlc +FOO=something +BAR=something
    --load-config=./test-flex-config.xml MyFile.as -output MyOutput.swf
    ...so I think I've gotten far, but I don't understand why I
    can't use "mxmlc
    --load-actionScriptProperties=./.actionScriptProperties" ??? Aren't
    they all made by Adobe?
    --Robert

    No not really (thanks anyway). The link shows basically the same as my input except for the better formatting of the output.
    Both my and the example given both uses the Ant <exec> tag which start ojaudit from the command line. The problems still exist because I would like Ant to know if something was reported and the stop the Ant build process. A kind of "failOnValidationError".
    PMD has this (example below shows and Ant tag called pmd which is part of the PMD system.
    <pmd printToConsole="yes" failOnRuleViolation="on">
    Can ojaudit also do something like this? Or is there a way Ant can "scan" the result from the audit process and take the appropriate action?

Maybe you are looking for

  • Tracing error log in Application Server for report service

    Hi guys, My company use Oracle Application Server with the Form version 10.1.2.0.2. Recently we experienced an error whereby the report services go down so frequent within a day. I checked into the alert log file of the Database and found out ORA-006

  • Setting the focus in HTREE

    Hi guys! I have created the tree in the form 6i. it is populated with the employee names. Then attached a horizontal toolbar canvas with the main form and the horizontal tool bar canvas contain a text item and a search button. When I find the name of

  • Unable to see photographs wihin the Photos pane in iMovie HD

    Hello, I've recently upgraded my G4 17-inch Powerbook from i-life4 to i-life5. I'm currently have OS X 10.3.9 The problem I have is that I can't see any photographs in the iMovie Photos pane (v5.0.2). There is a message in the pane saying "Launch iPh

  • Split a pdf based on text?

    Hello, We'd like to split a large pdf (1200+ pages) into multiple files. We have Acrobat X Pro and in this instance, have thousands of records in the initial pdf with each record ending in 'End of Record'. 1.) Can we split the initial pdf into multip

  • Premiere Pro Installation Failures

    I've been trying to get Premiere pro Trial version to install without success. The Update process fails every time. MacBook Pro, Yosemite. Any ideas out there?