it produces java.lang.NoClassDefFoundError: javax/persistence/CascadeType like there is no ejb3-persistence.jar in server classpath(actually it is). I`ve also tried javaee.jar instead but with no result. So haw can this be solved?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
First, please accept apologies for the very long delay : I do not know why, but my SF account was not monitoring this forum anymore, so I did not receive mail notification of your post :-(
EJB3 annotations emulation is for JS support only. In hosted mode, code is needing Java equivalent, which are contained in the JAR you mentioned...
Did you solve this issue since december ?
Regards
Bruno
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi. I`m trying to embed Hibernate4GWT(1.1.2) into my GWT application. Here is some main point of it
gwt.xml:
....
<inherits name='net.sf.hibernate4gwt.Hibernate4Gwt15'/>
<inherits name='net.sf.hibernate4gwt.emul.java5.ejb3.Ejb3'/>
....
Service Implementation:
public class AdminServiceImpl extends HibernateRemoteService implements AdminService {
private MyDAO myDAO = DAOFactory.getMyDAO();
....
Bean code:
@Entity
@Table(name = "PUBLIC.PAGE")
public class Page extends LazyPojo implements Serializable {....}
But when I run(in hosted mode) on a client side creation of AdminService :
this.adminService = (AdminServiceAsync) GWT.create(AdminService.class);
it produces java.lang.NoClassDefFoundError: javax/persistence/CascadeType like there is no ejb3-persistence.jar in server classpath(actually it is). I`ve also tried javaee.jar instead but with no result. So haw can this be solved?
Hi,
First, please accept apologies for the very long delay : I do not know why, but my SF account was not monitoring this forum anymore, so I did not receive mail notification of your post :-(
EJB3 annotations emulation is for JS support only. In hosted mode, code is needing Java equivalent, which are contained in the JAR you mentioned...
Did you solve this issue since december ?
Regards
Bruno
Hi! Thanks for your reply. No, I haven`t solved that issue, so I`m curious, what can be better solution for it?
Hi,
Which IDE are you using ? Eclipse ? NetBeans ?
Regards
Bruno
Hi, My IDE is Idea 8.0.1