-
1. Re: noclassdefferror on deploying
jdijkmeijer Oct 8, 2003 12:00 PM (in response to jdijkmeijer)One more thing..
The error I get is:
java.lang.NoClassDefFoundError:
org/spuyt/web/forms/SubjectFullForm
and below the proof that my jar does contain the mentioned class:
-rw-r--r-- 546 8-Oct-2003 18:49:12 org/spuyt/interfaces/Subject.class
-rw-r--r-- 701 8-Oct-2003 18:49:12 org/spuyt/interfaces/SubjectHome.class
-rw-r--r-- 999 8-Oct-2003 18:49:14 org/spuyt/web/akties/SubjectListAction.class
-rw-r--r-- 3705 8-Oct-2003 18:49:12 org/spuyt/web/akties/TestFinder.class
-rw-r--r-- 2701 8-Oct-2003 18:49:12 org/spuyt/web/forms/SubjectFullForm.class
-rw-r--r-- 1800 8-Oct-2003 18:49:14
org/spuyt/web/forms/SubjectFullForm
-rw-r--r-- 701 8-Oct-2003 18:49:12 -
2. Re: noclassdefferror on deploying
darranl Oct 9, 2003 3:15 AM (in response to jdijkmeijer)The reason that it is bad practice to be passing an action form class into the ejbCreate method is because your persistence layer should not need to be aware of anything in the presentation layer.
In addition to this it is recommended in a few places that you only pass the minimum number of data items into ejbCreate and then set the remaining values using the exposed set methods.
Also have you considered using a session bean in front of the entity beans? That would make it a lot easier in the future to completely change the client that is accessing your beans.