Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Resolve EJB3 annotatations

 
Rahul Bangwathia
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 92
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Rahul Bangwathia
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 92
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 10447
227
IntelliJ IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Rahul,

I'll move this to our JBoss forum since this looks JBoss specific question.
 
Jaikiran Pai
Marshal
Pie
Posts: 10447
227
IntelliJ IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic