facebook

[Closed] How do you generate EJB3

  1. MyEclipse IDE
  2.  > 
  3. Java EE Development (EJB, JSP, Struts, XDoclet, etc.)
Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #272303 Reply

    TimSimeonov
    Member

    I created a Stateless EJB 3 using the wizard. I see 2 classes created with the @Stateless anotation in the bean. So far so good. When I deploy to WebLogic 10 container classes are not generated. If I use ejbdoclet I see that it has a version EJB 2 support. How do one develops EJB 3 for WL10 in MyEclipse?

    Here is the gen code for both the bean and remote interface

    @Remote

    public interface TestRemote {

    }

    @Stateless
    public class Test implements TestRemote {

    }

    Thanks,
    Tim

    #272312 Reply

    Loyal Water
    Member

    Can you please clarify if the bean is not working (you cannot see it deployed in the admin console) or if you are just looking for some other classes ?

    Can you check the admin console first to see if WebLogic shows the beans as deployed.

    #272332 Reply

    TimSimeonov
    Member

    I do the build and deploy using the utilities provided by MyEclipse i.e. no custom Ant script. The EAR I deploy as EXPLODED and I see the class files on the server. The EJB is not being deployed and I don’t see any container gen classes. If I try to deploy as a EAR I get ERROR: META-INF/ejb-jar.xml of module TestEJB.jar. The error is weblogic.descriptor.DescriptorException: VALIDATION PROBLEMS WERE FOUND

    Just in general, how is it supposed to work? Do I still need to use XDoclet to generate the EJB classes or simply deploying does that?
    Thanks for your help,
    Tim

    #272390 Reply

    zartc
    Member

    You don’t need to use XDoclet to develop EJB3.
    Simply deploying an EJB.jar or an EAR to the application container is enough for him to generate the classes it needs to manage your EJB.
    It is just a silly question but does your EJB have at least one business method ? (none is visible in the snippets you presented)

    zartc

    #272392 Reply

    TimSimeonov
    Member

    It’s all working now. I had to manually clean up cache and generated classes on the WL10 and redeploy and it did generate the classes OK. I guess between trying to use the old doclet and not use it at all it all got confused.

    Thanks,
    Tim

    #272406 Reply

    Loyal Water
    Member

    Glad its working now. Thanks for letting us know.

Viewing 6 posts - 1 through 6 (of 6 total)
Reply To: [Closed] How do you generate EJB3

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