سؤال

I want to develop a custom realm for GlassFish 3.1 in NetBeans 7.0.1, and I want to import the JAR that contains the class com.sun.appserv.security.AppservPasswordLoginModule to the project classpath, so I could extend it. Tried \glassfish-3.1\glassfish\lib\appserv-rt.jar, but it's not in that. Which JAR do I have to import?

هل كانت مفيدة؟

المحلول

glassfish/modules/security.jar

نصائح أخرى

Use Maven for that it's easier than pasting jars.

If you need to past Jars go to glassfish repo below and copy your jar from there.

This dependency is this one

<dependencies>
    <dependency>
        <groupId>org.glassfish.security</groupId>
        <artifactId>security</artifactId>
        <version>3.1</version>
    </dependency>
</dependencies>

and repo

<repositories>
    <repository>
        <id>glassfish</id>
        <name>Glassfish</name>
        <url>https://repository.jboss.org/nexus/content/repositories/glassfish</url>
    </repository>
</repositories>

Cheers !

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top