Re: [Hibernate] Query failing

2006-06-09 Thread Steve Ebersole
Still not able to reproduce this... -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Steve Ebersole Sent: Friday, June 09, 2006 9:44 AM To: Hibernate development Subject: Re: [Hibernate] Query failing I'll take a look. That code block should

Re: [Hibernate] Query failing

2006-06-09 Thread Steve Ebersole
nuel Bernard Cc: Hibernate development Subject: Re: [Hibernate] Query failing On Fri, 09 Jun 2006 16:16:44 +0200, Emmanuel Bernard <[EMAIL PROTECTED]> wrote: > But it *is* working if item the alias is renamed i. yes, because you don't have a class named org.hibernate.ejb.tes

Re: [Hibernate] Query failing

2006-06-09 Thread Max Rydahl Andersen
which test is this ? Trying to reproduce it here but no luck. /max > >> But it *is* working if item the alias is renamed i. > > yes, because you don't have a class named org.hibernate.ejb.test.i > > Note, i can't see why it actually tries to load > org.hibernate.ejb.test.item and not just item. >

Re: [Hibernate] Query failing

2006-06-09 Thread Max Rydahl Andersen
On Fri, 09 Jun 2006 16:16:44 +0200, Emmanuel Bernard <[EMAIL PROTECTED]> wrote: > But it *is* working if item the alias is renamed i. yes, because you don't have a class named org.hibernate.ejb.test.i Note, i can't see why it actually tries to load org.hibernate.ejb.test.item and not just it

Re: [Hibernate] Query failing

2006-06-09 Thread Emmanuel Bernard
But it *is* working if item the alias is renamed i. Max Rydahl Andersen wrote: > > > No, this is a pure Hibernate EntityManager test, it has nothing to do > > with app servers. > > ah - i didn't see that getConstantValue thingy. > that error is because of terrible windows that forces the classloa

Re: [Hibernate] Query failing

2006-06-09 Thread Max Rydahl Andersen
the fix is either to add an extra catch or somehow improve the parser so it doesn't try to resolve a classname out of an alias. /max >> No, this is a pure Hibernate EntityManager test, it has nothing to do >> with app servers. > > ah - i didn't see that getConstantValue thingy. > that error is b

Re: [Hibernate] Query failing

2006-06-09 Thread Max Rydahl Andersen
> No, this is a pure Hibernate EntityManager test, it has nothing to do > with app servers. ah - i didn't see that getConstantValue thingy. that error is because of terrible windows that forces the classloaders to have case ignored for lookups ;) /max > Max Rydahl Andersen wrote: >> >> I have

Re: [Hibernate] Query failing

2006-06-09 Thread Emmanuel Bernard
No, this is a pure Hibernate EntityManager test, it has nothing to do with app servers. Max Rydahl Andersen wrote: > > I have seen similar NoClassDef when dealing with classloaders in eclipse. > > It looks like the current context thread might not be behaving as it > should ? > Does this happen

Re: [Hibernate] Query failing

2006-06-09 Thread Max Rydahl Andersen
I have seen similar NoClassDef when dealing with classloaders in eclipse. It looks like the current context thread might not be behaving as it should ? Does this happen only under GlassFish or ? (but weird that changing the alias makes a difference?) /max > Steve, > JPA compliance + the lite

[Hibernate] Query failing

2006-06-08 Thread Emmanuel Bernard
Steve, JPA compliance + the literal thing seems to give trouble to Query q = em.createQuery( "select item from Item item where item.descr like 'Microk_oft mouse' escape 'k' " ); ava.lang.NoClassDefFoundError: item (wrong name: org/hibernate/ejb/test/Item) at java.lang.ClassLoader.defineClass1