File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes JBoss/WildFly and the fly likes Resolve EJB3 annotatations Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Soft Skills this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Products » JBoss/WildFly
Bookmark "Resolve EJB3 annotatations" Watch "Resolve EJB3 annotatations" New topic
Author

Resolve EJB3 annotatations

Rahul Bangwathia
Greenhorn

Joined: Jan 17, 2009
Posts: 5
Hi guys
I am new to EJB3. I am using Eclipse Europa(Java 5 compiler). I am trying to create HelloWorld program using EJB3. Can you please tell me that how can I resolve annotations ?
I am trying to use annotation like @Stateless..@Remote..
Also I downloaded JBOSS 5.0 unzipped it. Set JAVA_HOME ..JBOSS_HOME but server is till not started after clicking on run.bat. I tried JBOSS 4.0.5 GA but it does not support EJB3.
Adrien Ruffie
Ranch Hand

Joined: Jan 14, 2009
Posts: 90
Hello Rahul,

when you start with run.bat do you have try to connect locahost:8080 or 8084 ? you have clicking on run.bat? if true try to run JBOSS in console/terminal to see the logs why server not started.

For annotations, you can use xDoclet in Eclipse no ? you can also add the JBOSS lib for annotations or of an another implementations of EJB3 (lib Glassfish for exemple javaee.jar / or include in your project jboss-j2ee.jar, jboss-ejb3x.jar, ejb3-persistence.jar). You can use jboss 4.2.3 GA and check JBOSS have the good libs
for EJB3 in /jboss-4.2.3.GA/server/all/lib it's all the libs embedded in JBOSS

Best regards,

Adrien


SCJP 5, SCDJWS 5
http://adrien-ruffie.blogspot.com
Rahul Bangwathia
Greenhorn

Joined: Jan 17, 2009
Posts: 5
Hi Adrien,
Thank you for your response. I have added j2ee.jar. Infact I tried with other 3 libraries that you suggested but annotations are still not resolvable. I wonder how people are working on this as I have already wasted one day on this and still not able to resolve one annotation.

One more problem that I faced while configuring JBOSS in eclipse. It says that classpath entry for mail.jar is missing even though I made an entry in classpath. Then I changed the classpath in jboss.serverdef from "defaut" to "myserver" and it worked. But the problem is it worked with JBOSS 4.0.5(do have support for ejb3)

Regards,
Rahul
Adrien Ruffie
Ranch Hand

Joined: Jan 14, 2009
Posts: 90
I have found this for coupling JBOSS/Eclipse:

http://www.eclipsetotale.com/articles/Introduction_EJB3_avec_Eclipse.html (I know it's in french), I hope this little link may help you, if you have
many problem to understand this tutorial asks me I'm french.

or try:

http://docs.jboss.org/jbosside/tutorial/build/en/html/index.html
Jaikiran Pai
Marshal

Joined: Jul 20, 2005
Posts: 10288
    
168

Rahul,

I'll move this to our JBoss forum since this looks JBoss specific question.

[My Blog] [JavaRanch Journal]
Jaikiran Pai
Marshal

Joined: Jul 20, 2005
Posts: 10288
    
168

Also I downloaded JBOSS 5.0 unzipped it.


Which exact version of JBoss-5.0? I guess JBoss-5.0 GA.


One more problem that I faced while configuring JBOSS in eclipse. It says that classpath entry for mail.jar is missing even though I made an entry in classpath


See this

I am trying to use annotation like @Stateless..@Remote..


It's in jboss-javaee.jar
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Resolve EJB3 annotatations