users@glassfish.java.net

Re: Problem with adding libraries (jcr-2.0.jar) to glassfish

From: Jason Lee <jason.d.lee_at_oracle.com>
Date: Thu, 20 Sep 2012 08:49:34 -0500

Installing it (either manually or via asadmin) only updates the server.
I could be wrong, but I don't think NetBeans uses the server's library
and module list for building, etc. I think you're going to have to add
that library to your project (e.g., your Maven pom) as well for NB to
find it.

On 09/20/2012 06:49 AM, forums_at_java.net wrote:
> Hey guys, I'm desperately trying to add the jcr-2.0.jar to my
> domain-specific
> libraries. I already tried dropping the jar at /domains/{mydomain}/lib
> and
> /domains/{mydomain}/lib/ext and I already tried installing it via the
> admin
> UI (add-libraries --type=ext) and so on. But then in netbeans, when I
> try to
> use an import from it (import javax.jcr.repository e.g) it cannot find
> it.
> The server I used runs on a different machine maybe that's the
> problem?? What
> can I do? thanks for your help
>
> --
>
> [Message sent by forum member 'kithouna']
>
> View Post: http://forums.java.net/node/890403
>
>


-- 
Jason Lee
Principal Member of Technical Staff
GlassFish Team
Oracle Corporation
Phone +1 405-216-3193
Blog http://blogs.steeplesoft.com