add tip on JSF debugging
[wiki.git] / java / glassfish.mdwn
1 ## Glassfish asadmin commands
2
3     asadmin start-domain
4     asadmin stop-domain
5     asadmin deploy path/to/hello1.war
6     asadmin list-applications
7     asadmin undeploy hello1
8     asadmin list-log-levels server
9     asadmin generate-jvm-report
10     asadmin list-jvm-options
11     asadmin get server-config.network-config.network-listeners.network-listener.http-listener-1.port
12
13 See also: Subcommands for the asadmin Utility - Oracle GlassFish Server 3.1 Administration Guide - http://docs.oracle.com/cd/E18930_01/html/821-2416/gcode.html
14
15 ## To kill Glassfish
16
17     jps | grep ASMain | awk '{print $1}' | xargs kill -9
18
19 ## Increasing the Glassfish logging level
20
21     murphy:~ pdurbin$ cd /Applications/NetBeans/glassfish-3.1.2.2/glassfish
22     murphy:glassfish pdurbin$ cp -a domains/domain1/config/logging.properties domains/domain1/config/logging.properties.orig 
23     murphy:glassfish pdurbin$ 
24     murphy:glassfish pdurbin$ vim domains/domain1/config/logging.properties
25     murphy:glassfish pdurbin$ diff domains/domain1/config/logging.properties.orig domains/domain1/config/logging.properties
26     66c66
27     < com.sun.enterprise.server.logging.GFFileHandler.level=INFO
28     ---
29     > com.sun.enterprise.server.logging.GFFileHandler.level=FINE
30     murphy:glassfish pdurbin$ 
31
32 Will affect (for example):
33
34     private static final Logger logger = Logger.getLogger(MyClass.class);
35     ...
36     logger.fine("Did something");
37
38 See also:
39
40 - Configuring the Logging Service - Oracle GlassFish Server 3.1 Administration Guide - http://docs.oracle.com/cd/E18930_01/html/821-2416/gklmn.html
41 - http://stackoverflow.com/questions/80692/java-logger-that-automatically-determines-callers-class-name/104851#104851
42
43 ## Java EE 6 Standards Support
44
45 The GlassFish release notes tell you which version of Java Server Facets, Expression Language (EL), etc. you have:
46
47 http://docs.oracle.com/cd/E26576_01/doc.312/e24939/release-notes.htm#gipkz