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
0
votes
1 answer

update a payara jndi variable using asadmin

I want to update a jndi variable testVar on my payara server that is a string type via the command line. I see this online site https://docs.oracle.com/cd/E19798-01/821-1751/giwlk/index.html showing the following example of how to update but it…
CAMD_3441
  • 2,514
  • 2
  • 23
  • 38
0
votes
1 answer

The server exited prematurely with exit code 1 GlassFish 4

I've been trying to start the glassfish server domain with the following command asadmin start-domain domain1 but the result wasn't the expected. This what the outputs is throwing out: Waiting for domain1 to start .Error starting domain domain1. The…
Eduardojls
  • 11
  • 5
0
votes
1 answer

Exception in thread "main" java.lang.NoClassDefFoundError: com/sun/enterprise/universal/i18n/LocalStringsImpl

When I undeployed the war file(glassfish) using asadmin and when I try restarting the glassfish it throws error, what can be the possible problem may be jar file or something is missing. /opt/glassfishv3/glassfish/bin/asadmin undeploy…
Ashish Mishra
  • 704
  • 1
  • 6
  • 20
0
votes
1 answer

Batch creation of domain working in command line, but not through exec maven plugin

I've written a small file containing a Glassfish domain creation sequence, that looks like this : create-domain --adminPort 4848 --instancePort 8080 pouet start-domain pouet create-jdbc-connection-pool…
Riduidel
  • 22,052
  • 14
  • 85
  • 185
0
votes
1 answer

How can I run java on Windows?

I have a problem when running asadmin. When I double click on asadmin.bat file, the command prompt starts, than it opens a java black window (also a prompt), but both windows close instantly. If I run "asadmin" command from PowerShell (I use Windows…
user10587491
0
votes
1 answer

Payara asadmin command to monitor a specific resource

Does anyone know the asadmin command line equivalent to display the Resource data as shown in the image below (ie the Resource __TimerPool)? I'm using Payara 4.1.1.171.1. I typed asadmin monitor --help and it provided this as monitor…
CAMD_3441
  • 2,514
  • 2
  • 23
  • 38
0
votes
1 answer

Glassfish v2 asadmin "deploy" jar files

Is there a way in glassfish v2 asadmin utility to copy jar files into the server lib or the domain's lib? I want to do a remote deployment using hudson on a different box so i have a script that executes a bunch of asadmin commands.
user364939
  • 233
  • 1
  • 10
0
votes
1 answer

Conditional undeploy on glassfish

I'm learning Jenkins these days and I faced a situation. I need to execute conditional undeploy on glassfish. I want to undeploy an application only if it exsits in the server. Is there a way to do this in a single command line?
ziMtyth
  • 1,008
  • 16
  • 32
0
votes
1 answer

Glassfish4 JMX Configuration using asadmin

I have Glassfish4 and want make JMX to listen only to localhost and diable TLS and Security via asaadmin. I can do the same via Admin Web UI, but not sure how to do that via asadim. The below command updates the jmx-connecter property under…
Shan
  • 2,141
  • 2
  • 17
  • 32
0
votes
2 answers

Glassfish fails to start

So I am trying to restart glassfish server but it fails to start. What could be the error? asadmin> start-domain java.io.FileNotFoundException: /home/ubuntu/glassfish-3.1.1/glassfish/domains/domain1/logs/server.log (Permission denied) at…
Lorem Ipsum
  • 41
  • 11
0
votes
1 answer

Glassfish start-cluster command fails

I'm attempting to restart a glassfish server (glassfish3?) using a script which runs daily, which executes the following commands: asadmin stop-cluster myapp-cluster asadmin start-cluster myapp-cluster However, either command just gives the…
Jack BeNimble
  • 35,733
  • 41
  • 130
  • 213
0
votes
1 answer

GlassFish 4.0 as a windows 7 service

I am using GlassFish 4.0 in a cluster configuration with two nodes and each node has one instance. The DAS and two instances are setup as Window 7 services that use a logon account that has administrator privileges. Upon starting the machine the…
0
votes
1 answer

Creation of GlassFish domain for CONNECT deployment error

Running ant -Dglassfish.home=%AS_HOME% -f deploy.xml recreate.glassfish.domain Generates the following error. Execute failed: java.io.IOException: Cannot run program "%AS_HOME%\bin\asadmin.bat": CreateProcess error=2, The system cannot find the file…
Doug Farrell
  • 135
  • 1
  • 3
  • 20
0
votes
1 answer

glassfish 4.0 asadmin create-domain error

I have installed Netbeans 7.3.1 with Glassfish 4.0 on a Fedora 19. When I try to create a new domain with asadmin as root user: asadmin> create-domain --adminport 5007 domain2 I have the following error Enter admin user name [Enter to accept…
s_cent
  • 1
  • 1
  • 3
0
votes
1 answer

How to configure Glassfish 3.1.2.2 that I can use admin service remote with security enabled and local with security disabled

I need a way to use Glassfish 3.1.2.2 admin service (REST call to deploy and configre) from a remote machine and from local machine (command line and applications). It is clear that for remote access it is necessary to enable secure admin. If we…
florian
  • 121
  • 3