-
1. Re: upgrade to 4.0.4RC1, Error
javatwo Mar 29, 2006 5:35 AM (in response to javatwo)The error above is for using the 4.0.4RC1 installer directly.
This time I downloaded the JBoss 4.0.4RC1 zip file. Unzip the zip file.
Downloaded the EJB3.
Installed EJB3 into the JBoss according to the instruction.
I can start JBoss without any error.
But I got error when I deployed my web application.
ObjectName: jboss.j2ee:service=EJB3,ear=emp.ear,jar=emp.ejb3,name=EmployeeManagerBean
State: NOTYETINSTALLED
I Depend On:
persistence.units:unitName=emp
--- MBEANS THAT ARE THE ROOT CAUSE OF THE PROBLEM ---
ObjectName: persistence.units:unitName=emp
State: NOTYETINSTALLED
At runtime the session bean not found.
InitialContext ctx = new InitialContext();
ctx.lookup(EmployeeManager.getName());
will throw NameNotFoundException.
public class EmployeeManagerBean implements EmployeeManager {
@PersistenceContext (unitName="emp")
protected EntityManager em;
...
}
The web application runs well with JBoss 4.0.3SP1.
Did I miss anything?
Thanks for help. -
2. Re: upgrade to 4.0.4RC1, Error
khoyaraaz Mar 29, 2006 12:31 PM (in response to javatwo)I am getting the same errors after migrating my code. Even after changing the application according to the wiki instructions. Take a look at these:
http://docs.jboss.com/TrailBlazer/ejb3/EJB3RC3toRC5.html
http://www.hibernate.org/371.html
http://wiki.jboss.org/wiki/Wiki.jsp?page=FromJBossEJB3.0RC3ToRC4PFD
I am still getting the above errors though. I am going live in July, and need to migrate soon to tackle clustering and aliasing, so would appreciate any tips. I am using eclipse jboss-IDE, so packaging tips would help too for the migration. I have a post in the ejb 3.0 forum.