Hi,
I am attempting to run an example EJB application from "Pro EJB 3 - Java Persistence API" but without success.
The error message I am currently getting is:
--------------------------
----------
----------
----------
----------
----------
----------
----------
----------
-------
--- MBeans waiting for other MBeans ---
ObjectName: persistence.units:jar=EJB.
jar,unitNa
me=Employe
eService
State: NOTYETINSTALLED
I Depend On:
jboss.jca:name=jdbc/Employ
eeDS,servi
ce=DataSou
rceBinding
Depends On Me:
jboss.j2ee:jar=EJB.jar,nam
e=Employee
ServiceBea
n,service=
EJB3
ObjectName: jboss.j2ee:jar=EJB.jar,nam
e=Employee
ServiceBea
n,service=
EJB3
State: NOTYETINSTALLED
I Depend On:
persistence.units:jar=EJB.
jar,unitNa
me=Employe
eService
--- MBEANS THAT ARE THE ROOT CAUSE OF THE PROBLEM ---
ObjectName: jboss.jca:name=jdbc/Employ
eeDS,servi
ce=DataSou
rceBinding
State: NOTYETINSTALLED
Depends On Me:
persistence.units:jar=EJB.
jar,unitNa
me=Employe
eService
--------------------------
----------
----------
----------
----------
----------
----------
----------
----------
-------
The file structure of the application is:
+ EJB [Project name]
---+src
--- ---+examples.models
--- --- ---+Employee.java
--- --- ---+EmployeeService.java
--- --- ---+EmployeeServiceBean.ja
va
--- --- ---+EmployeeServlet.java
--- ---+META-INF
--- --- ---+MANIFEST.MF
--- --- ---+persistence.xml
---+JRE System Library
---+Java EE 5 Libraries
I think the problem is that I have not defined EmployeeDS as specified in the persistence.xml file however I'm not sure where this would go. Also from looking around on Google for well over an hour I'm guessing I'm missing a jboss-ds.xml file?
Please can someone point out the mistakes and perhaps suggest the easiest way I can test the servlet when deploying with either JBoss or Glassfish.
Thanks in advance.
Start Free Trial