Hi Malia,

> I am getting error when trying to run a session bean that 
> creates an entity bean. ...

>         java.rmi.ServerException: Could not create primary key;
>              nested exception is:
>         java.lang.InstantiationException: ScheduleBeanPK

The java.lang.InstantiationException is

| Thrown when an application tries to create an instance of a 
| class using the newInstance method in class Class ...

The JavaDocs for Class.newInstance() state:

| Throws ... InstantiationException - if this Class represents an 
| abstract class, an interface, an array class, a primitive type, 
| or void; or if the instantiation fails for some other reason.

I guess, your 'other reason' is, that you have no public no arg
constructor in your PK class, as required by EJB specs 1.1 section 
9.4.7.2 (read also 9.2.9).

Hope this helps

Georg
 ___   ___
| + | |__    Georg Rehfeld      Woltmanstr. 12     20097 Hamburg
|_|_\ |___   [EMAIL PROTECTED]           +49 (40) 23 53 27 10



_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to