Cannot get weblogic to create default dbms tables

 

I've encountered the same error while deploying my parent-child test
ejb with mySQL v3.23.38 as the data source:
[RDBMSPersistenceManager] : createDefaultDBMSTable: processing Bean
Table: JCWParent
[RDBMSPersistenceManager] : full DEFAULT TABLE CREATE QUERY: 'CREATE
TABLE JCWParent (parentId INTEGER, parentName VARCHAR(150), PRIMARY
KEY (parentId) )'
[RDBMSPersistenceManager] : RDBMSPersistenceManager.getConnection
[RDBMSPersistenceManager] : Table 'JCWParent' was not present in
Database attempt to CREATE TABLE failed. SQL: 'CREATE TABLE JCWParent
(parentId INTEGER, parent Name VARCHAR(150), PRIMARY KEY (parentId) )'
got SQLException java.sql.SQLException: General error: All parts of a
PRIMARY KEY must be NOT NULL; If you need NULL in a key, use UNIQUE
instead
The weblogic server version I'm running is v6.1 (sp1). Any fix?
--- Jeffrey
"Thomas Christensen" <[email protected]> wrote in message news:<[email protected]>...
Hi
Anyone else seen this?
If WLS 6.1 doesn't support auto table creation on db2, does it only support CloudScape???
I do not expect Oracle, Sybase or MySQL to allow nulls in the primary keys either...
Cheers
Thomas
"Thomas Christensen" <[email protected]> wrote:
Hi
I have discovered that WLS 6.1 tries to create tables it allows primary
keys to
be null, which our DB2 installation does not allow. I you turn on the
trace mentioned
below by Matthew, then the message appears.
If I deploy the ejb20_basic_containerManaged.jar from the samples directory
then
I get the following error:
[RDBMSPersistenceManager] : full DEFAULT TABLE CREATE QUERY: 'CREATE
TABLE ejbA
ccounts (id VARCHAR(150), bal DOUBLE PRECISION, type VARCHAR(150), PRIMARY
KEY
id) )'
[RDBMSPersistenceManager] : RDBMSPersistenceManager.getConnection
[RDBMSPersistenceManager] : Table 'ejbAccounts' was not present in Database
attempt
to CREATE TABLE failed. SQL: 'CREATE TABLE ejbAccounts (id VARCHAR(150),
bal
DOUBLE PRECISION, type VARCHAR(150), PRIMARY KEY (id) )' got SQLException
COM.i
bm.db2.jdbc.DB2Exception: [IBM][CLI Driver][DB2/NT] SQL0542N "ID" cannot
be a
part of a primary key or unique key since it can contain NULL-values.
SQLSTATE=42831
Any fixes for this?
Cheers
Thomas
Matthew Shinn <[email protected]> wrote:
Hi Gary,
What database are you using? Also, if you could start your server with
the
following arguments -Dweblogic.ejb20.cmp.rdbms.debug=true
-Dweblogic.ejb20.cmp.rdbms.verbose=true and post the server output for
the
deployment in question, that would be great. This will give us some
valuable
debugging information and help us track down the problem. Note that
these flags
are going to cause a lot of extra information to be printed out.
- Matt
Gary Albelli wrote:
I am using ejb 2.0 but still cannot get the server to create the tables.
Any
ideas?
"Matthew Shinn" <[email protected]> wrote in message
news:[email protected]...
Hi Gary,
There is a bug in 6.1 that can cause the database tables to fail
to be
created
for 1.1 compliant EJBs. For tracking purposes, the bug ID is CR056543.If you
require a patch, I suggest contacting support. As a possible workaround,try
changing the ejb-name of your EJB to something more unique. Again,this
only
affects 1.1 EJBs. If you are having this problem with a 2.0 EJB,something else
is wrong.
- Matt
Gary Albelli wrote:
I am deploying entity beans into WebLogic server 6.1. The EJBs
deploy
but I
cannot get the server to create the default tables. The
weblogic.cmp.rdbms.jar.xml has the element create-default-dbms-tablesset to
True. I receive the error message "The Entity EJB requires thetable:
ContentVersion to be accessible. Please ensure that this tableexists
and is
accessible". Any Ideas???

Similar Messages

  • How to use create-default-dbms-tables in SQL Server 2000

    Hi everyone,
    I'm new in EJB development. I'm trying to deploy a CMP to Weblogic 8.1 SP1 using
    JBuilderX. I configured a ConnectionPool and DataSource to allow the CMP to access
    the SQL Server 2000. However, I cannot deploy the CMP if I didn't create the table
    in SQL Server manually. Does anyone know how to use the create-default-dbms-tables?

    Refer to
    http://e-docs.bea.com/wls/docs81/ejb/DDreference-cmp-jar.html#1162249
    "Keith" <[email protected]> wrote:
    >
    Hi everyone,
    I'm new in EJB development. I'm trying to deploy a CMP to Weblogic 8.1
    SP1 using
    JBuilderX. I configured a ConnectionPool and DataSource to allow the
    CMP to access
    the SQL Server 2000. However, I cannot deploy the CMP if I didn't create
    the table
    in SQL Server manually. Does anyone know how to use the create-default-dbms-tables?

  • I bought my ipad in us, and has been using a purchasing applications. Now i already went back to bahrain, i am trying to purchase apllication using my bahrain credit card but it cannot get through as the default country is USA.   I tried

    I bought my ipad in us, and has been using a pre paid card in purchasing applications. Now i already went back to bahrain, i am trying to purchase apllication using my bahrain credit card but it cannot get through as the default country is USA.
    I tried to change my country but a message says i have a store credit balance and must spend it before changing store. But how i can spend it i only have 8 cents left?
    So how will i be able to purchase applications if i am in bahrain?

    You can try again after a few hours after waiting and you still get the same error, you'll need to contact support.
    https://expresslane.apple.com/GetproductgroupList.action

  • I cannot get a slideshow to work on table version

    Hi
    I cannot get a slideshow to work on table version? What is the secret? I drop a blank slideshow and upload and not go? All I get is a gray box where the images should be or nothing at all?
    Please help. Pulling hair out.
    Thanks!

    I determined it has to do with motion and tablets. I placed slideshow on sub page and it viewed. I had scroll effects on home page and it does not work on tablets. However, I removed all scoll and motion but still tno appearing. I need to troubleshoot further. Here is link: http://ricci.lasso9.com/skinserenitymedispa.com/
    Any insight would be great for adding slideshow to home screen on tablet version.

  • HT5457 Cannot get ringtones other than default ringtones since downloading ios 6

    Cannot get ringtones other than default ringtones since downloading ios6

    I should also mention that I tried the posted trick of changing the year to 2013 and attempting to update or download apps. Yeah... that doesn't work.

  • Cannot get OSX to remember default network

    I switched from TimeWarner Roadrunner service to ATT Uverse last week. Since the change, I cannot get OSX on my 2.2ghz macbook pro to stop defaulting to my old network (that no longer exists).
    I have gone into network preferences, hit apply, and locked changes. Still, every time I reboot, I am forced to switch to the new network.
    Any ideas?
    Thanks,
    Preston

    When your in Network Preferences, try removing your old network then adding the new one.
    Regards,

  • Cannot get an Apex HTML region with table with a background image to resize image to fit table

    I want to achieve this: Table whith background image but cannot get it to work in an Apex page with HTML region.
    Adding the following code to the html region:
    <table class="tableWithBackground" width="300px" height="200px" border="1">
        <tr>
            <td>
                <img class="tableBackground" src="#APP_IMAGES#Demo.jpg">
                Hello
            </td>
            <td>
                World
            </td>
        </tr>
        <tr>
            <td>How are<br><br><br><br><br>you?</td>
            <td>I am fine</td>
        </tr>
    </td>
    Results in a page with a table but without borders (at his stage I have not yet uploaded the Demo.jpg). After uploading the Demo.jpg results in a table with the entire image placed in het first cell. After placing the class code in the CSS inline property I expected to see the result as is shown in the Table whith background image  demo. For some reason this does not work (the image is no longer visible).
    Can anybody tell me how to achieve my goal?
    Thanks in advance!
    Geert

    Geert01 wrote:
    I want to achieve this: Table whith background image but cannot get it to work in an Apex page with HTML region.
    Adding the following code to the html region:
    <table class="tableWithBackground" width="300px" height="200px" border="1">
        <tr>
            <td>
                <img class="tableBackground" src="#APP_IMAGES#Demo.jpg">
                Hello
            </td>
            <td>
                World
            </td>
        </tr>
        <tr>
            <td>How are<br><br><br><br><br>you?</td>
            <td>I am fine</td>
        </tr>
    </td>
    Results in a page with a table but without borders (at his stage I have not yet uploaded the Demo.jpg). After uploading the Demo.jpg results in a table with the entire image placed in het first cell. After placing the class code in the CSS inline property I expected to see the result as is shown in the Table whith background image  demo. For some reason this does not work (the image is no longer visible).
    Can anybody tell me how to achieve my goal?
    This is a workaround. What's your real goal? Why do you want to do this?
    What browser(s)/version(s) are you using? All current browser versions have support for CSS3 background sizing which is the proper way to do this.

  • After uninstall, reinstall, and reset, I cannot get Firefox back to defaults. How can I?

    I successfully uninstalled Firefox. Then I reinstalled it. All the presets and addons were STILL there. Then I tried a reset. That only cleared my homepage, but all the addons and plugins are there. I want this to be back to default. How can i do that?

    ''Gnospen [[#answer-692497|said]]''
    <blockquote>
    How do you want it to be and why?
    </blockquote>
    I guess I'll have to repeat myself for the third time. I want firefox to be back to the default.
    ''Gnospen [[#answer-692497|said]]''
    <blockquote>
    remember we are just users not employees at mozilla so take out you frustration some other way.
    </blockquote>
    I completely understand your are not an employee. I'm not angry because the program doesn't work. I'm upset because contributors don't take the time to read my post before making suggestions that I've already tried.
    To reiterate, I want Firefox to be back to defaults. Obviously there is a malware/spyware/virus problem. How do i get back to the defaults? I found and read all the Mozilla support posts about "resetting," and as I said, that does not work. So... (understanding my situation) how do I get back to the firefox defaults?

  • Cannot get Weblogic to start (\JDev11.1.3\jdk160_18 was unexpected at this)

    Ok, I'm stumped. I've gotten JDev (Build JDEVADF_11.1.1.3.PS2_GENERIC_100408.2356.5660) installed and I imported one of my projects from JDev 10.
    the problem is when I try to start WebLogic, I get the following error:
    *** Using port 7101 ***
    C:\Users\silva29\AppData\Roaming\JDeveloper\system11.1.1.3.37.56.60\DefaultDomain\bin\startWebLogic.cmd
    [waiting for the server to complete its initialization...]
    \JDev11.1.3\jdk160_18 was unexpected at this time.
    Process exited.
    So, I found this in "Known Issues"
    Cannot run WLS on Windows 7 64-bit (9466912)
    The Windows .bat scripts for managing WLS do not work if environment variables such as JAVA_HOME or CLASSPATH contain a ')'. The former happens when e.g. the 32bit JDK is installed in its default path, e.g. "C:\Program Files (x86)\Java\jdk1.6.0_18". The latter if an application such as Apple QuickTime adds itself to the CLASSPATH environment variable.
    When trying to run the integrated WLS you will get an error while starting that instance, stating that
    "\Java\jdk1.6.0_18 was unexpected at this time."
    The integrated WLS will not start as a result of that.
    This also happens if the scripts are being run manually on command prompt.
    Workaround is to install the JDK and programs such as Apple QuickTime in a path without ')'.
    First off it's unbelievable that the ')' causes this to happen. Hard to believe that that isn't a trivial fix to make and provide a patch for.
    SECOND, I changed my path and classpath, but I continue getting the error. So, now I'm stuck again.
    Anyone else run into this problem? I'm running on Windows 7 64 bit op sys.
    Right now I'm dead in the water. Anyone got a fix for me?
    Thanks.

    Various parts of the Oracle Middleware platform choke when the PATH or install directories contain a ")" character (it messes up parenthesis matching in scripts). Unfortunately, on 64-bit Windows, Microsoft has decided to have a "Program Files (x86)" directory - yech, both spaces and parenthesis in a directory name!
    I've worked around this on my installation by using the little-known MKLINK command to create a junction point for the offending directory like this:
    mklink /J c:\pf86 "c:\program files (x86)"And then replacing all occurrences in the PATH of "c:\program files (x86)" with "c:\pf86" - gets rid of the offending parenthesis and makes my path shorter as well.
    John

  • Cannot get an invoice created with IWork Numbers to open correctly in Excel

    I used the Template in Numbers to create an invoice,and it's great.
    However, I cannot seem to open this file in Excel no matter how I send it, no matter how I save it.
    Have saved as windows friendly, have saved as Excel file.
    I have to be able to have these opened by others with Excel and/or OpenOffice and, Office staff must be able to work with the file to update/modify invoices.
    I even tried Pdf and Adobe Acrobat Pro thinking they would be able to do data entry that way-No luck.
    Desperately need a solution or a year of working with IWork is going to be lost.
    We have now added staff, and in other locations, and have to be able to work across platforms.
    No problems importing Office files of any type, but have to be able to export as well and have cells and formatting remain workable.
    I can open the files in Excel but they are unusable, in several pages, basically no invoice template left.
    Thanks for any help.
    Charles1

    If you are getting three Excel worksheets, the export is working as designed. You have to remember that the heart of an Excel worksheet is a monolithic table. Everything is aligned in a tabular grid. Numbers, on the other hand, allows you to have multiple tables on the same sheet that have different column and row widths and the tables can be placed wherever you like, offset from the other tables by whatever amount you desire in any direction you desire. The invoice template is a good example; the two tables are very dissimilar in format and in column widths. If Numbers was to export the two tables from the invoice template into a single sheet of an Excel workbook, which column widths would it use? The ones from the first table or the ones from the second? No matter which it chose, the result would be quite different from what is in Numbers. Now include some text boxes, graphics or charts. With the tables moved around and resized to align to the Excel grid, these other items would also have to be moved around. But to where. It would be impossible to make an exported file look anything like it did in Numbers except in specific instances. This is why Numbers creates separate Excel sheets when it converts to Excel.
    I know that diatribe did not help you solve your problem. To solve your problem, everything must be designed as one table in Numbers. Here is how you can do it. It is a bunch of steps but is really simple to do.
    1) Select all the rows from the first table.
    2) Drag them sideways out of the table and drag them to the second table, inserting them just below the first row. I think this is explained in the Numbers User's Guide.
    3) Add a new row below the rows you just inserted (this will become your new row 8)
    4) Select the cells in row 1. Copy. Paste to your new row 8.
    5) Delete row 1
    6) Go to the Table Inspector and turn on Name (check the checkbox). Name it Invoice.
    7) Back at the table, deselect the table if it is still showing the column letters and row numbers in order to see the table name
    8) Click twice on the table name above the table to select it. It will box it in, it does not select the text.
    9) On the toolbar, change the font size and color and set it to left justification.
    10) Delete the textbox with the word "Invoice" in it.
    11) Delete the textbox with "sincerely yours ... Your name". Or, if you want to keep it, add another footer to the table, increase the height of that new footer and type "Sincerely yours," and your name in there. Note that you use option-return to create the linefeeds in the cell.
    12) Select the table and slide it up toward the top of the sheet.
    13) Adjust the column widths as best you can. I increased the column width of column B and right justified the text in cells A1-A6 and C1-C6 to get it looking okay. You might, instead, choose to insert a column or two and merge some cells together to align everything like you want it. And you might choose to add a row or increase the gridline width between the top half and the bottom half. I did not do those last few things. You can play around to get the design you like best.
    The export looked almost exactly like the Numbers document.
    Message was edited by: Badunit

  • Cannot get .swf file created in SwishMax to play on webpage

    I recently upgraded to Adobe Dreamweaver CS3 from Macromedia
    Dreamweaver. In updating a webpage today that involved a .swf movie
    I created in SwishMax, I find that the movie is "invisible" once I
    load the pages onto the server. I've tried several things and
    nothing I do seems to work. I never had this problem with the old
    version of DW and am very frustrated. I've looked thru the topics
    on here but don't see my exact problem as the web page is not a
    template, and that's the only similar problem I see.
    The url of the page where I can't see the .swf movie is
    www.hagerbears.com/index.htm
    I appreciate any help,
    Enchantr
    Arrgh - I read for an hour on here and found the answer - the
    durn Scripts file wasn't on the host. It now works.
    Thanks all those who struggled thru this in the past so I
    could find the answer today.
    E.

    Have you uploaded the directory DW created named Scripts?
    enchantr wrote:
    > I recently upgraded to Adobe Dreamweaver CS3 from
    Macromedia
    > Dreamweaver. In updating a webpage today that involved a
    .swf movie I
    > created in SwishMax, I find that the movie is
    "invisible" once I load
    > the pages onto the server. I've tried several things and
    nothing I do
    > seems to work. I never had this problem with the old
    version of DW
    > and am very frustrated. I've looked thru the topics on
    here but
    > don't see my exact problem as the web page is not a
    template, and
    > that's the only similar problem I see.
    > The url of the page where I can't see the .swf movie is
    > www.hagerbears.com/index.htm
    > I appreciate any help,
    > Enchantr

  • I cannot get rapidweaver5 to upload my newly created website. It keeps giving me the same error message "*** -[NSFileManager fileSystemRepresentationWithPath:]: nil or empty path argument"... Can someone tell me why?

    I cannot get my newly created site to upload using rapidweaver5. I keep getting the following message...
    *** -[NSFileManager fileSystemRepresentationWithPath:]: nil or empty path argument
    I have checked the info in the bookmark info to be correct so I cannot understand why this is not working
    Dave

    I cannot get my newly created site to upload using rapidweaver5. I keep getting the following message...
    *** -[NSFileManager fileSystemRepresentationWithPath:]: nil or empty path argument
    I have checked the info in the bookmark info to be correct so I cannot understand why this is not working
    Dave

  • Error while creating the DWH tables using DAC

    Hi,
    I am getting error while creating the DWH tables using DAC. I have created a ODBC DSN using merant driver with DAC repository DB credentials and the test connection is successful. And while creating the tables i gave the olap dw credentials and the DSN name which i created earlier. But it throws the error as below:
    Please find the below mentioned error message
    =====================================
    STD OUTPUT
    =====================================
    CREATING SIEBEL DATABASE OBJECTS
    F:\DAC\bifoundation\dac\UTILITIES\BIN\DDLIMP /I N /s N /u infdomain /p ******* /c DB_DAC /G "SSE_ROLE" /f F:\DAC\bifoundation\dac/conf/sqlgen/ctl-file/oracle_bi_dw.ctl /b "" /K "" /X "" /W N
    Error while importing Siebel database schema.
    =====================================
    ERROR OUTPUT
    =====================================
    Siebel Enterprise Applications ODBC DDL Import Utility, Version 7.7 [18030] ENU
    Copyright (c) 2001 Siebel Systems, Inc. All rights reserved.
    This software is the property of Siebel Systems, Inc., 2207 Bridgepointe Parkway,
    San Mateo, CA 94404.
    User agrees that any use of this software is governed by: (1) the applicable
    user limitations and other terms and conditions of the license agreement which
    has been entered into with Siebel Systems or its authorized distributors; and
    (2) the proprietary and restricted rights notices included in this software.
    WARNING: THIS COMPUTER PROGRAM IS PROTECTED BY U.S. AND INTERNATIONAL LAW.
    UNAUTHORIZED REPRODUCTION, DISTRIBUTION OR USE OF THIS PROGRAM, OR ANY PORTION
    OF IT, MAY RESULT IN SEVERE CIVIL AND CRIMINAL PENALTIES, AND WILL BE
    PROSECUTED TO THE MAXIMUM EXTENT POSSIBLE UNDER THE LAW.
    If you have received this software in error, please notify Siebel Systems
    immediately at (650) 295-5000.
    F:\DAC\bifoundation\dac\UTILITIES\BIN\DDLIMP /I N /s N /u infdomain /p ***** /c DB_DAC /G SSE_ROLE /f F:\DAC\bifoundation\dac/conf/sqlgen/ctl-file/oracle_bi_dw.ctl /b /K /X /W N
    Connecting to the database...
    28000: [DataDirect][ODBC Oracle driver][Oracle]ORA-01017: invalid username/password; logon denied
    Unable to connect to the database...
    any help is appreciated.
    Thanks,
    RM

    The fact that you are getting an "ORA-01017: invalid username/password; logon denied" message indicates that you are at least talking to the database.
    The log shows that username "infdomain" is being used. Can you double check the username and password you have in DAC in a SQL*Plus/SQL Developer session?
    Please mark if useful/helpful,
    Andy.

  • How do you get past the create partition step?  Trying to indtall Windows 7 using Boot Camp 5

    Trying to install Windows 7 on a MacBook Pro with Mavericks.  Currently run Win7 using VMware but experiencing poor performance and lockup.  Have tried to use Boot Camp but cannot get past the 'creating partition' step.  The blue bar shows some progress (about 10%), but then after some time it produces a generic error message thst it cannot create the partition. 

    Hold the option while turning on the computer. You should see your statup drives. Just choose the OS X drive and eject your disc once in OS X.

  • My laptop had to be reimaged and all software and programs were taken off.  I installed itunes again but can't access my library.  I get an error message "the folder itunes cannot be found or created and is required.  The default location for this folder

    I can't access my itunes music on my laptop after having it re-imaged.  I installed itunes again but can't access the music folder.  I get the following message when I click to open itunes:  "The folder itunes cannot be found or created, and is required.  The default location for this folder is the Music folder.
    I have an iPad2, and iPad mini, and an iPhone5 with a different number of songs on each.  I want to sync everything -- should have close to 800 songs.  Tried to get support from Apple but would be charged for help. 

    I have a Windows 7 operating system my computer runs from.

Maybe you are looking for

  • Issue running a report from SAP Business One

    I have an issue running a particular report from SAP Business One. I am using Crystal Reports Add-On, all of the reports are working fine except one. When accessing the last page of the report or any page from inside the report the followiong error a

  • Macbook running very slowly

    Hello - I have a white Macbook bought three years ago running Mac OS X 10.4.11 with a 2GHz processor and 1GB SDRAM. I've been very happy with my purchase and use it mainly for word processing, internet, watching DVDs and email use. Recently, for no a

  • Painting on JPanel problem

    i am new in java and im practicing on GUI... i wrote this stupid GUI that draw shapes on a JPanel, when i minimize the window and maximize again shapes disapear, i have been told to use the paintComponent( ) instead of getGraphics( ) but i didnt know

  • Does Anyone Run Arch For Server Use?

    I was curious if anyone here uses / recommends Arch Linux for dedicated server use? It seems 'most' people here are Linux enthusiast and run this as their distribution of choice. Has anyone seen or have any comments about loading this on a server or

  • How many powershell cmdlets are !?

    Hi Folks Anyone know how many cmdlets are !? Considering all modules and PSSnapin in PowerShell v5.0 Regards, Jimcesse Principal: http://sysadmin-cr.com/ Alterno: http://blogs.itpro.es/jimcesse