users@glassfish.java.net

Re: How do I enable assertions with glassfish? My ear classes have some.

From: Alexis Moussine-Pouchkine <alexis.mp_at_sun.com>
Date: Sun, 16 May 2010 23:46:33 +0200

the "-ea" should be in the <jvm-options> section of your domain.xml
try this :
% asadmin create-jvm-options "-ea"

-Alexis

On 16 mai 2010, at 20:35, glassfish_at_javadesktop.org wrote:

> Hello,
>
> It's surely a classical question but I just didn't the information yet.
>
> I have some classes included in my ear that use the [i][b]assert[/b][/i] keyword intensively.
> And this is good, because I am at debug time, and I need to track a lot of troubles.
>
> However, my asserts are yet not enabled within [i]Glassfish[/i]. (I use glassfish v3).
> How do I enable them? I've attempted an edit of the asadmin.bat, adding an -ea option on the java command line, but I knew at the very beginning that it wouldn't work...
>
> What is the good way to enable assertions for the content deployed in glassfish?
>
> Regards.
>
> Grunt.
> [Message sent by forum member 'grunt2000']
>
> http://forums.java.net/jive/thread.jspa?messageID=470052
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: users-help_at_glassfish.dev.java.net
>