User Tools

Site Tools


java:glassfish

Links

asadmin commands

Command asadmin + … Beschreibung
ÜbersichtOracle GlassFish Server 3.1: asadmin Utility Subcommands
list-application-refs Liefert die Namen der installierten/internen Applikationen
sinnvoll z.B. für undeploy

Glassfish behind Apache

Edit httpd.conf and restart apache. In this case, apache proxies /api calls to glassfish on port 8080 and the rest of the calls is delegated to a local node.js process running on port 8888.

LoadModule proxy_module modules/mod_proxy.so
LoadModule proxy_http_module modules/mod_proxy_http.so
LoadModule rewrite_module modules/mod_rewrite.so
 
# disable use as forward proxy
ProxyRequests Off
# don't handle Via: headers - we don't care about them
ProxyVia Off
# no need to transport host name - not doing virtual hosting
ProxyPreserveHost Off
 
ProxyPass         /api/   http://127.0.0.1:8080/api/
ProxyPassReverse  /api/   http://127.0.0.1:8080/api/
 
ProxyPass         /       http://127.0.0.1:8888/
ProxyPassReverse  /       http://127.0.0.1:8888/
 
# If you get HTTP status code 502 (Bad Gateway), maybe this could help
SetEnv force-proxy-request-1.0 1
SetEnv proxy-nokeepalive 1

For the problem w/ status code 502, see also http://dobesland.wordpress.com/2008/08/22/gwt-to-lighttpdapache-to-glassfish-502-proxy-or-500-internal-errors-fix/

java/glassfish.txt · Last modified: 2013/07/02 15:02 by hgoebl