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

2009-07-02 Thread PeterJ
Which version of JBoss AS are you using? I found the QuerySyntaxException
 in common/lib/hibernate-core.jar, so it should be available.

Could you post your JAR or EAR file that contains the EJB? Use: "jar -tf 
xxx.jar" where xxx.jar is the name of your JAR (or EAR) file.

Also, is the code that you posted from and EJB3 session bean? If so, where are 
the entity beans located relative to the session bean? The stack trace suggests 
that you are attempting to access the entity beans remotely...

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

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4241579
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


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

2009-07-02 Thread MarcelK1607
Sorry, already solved it, i didnt have the right jars.

Thanks anyway!

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

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4241581
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


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

2009-07-02 Thread MarcelK1607
Also I am running the client app in Eclipse, maybe I need hibernate there?
I am confused sorry.

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

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4241482
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


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

2009-07-02 Thread MarcelK1607
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 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
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


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

2009-07-02 Thread Wolfgang Knauf
Hi!

Where do you see the exception? In your EJB or in the client side? Please 
provide more details about your app.

JBoss uses Hibernate internally to perform all EJB3 database access. Does your 
app contain hibernate JARs?

Best regards

Wolfgang

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

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4241475
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user