Get Adobe Flash player

Glassfish V2 UR2

Installation du serveur d'application GlassFish V2 UR2 de Sun.

wget http://java.net/download/javaee5/v2ur2/promoted/Linux/glassfish-installer-v2ur2-b04-linux-ml.jar
java -jar -mx256M glassfish-installer-v2ur2-b04-linux-ml.jar mv glassfish /opt/glassfish-v2ur2-b04-ml ln -s /opt/glassfish-v2ur2-b04-ml /opt/glassfish


Modifier les lignes suivantes dans le fichier /opt/glassfish/setup.xml.

<property name="domain.name" value="dedibox"/>
<property name="admin.password" value="MOT_DE_PASSE"/>


Installation du domaine dedibox.

chmod ugo+x /opt/glassfish/lib/ant/bin/ant
cd /opt/glassfish
/opt/glassfish/lib/ant/bin/ant -f setup.xml


Installation du driver MySQL.

ln -s /usr/lib/java/mysql-connector.jar /opt/glassfish/lib/mysql-connector.jar


Protection du système contre GlassFish.

useradd -d /opt/glassfish glassfish
chown glassfish:glassfish /opt/glassfish
chown glassfish:glassfish /opt/glassfish-v2ur2-b04-ml -R


Installation du script de démarrage automatique du serveur.

apt-get install sudo
cd /etc/init.d
update-rc.d glassfish defaults


Commandes de démarrage/arrêt d'un domaine.

/opt/glassfish/bin/asadmin start-domain dedibox
/opt/glassfish/bin/asadmin stop-domain dedibox


Exemple d'hôtes virtuels Apache

<VirtualHost *:80>
    ServerName glassfish.gissinger.net
    ProxyPass / http://127.0.0.1:8080/
    ProxyPassReverse / http://127.0.0.1:8080/
    ProxyPassReverseCookiePath / /
    ProxyPassReverseCookieDomain / 127.0.0.1

    <Proxy *>
        Allow from all
    </Proxy>
</VirtualHost>


<VirtualHost *:443>
    ServerName glassfish.gissinger.net
    SSLEngine On
    ProxyPass / https://127.0.0.1:8181/
    ProxyPassReverse / https://127.0.0.1:8181/
    ProxyPassReverseCookiePath / /
    ProxyPassReverseCookieDomain / 127.0.0.1

    <Proxy *>
        Allow from all
    </Proxy>
</VirtualHost>


<VirtualHost *:443>
    ServerName glassfish-admin.gissinger.net
    SSLEngine On
    ProxyPass / http://127.0.0.1:4848/
    ProxyPassReverse / http://127.0.0.1:4848/
    ProxyPassReverseCookiePath / /
    ProxyPassReverseCookieDomain / 127.0.0.1

    <Proxy *>
        Allow from all
    </Proxy>
</VirtualHost>
  • Facebook
  • Twitter
  • LinkedIn
  • MySpace
  • Google Bookmarks
  • Live
  • Netvibes
  • Yahoo! Buzz
  • Wikio FR
  • Technorati
  • Digg
  • del.icio.us

Laisser un commentaire