it works as ear project with access to the ejbs by prewriting the ear-archive name
2006/7/1, stephan opitz <[EMAIL PROTECTED]>:
i've looked hours for it and it didn't work... using eclipse... also examples from inet whicht i imported in eclipse... out-of-container ejb shouldn't be that problem but it is... i've used the glassfish reference implementation. also built a jar containing the meta-inf (& persistence.xml) craig may do you have some working one as archive... stephan ps. now i try netbeans 5.5. 2006/6/30, Craig McClanahan <[EMAIL PROTECTED]>: > On 6/30/06, Adam Brod <[EMAIL PROTECTED]> wrote: > > > > I had to put my directory structure like this: > > > > [mywebapp]\WEB-INF\classes\META-INF\persistence.xml > > > > It didn't work when I put it in a top-level META-INF directory. > > > It also works if the persistence.xml file is in the META-INF directory of a > jar file in WEB-INF/lib ... the key is that it has to be visible to the > webapp class loader. > > HTH, > > > > Adam Brod > > Product Development Team > > > Craig > > PS: By the way, NetBeans 5.5 takes care of all the grunt work like this for > you :-). > >
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]