aspose file tools*
The moose likes EJB and other Java EE Technologies and the fly likes eclipse+jboss+ejb3+mysql+dynamicWebProject 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 » Java » EJB and other Java EE Technologies
Bookmark "eclipse+jboss+ejb3+mysql+dynamicWebProject" Watch "eclipse+jboss+ejb3+mysql+dynamicWebProject" New topic
Author

eclipse+jboss+ejb3+mysql+dynamicWebProject

carletto brambilla
Greenhorn

Joined: Dec 29, 2010
Posts: 1
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:

loginRemote


loginBean



User

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?

Thanks
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: eclipse+jboss+ejb3+mysql+dynamicWebProject