- This topic has 5 replies, 3 voices, and was last updated 17 years, 6 months ago by Loyal Water.
-
AuthorPosts
-
TimSimeonovMemberI 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
Loyal WaterMemberCan 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.
TimSimeonovMemberI 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
zartcMemberYou 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
TimSimeonovMemberIt’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
Loyal WaterMemberGlad its working now. Thanks for letting us know.
-
AuthorPosts