This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
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 Android Security Essentials Live Lessons this week in the Android 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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: eclipse+jboss+ejb3+mysql+dynamicWebProject
 
Similar Threads
NameNotFoundExcption
JEE example with EJB, JSF is not working
org. postgresql. util. PSQLException: ERROR: relation does not exist
[] How can i integrate JPA with EJB and persistence.xml?
Hibernate -> not-null property references a null or transient value