Try doing both. With today's 3.1 build, I added:
<jvm-options>-verbose:class</jvm-options>
to the server-config, java-config element of the domain.xml, and then
ran "asadmin start-domain --verbose" and I see a message printed for
each class that is loaded.
The JDK verbose messages are printed to stdout, not a logger, so the
--verbose option on start-domain is needed to see the output. If you
want the output to go to a log file, you can add the following JVM options:
<jvm-options>-XX:+LogVMOutput</jvm-options>
<jvm-options>-XX:LogFile=${com.sun.aas.instanceRoot}/logs/jvm.log</jvm-options>
if you are using the JDK.
Tom
On 11/30/2010 12:21 PM, Pete Helgren wrote:
> I need to get verbose class loading output so that I can diagnose an
> error. When I add -verbose:class to the jvm options in domain.xml I
> don't see any changes in the logging. If I start the domain with the
> --verbose switch I get verbose output but the class loading isn't
> verbose.
>
> Did I miss something?
>