asadmin

TimeoutException on remote Glassfish v4.1 deployment

ぃ、小莉子 提交于 2019-12-21 02:55:24
问题 I have VPS on OVH, lets say it's vpsXXXX.ovh.net, with Debian 7. I've installed Java 8, Glassfish 4.1 and enabled secure admin: asadmin > change-admin-password --user admin > start-domain > enable-secure-admin # user: admin > restart-domain I've checked that vpsXXXX.ovh.net:8080 and vpsXXXX.ovh.net:4848 works. When I've uploaded my war by scp, logged on VPS by SSH and deployed by asadmin deploy JEE.war everything worked. Then I've undeployed it and tried to deploy it from remotely by command:

Using the context-root from glassfish-web.xml in GlassFish 3

那年仲夏 提交于 2019-12-17 09:54:41
问题 We recently switched to Glassfish 3.1.2.2 and have several Web-Applications packaged as war files. At times the desired context-root for these applications differs from the filename. Back when we used Weblogic we achieved this by declaring the context-root in the weblogic.xml like this <context-root>path/to/our/App</context-root> We noticed that the same Tag exists in the glassfish-web.xml. But no matter what we define there, the server always determines the filename as the context-root. Now

How to use maven exec to run asadmin deploy

我只是一个虾纸丫 提交于 2019-12-12 01:04:28
问题 I'm using Mac OS 10.5.8 and Maven 3.0.3. If I run this command from the command line, it works: asadmin deploy --user admin --type ejb --libraries pedra-signon-ejb-1.0.jar target/my-ejb-1.0.jar But if I try executing this same command with Maven Exec Plugin ( mvn exec:exec ), with these configurations: <plugin> <groupId>org.codehaus.mojo</groupId> <artifactId>exec-maven-plugin</artifactId> <version>1.2.1</version> <configuration> <executable>asadmin</executable> <arguments> <argument>deploy<

TimeoutException on remote Glassfish v4.1 deployment

放肆的年华 提交于 2019-12-03 09:02:53
I have VPS on OVH, lets say it's vpsXXXX.ovh.net, with Debian 7. I've installed Java 8, Glassfish 4.1 and enabled secure admin: asadmin > change-admin-password --user admin > start-domain > enable-secure-admin # user: admin > restart-domain I've checked that vpsXXXX.ovh.net:8080 and vpsXXXX.ovh.net:4848 works. When I've uploaded my war by scp, logged on VPS by SSH and deployed by asadmin deploy JEE.war everything worked. Then I've undeployed it and tried to deploy it from remotely by command: asadmin --user admin --host vpsXXXX.ovh.net --port 4848 --secure deploy JEE.war I gave admin password

Deploy to remote Glassfish instance via cli

╄→尐↘猪︶ㄣ 提交于 2019-12-01 07:31:54
I am trying to automatically deploy our Java EE application from our build server (Jenkins) to a remote Glassfish server via the command line. At the moment I am using asadmin for this and it works fine, but this option requires me to have Glassfish installed on the build server as well - which I would like to avoid as I do not need it there. The build server is really only running the builds and the deployment so I would like to keep the server as "clean" as possible. I can't find any download that installs only the asadmin tools, and also my attempt to manually copy over only the required

Deploy to remote Glassfish instance via cli

最后都变了- 提交于 2019-12-01 04:53:21
问题 I am trying to automatically deploy our Java EE application from our build server (Jenkins) to a remote Glassfish server via the command line. At the moment I am using asadmin for this and it works fine, but this option requires me to have Glassfish installed on the build server as well - which I would like to avoid as I do not need it there. The build server is really only running the builds and the deployment so I would like to keep the server as "clean" as possible. I can't find any

Undeploy all applications from Glassfish

狂风中的少年 提交于 2019-12-01 04:12:43
问题 I need a way to undeploy all my applications from Glassfish. Normally, I would use asadmin undeploy --target=[target] [appname]" for each application. My problem is that I don't know the name of all applications that are present on the server. Is there a command that would allow me to just undeploy everything? Thanks. 回答1: While there isn't an 'undeploy everything' command, there is a list-applications command. This page describes list-applications and some other commands that will help you

Using the context-root from glassfish-web.xml in GlassFish 3

℡╲_俬逩灬. 提交于 2019-11-27 09:19:53
We recently switched to Glassfish 3.1.2.2 and have several Web-Applications packaged as war files. At times the desired context-root for these applications differs from the filename. Back when we used Weblogic we achieved this by declaring the context-root in the weblogic.xml like this <context-root>path/to/our/App</context-root> We noticed that the same Tag exists in the glassfish-web.xml. But no matter what we define there, the server always determines the filename as the context-root. Now we find the option --contextroot in the asadmin utility that would allow us to overwrite the filename