Can't create EJB from existing .java AND ejb-jar.xml entries

I've noticed that I can create the source files for an EJB outside of JDeveloper, then I can do the "Create Entity Bean" thing, and specify the path to the source files, and it will use those source files, instead of forcing me to create them again.
However, I've noticed that if I manually add the information to the "ejb-jar.xml" file, and then try to add the bean, it won't let me. I've found I have to delete the entry from the ejb-jar.xml file and let JDeveloper control the creation of the fields, even if I know exactly what needs to be set.

If you are adding/modifying ejb-jar.xml outside JDeveloper and trying to see the changes.
Save the ejb-jar.xml file which is being modified externally
Select ejb-jar.xml in JDeveloper
and do View | Refresh
This will load in the changes (providing the source path has been set properly)
raghu
JDev Team

Similar Messages

  • Can't Create Form From Existing PDF

    I received a PDF from a woman, it is a form that I can print out and snail mail. I decided to convert it to a PDF fillable form as it would be faster and cleaner to fill out...I can't. I am getting the following error and it's not just her PDF, I get this on any file I convert to PDF and tell to create a fillable form of. I didn't have this problem until I upgraded to CC  and installed the latest Acrobat version.
    Error:
    "Acrobat was unable to make this document accessible because of the following error:
    Bad PDF; error in processing fonts. <bad Type0 font> [1]
    Please note that some pages of this document may have been changed. Because of this failure, you are advised to not save these changes."
    I don't know what font she used nor the program, I don't have control of that short of asking her to change the font so Acrobat will play with it. One could assume she used the exact same file she made the previous year and just updated the year and date on it which, using my previous version of Acrobat would work fine at creating a fillable form.
    Enquiring minds want to know.
    Thanks

    If you are adding/modifying ejb-jar.xml outside JDeveloper and trying to see the changes.
    Save the ejb-jar.xml file which is being modified externally
    Select ejb-jar.xml in JDeveloper
    and do View | Refresh
    This will load in the changes (providing the source path has been set properly)
    raghu
    JDev Team

  • Annotations to replace ejb-jar.xml?

    Hi gurus,
      Seems that the newest NWDS7.1 does not create ejb-jar.xml for EJB project. And I was told that currently all what we can do in ejb-jar.xml can be done with annotations right now. But where can I find available annotation list? Particularly I need the annotation to get environment entry from JNDI, which can be done using ejb-jar.xml before. 
      Thanks in advance.
    B.R.

    Hi Lee,
    You can find all EJB annotations in the EJB 3.0 Simplified API spec and EJB 3.0 Persistence (JPA) spec.
    The NWDS also gives you tips as to the available annotations from the context menus of different nodes, e.g. in the Outline view, Java editor, etc.
    Last but not least, you can find pieces of annotation reference in the various subnodes of the [online help|http://help.sap.com/saphelp_nwce10/helpdata/en/44/e9af22b9dc03fde10000000a1553f6/frameset.htm].
    Particularly, you should be using @Resource for injecting env entry.
    HTH!
    \-- Vladimir

  • How to write multiple ejb-jar.xml file in an ejb module

    i am developing an ejb project. I hav a number of entity beans and session beans and their mapping in ejb-jar.xml. As the number of beans increases the entry of beans and mapping is also increasing. So i want to ask u that is there any mechanism so that i can divide the ejb-jar.xml file so that it will be easy to maintain it.

    ejb-jar is the smallest composable unit for related EJB components. Your best bet is to create multiple ejb-jars and package them within the same enterprise application (.ear).

  • Java.sql.SQLException: can't create statement from closed connection

    java.sql.SQLException: can't create statement from closed connection.
    at com.caucho.sql.QPooledConnectionImpl.prepareStatement(QPooledConnecti onImpl.java:411)
    I am getting this error with my JSP's, i am running on Resin on Win2k, and MySql as backend.
    Has anyone else also faced this issue ?
    Looking for someone to help me to solve this issue.
    rc

    Looking for someone to help me to solve this issue.Maybe you are closing the connections. You might want to verify that you are not doing that. Or if you are that that is the correct way to return the connection to the pool.
    Or you could have stale connections. Some databases will time out connections if the connection is no used in a while. (This is a good thing.) But this means connection pools must do something with connections that are not used for a while. The pools usually have a configuration option(s) which allows you to set up a keep alive message which keeps the database from closing the connection.

  • Will I be able to create fillable pdf forms from existing word and excel documents?

    Will I be able to create fillable pdf forms from existing word and excel documents?

    Hi
    Yes you can. You may visit this link to check the workflow: https://www.youtube.com/watch?v=O0PPzFq3X00
    Regards,
    Ajlan Huda.

  • Can I Create a New User Account and Move Existing Account ???

    Lion was reinstal.
    I'm suspecting issue with one user account.
    Can I creat a new user account and move all my files to that new user?
    What are the impact?
    How about permissons on this files?
    What about the Library Folder?
    Thank you for your help and support.
    BigBlaze

    This should help you out after  you have created the new user account. You are trying to make it much more complex than it needs to be. Just follow the directions in:
    Transferring files from one User Account to another.

  • Which programs if any can extract the image from existing QTVR pano file?

    Which programs if any can extract the image from existing QTVR panorama files that were created with one image?
    Any ideas?
    Thank you

    Unless you can find an open source ODBC driver for SQL Server that runs on Solaris (and I wouldn't be overly hopeful there) Heterogeneous Services would require that you license something-- a third party ODBC driver, a new Oracle instance, or an Oracle Transparent Gateway.
    As I stated below, you could certainly use SQL Server's ETL tool, DTS. Oracle's ETL tools would require additional licensing since you're just on 9.2. You could also write a small application (Java or otherwise) that connected to both databases and transferred the data. If you're particularly enterprising, you could load the SQL Server Type 4 JDBC driver into Oracle's JVM and write a Java stored procedure that connected to the SQL Server database via JDBC, but that's a pretty convoluted approach.
    Justin

  • How can I create a new iCloud account and transfer my apps?

    I'm sharing an iCloud and iTunes account and want to have my own. Can I create a new iCloud account and transfer my contact list? If I keep the existing iTunes account with the new iCloud acct, can I reload my apps without purchasing them again? I understand I can create a new iTunes acct afterwards.

    OK, so you can create a separate Apple ID for yourself that you use for your Messages, iCloud, Mail, FaceTime, etc. and keep the one that you have your Apps on as your iTunes "Family" Account.
    Before you set up your new Apple ID, be sure to delete your iCloud account from your device: Settings>iCloud, scroll to the bottom and delete the account. Save your Contacts on your phone so you can merge them with your new iCloud account. Your notes, and Photos will still be on your old iCloud account, but if you want to keep any of your photos on your new iCloud account, it would be a good idea to import all of your photos to your computer first, so you can selectively download them to your device. (Note: only your Photo Stream will go away when you delete your iCloud account. Your Camera Roll will stay in place. It's just a good idea to back up that Camera Roll to a computer or to your new iCloud account immediately once you have set it up.
    You then would set up a brand new Apple ID for you under Manage your Apple ID: Apple - My Apple ID
    Once you get it set up, go into your devices and sign off the following:
    Settings>Messages>Send & Receive, click on your "Family" Apple ID and Sign Out
    Settings>Facetime, click on your Apple ID and sign out
    You will leave your "Familiy" Apple/iTunes ID signed on on the iTunes & App Store, becasuse you willl continue to share your iTunes account with the family. Here is a little more info about using two Apple IDs:
    Using your Apple ID for Apple services
    Once you have your new ID set up, go back into Messages and FaceTime and sign back in with your new ID
    Also, go to Settings>iCloud and sign in with your new ID, and be sure to "Merge" your contacts into your new iCloud account.
    Post back with any questions!
    Cheers,
    GB

  • Help me which JNDIFactory to use to access EJB from a java class of JAR

    I am confused in understanding the different JNDI factories
    RMIInitialContextFactory, ApplicationInitialContextFactory and ApplicationClientInitialContextFactory
    And the different namespaces like global, container local and component local.
    Especially is there any relationship between the JNDI factories and the namespaces?
    Or are they related to the deployment descriptors.
    Because in application specific deployment descriptors (orion-ejb-jar.xml), we just map the JNDI location with the object (or its reference from ejb-jar.xml). We dont specify it can be accessed from this factory or that.
    Shall we access an EJB from using any JNDI factory?
    Specifically, I am stuck with what Factory to use to access an EJB from a Java class in a library (jar). The JAR is packaged with the EAR which contains the EJB Jar that I am trying to access.
    THANK YOU

    Ed,
    As Robin said, I think you need code similar to this:
    Context c = new InitialContext();
    Object o = c.lookup("java:comp/env/Name");where Name is the name of your EJB as it appears in the "ejb-jar.xml"
    deployment descriptor XML file.
    Good Luck,
    Avi.

  • Can't create a JAXB binding for ejb-jar.xml using xjc

    Hi all,
    I have been trying to build a JAXB binding for EJB deployment descriptors, mainly because I have to update a hand-cranked ejb-jar.xml file on the fly with some additions that have come from a code generator.
    I have tried to use
    xjc ejb-jar_2_1.xsd j2ee_1_4.xsd ejb-jar_2_1.xsd
    xjc on the schema definitions I found at http://java.sun.com/xml/ns/j2ee/ but I can't get it to work. It produces reams of errors, see below for a short extract.
    Of course, someone could put me out of my misery and tell me where to find a binding that someone else has done. I can't be the first chimp on the planet that has wanted to do this!
    Any help much appreciated.
    errors:
    [WARNING] warning: "blockDefault" attribute of <schema> is not supported
    line 3 of xml.xsd
    [WARNING] warning: "finalDefault" attribute of <schema> is not supported
    line 3 of xml.xsd
    [WARNING] warning: <key> identity constraint will be ignored by JAXB validation
    line 117 of j2ee_web_services_client_1_1.xsd
    [WARNING] warning: <key> identity constraint will be ignored by JAXB validation
    line 115 of ejb-jar_2_1.xsd
    [WARNING] warning: <keyref> identity constraint will be ignored by JAXB validation
    line 129 of ejb-jar_2_1.xsd
    [WARNING] warning: <key> identity constraint will be ignored by JAXB validation
    line 145 of ejb-jar_2_1.xsd
    [WARNING] warning: <keyref> identity constraint will be ignored by JAXB validation
    line 159 of ejb-jar_2_1.xsd

    Exception initializing 'oracle.dbtools.raptor.MonitorJDBCAddin' in extension 'Oracle SQL Developer': oracle.classloader.
    util.AnnotatedNoClassDefFoundError:
    Missing class: oracle.jdbc.OracleDriverThe Oracle driver is not on the classpath.

  • Has anybody created Iview from "Webdynpro Java" component in CE7.1 ?

    Hi All,
           Has anyone created Iview from Webdynpro Java component in CE7.1.
    Because the wizard that appears for creation of Iview has only "Webdynpro ABAP"
    component.There is no option to create iview from "Webdynpro Java" component.
               Althought in portal content--->Template folder i can see there is also
    another template for "SAP Webdynpro iview" which i think is for the Java scenario.
    But issue is, its not coming in the wizard.Can anyone tell me how to make it appear in the wizard ? It will be of great help to me.
    Thanks and Regards
    Ashis

    Hi Ashis,
    your deployed webdynpros are published under "web dynpro applications". just copy the webdynpro from there and paste it into the portal content section.
    http://help.sap.com/saphelp_nwce10/helpdata/en/ce/e0d6f54ae641fc9566501cffaa8c6c/frameset.htm
    Hope that helps you.
    Best wishes, Jens

  • I have multiple devices (imacs, lap tops and ipads) all connected to a NAS server.  Can I create a user for myself and one for my wife, and each have our own apple ID, and Itunes accounts, but all share the same media on NAS drives?

    I have multiple devices (iMacs, Lap tops, Ipads) all connected to a Nas Drive.  Can I create a user for myself and one for my wife and we each have our own apple ID's, Itunes etc, but share the same data on the hard drives?  So when she logs in, and sync's her ipads, they will sync with her stuff and when I do the same under my user account, on the same device, my ipads will sync with my stuff?

    You can share the same Apple ID for purchasng form the iTunes and app stores without any problems, but you should all used separate iCloud accounts with separate Apple IDs.  (You are not required to use the same ID for iCloud and other services as you do for the iTunes store.)  This will prevent you from ending up with merged data.  You should also use separate Apple IDs for iMessage and FaceTime or you will end up getting each other's text messages and FaceTime calls.
    This article may be of interest: http://www.macstories.net/stories/ios-5-icloud-tips-sharing-an-apple-id-with-you r-family/, as well as this video: http://macmost.com/setting-up-multiple-ios-devices-for-messages-and-facetime.htm l.

  • How to read the data from Excel file and Store in XML file using java

    Hi All,
    I got a problem with Excel file.
    My problem is how to read the data from Excel file and Store in XML file using java excel api.
    For getting the data from Excel file what are all the steps i need to follow to get the correct result.
    Any body can send me the code (with java code ,Excel sheet) to this mail id : [email protected]
    Thanks & Regards,
    Sreenu,
    [email protected],
    india,

    If you want someone to do your work, please have the courtesy to provide payment.
    http://www.rentacoder.com

  • Can I creat an new iCloud account and make it the primary one for my backups and buy extra iCloud storage for it?  Thank you

    Can I creat an new iCloud account and make it the primary one for my backups and buy extra iCloud storage for it?  Thank you

    Hey Hindfromlondon,
    Welcome to Apple Support Communities.  Since you are posting here, I take it you already have an Apple ID.  
    You can setup that Apple ID to work with iCloud.  See:
    Set up your Apple ID for iCloud and iTunes - Apple Support
    And you usually want to stick with one Apple ID as having multiples can cause confusion (especially with purchases).
    Frequently asked questions about Apple ID - Apple Support
    What is an Apple ID?
    An Apple ID is a user name you use for everything you do with Apple. Creating an account for an Apple service, such as the iTunes Store or the App Store, creates an Apple ID. Apple ID allows you to access other Apple services. You don't have to create a new account for each service—just use your Apple ID.
    For a complete list of all of the places you can use an Apple ID, see Where do I use an Apple ID.
    and further down:
    I have multiple Apple IDs. Is there a way for me to merge them into a single Apple ID?
    Apple IDs cannot be merged. You should use your preferred Apple ID from now on, but you can still access your purchased items such as music, movies, or software using your other Apple IDs. 
    If you are wondering how using multiple Apple IDs relate to iCloud, see Apple IDs and iCloud.
    Regarding iCloud storage check out
    iCloud storage upgrades and downgrades - Apple Support
    I encourage you to read all about it as there's lots of information out there.
    Take care,
    Nubz

Maybe you are looking for