• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

eclipse+jboss+ejb3+mysql+dynamicWebProject

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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:

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
reply
    Bookmark Topic Watch Topic
  • New Topic