Questions tagged [asadmin]

Asadmin is a tool for administrative tasks for the Oracle GlassFish Server, which is commonly used in the command line.

Asadmin is a tool for administrative tasks for the Oracle GlassFish Server, which is commonly used in the command line. It provides options for general administration, like account management, configuration and system setup.

50 questions
20
votes
5 answers

"The system cannot find the path specified." error message when trying to start GlassFish with asadmin

I tried to follow The Java EE 6 Tutorial and start GlassFish with the command below. But I got an error message. How to solve this? C:\glassfish3\bin>asadmin start-domain --verbose The system cannot find the path specified.
Jonas
  • 121,568
  • 97
  • 310
  • 388
18
votes
3 answers

JVM failed to start: java.io.IOException: Cannot run program "/usr/libexec/StartupItemContext; error=2, No such file or directory

In my OS X Yosemite, I'm trying to start-domain in terminal: sh asadmin start-domain mythMobile and I get error: JVM failed to start: java.io.IOException: Cannot run program "/usr/libexec/StartupItemContext" (in directory…
Almas Adilbek
  • 4,371
  • 10
  • 58
  • 97
7
votes
4 answers

asadmin create-domain fails: all ports are in use

I'm trying to create a new domain with the asadmin tool, but it fails every time reporting that all ports are in use. The OS is Fedora 19. What could be the problem? $ ./bin/asadmin create-domain testdomain Enter admin user name [Enter to accept…
Kimi
  • 6,239
  • 5
  • 32
  • 49
6
votes
2 answers

How to disable and enable admin console (admin-listener, port 4848) from the command line

I would like to control when and where the admin service is accessible How do I do one of the following (if possible) Enable the admin console only from localhost (I know about disable-secure-admin, but still I don't want anyone to see the console…
Eran Medan
  • 44,555
  • 61
  • 184
  • 276
5
votes
4 answers

asadmin command doesn't work in ubuntu

I'm using Java EE with Glassfish. I can't run asadmin command as well. I did the following, but output from terminal is: No command 'asadmin' found, did you mean: Command 'amadmin' from package 'amanda-server' (universe) Command 'acsadmin' from…
Július Marko
  • 1,196
  • 5
  • 15
  • 37
5
votes
2 answers

Undeploy all applications from Glassfish

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…
sebi
  • 1,791
  • 3
  • 25
  • 43
5
votes
2 answers

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

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…
Markus
  • 569
  • 2
  • 4
  • 18
5
votes
1 answer

Deploy to remote Glassfish instance via cli

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…
fdd
  • 206
  • 2
  • 9
4
votes
1 answer

Is there any CLI way to show information about Glassfish JDBC connection pool?

The only relevant command that I found is: NAME list-jdbc-connection-pools - lists all JDBC connection pools EXAMPLES This example lists the existing JDBC connection pools. asadmin> list-jdbc-connection-pools …
jFrenetic
  • 5,384
  • 5
  • 42
  • 67
4
votes
1 answer

How to run an asadmin command for a specific glassfish-domain?

I'm trying to run a number of commands, such as:asadmin create-custom-resource, however, I have multiple domains, and I wish to specify which domain to be affected. How do I run asadmin commands and specify which domain to be affected? I'm using…
Kevin
  • 4,070
  • 4
  • 45
  • 67
4
votes
1 answer

How can i define a Loginmodule from Glassfish asadmin?

I'm currently implementing a Glassfish realm backed by a neo4j DB, for which I've defined a Realm and a LoginModule class. I can install the realm using the create-auth-realm asadmin command. But the realm is recognized by Glassfish only if it is…
Riduidel
  • 22,052
  • 14
  • 85
  • 185
3
votes
1 answer

GlassFish: Deploy w/ --force

When I attempt to deploy a war usig the --force option, it works, but I get this response: Deprecated syntax, instead use: asadmin --passwordfile password --host localhost --user admin deploy [options] ... When using the newer syntax, how do I…
Wilco
  • 32,754
  • 49
  • 128
  • 160
3
votes
3 answers

How to add a JVM option to glassfish 4.0?

The glassfish administation guide states that JVM options ought to be added with asadmin create-jvm-options -Dkey=value:-Dkey=value (https://glassfish.java.net/docs/4.0/administration-guide.pdf, S. 120). Of course the examples don't include the…
Kalle Richter
  • 8,008
  • 26
  • 77
  • 177
3
votes
1 answer

Glassfish, add new property to jndi custom-resource via command line

Hi I have got question about glassfish and command line. I create a new properties for example like this: asadmin> create-custom-resource --restype java.util.Properties --factoryclass org.glassfish.resources.custom.factory.PropertiesFactory…
user1604064
  • 809
  • 1
  • 9
  • 29
3
votes
1 answer

Start Glassfish Domain with java agent attached

For some monitoring purposes I need to start Glassfish domain with custom java agent attached. If I start domain directly with command: java -cp /path/to/glassfish3/glassfish/modules/glassfish.jar com.sun.enterprise.glassfish.bootstrap.ASMain…
St.Shadow
  • 1,840
  • 1
  • 12
  • 16
1
2 3 4