facebook

Error setting up basic EJB3 project

💡
Our Forums Have Moved

For help with installation, bugs reports or feature requests, please head over to our new forums.
Genuitec Community on GitHub

  1. MyEclipse IDE
  2.  > 
  3. Installation, Configuration & Updates
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #273475 Reply

    Mork
    Participant

    Hello,

    I tried to create a basic EJB3 project this morning. Unfortunately, your EJB3 tutorial (MyBlog) assumes or created previously critical parts of the basic setup process.

    The error I got when trying to submit the basic EJB persistence, JNDI, and driver information was this:

    “Creation of element failed. Preference node com.genuitec.eclipse.persistence.jpa has been removed”.

    Here’s what I did:

    1. Create a new EJB3 project.
    2. Called it TitanCruises (to match O’Reilly EJB3 book)
    3. Configured JPA Persistence like this:

    — >Persistence unit name = “TitanCruises”
    — > JNDI Data Source Name =”Titan”

    (no JNDI code yet exists, I’m just starting this project)

    JPA DataSource Details:
    (MySQL Driver) created –> TitanCruises
    Catalog/Schema->TitanCruises

    Click Finish.

    Looks like it will work, but then I get the error above.

    —–

    Can you explain what’s going on?

    It’s not clear when to create the JNDI code or anything else from this “wizard”.

    Also, if I uncheck the boxes on this setup screen, the options to add persistence are grayed out from the MyEclipse project menu.

    What do I need to do to make this work?

    Do you have the O’Reilly EJB3 book? That would be an EXCELLENT first tutorial example (Chapter 4).

    ——

    Or, do you have a complete end-to-end tutorial coming to show how to correctly enter these details and create both a session and entity bean?

    The tutorial I found from the laguina expects you to mostly write code for persistence and doesn’t seem to take advantage of your built-in functionality.

    Your “MyBlob” tutorial has many pieces already defined outside the tutorial.

    Your JPA tutorial uses a standard “Java” project so it’s disjointed and unclear how it might relate to to an EJB project.

    See the problem? Lots of good stuff here, just not clear how to use it or how it connects.

    Also, the MyEclipse errors are mostly worthless since they don’t really inform what the user should do: they just state an internal software problem and quit. How is this kind of information useful for your customers who have to figure out what to do next?

    Look forward to your reply.

    Thanks.

    M

    #273547

    Riyad Kalla
    Member

    your EJB3 tutorial (MyBlog) assumes or created previously critical parts of the basic setup process.

    Can you identify which part was missing?

    1. Create a new EJB3 project.
    2. Called it TitanCruises (to match O’Reilly EJB3 book)
    3. Configured JPA Persistence like this:

    — >Persistence unit name = “TitanCruises”
    — > JNDI Data Source Name =”Titan”

    (no JNDI code yet exists, I’m just starting this project)

    JPA DataSource Details:
    (MySQL Driver) created –> TitanCruises
    Catalog/Schema->TitanCruises

    Click Finish.

    Looks like it will work, but then I get the error above.

    This all looks good…

    Looks like it will work, but then I get the error above.

    —–

    Can you explain what’s going on?

    No not yet. Can you post your setup info from MyEclipse > Installation Summary > Installation details? Looks like something happened with the plugin if the preference node was killed off…

    It’s not clear when to create the JNDI code or anything else from this “wizard”.

    What JNDI code are you referring to specifically? Or what functionality were you expecting to see code for that you didn’t?

    Also, if I uncheck the boxes on this setup screen, the options to add persistence are grayed out from the MyEclipse project menu.

    This was an oversight that will be fixed in 6.1. The (incorrect?) assumption is that the persistence would always be configured when the project was created, but we will be adding in 6.1 the ability to add the persistence information after the project is created.

    Do you have the O’Reilly EJB3 book? That would be an EXCELLENT first tutorial example (Chapter 4).

    Unfortunately not. Do they have a link to it online? I could probably go through it and see what I could put together…

Viewing 2 posts - 1 through 2 (of 2 total)
Reply To: Error setting up basic EJB3 project

You must be logged in to post in the forum log in