1. Get rid of all advertisements and get unlimited access to documents by upgrading to Premium Membership. Upgrade to Premium Now and also get a Premium Badge!

EJB JSF ADF DatacController - jndi.properties remote server error

Discussion in 'Oracle Forms and Reports' started by Ying, Aug 17, 2009.

  1. Ying

    Ying Active Member

    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    55
    Hi,

    I'm new to EJB and now trying to use JDeveloper to create a simple JSF page. I'm using EJB 3.0 as a business component for a JSF page. ADF data control/binding is used. When I was creating the JSF page and drag the method from the data control, I get below message:

    The “Embedded OC4J Client” has been added to the client project. This library provides a “jndi.properties” file that allows EJBs to be resolved in the embedded OC4J server. To resolve EJBs running in a remote application server, remove this “Embedded OC4J Client” library from the project and add a custom “jndi.properties” file to the client project instead.

    When run the JSF page, it is sucessfully launched the page with result.

    But when I deployed to Remote Server, it encounters error as below:

    javax.faces.el.EvaluationException: oracle.jbo.JboException: JBO-29000: Unexpected exception caught: oracle.jbo.JboException, msg=JBO-29000: Unexpected exception caught: javax.naming.NameNotFoundException, msg=MyName not found
    at com.sun.faces.el.ValueBindingImpl.getValue(ValueBindingImpl.java:190)
    at com.sun.faces.el.ValueBindingImpl.getValue(ValueBindingImpl.java:143)
    at oracle.adfinternal.view.faces.uinode.ValueBindingBoundValue.getValue(ValueBindingBoundValue.java:30)
    at oracle.adfinternal.view.faces.uinode.UIXComponentUINode.getAttributeValueImpl(UIXComponentUINode.java:392)
    at oracle.adfinternal.view.faces.uinode.UIXComponentUINode.getAttributeValue(UIXComponentUINode.java:127)................


    I have no idea how to add a custom “jndi.properties”, please advise.

    Regards,
    Ying
     
  2. imsean

    imsean Active Member

    Messages:
    15
    Likes Received:
    2
    Trophy Points:
    90
    Hello

    I have this step by step tutorial for using EJBs with Oracle ADF. Never had much use of it though :). Unzip the attachment and watch it in a browser or flash player.
     

    Attached Files:

  3. Ying

    Ying Active Member

    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    55
    Hi,

    I have gone through this tutorial before and all the EJB ADF sample applications that I have created had no problem to run in the local "Embedded OC4J Server". It encounter problem when it is deployed to remote server.

    encounters error as below:


    I have no idea how to add a custom “jndi.properties”, please advise.

    Ying