[jboss-user] [Beginners Corner] - Re: jBoss and Hibernate

MarcelK1607 do-not-reply at jboss.com
Thu Jul 2 09:19:29 EDT 2009


Exception in thread "main" java.lang.reflect.UndeclaredThrowableException
  | 	at $Proxy2.findMedewerker(Unknown Source)
  | 	at nl.capgemini.inzetmanagement.client.Client.main(Client.java:27)
  | Caused by: java.lang.ClassNotFoundException: org.hibernate.hql.ast.QuerySyntaxException
  | 	at org.jboss.remoting.serialization.ClassLoaderUtility.loadClass(ClassLoaderUtility.java:103)
  | 	at org.jboss.remoting.loading.RemotingClassLoader.loadClass(RemotingClassLoader.java:86)
  | 	at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)
  | 	at java.lang.Class.forName0(Native Method)

This happens when i use this code:
	@Override
  | 	public Medewerker findMedewerker(int id) {
  | 		Query createQuery = entityManager.createQuery("SELECT m FROM medewerker m");
  | 		Collection<Medewerker> result = createQuery.getResultList();
  | 		System.out.println(result);
  | 		return null;
  | 	}

Ths is what I put in my remote bean.

So do I have something missing in my libs? Do i need hibernate in the libs dir?

View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4241481#4241481

Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4241481



More information about the jboss-user mailing list