users@glassfish.java.net

Re: problem with custom login.conf location for embedded Glassfish v3

From: <glassfish_at_javadesktop.org>
Date: Wed, 14 Apr 2010 02:58:17 PDT

the domain.xml includes:

<domain log-root="${com.sun.aas.instanceRoot}/logs" application-root="${com.sun.aas.instanceRoot}/applications" version="10.0">

...

<configs>
   <config name="server-config">
         <java-config debug-enabled="false" debug-options="-Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=9009" >
             <jvm-options>-Djava.security.auth.login.config=/path/to/test/login.conf</jvm-options>
         </java-config>
   </config>
</configs>
</domain>


domain.xml is referenced from maven pom.xml, maven-embedded-glassfish-plugin configuration part

            <plugin>
                <groupId>org.glassfish</groupId>
                <artifactId>maven-embedded-glassfish-plugin</artifactId>
                <version>3.0</version>
                <configuration>
                    <app>${project.build.directory}/${build.finalName}.war</app>
                    <port>20123</port>
                    <contextRoot>${artifactid}</contextRoot>
                   <instanceRoot>${project.build.directory}/gfembed${maven.build.timestamp}</instanceRoot>
                    <autoDelete>true</autoDelete>
                    <configFile>${basedir}/src/test/domain.xml</configFile>
                </configuration>
[Message sent by forum member 'tanel3']

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