February 6, 2016

How to Enable /Disable assertions on GlassFish Java EE server

Start the admin command line: ./asadmin  
Issue the following command to enable assertion:  
Shell>create-jvm-options -ea 
Restart the GF server  

And when you're done debugging, disable the asserts:  
Shell>delete-jvm-options -ea

Popular Posts

Labels

ad ( 17 ) Amazon ( 63 ) analytics ( 4 ) Answer ( 1 ) Apache ( 2 ) API ( 43 ) Apple ( 5 ) automation ( 1 ) blog ( 35 ) book ( 3 ) business ( 1 ) career ( 25 ) cdn ( 3 ) centos ( 1 ) cloud ( 203 ) cms ( 8 ) container ( 9 ) CRM ( 29 ) curity ( 1 ) current ( 26 ) data ( 53 ) database ( 82 ) design patterns ( 22 ) development ( 3 ) document ( 1 ) domain ( 1 ) eCommerce ( 35 ) email ( 107 ) enterprise ( 1 ) ETL ( 2 ) file ( 1 ) framework ( 3 ) game ( 4 ) git ( 19 ) google ( 277 ) IDE ( 34 ) Integration ( 3 ) interview ( 29 ) IoT ( 3 ) Java ( 554 ) Java EE ( 146 ) javascript ( 80 ) Jboss ( 12 ) JPA ( 72 ) JSF ( 53 ) linux ( 413 ) Marketing ( 37 ) micro ( 1 ) Microsoft ( 19 ) mobile ( 76 ) model ( 1 ) MySQL ( 249 ) news ( 5 ) online money ( 21 ) OOP ( 7 ) open source ( 34 ) performance ( 104 ) php ( 60 ) platform ( 5 ) python ( 46 ) quality ( 9 ) referral ( 3 ) restful ( 25 ) script ( 1 ) security ( 200 ) SEO ( 36 ) social ( 56 ) software ( 86 ) spam ( 5 ) Spring ( 1 ) SQL ( 27 ) system ( 58 ) testing ( 22 ) tool ( 107 ) trends ( 1 ) UML ( 8 ) virtual ( 12 ) web ( 310 ) web services ( 20 ) WildFly ( 8 ) windows ( 2 ) wordpress ( 21 )