dev@glassfish.java.net

Re: lopsidedness of domaindir usage?

From: Sahoo <Sahoo_at_Sun.COM>
Date: Thu, 11 Sep 2008 10:46:20 +0530

Kedar Mhaswade wrote:
> Just so it's clear, there is a significant difference in starting the
> server using "asadmin start-domain" and "java -jar ..." and that's you
> take the responsibility of specifying system properties and JVM options
> of interest. Domain.xml is NOT read while doing java -jar, whereas it
> is, while doing "asadmin start-domain".
>
+1.
I want to reinforce that java -jar way of starting has many other side
effects like java.ext.dirs being different which can lead to some
classes loaded differently. It is targeted for certain developers and
should not be used unless you know what exactly they are trying to do.

Thanks,
Sahoo