users@glassfish.java.net

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

From: <glassfish_at_javadesktop.org>
Date: Sun, 16 May 2010 11:35:08 PDT

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