My bean adds to the DB fine, I can see it in the HSQL DB Manager but whichever way I try to retieve the info it comes up with the following error.
Exception in thread "main" java.lang.NoClassDefFoundError: antlr/RecognitionException at java.lang.Class.getDeclaredFields0(Native Method) at java.lang.Class.privateGetDeclaredFields(Unknown Source) at java.lang.Class.getDeclaredField(Unknown Source) at java.io.ObjectStreamClass.getDeclaredSUID(Unknown Source) at java.io.ObjectStreamClass.access$600(Unknown Source) at java.io.ObjectStreamClass$2.run(Unknown Source) at java.security.AccessController.doPrivileged(Native Method) at java.io.ObjectStreamClass.(Unknown Source) at java.io.ObjectStreamClass.lookup(Unknown Source) at java.io.ObjectStreamClass.initNonProxy(Unknown Source) at java.io.ObjectInputStream.readNonProxyDesc(Unknown Source) at java.io.ObjectInputStream.readClassDesc(Unknown Source) at java.io.ObjectInputStream.readOrdinaryObject(Unknown Source) at java.io.ObjectInputStream.readObject0(Unknown Source) at java.io.ObjectInputStream.defaultReadFields(Unknown Source) at java.io.ObjectInputStream.readSerialData(Unknown Source) at java.io.ObjectInputStream.readOrdinaryObject(Unknown Source) at java.io.ObjectInputStream.readObject0(Unknown Source) at java.io.ObjectInputStream.defaultReadFields(Unknown Source) at java.io.ObjectInputStream.readSerialData(Unknown Source) at java.io.ObjectInputStream.readOrdinaryObject(Unknown Source) at java.io.ObjectInputStream.readObject0(Unknown Source) at java.io.ObjectInputStream.readObject(Unknown Source) at org.jboss.remoting.marshal.serializable.SerializableUnMarshaller.read(SerializableUnMarshaller.java:72) at org.jboss.remoting.transport.socket.SocketClientInvoker.transport(SocketClientInvoker.java:244) at org.jboss.remoting.RemoteClientInvoker.invoke(RemoteClientInvoker.java:117) at org.jboss.remoting.Client.invoke(Client.java:201) at org.jboss.aspects.remoting.InvokeRemoteInterceptor.invoke(InvokeRemoteInterceptor.java:41) at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:88) at org.jboss.aspects.tx.ClientTxPropagationInterceptor.invoke(ClientTxPropagationInterceptor.java:46) at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:88) at org.jboss.aspects.security.SecurityClientInterceptor.invoke(SecurityClientInterceptor.java:40) at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:88) at org.jboss.ejb3.remoting.IsLocalInterceptor.invoke(IsLocalInterceptor.java:41) at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:88) at org.jboss.ejb3.stateless.StatelessRemoteProxy.invoke(StatelessRemoteProxy.java:88) at $Proxy0.getCustomer(Unknown Source) at client.Client.main(Client.java:34) package com.meerkat.jfr.ejb; | | import java.util.Collection; | import java.util.List; | | import javax.ejb.Stateful; | import javax.ejb.Stateless; | import javax.persistence.EntityManager; | import javax.persistence.PersistenceContext; | import javax.transaction.Transaction; | | import org.jboss.aspects.Current; | | import com.meerkat.jfr.par.CustomerCMP; | | @Stateless | public class CustomerBean implements Customer { | | @PersistenceContext(unitName = "cust") | private EntityManager em; | @Current Transaction tx; | | public CustomerCMP addCustomer(String Name, String Contact) | { | CustomerCMP cust = new CustomerCMP(Name, Contact); | em.persist(cust); | em.flush(); | return cust; | } | public CustomerCMP getCustomer(String Name) | { | return (CustomerCMP) em.createQuery("from Customer c where c.Name =:Name") | .setParameter("Name", Name) | .getSingleResult(); | } | public List getCustomers() | { | return em.createQuery("from Customer c").getResultList(); | } | | } | import javax.persistence.*; | | @Entity | @Table(name = "CUSTOMER") | public class CustomerCMP implements java.io.Serializable{ | | private Long id; | private String name; | private String contact; | // private Address address; | // private List<Store> StoreList; | | public CustomerCMP(){} | | public CustomerCMP(String Name, String Contact) | { | // Debug.print("Create", this); | this.name = Name; | this.contact = Contact; | } | | @Id(generate = GeneratorType.AUTO) | @Column(name = "ID", nullable = false) | public Long getId() { | return id; | } | public void setId(Long id) { | this.id = id; | } | | @Column(name="NAME") | public String getName() { | return name; | } | public void setName(String name) { | this.name = name; | } | | @Column(name="CONTACT") | public String getContact() { | return contact; | } | public void setContact(String contact) { | this.contact = contact; | } | } View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3894354#3894354 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3894354 ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user