BUG? Ant target with import in JDev 10g EA1

Hi!
It seems that the integrated Ant support can't work with the <import> Tag.
According to the ant spec, the imported file must be a complete build file.
When I use the <import> the "Run Ant Target" will show only the targets defined
in the imported file, but not the ones defined in the "main" build file.
Roman

I created two Ant files:
<!-- This is file build.xml -->
<project default="init-in-build">
  <target name="init-in-build">
    <tstamp/>
  </target>
</project>and
<!-- This is file "build1.xml" -->
<project default="init-in-build1" >
  <import file="build.xml"/>
  <target name="init-in-build1">
    <tstamp/>
  </target>
</project>When I right-mouse on build1.xml I see both "init-in-build1" and "init-in-build" in the context menu.
What are you doing differently?

Similar Messages

  • Param binding with Struts and JDev 10G

    This comes from a post in UIX forum. I transcribe the complete text. Can someone help me? Thanks in advance.
    Params in queries with Jdev 10g Sep 22, 2003 11:50 PM
    Reply
    I had a working UIX App and used the null event to setting parameters for my query but using 10g doesn't work. I tried setWhereClause in my application module class, calling it from the data action, but i get an error (index out of bounds). If I try "setWhereClause", it works fine but it's veeeeery slow (I think the query first fechs all rows). I need something that before getting rows, initialize the query (my view object is defined with an empty where clause, because the queries will be defined in runtime via a Emp_ID). Of course, there is and index on emp_id. Help me, please...
    Re: Params in queries with Jdev 10g ( In Reply To : Params in queries with Jdev 10g ) Sep 24, 2003 12:37 AM
    Reply
    Hi, this is my code using BC4J and the null event in the uix page. This worked fin with Jdev 9.0.3.
    public static EventResult EstableceParametros(BajaContext bc,
    Page page, PageEvent event)
    String exp;
    DatosUsuario dat = DatosUsuario.getDatosUsuario(bc);
    exp=dat.sId_Expediente;
    ApplicationModule am=ServletBindingUtils.getApplicationModule(bc);
    ViewObject vo=ServletBindingUtils.getViewObject(bc);
    vo.setWhereClauseParam(0,exp);
    return new EventResult(page);
    Now, I have removed the where clause from the viewobject and using dataAction I do this:
    protected void initializeRequestParameters(DataActionContext actionContext)
    // TODO: Override this oracle.adf.controller.struts.actions.DataAction method
    super.initializeRequestParameters(actionContext);
    HttpServletRequest req=actionContext.getHttpServletRequest();
    String evento=req.getParameter("event");
    DatosUsuario dat = DatosUsuario.getDatosUsuario(req);
    String exp=dat.sId_Expediente;
    BindingContext bc=actionContext.getBindingContext();
    DCDataControl dc= bc.getContext(req).getDefaultDataControl();
    Object misdatos=dc.getDataProvider();
    Elendil am=(Elendil)misdatos;
    am.ParamAnotacionExp(exp);
    In my application module class:
    public void ParamAnotacionExp(String idexpediente)
    AnotacionExpViewImpl vo=getAnotacionExpView1();
    * if (idexpediente.equals(""))
    vo.setWhereClause("centro = centro and id_expediente like " + "'%'");
    else
    vo.setWhereClause("centro = centro and id_expediente = " + idexpediente);
    vo.executeQuery();
    //(1) vo.setWhereClauseParam(1,idexpediente);
    vo.setWhereClause("id_expediente = " + idexpediente);
    vo.executeQuery();
    If I use I get a null pointer, so I removed the where clause from the view object.
    Than you very much.
    Re: Params in queries with Jdev 10g ( In Reply To : Re: Params in queries with Jdev 10g ) Sep 26, 2003 3:52 PM
    Reply
    Juanma -
    I finally found time to put together a test case, but unfortunately I wasn't able to reproduce the problem. Here is what I tried:
    - In JDev 9.0.3, I created a simple BC4J data model based on the Scott schema - with a single ViewObject for the Emp table.
    - I modified the EmpView query to include the following bind variable in the where clause:
    WHERE Emp.SAL < :1
    - I used the uiXML Browse & Edit Form wizard to create some simple uiXML/BC4J pages.
    - I added the following event handler to View1.uix:
    <event name="null">
    <bc4j:findRootAppModule name="EmpView1AppModule">
    <bc4j:findViewObject name="EmpView1">
    <method class="events.TestEvents" method="doNull"/>
    </bc4j:findViewObject>
    </bc4j:findRootAppModule>
    </event>
    TestEvents.doNull() looks like this:
    public static EventResult doNull(
    BajaContext context,
    Page page,
    PageEvent event)
    ViewObject vo = ServletBindingUtils.getViewObject(context);
    vo.setWhereClauseParam(0, "5000");
    return new EventResult(page);
    - When I run View1.uix in the embedded OC4J server, I can see that the EmpView VO is restricted based on the criteria specified in the call to ViewObject.setWhereClauseParam() in my null event handler. Only employees with salaries less than 5000 are displayed.
    - Next, I made a copy of my entire workspace and copied it into my jdev10g/jdev/mywork directory.
    - I then imported the workspace into 10g, allowing the UIX files to be converted to EL, and also allowing the BC4J model definition to be updated.
    - Finally, I try running again in 10g - everything works as expected.
    So, the good news is that this stuff should still work in 10g. The bad news is that it is going to take some more work for us to nail down exactly why this isn't working for your application. The best place to start would probably be for us to take a look at the null pointer exception that you are seeing - so please post the stack trace when you can.
    Thanks,
    Andy
    Re: Params in queries with Jdev 10g ( In Reply To : Params in queries with Jdev 10g ) Sep 28, 2003 11:05 PM
    Reply
    Andy, excuse me for the repost.
    If I try the way you explain, it worked fine, but the problem is that I'm also convertint to struts. In the data action, I have overriden this:
    protected void initializeRequestParameters(DataActionContext actionContext)
    There I try to set the params:
    // TODO: Override this oracle.adf.controller.struts.actions.DataAction method
    //super.initializeRequestParameters(actionContext);
    HttpServletRequest
    // If I uncomment the line super..., the result is the same.
    req=actionContext.getHttpServletRequest();
    String evento=req.getParameter("event");
    DatosUsuario dat = DatosUsuario.getDatosUsuario(req);
    String exp=dat.sId_Expediente;
    BindingContext bc=actionContext.getBindingContext();
    DCDataControl dc= bc.getContext(req).getDefaultDataControl();
    Object misdatos=dc.getDataProvider();
    Elendil am=(Elendil)misdatos;
    am.ParamAnotacionExp(exp);
    In my viewobject, I have this where clause:
    anotacionexp.id_expediente = :1
    Then, in my ApplicationModule class:
    public void ParamAnotacionExp(String idexpediente)
    AnotacionExpViewImpl vo=getAnotacionExpView1();
    vo.setWhereClauseParam(1,idexpediente);
    //vo.setWhereClauseParam(0,idexpediente); With 0, the result is the same.
    vo.executeQuery();
    And when I run, I get this:
    oracle.jbo.JboException: JBO-29000: Unexpected exception caught: java.lang.ArrayIndexOutOfBoundsException, msg=0
    at oracle.jbo.JboException.<init>(JboException.java:343)
    at oracle.jbo.server.remote.AbstractRemoteApplicationModuleImpl.dispatchMethod(Abs tractRemoteApplicationModuleImpl.java:4658)
    at oracle.jbo.server.remote.AbstractRemoteApplicationModuleImpl.executeMethod(Abst ractRemoteApplicationModuleImpl.java:4854)
    at oracle.jbo.server.remote.AbstractRemoteApplicationModuleImpl.processSvcMsgReque st(AbstractRemoteApplicationModuleImpl.java:3449)
    at oracle.jbo.server.remote.AbstractRemoteApplicationModuleImpl.processSvcMsgEntri es(AbstractRemoteApplicationModuleImpl.java:3630)
    at oracle.jbo.server.remote.AbstractRemoteApplicationModuleImpl.readServiceMessage (AbstractRemoteApplicationModuleImpl.java:2975)
    at oracle.jbo.server.remote.AbstractRemoteApplicationModuleImpl.processMessage(Abs tractRemoteApplicationModuleImpl.java:1639)
    at oracle.jbo.server.ApplicationModuleImpl.doMessage(ApplicationModuleImpl.java:59 86)
    at oracle.jbo.server.remote.AbstractRemoteApplicationModuleImpl.sync(AbstractRemot eApplicationModuleImpl.java:1608)
    at oracle.jbo.server.remote.colo.ServerApplicationModuleImpl.doMessage(ServerAppli cationModuleImpl.java:245)
    at oracle.jbo.common.colo.ColoApplicationModuleImpl.doMessage(ColoApplicationModul eImpl.java:102)
    at oracle.jbo.client.remote.ApplicationModuleImpl.doMessage(ApplicationModuleImpl. java:5233)
    at oracle.jbo.client.remote.PooledRequestHandler.doMessage(PooledRequestHandler.ja va:70)
    at oracle.jbo.client.remote.ApplicationModuleImpl.doMessage(ApplicationModuleImpl. java:5233)
    at oracle.jbo.client.remote.ApplicationModuleImpl.sendServiceMessage(ApplicationMo duleImpl.java:998)
    at oracle.jbo.client.remote.ApplicationModuleImpl.sendServiceMessage(ApplicationMo duleImpl.java:1012)
    at oracle.jbo.client.remote.ApplicationModuleImpl.sendWorkingSetRequests(Applicati onModuleImpl.java:3049)
    at oracle.jbo.client.remote.ApplicationModuleImpl.sendRequest(ApplicationModuleImp l.java:1041)
    at oracle.jbo.client.remote.ApplicationModuleImpl.riInvokeExportedMethod(Applicati onModuleImpl.java:5255)
    at galadriel.client.ElendilClient.ParamAnotacionExp(ElendilClient.java:21)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.ja va:25)
    at java.lang.reflect.Method.invoke(Method.java)
    at oracle.jbo.common.ws.WSProxy.invokeMethod(WSProxy.java:120)
    at oracle.jbo.common.ws.WSProxy.invoke(WSProxy.java:90)
    at $Proxy3.ParamAnotacionExp(Unknown Source)
    at controller.AnotacionesDataAction.initializeRequestParameters(AnotacionesDataAct ion.java:63)
    at oracle.adf.controller.struts.actions.DataAction.executeImpl(DataAction.java:104 )
    at oracle.adf.controller.struts.actions.DataAction.execute(DataAction.java:69)
    at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor .java:484)
    at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:274)
    at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1485)
    at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:509)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.0.0)].server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java: 65)
    at oracle.security.jazn.oc4j.JAZNFilter.doFilter(JAZNFilter.java:356)
    at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.0.0)].server.http.EvermindFilterChain.doFilter(EvermindFilterChain.java: 16)
    at oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:148)
    at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.0.0)].server.http.EvermindFilterChain.doFilter(EvermindFilterChain.java: 20)
    at oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:148)
    at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.0.0)].server.http.ServletRequestDispatcher.invoke(ServletRequestDispatch er.java:610)
    at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.0.0)].server.http.ServletRequestDispatcher.forwardInternal(ServletReques tDispatcher.java:317)
    at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.0.0)].server.http.HttpRequestHandler.processRequest(HttpRequestHandler.j ava:784)
    at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.0.0)].server.http.HttpRequestHandler.run(HttpRequestHandler.java:270)
    at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.0.0)].server.http.HttpRequestHandler.run(HttpRequestHandler.java:112)
    at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.0.0)].util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResou rcePooledExecutor.java:186)
    at java.lang.Thread.run(Thread.java:536)
    ## Detail 0 ##
    java.lang.ArrayIndexOutOfBoundsException: 0
    at oracle.jdbc.dbaccess.DBDataSetImpl._getDBItem(DBDataSetImpl.java:323)
    at oracle.jdbc.dbaccess.DBDataSetImpl._createOrGetDBItem(DBDataSetImpl.java:566)
    at oracle.jdbc.dbaccess.DBDataSetImpl.setNullBindItem(DBDataSetImpl.java:1878)
    at oracle.jdbc.driver.OraclePreparedStatement.setNull(OraclePreparedStatement.java :1190)
    at oracle.jbo.server.ViewRowSetImpl.bindParameters(ViewRowSetImpl.java:1436)
    at oracle.jbo.server.QueryCollection.executeQuery(QueryCollection.java:576)
    at oracle.jbo.server.ViewObjectImpl.executeQueryForCollection(ViewObjectImpl.java: 2946)
    at oracle.jbo.server.ViewRowSetImpl.execute(ViewRowSetImpl.java:553)
    at oracle.jbo.server.ViewRowSetImpl.executeQueryForMasters(ViewRowSetImpl.java:612 )
    at oracle.jbo.server.ViewRowSetImpl.executeQuery(ViewRowSetImpl.java:594)
    at oracle.jbo.server.ViewObjectImpl.executeQuery(ViewObjectImpl.java:2890)
    at galadriel.ElendilImpl.ParamAnotacionExp(ElendilImpl.java:111)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.ja va:25)
    at java.lang.reflect.Method.invoke(Method.java)
    at oracle.jbo.server.remote.AbstractRemoteApplicationModuleImpl.dispatchMethod(Abs tractRemoteApplicationModuleImpl.java:4636)
    at oracle.jbo.server.remote.AbstractRemoteApplicationModuleImpl.executeMethod(Abst ractRemoteApplicationModuleImpl.java:4854)
    at oracle.jbo.server.remote.AbstractRemoteApplicationModuleImpl.processSvcMsgReque st(AbstractRemoteApplicationModuleImpl.java:3449)
    at oracle.jbo.server.remote.AbstractRemoteApplicationModuleImpl.processSvcMsgEntri es(AbstractRemoteApplicationModuleImpl.java:3630)
    at oracle.jbo.server.remote.AbstractRemoteApplicationModuleImpl.readServiceMessage (AbstractRemoteApplicationModuleImpl.java:2975)
    at oracle.jbo.server.remote.AbstractRemoteApplicationModuleImpl.processMessage(Abs tractRemoteApplicationModuleImpl.java:1639)
    at oracle.jbo.server.ApplicationModuleImpl.doMessage(ApplicationModuleImpl.java:59 86)
    at oracle.jbo.server.remote.AbstractRemoteApplicationModuleImpl.sync(AbstractRemot eApplicationModuleImpl.java:1608)
    at oracle.jbo.server.remote.colo.ServerApplicationModuleImpl.doMessage(ServerAppli cationModuleImpl.java:245)
    at oracle.jbo.common.colo.ColoApplicationModuleImpl.doMessage(ColoApplicationModul eImpl.java:102)
    at oracle.jbo.client.remote.ApplicationModuleImpl.doMessage(ApplicationModuleImpl. java:5233)
    at oracle.jbo.client.remote.PooledRequestHandler.doMessage(PooledRequestHandler.ja va:70)
    at oracle.jbo.client.remote.ApplicationModuleImpl.doMessage(ApplicationModuleImpl. java:5233)
    at oracle.jbo.client.remote.ApplicationModuleImpl.sendServiceMessage(ApplicationMo duleImpl.java:998)
    at oracle.jbo.client.remote.ApplicationModuleImpl.sendServiceMessage(ApplicationMo duleImpl.java:1012)
    at oracle.jbo.client.remote.ApplicationModuleImpl.sendWorkingSetRequests(Applicati onModuleImpl.java:3049)
    at oracle.jbo.client.remote.ApplicationModuleImpl.sendRequest(ApplicationModuleImp l.java:1041)
    at oracle.jbo.client.remote.ApplicationModuleImpl.riInvokeExportedMethod(Applicati onModuleImpl.java:5255)
    at galadriel.client.ElendilClient.ParamAnotacionExp(ElendilClient.java:21)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.ja va:25)
    at java.lang.reflect.Method.invoke(Method.java)
    at oracle.jbo.common.ws.WSProxy.invokeMethod(WSProxy.java:120)
    at oracle.jbo.common.ws.WSProxy.invoke(WSProxy.java:90)
    at $Proxy3.ParamAnotacionExp(Unknown Source)
    at controller.AnotacionesDataAction.initializeRequestParameters(AnotacionesDataAct ion.java:63)
    at oracle.adf.controller.struts.actions.DataAction.executeImpl(DataAction.java:104 )
    at oracle.adf.controller.struts.actions.DataAction.execute(DataAction.java:69)
    at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor .java:484)
    at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:274)
    at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1485)
    at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:509)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.0.0)].server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java: 65)
    at oracle.security.jazn.oc4j.JAZNFilter.doFilter(JAZNFilter.java:356)
    at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.0.0)].server.http.EvermindFilterChain.doFilter(EvermindFilterChain.java: 16)
    at oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:148)
    at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.0.0)].server.http.EvermindFilterChain.doFilter(EvermindFilterChain.java: 20)
    at oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:148)
    at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.0.0)].server.http.ServletRequestDispatcher.invoke(ServletRequestDispatch er.java:610)
    at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.0.0)].server.http.ServletRequestDispatcher.forwardInternal(ServletReques tDispatcher.java:317)
    at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.0.0)].server.http.HttpRequestHandler.processRequest(HttpRequestHandler.j ava:784)
    at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.0.0)].server.http.HttpRequestHandler.run(HttpRequestHandler.java:270)
    at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.0.0)].server.http.HttpRequestHandler.run(HttpRequestHandler.java:112)
    at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.0.0)].util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResou rcePooledExecutor.java:186)
    at java.lang.Thread.run(Thread.java:536)
    I'm sure I'm doing somthing wrong, but don't know what. Thank you for your help.
    Re: Params in queries with Jdev 10g ( In Reply To : Re: Params in queries with Jdev 10g ) Sep 29, 2003 5:24 PM
    Reply
    Juanma -
    Not sure what would cause this JboException... Could you try posting to the JDev forum - I'm guessing the BC4J folks might be more familiar with this error...
    Andy

    Check out:
    Setting the view's where clause at runtime

  • Extremely nasty Image Capture bug deletes video with import to Aperture

    Image Capture allows one to specify Aperture as a target.
    Nice feature, but Aperture can't handle video.
    So what happens when the images you choose to import contain a video, and you've set IC to delete after import?
    The videos are deleted, but not imported. If you were to import directly to Aperture they would be saved to the desktop by Aperture, but with this route they are deleted.
    Lethal bug.

    Terence Devlin wrote:
    The moral of the story:
    Never let your computer delete data before you know that the transfer has worked. Ever.
    Don't let Image Capture, Aperture (oh, and btw, Aperture 3 does support video) or iPhoto delete pics. Ever.
    After you have transferred the material to your Mac you can simply reformat the card with your camera - once you've verified the transfer. Reformatting the card with your camera is much faster - takes seconds - and has the added advantage of refreshing the directory structure on the card and so helping to avoid problems in the future.
    And finally, given that both iPhoto and Aperture can import directly from your camera, why are you using Image Capture?
    Regards
    TD
    After losing some images on my first attempts with iPhoto I quit using it. The whole program made no sense to me. I've been transferring images to the desktop with Image Capture, editing with Gimp, and storing in an image folder. I was hoping to give iPhoto another try and lost a couple of images... now trying to figure out where these things go. I'll try to import directly from the camera now that you've made me aware of the possibility. Any idea about this cache in the meantime? Maybe I'll find all the images I lost.

  • How to call imported ant target/task in Java

    Hi,
    Can anybody advice me how to call an ant target/task, which is
    "<import/>"ed from another build file, from within Java code?
    Here's my Java code:
    import org.apache.tools.ant.*;
    import java.io.*;
    import java.util.*;
    public class MyTest
    private Project project;
    public void init(String buildFile, String baseDir) throws
    Exception
    project = new Project();
    try { project.init(); }
    catch (BuildException e)
    { throw new Exception("The default task list could not be
    loaded."
    // Set the base directory. If none is given, "." is used.
    if (_baseDir == null) _baseDir=new String(".");
    try { project.setBasedir(_baseDir); }
    catch (BuildException e)
    { throw new Exception("The given basedir doesn't exist, or
    isn't a directory."); }
    if (_buildFile == null) _buildFile=new String("a.xml");
    try { ProjectHelper.getProjectHelper().parse(project, new
    File(_buildFile)); }
    catch (BuildException e)
    { throw new Exception("Configuration file "+_buildFile+" is
    invalid, or cannot be read."); }
    public void runTarget(String _target) throws Exception
    // Test if the project exists
    if (project == null) throw new Exception("No target can be
    launched because the project has not been initialized. Please call the
    'init' method first !");
    // If no target is specified, run the default one.
    if (_target == null) _target = project.getDefaultTarget();
    // Run the target
    try { project.executeTarget(_target); }
    catch (Exception e)
    { throw new Exception(e.getMessage()); }
    public static void main(String args[])
    try{
    MyTest mytest=new MyTest();
    mytest.init("c.xml",".");
    mytest.runTarget(null);
    }catch(Exception e)
    e.printStackTrace();
    Here are my build files: (they look almost the same. But it's only to see if <import> works.)
    1.c.xml:
    <project basedir="." default="runtests" name="TestC">
    <import file="a.xml"/>
    </project>
    2. a.xml:
    <project basedir="." default="runtests" name="TestA">
    <target name="runtests" depends="">
    <mkdir dir="ttt"/>
    </target>
    </project>
    If I directly set build file "a.xml" in MyTest.java, everthing works
    well. However, if set "c.xml" then do task "<mkdir dir="ttt"/>" defined
    in "a.xml" which was imported by "c.xml", when running, I got an
    exception. Looks like it can't parse my c.xml which include "import".
    BTW, I'm using ant 1.6.2, and running "ant -f c.xml" was ok.
    Did I miss any classpath or something? Any idea?
    Thanks,
    Amy

    I have a standard Ant build script for signing a jar file. I import it into my master Ant build files with
    <import file="Sign.xml"/>
    and then in my master Ant script I setup the name of the jar file e.g.
    <property name="jar-file" value="${fun}/FunApplet.jar"/>
    and then invoke a target
    <target name="sign-jar" depends="jar, sign">
    </target>
    Since this target (sign-jar) depends on target 'jar' and target 'sign' it executes the 'jar' target and then the 'sign' target that is contained in Sign.xml.

  • JDev 10.1.3.3 - issues with imported Business Components

    Hi,
    I have got some issues with importing Business Components in JDev 10.1.3.3.
    I cannot discover/use the imported components.
    What I did is the folowing:
    1. In a existing project I extended the default base-classes to create our own layer
    2. created a project called ModelShared
    2a. configured the project to use the base-classes I created in step 1
    2b. created an entitybased-viewobject (RefCodesByDomain)
    2c. created bc deployment-descriptors
    3. created a project called RelatieModel in the same workspace as ModelShared
    3a. added dependencies to the deployment-descriptors as well as the project created in step 2
    3b. configured the project to use the base-classes I created in step 1
    3c. imported business components
    Although I did not recieve any errors during the import of business components, I am unable to add the vo (RefCodesByDomain) to a service.
    I do see the package which contains the vo but is has no entries.
    Importing the business components to a new BC Project in a seperate workspace did succeed (I could reuse the vo).
    I tested a little further and the folowing occurred:
    4. I created a new vo in the ModelShared Project
    5. I deployed the ModelShared
    6. Restarted JDeveloper
    7. Got the folowing error message in the console window when expanding a service in my datacontrol pallette:
    INFO: oracle.adf.share.config.ADFConfigFactory No META-INF/adf-config.xml found
    1-sep-2008 13:23:27 oracle.adf.dt.controls.DataControlsTreeWillExpandListener treeWillExpand
    FINER: THROW
    java.lang.NullPointerException
            at oracle.adf.dt.objects.JUDTViewReferenceAccessorDefinition.init(JUDTViewReferenceAccessorDefinition.java:108)
            at oracle.adf.dt.objects.JUDTViewReferenceAccessorDefinition.<init>(JUDTViewReferenceAccessorDefinition.java:98)
            at oracle.adfdt.internal.meta.bc4j.BC4JDataControlDefinition.createViewObjectDefinition(BC4JDataControlDefinition.java:228)
            at oracle.adfdt.internal.meta.bc4j.BC4JDataControlDefinition.addViewObjects(BC4JDataControlDefinition.java:208)
            at oracle.adfdt.internal.meta.bc4j.BC4JDataControlDefinition.loadStructure(BC4JDataControlDefinition.java:110)
            at oracle.adfdt.internal.meta.bc4j.BC4JDataControlDefinition.getStructure(BC4JDataControlDefinition.java:407)
            at oracle.adf.dt.controls.treemodel.jsr227.JSR227DataControlTreeNode.loadChildNodes(JSR227DataControlTreeNode.java:129)
    8. In my other "fresh" bc project I was able to use the newly created vo.
    9. When I added a VO to my shared project, all projects that are refering to the shared project loose their vo's in the data-controlpannel
    Do you have any suggestions?
    Regards,
    Romano

    Hi,
    since this appears to be a WebCenter related issue, I suggest to try the Webcenter forum WebCenter Portal or to log a bug
    Frank

  • The ANT comes with JDev 9.0.4 - is that for development build?

    The ANT comes with JDev, is it the latest version? Do I need to download latest and from somewhere and how do I integrate ANT with JDeveloper? Would it be just for the development build? If I integrate ANT with JDev, that wouldn't bge for release or production build - would it? In that case, I need to install ANT externally!

    Apache has released several versions of Ant since JDeveloper 9.0.4 was released. I believe the version of Ant that shipped with JDeveloper 9.0.4 was Ant 1.5.1 (you can always verify the Ant version by using the echo task to print out the "${ant.version}" property).
    If you want to upgrade to the lastest version (currently, Ant 1.6.1), see the thread "New ant version" in this forum. We will also be shipping the latest release of Ant with future releases of JDeveloper.
    I'm not exactly sure what you mean about the Ant integration being for the development build versus release build. You can choose to configure Ant to be the default build mechanism for your JDeveloper project, in which case it will be used for all builds. Or you can simply open your buildfile in the project, and right click on it to run specific targets. In the latter case, the Ant integration would only be for specific builds.
    Hope that answers your questions.
    -Matt Hawkins
    JDeveloper Team

  • Bug: Jdev 10g - templateDefinition won't allow expressionLanguage setting

    I've been migrating a set of pages from Jdev 10g Preview to Jdev 10g Production. I've got a UIX template (.uit) file with a templateDefinition like this:
    <templateDefinition xmlns="http://xmlns.oracle.com/uix/ui"
    xmlns:ui="http://xmlns.oracle.com/uix/ui"
    xmlns:data="http://xmlns.oracle.com/uix/ui"
    targetNamespace="http://www.paslists.com/pas/templates"
    localName="pasPageLayout"
    expressionLanguage="el">
    I get the following in the structure window:
    Errors(1)
    --- Attribute expressionLanguage not defined on element templateDefinition
    Can anyone help with this?

    I've managed to fix this myself, after reading about all the migration issues. It seems that the migration process copied some settings that caused Jdev 10g Production to map to some of the prior Jdev XML schemas and/or libraries. The solution was:
    1) Make sure Jdev is closed.
    2) Rename the <jdev_home>\jdev\system9.0.5.1.1605 to something else (just in case).
    3) Open JDev. Say no to any Migration questions.
    4) Open your workspaces (jws files) using the File->Open dialog
    I'm assuming, of course, that these projects are already JDev 10g Production projects. If they are not, then I think the procedure would be:
    1) Install Jdev 10g Production
    2) Run Jdev 10g Production. Say Yes and migrate settings and projects.
    3) Follow the steps above to fix the migrated settings.
    This should get your projects migrated to the new formats without contaminating them with old libraries/schemas.
    I'll repost if I find something that breaks due to this procedure. I do know that it resolved my error messages.

  • How to create the BC4J Package in JDev 10g (with OAF)?

    Hi everbody.
    in JDeveloper 10.1.3.1.0
    How to create the BC4J Package for Client Object or Server Object?
    In JDeveloper 9i Ext,
    1. select the Project in Navigator
    2. right-click and select "New Business Components Package... " from the context menu
    3. "Business Component Package Wizard" page appears.
    In JDeveloper 10, I cannot find "New Business Components Package..." from the context menu on the Project.

    Do you have the OA extension installed ?
    If not then please follow the thread Oracle JDev 10g with OAExt for Release 12 now on Metalink
    for more information in this regard.
    --Saroj                                                                                                                                                                                                                                                                                                                                                                                                                   

  • Compile error with Jdev 10g Preview

    I am trying out Jdev 10g with JHeadstart. I followed the instruction on the Oracle JHeadstart 10g and Oracle JDeveloper 10g preview document, and then used the isnstructions on the NewJhsProjectInstructions.html document.
    The first time I tried to compile the project, I got a whole list of errors which looked like;
    /usr/oracle/jhs904/jheadstart/src/jhsruntime_source.zip!/oracle/jheadstart/model/bc4j/JhsApplicationModuleImpl.java
    Error(143,31): cannot access class oracle.cle.persistence.HandlerNotFoundException; file oracle/cle/persistence/HandlerNotFoundException.class not
    This was due to Jdeveloper trying to compile jhsruntime_source.zip. I removed this from the java source path and added jhsruntime.jar.
    I am now getting thisError(22,53): cannot access class oracle.jheadstart.model.bc4j.handler.DataObjectHandlerImpl; file oracle/jheadstart/model/bc4j/handler/DataObjectHandlerImpl.class not found error;
    I have checked, and cinfirmed that the class file oracle/jheadstart/model/bc4j/handler/DataObjectHandlerImpl.class is in jhsruntime.jar.
    The Java Source path in Jdeveloper is ;
    /home/chandana/jdevhome/mywork/JHS/src;/usr/oracle/jhs904/jheadstart/lib/jhsruntime.jar.
    Can some one tell me what is wrong ?

    Hi Chandana,
    You should not put jhsruntime.jar in the Java Source Path. It should be in the Additional Classpath.
    The Java Source Path (Project Settings - Common - Input Paths) should only contain /home/chandana/jdevhome/mywork/JHS/src .
    If you created the library JhsLibs the way it was described in the JDev 10g document, your project should now compile correctly. The JhsLibs library ensures that your project can compile against jhsruntime.jar (amongst others).
    Hope this helps,
    Sandra Muller
    JHeadstart Team

  • JDev 10g r3: Problems with migrationg

    Hi, All!
    There is a situation: i have a project made in JDev 10g R2. By unknown the project file (jpr) cannot be converted to new project format. Because i need to create new project and add all files (web.xml, faces-config.xml, JSPs, .java) to new empty project. But when i select in project properties directories where my files take place, IDE coolects all of them in one category and skip xml files. How should i correct recreate my web-project?
    Thanks.

    It's not actually good suggestion, I think you can create new project, and then create the new file with the same name with the old one and copy the old and paste it to the new one. It will take time a little bit longer but I'm sure it will work.
    good luck
    fox

  • Jdev 10g with 9iAS

    I have seen that others have ask about a whitepaper in metalink on hoe to get a project developed in JDev 10g to work with 9iAS(9.0.2). But i can not find any answers!!!
    Can anyone direct me to the link? Or does anyone know the list of Libraries need to install to get this to work.
    Does it work at all???
    /Jens

    Hello
    Did you found the paper? Can you please provide the link?
    Thanks
    Chrigel

  • Oracle JDev 10g with OAExt for Release 12 now on Metalink

    The much awaited Oracle Jdev 10g with OAExt for Release 12 is now available on metalink through patch 5856648. Note : This jdev build will only work with the Oracle Apps Release 12 env and should not be used against a 11.5.10 env.

    New features in reference of OAF also given in "Apps Technology Family RCD" (Note:404152.1)
    Thanks, Avaneesh

  • JSP 2.0 with JDev 10g (9.0.5.0.0) preview

    Hi everybody,
    Is it possible to compile JSP 2.0 files with JDev 10g. If so, how ?
    I added a new library named JSP20 Runtime which points to the JSP jars from OC4J 10G (10.0.3). I added this library to my project in replacement of the default JSP Runtime library. It seems that something else must also be done to compile my JSP.
    Got any idea ?
    After this, to run my JSP, I must also figure how I can bypass the default embedded OC4J and use the preview version of OC4J 10.0.3. Will it be mandatory to deploy my project to the standalone OC4J ?
    Thank you

    tagdir is not a taglib attribute. Replace the tagdir attribute with the uri that points to the file something like this:
    <%@ taglib prefix="tags" uri="uri-where-file-is"/>
    Richard

  • Jdev 10g: property inspector bug

    jdev 10g and ADF FACES EA15.
    The property inspector is not showing the value of "valuePassThru" on af:selectOneRadio controls.

    Hi Larry,
    Thanks a lot for bringing to our notice. I will test it and report it to appropriate team, so that it gets fixed.
    Regards,
    Vijay Venkataraman

  • Error Call Web Service Deployed to OC4J 10g with JDev 10g

    I deployed a PL/SQL Package as a Web Service to a Stand Alone 10g OC4J instance. When I invoke the Web Service the text I am returned is this:
    <?xml version='1.0' encoding='UTF-8'?>
    <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
    <SOAP-ENV:Body>
    <SOAP-ENV:Fault>
    <faultcode>SOAP-ENV:Server.Exception:</faultcode>
    <faultstring>java.rmi.RemoteException: null; nested exception is:
         java.lang.NullPointerException</faultstring>
    <faultactor>/webservice/Mayoclinic</faultactor>
    </SOAP-ENV:Fault>
    </SOAP-ENV:Body>
    </SOAP-ENV:Envelope>
    I can successfully run the Web Service in the OC4J instance in JDev 10g.
    Any ideas. I recieve know errors in JDev 10g Deploying the application.

    Last line should be ...
    Any ideas. I recieve NO errors in JDev 10g Deploying the application.

Maybe you are looking for

  • Valores de PIS e Cofins calculados no Faturamento que não vão para a J1B3n

    Olá pessoal, Gostaria de pedir uma ajuda a vocês. Estou em um cliente que está com o cálculo correto dos valores de PIS e Cofins no faturamento (VF03), porém estes valores não vão para a J1B3n nas Notas Fiscais de saída (venda), no entanto, os valore

  • Text value is not displaying in filters area

    Hello I would like to display by Text instead of Key in filter Area. For that i have changed Display As a Test  Even if i change  the type of  Display Text on of this filter, still i showing Key Value. If the characteristics move  in Free characteris

  • Context menu How to add extra lines in Windows 7

    Windows 7. Just updated from XP.  Only modest technical skills, so I would appreciate simple detailed instructions if anyone is able to help me.

  • Is the battery upto task?

    Hi my sister just recently purchased a Macbook. I like the Macbook but would opt for a Pro becuase of the graphics card. I need a laptop that I can use 9-5 for work and or in other words I use a computer that works 8 hours a day. One thing that alway

  • Can Lightroom3 use the Lightroom 4 RAW file loader?

    For those who can't run Windows 7, who bought a new camera and wrongly assumed that support for that camera wouldn't require an upgrade of LIghtroom AND an upgrade of the operating system (and RAM and graphics card and ...) is there a way to use the