• Post Reply Bookmark Topic Watch Topic
  • New Topic

eclipse+jboss+ejb3+mysql+dynamicWebProject  RSS feed

carletto brambilla
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi, I'm getting a lot of troubles trying to create an EJB3 project with a dynamic web project into Eclipse (Helios) environment and JBOSS AS 5.

I've three projects in my workspace:

1)lessonejb (EJB project) includes 3 java classes:




2)lessonweb (DynamicWebProject) includes the following JSP:

3)lessonEAR (Enerprise Application Project)
Mysql is installed and the DBserver is turn on with the database "lesson" (and table User)
I've added the mysql jdbc connector into jboss-server-default-lib
I've added the mysql-ds.xml into jboss-server-deploy
I've set lessonweb to include into the build path the lessonejb project
In the META-INF folder of lessonejb project i've added the following persistence.xml:

I've spent 3 days, but nothing seems to get working, I don't get any error into the Eclipse console, but the JSP doesn't appear in the browser: everything works if I remove all the EJB3 annotations!

I've missing something? What about JNDI, is it required? Is there any updated tutorial on the web about this?

  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!