Déploiement EJB sur Glassfish à partir d'un build généré par Netbeans
Bonjour,
J'ai développé une application mettant en œuvre les EJB. Pour cela, j'ai utilisé Netbeans (v7.0.1) qui fourni un serveur Glassfish.
Je souhaite avoir un script ant qui me permet de compiler et de déployer mon application à l'extérieur de Netbeans.
Pour compiler j'utilise donc la cible compile fournie par le build de Netbeans.
Je lance mon serveur Glassfish installé sous Ubuntu (v3.1.1) : ./asadmin start-domain
J'ai le résultat suivant :
Code:
1 2 3 4 5 6 7
|
Attente du démarrage de domain1 .............
Démarrage réussi pour le domain : domain1
domain Emplacement : /home/install/glassfish-3.1.1/glassfish/domains/domain1
Fichier journal : /home/install/glassfish-3.1.1/glassfish/domains/domain1/logs/server.log
Port dadministration : 4848
La commande start-domain a été correctement exécutée. |
Ensuite j'utilise la cible également fournie par Netbeans pour déployer mon appli : run. Et là j'ai le message suivant :
Code:
1 2 3 4 5 6 7 8 9 10 11 12 13
|
-deploy-without-pw:
[echo] Deploying dist/TP-EJB-Local.ear
[get] Getting: http://localhost:4848/__asadmin/deploy?path=/home/install/ejb/dist/TP-EJB-Local.ear&force=true&name=TP-EJB-Local
[get] To: /tmp/gfv31461572055
[get] Error opening connection java.io.IOException: Server returned HTTP response code: 505 for URL: http://localhost:4848/__asadmin/deploy?path=/home/install/ejb/dist/TP-EJB-Local.ear&force=true&name=TP-EJB-Local
[get] Error opening connection java.io.IOException: Server returned HTTP response code: 505 for URL: http://localhost:4848/__asadmin/deploy?path=/home/install/ejb/dist/TP-EJB-Local.ear&force=true&name=TP-EJB-Local
[get] Error opening connection java.io.IOException: Server returned HTTP response code: 505 for URL: http://localhost:4848/__asadmin/deploy?path=/home/install/ejb/dist/TP-EJB-Local.ear&force=true&name=TP-EJB-Local
[get] Can't get http://localhost:4848/__asadmin/deploy?path=/home/install/ejb/dist/TP-EJB-Local.ear&force=true&name=TP-EJB-Local to /tmp/gfv31461572055
BUILD FAILED
/home/install/ejb/nbproject/ant-deploy.xml:72: The following error occurred while executing this line:
/home/install/ejb/nbproject/ant-deploy.xml:81: Can't get http://localhost:4848/__asadmin/deploy?path=/home/install/ejb/dist/TP-EJB-Local.ear&force=true&name=TP-EJB-Local to /tmp/gfv31461572055 |
D'où pourrait venir le problème ? Est ce que le script pointe sur le Glassfish installé par Netbeans et pas sur celui que j'ai installé ? Si quelqu'un sait comment je peux m'en sortir, je suis preneur.