[jboss-user] [Persistence, JBoss/CMP, Hibernate, Database] - Re: (debian, eclipse 3.4)

2009-03-03 Thread lolveley
I forgot the client class : public static void main(String[] args) { | | try { | | Context ctx=new InitialContext(); | | Object rem0=ctx.lookup("petstore_ear/CustomerBean/remote"); |

[jboss-user] [Persistence, JBoss/CMP, Hibernate, Database] - (debian, eclipse 3.4) "detached entity pased to persist"

2009-03-03 Thread lolveley
hi, I use eclipse and jboss 4.2.2. I created a EAR project (enterprise application project) which contains 2 sub-projects : an EJB project which contains some EJB and a JPA entity, and a java project which contains the client "main" method. here is my problem : nothing at the writing of the code

[jboss-user] [EJB 3.0] - Re: (debian, eclipse) javax.naming.NameNotFoundException: Cus

2009-03-02 Thread lolveley
hello, thanks for your reply. I changed the code of the client, and now I have the following error : "javax.ejb.EJBException: java.lang.IllegalArgumentException: Unknown entity: source.customer.Customer". the class it speaks about is a class I created in a JPA project. I added references to thi

[jboss-user] [EJB 3.0] - (debian, eclipse) javax.naming.NameNotFoundException: Custome

2009-03-02 Thread lolveley
hello, I can"t access to a EJB via JNDI. here is the stuff I use : eclipse ganymède JEE, JBOSS 4.2.2 (modified to be used with MySQL). I have created an EAR project (enterprise application project), names petstore_ear, which contains several projects: an EJB project which contains many EJBs, a