users@glassfish.java.net

Re: jpa - problem resolving classes

From: <glassfish_at_javadesktop.org>
Date: Sat, 12 May 2007 11:22:29 PDT

Hi Alessandro,

what is the exact structure of your ear? Is persistence.xml in the META-INF directory of the ejb-jar containing the Banner class? Also, The following line in your code

String queryString = "package anthesi.isiportal.banner;

looks suspicious b/c of the missing quote at the end. Is the String definition ended by line

";

further down? Does this class compile exactly as your posted it?

You might want to check section 6.2 Persistence Unit Packaging of the JPA spec for more information about packaging options.

-- markus.
[Message sent by forum member 'mf125085' (mf125085)]

http://forums.java.net/jive/thread.jspa?messageID=216618