Not able to develop Entity Bean in VAJ using Oracle


EJB programming & troubleshooting: Not able to develop Entity Bean in VAJ using Oracle

  1. Hi,
    I am using VJA 3.0 and Oracle 8.x.I have oracle client and I developed one simple Entity bean using VAJ Follows all steps , created Database schema and Mapping schema able to generate Deployment code and test client.Then I am opening this Entity bean using Group in Server I am phasing problem .When I am trying to start EJB server It's throwing Exception so I am not able to run EJB server rest both(Location and persistent server) Running Fine.So pls tell me what I write in the server settings for running it properly.The Exception is like this in Console.
    "The following beans are deployed in the server:
    000.170 796 ManagedServer E Version : 3.0
    000.172 796 ManagedServer E Edition: Advanced
    000.182 796 ManagedServer E Build date: Sat Sep 25 00:00:00 GMT+05:30 1999
    000.183 796 ManagedServer E Build number: d28_990925d
    031.262 757d DrAdminServer A DrAdmin available on port 4,410
    054.517 796 DBPortability F Unrecognized database: "Oracle8"
     void, java.lang.String, java.lang.Object)
     void, java.lang.String, java.lang.String, java.lang.String),, java.lang.String, java.lang.String, java.lang.ClassLoader, java.lang.String)
     javax.ejb.EJBHome,, java.lang.String, boolean, java.lang.String,, java.lang.String)
     void, boolean)
     void, java.lang.String,
     void, boolean)
     void, java.lang.String,
     void, boolean)
     java.lang.Object java.lang.reflect.Method.invoke(java.lang.Object, java.lang.Object [])
     java.lang.Object, java.lang.String,
     java.lang.Object, java.lang.String,
     void [])
     void []) "
    The settings of three server's Follows,
                    Location Service:
                                        ORB Listener Port:9000.
                    Persistent Server:
                                        DataSource: InstantDB.
                                        LSD Name: Localhost.
                                        LSD Port: 9000.
                    EJB Server:
                        data Source: jdbc:odbc:UE (this UE is DSN name and I tested it working Properly on oracle connection Testing)
                        Connection Type: sun.jdbc.odbc.JdbcOdbcDriver
                        Database user Id: sampath.(Login id and Password of Database)
                        Database PWD : sampath.
                        LSD Name: priceff14 (Name of machine where oracle reside).
                        LSD port : 9000.
    In Persistent Server DataSource and LSD I gave same as in Ejb server but still not working .
    pls reply as soon as possible the solution of this problem.
    if this info is less to understand the problem then feel free to Contact me .
  2. Hi,

    It seems that the server is not able to create persistence pool required for Entity beans, which is the reason for most EJB server (not only WebSphere) to not work.

    Check ur documentation for how to setup EJB Test Environment in VAJ, for version which u r using. Online Help is best place to start with. Use oracle's driver appropriate for the client version that u r using.

    Also, remember to forget ODBC databases, once u enter EJB arena. They are not supported due to many limitations like lack of transaction support, limitation of rowset etc.

  3. Hi ,
    I did the same u suggested,but still phasing problem the same kind ,I uses Kind four Driver for connection .If u did this ever then pls send me back the setting configuration of this persistence and EJB server...........

  4. Are you using Oracle 8i or 8?

    I hope this isn't off base, but this worked for me...

    If 8i:
    1)Get , or and extract to a location on your local drive.

    2)Go to Window > Options > Resource and set Workspace class path to extracted zip file.

    3)Go to Properties for EJB Server
    Data Source: jdbc:oracle:thin:@[ip address]:[db_name]
    Connection Type: oracle.jdbc.driver.OracleDriver

    4)Set rest of fields accordingly (password, id, take defaults for rest.

    5)Start WTE, and start persistent name server. Take defaults.

    6)Open EJB group to server configuration.

    7)Start EJB Server

    8)When console says "open for business", start test client.

    You should be on your way after that.