Auto-creating tables with CMP Explicit Mapping

Hello.
I am trying to migrate a working CMP EJB Jar from Weblogic to OC4J, using the admin.jar deploy utility. I believe my orion-ejb-jar.xml deployment descriptor (shown at the bottom) is set up properly, but OC4J attempts to auto-create tables for my entity beans anyway. (see messages that follow).
Can anybody tell me why it tries to create these tables? Is something missing from my deployment descriptor?
Thanks,
David
Auto-creating table: create table User_passwords_Passwor__fqeml6 (User_SEC_USER.
SEC_USER_ID NUMBER not null, Password_SEC_USER_PASSWORD_ID NUMBER null)
Error creating table: ORA-01748: only simple column names allowed here
Auto-creating table: create table User_userRoles_UserRol__guatbv (User_SEC_USER.
SEC_USER_ID NUMBER not null, UserRole_SEC_USER_ROLE_ID NUMBER null)
Error creating table: ORA-01748: only simple column names allowed here
Auto-creating table: create table Permission_RolePermiss__768cc0 (Permission_SEC
FUNCTIONID NUMBER not null, RolePermission_SEC_ROLE_FUNCTION_ID NUMBER null)
Error creating table: ORA-00972: identifier is too long
Auto-creating table: create table Role_UserRole_role_User_39lzhp (Role_SEC_ROLE.
SEC_ROLE_ID NUMBER not null, UserRole_SEC_USER_ROLE_ID NUMBER null)
Error creating table: ORA-01748: only simple column names allowed here
Auto-creating table: create table Role_rolePermissions_Ro_4ocmz1 (Role_SEC_ROLE.
SEC_ROLE_ID NUMBER not null, RolePermission_SEC_ROLE_FUNCTION_ID NUMBER null)
Error creating table: ORA-01748: only simple column names allowed here
orion-ejb-jar.xml
<?xml version="1.0"?>
<!DOCTYPE orion-ejb-jar PUBLIC "-//Evermind//DTD Enterprise JavaBeans 1.1 runtime//EN" "http://xmlns.oracle.com/ias/dtds/orion-ejb-jar.dtd">
<orion-ejb-jar deployment-version="9.0.3.0.0" deployment-time="e6e55808e4">
<enterprise-beans>
<session-deployment name="SecurityComponent" >
</session-deployment>
<session-deployment name="ServerSecurityContext" >
</session-deployment>
<session-deployment name="SecurityComponentSecurityFilter" >
</session-deployment>
<entity-deployment name="User" table="SEC_USER" data-source="datasource-ecmsOraclePool">
<primkey-mapping>
<cmp-field-mapping name="userId" persistence-name="SEC_USER.SEC_USER_ID" />
</primkey-mapping>
<cmp-field-mapping name="partyId" persistence-name="PARTY_ID" />
<cmp-field-mapping name="officeLocation" persistence-name="OFFICE_LOCATION" />
<cmp-field-mapping name="defaultLocation" persistence-name="DEFAULT_LOCATION" />
<cmp-field-mapping name="districtVvid" persistence-name="DISTRICT_VVID" />
<cmp-field-mapping name="userName" persistence-name="SEC_USER.USER_NAME" />
<cmp-field-mapping name="accountActivationDate" persistence-name="SEC_USER.ACCOUNT_ACTIVATION_DATE" />
<cmp-field-mapping name="defaultBranchVvid" persistence-name="SEC_USER.DEFAULT_BRANCH_VVID" />
<cmp-field-mapping name="unitVvid" persistence-name="UNIT_VVID" />
<cmp-field-mapping name="sectionVvid" persistence-name="SEC_USER.SECTION_VVID" />
<cmp-field-mapping name="lastUpdateTimestamp" persistence-name="AUD_SYSTEM_OBJECT.LAST_UPDATE_DT" />
<cmp-field-mapping name="lastUpdateSystemUserId" persistence-name="AUD_SYSTEM_OBJECT.LAST_UPDATE_SEC_USER_ID" />
<cmp-field-mapping name="failedLoginAttempts" persistence-name="SEC_USER.LOGIN_ATTEMPTS_CNT" />
</entity-deployment>
<entity-deployment name="Permission" table="SEC_FUNCTION" data-source="datasource-ecmsOraclePool">
<primkey-mapping>
<cmp-field-mapping name="permisssionId" persistence-name="SEC_FUNCTION_ID" />
</primkey-mapping>
<cmp-field-mapping name="permission" persistence-name="FUNCTION_NAME" />
</entity-deployment>
<entity-deployment name="Role" table="SEC_ROLE" data-source="datasource-ecmsOraclePool">
<primkey-mapping>
<cmp-field-mapping name="roleId" persistence-name="SEC_ROLE.SEC_ROLE_ID" />
</primkey-mapping>
<cmp-field-mapping name="lastUpdateTimestamp" persistence-name="AUD_SYSTEM_OBJECT.LAST_UPDATE_DT" />
<cmp-field-mapping name="lastUpdateSystemUserId" persistence-name="AUD_SYSTEM_OBJECT.LAST_UPDATE_SEC_USER_ID" />
<cmp-field-mapping name="roleDescription" persistence-name="SEC_ROLE.ROLE_DESC" />
<cmp-field-mapping name="roleName" persistence-name="SEC_ROLE.ROLE_NAME" />
</entity-deployment>
<entity-deployment name="Password" table="SEC_USER_PASSWORD" data-source="datasource-ecmsOraclePool">
<primkey-mapping>
<cmp-field-mapping name="passwordId" persistence-name="SEC_USER_PASSWORD_ID" />
</primkey-mapping>
<cmp-field-mapping name="password" persistence-name="PASSWORD" />
<cmp-field-mapping name="activeInd" persistence-name="ACTIVE_IND" />
<cmp-field-mapping name="expirationDate" persistence-name="EXPIRATION_DATE" />
<cmp-field-mapping name="userId" persistence-name="SEC_USER_ID" />
<cmp-field-mapping name="lastUpdateTimestamp" persistence-name="AUD_SYSTEM_OBJECT.LAST_UPDATE_DT" />
<cmp-field-mapping name="lastUpdateSystemUserId" persistence-name="AUD_SYSTEM_OBJECT.LAST_UPDATE_SEC_USER_ID" />
</entity-deployment>
<entity-deployment name="UserRole" table="SEC_USER_ROLE" data-source="datasource-ecmsOraclePool">
<primkey-mapping>
<cmp-field-mapping name="userRoleId" persistence-name="SEC_USER_ROLE_ID" />
</primkey-mapping>
<cmp-field-mapping name="sequenceNum" persistence-name="SEQUENCE_NUM" />
<cmp-field-mapping name="userId" persistence-name="SEC_USER_ID" />
<cmp-field-mapping name="roleId" persistence-name="SEC_ROLE_ID" />
</entity-deployment>
<entity-deployment name="RolePermission" table="SEC_ROLE_FUNCTION" data-source="datasource-ecmsOraclePool">
<primkey-mapping>
<cmp-field-mapping name="roleFunctionId" persistence-name="SEC_ROLE_FUNCTION_ID" />
</primkey-mapping>
<cmp-field-mapping name="functionId" persistence-name="SEC_FUNCTION_ID" />
<cmp-field-mapping name="roleId" persistence-name="SEC_ROLE_ID" />
<cmp-field-mapping name="sequenceNum" persistence-name="SEQUENCE_NUM" />
</entity-deployment>
</enterprise-beans>
<assembly-descriptor>
</assembly-descriptor>
</orion-ejb-jar>

Hi David,
The "autocreate-tables" attribute is defined in the DTD for the "orion-application.xml" file. This file is usually generated automatically by OC4J, from your application's "application.xml" file when you deploy your application. (Note that subsequent [re-]deployments of your application will not change the "orion-application.xml" file.)
The default value for this attribute is 'true', and the default is defined in the "application.xml" file that is located in the "j2ee/home/config" subdirectory of the OC4J installation.
Hope this answers your question.
Good Luck,
Avi.

Similar Messages

  • Problem auto-creating tables with the IBFBS sample

    Hello,
    I'm fairly new to JDeveloper and OC4J and am trying to configure the new Financial Brokerage Service (IBFBS) sample to run on my system. I followed all of the setup instructions but have had problems getting the application to work. I've worked through a few issues, but I'm stuck on this one. When deploying/running the application to the JDev embedded OC4J an error occurs when trying to auto-create the tables for some of the EJBs. The error messages are all similar to this:
    "Auto-creating table: create table UserAccount_file:_M:_Ja_rfpkl9 (accountNumber NUMBER not null primary key, password VARCHAR2(255) null, firstName VARCHAR2(255) null, lastName VARCHAR2(255) null, organization VARCHAR2(255) null, address VARCHAR2(255) null, city VARCHAR2(255) null, state VARCHAR2(255) null, country VARCHAR2(255) null, phone VARCHAR2(255) null, accountBalance FLOAT null, email VARCHAR2(255) null, userType VARCHAR2(255) null, linesPerPage NUMBER null, alertMode VARCHAR2(255) null, mobileEmail VARCHAR2(255) null)
    Error creating table: ORA-00922: missing or invalid option"
    The app fails to start with an Ora message "Table or view does not exist"
    I think it's due to the colons in the table name, but how do I change the name of the table it's trying to create?
    I'm running JDeveloper 9.0.3 preview and 9.2.0.1.0 (patchset 1 applied) database all locally on a Windows XP SP1 machine.
    Any help appreciated.
    Nick

    Hi Nick,
    Firstly, regret for the late response.
    I guess what you are trying to do is run the Sample from JDeveloper itself. But this cannot be done, you have to deploy the
    sample to the embedded OC4J(<JDEV_HOME>/j2ee/home) bundled with JDev and run the sample from embedded OC4J.
    Refer to http://otn.oracle.com/sample_code/tutorials/fbs/over/setup.htm and follow the steps to deploy to OC4J.
    Curious to know if you were able to run it.
    Regards
    Elango.
    Hello,
    I'm fairly new to JDeveloper and OC4J and am trying to configure the new Financial Brokerage Service (IBFBS) sample to run on my system. I followed all of the setup instructions but have had problems getting the application to work. I've worked through a few issues, but I'm stuck on this one. When deploying/running the application to the JDev embedded OC4J an error occurs when trying to auto-create the tables for some of the EJBs. The error messages are all similar to this:
    "Auto-creating table: create table UserAccount_file:_M:_Ja_rfpkl9 (accountNumber NUMBER not null primary key, password VARCHAR2(255) null, firstName VARCHAR2(255) null, lastName VARCHAR2(255) null, organization VARCHAR2(255) null, address VARCHAR2(255) null, city VARCHAR2(255) null, state VARCHAR2(255) null, country VARCHAR2(255) null, phone VARCHAR2(255) null, accountBalance FLOAT null, email VARCHAR2(255) null, userType VARCHAR2(255) null, linesPerPage NUMBER null, alertMode VARCHAR2(255) null, mobileEmail VARCHAR2(255) null)
    Error creating table: ORA-00922: missing or invalid option"
    The app fails to start with an Ora message "Table or view does not exist"
    I think it's due to the colons in the table name, but how do I change the name of the table it's trying to create?
    I'm running JDeveloper 9.0.3 preview and 9.2.0.1.0 (patchset 1 applied) database all locally on a Windows XP SP1 machine.
    Any help appreciated.
    Nick

  • How to create table with list/map value binding

    I need to display few values in a tabular format. Is it possible to create adf table without having value binding to a VO object. Can I make a table with some list/map combination.
    I want to change the display format with minimum change in the application. Hence I am looking for a change to define a list/map and map it with the table.
    Following is the structure I need to display in.
    |     |Header1|Header2 |     
    |_______|_______|_______|
    |Txt R1 |value 1 |Value 2 |     
    |_______|_______|_______|
    |Txt R2 |Value 3 |value 4 |     
    |_______|_______|_______|
    All the views does not have any relation. Hence I should not create a VO and adding rows of the VO object.
    Edited by: Jaykishan on Jun 10, 2011 11:34 AM

    Yes, you can do it. Create a pojo with the properties(column) you want to display in the table and create a list with the instances of pojos and then you can populate your table using the list.
    Sample:
    //POJO
    public class SamplePojo {
    private String col1;
    private String col2;
    public SamplePojo(String col1, String col2){
      this.col1 = col1;
      this.col2 = col2;
    //add setter and getter methods
    //Inside bean, prepare a list with pojo instances (Assume a getter exists for pojoList)
    pojoList = new ArrayList();
    pojoList .add(new SamplePojo("Value1", "Value2");
    pojoList .add(new SamplePojo("Value3", "Value4");
    etc.
    //Inside jspx
    <af:table value="#{<Bean>.pojoList}" var="pojo" ...>
       <af:column headerText="Header1" ..>
         <af:outputText value="#{pojo.col1}"/>
       <af:column>
       <af:column headerText="Header2" ..>
         <af:outputText value="#{pojo.col2}"/>
       <af:column>
    </af:table>HTH
    Sireesha

  • How to create Rules with Flex Field mapping in the bpm worklist

    I Have created a flex field label and was able to map to the flex field attributes .
    But when i try to create a rules , I don't see the label or the flex attributes in the task payload .
    Can someone please help is understanding how to create Rules with Flex Field mapping in the bpm worklist .
    Even I am also searching for any scripts which will take the flex fields prompts and can directly create a label in the bpm worklist .
    Any pointers or suggestion is highly appreciated .

    Hi,
    SE38 -> Enter program
    Select Variants button and display. In the next screen, enter a variant name, (If not existing , press Create to create new one), else click on Change.
    Now the selection screen will display with a button "Variant Attributes" at the top.
    Click on that button.
    In the next screen, go to the selection variable column of the date field. Press F4 or drop down and select 'D' for date maintenance.
    In the column "Name of Variable (Input Only Using F4)" press F4 or drop down, select whichever kind of date calculation you want and save the variant.
    Now whenever you run the prgrm with this variant, date will be displayed by default.
    Regards,
    Subramanian

  • OID users ( EUS) problem with grant create table with admin

    Hi,
    We activated enterprise users in the OID.
    There is a role APP_ADMIN that has the following grants:
    create user
    drop user
    create table with admin option
    this is for an application that creates BI schemas, so it needs to be able to create other users.
    I have granted these to a local role, and the user has access to the local role, thanks to the OID setup.
    The create and drop user work.
    however, the grant create table to another user does not work.
    Is there an issue with 'with admin option' grants in Enterprise user security?
    Regards,
    Peter

    If I grant
    grant create table to test_role with admin option;
    it does not work
    if I grant
    GRANT GRANT ANY PRIVILEGE to test_role WITH ADMIN OPTION;
    it does work.
    The test command as user with test_role is:
    grant create table to test_usr;
    very strange!
    If the user is a standard user and I create role test_role
    and grant create table to test_role with admin option it works.
    but if I convert the user to an EUS user and the same privilege is given to the role ( role is granted to a global role to an enterprise role)
    it doesnt work
    Edited by: Peter on Dec 7, 2012 2:36 PM

  • Unable to create table with column default value with date interval

    Please help to create table with calculated date defaullt value:
    CREATE TABLE emp (
      birth_date  DATE  DEFAULT sysdate + interval '3' day NOT NULL
    or
    CREATE TABLE emp (
      some_date DATE,
      birth_date  DATE  DEFAULT some_date NOT NULL
    or
    CREATE TABLE emp (
      some_date DATE,
      birth_date  DATE  DEFAULT some_date + interval '3' day NOT NULL
    below syntax error:
    TT1001: Syntax error in SQL statement before or at: "+"

    I'm afraid this is not possible; as per the SQL Reference, TimesTen only supports 'constant expressions' for the DEFAULT clause and none of these are constant expressions.
    Chris

  • Problem CREATE TABLE with PRIMARY KEY Still in Trouble ! Please Help!

    Hi there !
    I use the orcle 8i, and i don't know why i can't create table with any primary key EXample:
    SQL> CREATE TABLE O_caisses
    2 (No_caisse NUMBER(3) constraint caisses_pk PRIMARY KEY,
    3 NB_BILLETS NUMBER(5)
    4 )
    5 /
    CREATE TABLE O_caisses
    ERROR at line 1:
    ORA-18008: cannot find OUTLN schema
    ***********some Debuger show me this way: *********************
    Well there r certain point u got to notice when creating a table with constraints.
    1) U can create table with COLUMN level constraint.
    2) U can create table with TABLE level constraint.
    3) In COLUMN level constraint u can't give a constraint a name
    but only mention the type of constraint.
    4) In TABLE level constraint u can give a name to constraint.
    Following are the examples of both
    --COLUMN LEVEL
    CREATE TABLE O_caisses
    (No_caisse NUMBER(3) PRIMARY KEY,
    NB_BILLETS NUMBER(5));
    --TABLE LEVEL
    CREATE TABLE O_caisses
    (No_caisse NUMBER(3),
    NB_BILLETS NUMBER(5),
    constraint pk_caisse primary key (No_caisse));
    ********************And this is another one:*****************
    SQL>grant create any outline to username;
    BUT the problem is still present, i don't know what to do now !
    Please could some body help me !
    Thanks alot!
    Luong.

    The clue is in the error message: the OUTLN schema is missing.
    This is something Oracle 8i introduced to help manage the CBO (or soemthing equally geeky and internal). For some reason your database no longer has this user. It ought to be created automatically during installation (or upgrade) but catproct may not have completed probably or some over zealous admin type has dropped it.
    Solution is to re-install (or re-upgrade) as you cannot create this user on their own. Alas.
    HTH, APC

  • Auto Create Table problem in Jdev903

    Hi,
    I am writing EJB application and used CMR. To develop this application I am using JDeveloper(Oracle 9i-OC4J).When I run this application, it metically creates CMR tables. But I don't want to that JDeveloper should create auto table, for that I have configured in
    application.xml <orion-application autocreate-tables="false" ...>.
    still now it creates auto table and generates identifire is to long error.
    I don't want to auto create table, I want to cofigure that it uses our databse tables. so give any solution what will be configuration, as soon as possible.
    is it supported by Oracle9i OC4J Jdev903 Conatiner Managed Relatioship or not

    Also, create the user in the "Users" tablespace. You want to
    keep your System tablespace clear of non-system created items.
    After connecting as system/manager, enter the following:
    Create user username
    identified by password
    default tablespace users
    temporary tablespace temp;
    grant create session, resource to username;

  • How to create table with dynamic rows

    Hi Ppl,
    I have an array lets say with length of n. I want to creata table with 2 columns and no of rows = array length.
    lets say array length is 3 ( array[0] = 1, array[1] = 2, array[2] = 3) so the table should have 2 columns and 3 rows.
    After creation of table I want to display each array value in each row.
    Can somebody help me in this asap.
    Thanks \
    Ashish

    Hi, Thanks for reply... actually this is one part of rtf. I have put values from xml to an array and now I want to create a table with no of rows = length of array. so here xml will not be useful. could you pls think of it without xml.
    result is like
    lets says below is the array
    array[0] = a
    array[1] = b
    array[2] = c
    array length = 3
    so there should be a table of 2 coulmns and 3 rows. Second column of first row will show 'a', Second column of second row wil show 'b' and Second column of third row will show 'c'.
    Hope this is useful.
    Thakns
    Ashish

  • How to create table with table description

    Hi,
    I would like create table with table description(like creating package or procedure with comments).
    Is it possible to achieve through oracle, if possible please help me how to achieve this.
    Thanks and regards,
    Ibrahim Sayyed.

    > create table test (col1 number);
    > comment on table test is 'this is a comment';
    > select comments from user_tab_comments where table_name = 'TEST';
    COMMENTS
    this is a comment

  • How to create table with row type in smart forms

    How to create table with row type in smart forms with out line type
    please explain me the procedure

    HI,
    A table type describes the structure and functional attributes of an internal table in ABAP. In ABAP programs you can reference a table type TTYP defined in the ABAP Dictionary with the command DATA <inttab> TYPE TTYP. An internal table <inttab> is created in the program with the attributes defined for TTYP in the ABAP Dictionary.
    A table type is defined by:
    its line type, that defines the structure and data type attributes of a line of the internal table
    the options for managing and accessing the data ( access mode) in the internal table
    the key ( key definition and key category) of the internal table
    The row type is defined by directly entering the data type, length and number of decimal places or by referencing a data element, structured type ( structure, table or view) or other table type. Or the row type can be a reference type.
    <b>for more info :</b> http://help.sap.com/saphelp_nw2004s/helpdata/en/fc/eb366d358411d1829f0000e829fbfe/content.htm
    Internal table
    Regards
    Sudheer

  • How to create table with resizable row ?

    how to create table with resizable row ?

    I'd suggest you start here:
    http://java.sun.com/docs/books/tutorial/uiswing/components/table.html

  • How cancel auto-create table ?

    when i deloye my ejb module into stand OC4J, toplink always auto-create table from ejb description file . how cancel it ?
    thanks!

    when set autocreate-table="false". topLink still autocreate-tables
    and name tables a new role ,
    my project use ejb-jar.xml to descript persistence .
    after delopy to stand OC4J, it use toplink-ejb-jar.xml to descript persistence?
    why ?
    how can i use my project ejb descript file by deploying ?

  • Problem on CREATING TABLES  with PRIMARY KEY

    Hi there !
    I use the orcle 8i, and i don't know why i can't create table with any primary key EXample:
    SQL> CREATE TABLE O_caisses
    2 (No_caisse NUMBER(3) constraint caisses_pk PRIMARY KEY,
    3 NB_BILLETS NUMBER(5)
    4 )
    5 /
    CREATE TABLE O_caisses
    ERROR at line 1:
    ORA-18008: cannot find OUTLN schema
    Please could some body help me !
    Thanks alot!
    Luong.

    Luong,
    Your syntax is fine. It looks like you don't have the correct database privileges to create the table. The error message you're getting suggests that you don't have CREATE ANY OUTLINE privileges. You should log in as a user than can grant these privileges and give yourself the correct privileges. I think the syntax is
    SQL>grant create any outline to username;
    Alison

  • How i can create table with data

    How i can create table with data from dev to production?

    How i can create table with data
    [url=http://en.wikipedia.org/wiki/Black_Beast_of_Aa
    aaarrrrrrggghhh]from dev to production?
    [url=http://img2.travelblog.org/Photos/3800/14977/t
    /64816-Col-Kurtz-0.jpg]The horror, the
    horror.lol, you gonna scare somebody here.
    Are we helping devil?

Maybe you are looking for

  • Homesharing?!

    Homesharing won't show up. I continuously logged on and out and back in both of them. As soon as it says it has been set up, and I click done, it disappears. ***.

  • Printing on Top left Corner of a page

    Hi, I have written a java program to print , i am not able to print on the top left corner(Extreme), even though i specify my X and Y co-ordinates are 0 ,0 . please help me in printing on the top left corner . find below my java program.      Author

  • HT3775 can't play AVI MOV on QT

    i have two AVI MOVIE one plays the other not. every time the problem occurs i am brought here.

  • Stuck with the jwdsp1-1 web services tutorial

    I'm busy trying to complete this tutorial: http://java.sun.com/webservices/docs/1.1/tutorial/doc/JAXRPC.html#wp72279 but at the stage of 'Compiling the Service Definition Code To compile HelloIF.java and HelloImpl.java, go to the <JWSDP_HOME>/docs/tu

  • When will pre-order beta codes for Rainbow Six Siege be sent out?

    I pre-ordered Rainbow Six Siege Gold Edition and it's supposed to include guarenteed closed beta access. I have not recieved any emails in regards to this, nor can I find any info on when these will be sent out. Any help would be appreciated