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 !
精彩评论