CMP Beans from Tables: Why does the Container try to create new tables?

I'm trying to develop an EJB application using JDeveloper on 9iAS. I have several CMPs and have my tables that I want my CMPs to be based on already defined in my DB schema. I want to use CMP but I don't want the Container to create the tables, rather I want the Container to map my CMP EJBs to the already existing tables.
The issue is:
While creating these CMP EJBs in JDeveloper I chose the "New Enterprise Java Bean" EJB creation wizard using the option labeled "Container-managed Entity Beans from Tables". My assumption is that this does what I want, because the wizard prompts for a schema and table you want to map to. Then it creates the attributes & getter/setter methods, PK class, etc. all based on the table defintion automatically. Great. So why when I try to run my application do I get error messages for each EJB such as:
Auto-creating table: create table STREET_TYPE (PK_STYP_ID NUMBER(8), STREET_TYPE VARCHAR2(20), primary key (PK_STYP_ID, STREET_TYPE))
Warning: Error creating table: ORA-00955: name is already used by an existing object
Huh?? I thought the idea is that the CMP EJB is mapped to the existing table in my schema. Why is the Container trying to create new tables?? Is this possible? Or am I missing something fundamental about how Containers create and manage CMPs? Or is this just a JDevelop container issue? TIA

I presume you are getting the problem on application
deploy? This happens when upon initialization of the application using the built-in OC4J container/app server that is part of JDeveloper. Here is the full messaging:
[Starting OC4J using the following ports: HTTP=8989, RMI=23892, JMS=9228.]
C:\OraHome1\jdk\bin\javaw.exe -ojvm -classpath C:\OraHome1\j2ee\home\oc4j.jar com.evermind.server.OC4JServer -config C:\OraHome1\jdev\system\oc4j-config\server.xml
[waiting for the server to complete its initialization...]
Copying default deployment descriptor from archive at Q:\CBTCOF\COF_APPLICATION\COF_Project\classes/META-INF/orion-ejb-jar.xml to deployment directory C:\OraHome1\jdev\system\oc4j-config\application-deployments\current-workspace-app\classes...
Auto-deploying file:/Q:/CBTCOF/COF_APPLICATION/COF_Project/classes/ (No previous deployment found)...
Auto-creating table: create table STREET_TYPE (PK_STYP_ID NUMBER(8), STREET_TYPE VARCHAR2(20), primary key (PK_STYP_ID, STREET_TYPE))
Warning: Error creating table: ORA-00955: name is already used by an existing object
[...OTHER SIMILAR ERROR MESSAGES]
done.
Oracle9iAS (9.0.2.0.0) Containers for J2EE initialized
If so, in the application.xml file of you
OC4J instance the is a setting autocreate-tables,
which by default is true!
Set it to false as below and that should clear up
your problem.
<orion-application autocreate-tables="false"
default-data-Hmm. I found at least a dozen or so files with that name and set everyone that had this attriute to "false", restarted the OC4J server and still got these errors.

Similar Messages

  • HT4972 After the process stops due to a "corrupted" download of the new iOS file, why does the second try repeat the ten-hour backup process?

    After the process stops due to a "corrupted" download of the new iOS file, why does the second try repeat the ten-hour backup process? I am doing this on the latest iTunes, and a Windows XP computer.

    After the process stops due to a "corrupted" download of the new iOS file, why does the second try repeat the ten-hour backup process? I am doing this on the latest iTunes, and a Windows XP computer.

  • When deleting bookmarks from Firefox, why does the program respond differently on similar installs to different computers all running OS X?

    On the subject of bookmarks...
    The following procedure works for deleting bookmarks on my MacBook Pro, my iMac, and my Mac mini...
    If the bookmark is itself a tab on the toolbar, right click on it and select delete by highlighting delete in the drop down menu that appears.
    The following procedure works for deleting bookmarks on my MacBook Pro, but not my iMac or Mac mini...
    If the toolbar tab is actually a folder containing bookmarks and possibly more folders, left click on the toolbar tab to open a drop down menu of other bookmarks/folders, highlight the one you want to delete, then right click on it and select delete by highlighting delete in the drop down menu.
    On the iMac and Mac mini, right clicking on an item in the drop down menu of bookmarks/folders has no effect. It does not produce the additional drop down menu at all.
    I can find no place to adjust this as a setting in preferences or anywhere else. Can you tell me why I am seeing a different response from the Firefox program on my MacBook Pro than I get from my other Macs?
    All Macs are configured similarly and running OS X 10.6.5. All have Firefox 3.6.13 installed.
    I realize there are many other ways to delete bookmarks from Firefox. My question is not about how to delete bookmarks, but rather why am I seeing the differing behavior from Firefox in other installs. It may well prove to be an issue within OS X rather than Firefox.

    In case you are using "Clear history when Firefox closes" then try to disable this feature.
    *Tools > Options > Privacy > Firefox will: "Use custom settings for history": [ ] "Clear history when Firefox closes"
    *https://support.mozilla.org/kb/Clear+Recent+History
    Create a new profile as a test to check if your current profile is causing the problem.
    See "Creating a profile":
    *https://support.mozilla.org/kb/profile-manager-create-and-remove-firefox-profiles
    *http://kb.mozillazine.org/Standard_diagnostic_-_Firefox#Profile_issues
    If the new profile works then you can transfer files from a previously used profile to the new profile, but be cautious not to copy corrupted files to avoid carrying over the problem
    *http://kb.mozillazine.org/Transferring_data_to_a_new_profile_-_Firefox

  • Why does the "Simulation Model Converter" create a 1-D array when a subsystem is converted

    Hi,
    I want to convert a complex Simulink Simulation with many subsystems into LabVIEW VI. One Problem I have is the one in the subject. I attached a simple example Simulink file and the result of the "Simulation Model Converter" where my problem occurs. 
    In this example I have two equal block diagrams, with the differnce, that the one below uses a subsystem (that only contains a gain). But why is the data inside the sub system a 1D array? Is that necessary? If I change the array by hand into a normal constant, the simulation still works. Is there a way to prevent this wrong conversion.
    Thank you
    Attachments:
    Simulink Example.JPG ‏55 KB
    Example.vi ‏60 KB
    Subsystem.vi ‏243 KB

    Hello Talvi,
    I am guessing that you do not have Simulink installed on the computer where you are doing the conversion.  If you do the conversion on a computer where Simulink is installed, you will get better results.  This is mentioned in the help topic: Using the Simulation Model Converter.  If you are still having trouble, can you please let us know which versions of the software involved you are using?
    Regards,
    Angela M
    Product Support Engineer
    Message Edited by Angela M on 11-19-2008 04:36 PM

  • Why does the save page command create a new folder

    I am new to CS5. When I "save" a file I've modified, or use "save as" -
    either one seems to save the page in a complete folder including all graphics, etc.
    Want to merely save the page with its corrections in the usual way.
    Is there a setting in CS5 that does this that I can opt to turn off?
    Many thank for any help on this problem. Al

    (1) Our office computer has the full website - and the same folders that 
    are on the server. Essentially a mirror image. We were saving the corrected
    html  file into the folders we had already set up on the computer. Then FTP'd
    it  later.
    (2) We set up the local site in DMW indicating that we will not be using 
    "server technology", "edit local copies on my machine and then upload to  the
    server," "files stored on my computer", "how to connect to remote server - 
    none" (we use a separate FTP program to upload).

  • Why does the layout change when creating calendars in iPhoto?

    Hi.  How can I stop iPhoto from automatically changing the layout when adding photos to make a calendar?

    Hi.  Latest version of everything.  Picture calendar theme.  Let's say I choose the layout that uses 6 photos.  I begin to drag photos where I want.  Sometimes the layout stays the same, but sometimes the layout of the photos changes positions, even after I have placed a specific photo into a specific place holder.  If I place a photo into a specific place holder, I would like it to stay there and not change positions.  I am not an iPhoto user - I use Aperture, but I cannot create calendars from within Aperture - so it seems to me there ought to be a tick-mark someplace that I need to uncheck so iPhoto stops rearranging photos as I place them into the layout.  I hope this make sense.  Thanks for taking the time with with.  It is appreciated.
    mike

  • Why does the persona that I created get very large when I post it even though its the correct dimensions?

    Every time we try and upload our persona, it shows up on screen very large. It seems like the dimensions are oversized and shows up on screen as only about 1/4 of the full design. Its like an extreme close up view of what what we built. We've built it to the specs provided on the site. If you want to check it out, the persona was created by Worth. Any suggestions on how to fix this?

    - Inspect the dock connector on the iPod for bent or missing contacts, foreign material, corroded contacts, broken, missing or cracked plastic.
    - Reset all settings      
    Go to Settings > General > Reset and tap Reset All Settings.
    All your preferences and settings are reset. Information (such as contacts and calendars) and media (such as songs and videos) aren’t affected.
    - Restore from backup. See:                                 
    iOS: How to back up           
    - Restore to factory settings/new iOS device.
    If still problem, make an appointment at the Genius Bar of an Apple store since it appears you have a hardware problem.
    Apple Retail Store - Genius Bar          
    Apple will exchange your iPod for a refurbished one for this price. They do not fix yours.
      Apple - iPod Repair price

  • Why does the screen change to a new one when i open itunes 10.7.1  can i change this back to how it was originaly?

    when i open my itunes up it slides over to a new screen, it used to just pop up, im not sure what happened to cause this, but can i change it back to how it originally was?

    Sounds like you have iTunes set as a full screen app - to view normally in the iTunes windows go to the very top right of your screen - the title bar will appear with a small blue box in the corner with 2 arrows in it - click on this and iTunes should return to how it was before.
    Drew :-)

  • Vista x64, Dell Laptop Lately I have been getting audio ads from Lysol etc which I can stop by deleting the process plug-in container Iknow how to delete this process but why does the audio ad run despite the application of two well known antivirus progs?

    Vista x64, Dell Laptop Lately I have been getting audio ads from Lysol etc which I can stop by deleting the process plug-in container Iknow how to delete this process but why does the audio ad run despite the application of two well known antivirus progs?

    Oh, PLEASE IGNORE the line:
    deleted everything under HKLM\SYSTEM\CurrentControlSet\Enum\Root\SYSTEM (folders 0000 to 0004)
    That was left there inadvertedly. Can't seem to find the edit button here...

  • Create CMP Entity Beans from Tables Wizard - Can't see any tables with DB2

    Hi,
    I'm trying to use the "Create CMP Entity Beans from Tables Wizard" to create an entity from a table in a DB2 database. The problem is, on page 2, I can't see any available tables. I have verified that the connection works (I can open the connection in the Navigator frame and I can see that table).
    Note that if I try this wizard on an Oracle database, I can see tables.
    WTF? Can someone please help?

    I second the motion. I too work in an environment with centralized data management (DBA's) that create and maintain all tables under a generic schema. This has prevented me from using the Create Entity Beans from Table feature of Jdev r3 preview.
    At least I can see that I'm not alone.
    Thanks
    When I select the "Create CMP Entity Beans from Tables Wizard," no tables or views are available to select. The JDev database connection is using an ID assigned to me.
    The tables that I am looking for were created by the DBA under his ID and are therefore in that schema. He did create Public Synonyms for them, but the tables still do not show up in the wizard.
    Is there a configuration step that I need to do to have those tables show up?
    Tables created by a DBA and then accessed by developers using a public synonym is a very common scenario and should be supported by JDeveloper (IMO).
    Thanks.
    I'm using JDev 9.0.2.8.2.

  • Why does the new operating system not delete the moved files from their original location - it seems like an enormous waste of space, time and effort to clean up every file once you've moved it

    Why does the new operating system not delete the moved files from their original locations - it seems like an enormous waste of space, time and effort to clean up every file once you've moved it - also, when transferring large amounts of files it becomes a very large problem remembering which files were transferred and which not.

    You're going to need to be more specific, as I'm not quite sure I understand what you're talking about.
    If you're referring to copying from an external hard drive or flash drive, and you want to actually move files rather than copy them, you can hold down the option key to force it to do a "move" rather than a "copy." This is not new behavior, though... the Mac OS has worked this way as long as I can recall (and I've been using it since 1984).
    If you're having a problem with trying to move files from one place to another on a single drive causing them to be copied instead, that is likely because of some permissions issue preventing you from actually being able to move them.

  • Why does the clone stamp work when I go from a darker colour to a lighter colour but not the other way around. How can I lighten up a dark area? Lasso tool takes from the wrong area too.

    Why does the clone stamp work when I go from a darker color to a lighter color but not the other way around? How can I lighted a dark area? The Lasso tool takes from the wrong area.

    c.pfaffenbichler wrote:
    Why do you use the Blend Modes Lighter and Darker at all in this case and not simply Normal?
    And what kept you from posting a screenshot?
    I borrowed the image below for an HDR workshop I ran at the 2010 PSNZ National Convention, to demonstrate a method of removing halos.  You'll remember that halos were a serious problem with early HDR, and while the halos in this image were caused by over sharpening, they are perfect for demonstrating this technique.
    It relies on the fact that halos so often tend to put a lighter tone between the two areas where sharpening is being applied. Whether that is the sky abutting a dark line of hills, or the rock and little tower as in this image.  I've uploaded it at the size it was supplied to me at (about 2700 pixels wide).  So
    Click to open the full image, right click and copy, and paste into Photoshop.
    Select the clone tool, and set its blend mode to Darken.
    Try to sample on a line horizontal to where you want to clone, to give the best tonal match, and start cloning.
    Because the sky is darker than the halo, it overwrites it. But the rock is darker than the sky, so it has no affect.
    It works even better if you clone on a new layer also set to Darken.  No masking, just Photoshop blend mode magic.
    You can also fix the little tower. Use a great big brush — just remember to sample horizontal to match the horizon.
    Back then I was using the same trick with CAs after forgetting to fix them in ACR, and having done too much work to start again after spotting the problem.

  • 10.1.3.2 Does not handle Entity 3.0 beans from Tables like 10.1.3.1

    In 10.1.3.1 I was running the J2EE tutorial with the SR demo application . When you generate an entity bean from the Tables ServiceRequest and ServiceHistories you get two beans one for each and they have @OneToMany and @join meta data. The same process in 10.1.3.2 only creates one bean at a time and the @join and @OneToMany columns are not created.
    Has anyone tried this. 10.1.3.2 seems broken for entity beans from tables.

    Seems to work fine for me.
    I'm not sure I understand the remark "10.1.3.2 only creates one bean at a time" - do you mean you had to go through the wizard twice?
    I just chose both tables in step 1 of the wizard and the two beans were created with the relationship defined between them.

  • Why does the payment screen for the creative cloud change from english to portuguese?

    Why does the payment screen for the creative cloud change from english to portuguese?
    I'm trying to sign up for the photography creative cloud with lightroom 5 and photoshop. When I click on the "buy" button is takes me to the payment page, but my country changes from the U.S. to Argentina and the language changes also.
    I've tried contacting Adobe, but they're ways of contacting them are a pain in the ***. The chat doesn't work and I'm on hold forever when I call.

    Make sure that EVERY DETAIL is the same in every place you enter your information
    -right down to how you spell and punctuate the parts of your name and address
    Change/Verify Account https://forums.adobe.com/thread/1465499 may help
    -Credit card https://helpx.adobe.com/utilities/credit-card.html
    -email address https://forums.adobe.com/thread/1446019
    -http://helpx.adobe.com/x-productkb/global/didn-t-receive-expected-email.html
    -http://helpx.adobe.com/x-productkb/policy-pricing/change-country-associated-with-adobe-id. html

  • Why does the charger not charge my battery?  I just bought and installed a new battery from Apple (direct) today

    Why does the charger not charge my battery?  I just bought and installed a new battery from Apple (direct) today

    yes, the charger was working before. 
    so far i have:
    1.  updated my software
    2.  updated to battery 1.2
    3.  took off the "duck" plug and used the macbook pro cord that was provided
    4.  checked and cleaned the pins on the magsafe
    5. checked and cleaned the magsafe port
    any ideas?  i appreciate your response!

Maybe you are looking for

  • Dump during otf to pdf conversion CONVERT_OTF FM if smartform has logo

    Gurus, I am using function module CONVERT_OTF for converting smartform otf output in pdf output. When the smartform does not contain any graphical logo, the function module converts without any issue. But if there is any logo in the smartform, then t

  • White space in IWeb site

    I've just created my first site very easily, but have an enormous amount of white space at the bottom. This amounts to 4 or 5 pages if printed. How do I get rid of it?! Any help would be very welcome. Thanks

  • Instead of sleeping, MacMini goes into a coma

    This doesn't happen every time, but it does happen; I'd say 50% of the time . I either put the Mac Mini to sleep myself, or leave it to go to sleep by itself when it reaches the set time limit. When I wake it, which I usually do by just hitting a key

  • IOS 5 beta messages won't sign in

    I have decided to use the new IOS 5 beta. From what I've seen, the brand new application i messages works on IOS 5 beta. I updated my third generation iPod touch to the new beta software on iTunes 10.3. Ounce I had finished setting up the new softwar

  • Howto: portable bind, lookup remote + local beans (EJB3) to JNDI with WL 10

    I struggle writing portable ejb3 applications with weblogic. I have a JEE5 (EJB3) application using the standard and it works fine on JBoss and WebSphere. Porting it to Weblogic (10.0) there are quite a lot of problems, mainly in the area of JNDI loo