The Definitive list – Run-Deploy-Stop all the major Java Application Servers

ServersLast time I talked about choosing a Java application server. This time I will be looking at Run-Deploy-Stop commands.

As a JavaEE developer who is constantly mobile between different Application servers I ended up compiling my own quick help list with all the options listed for easy reference. I hope you find it useful too…

Glassfish

Starting and stopping Glassfish4 server

START :   glassfish4/bin/asadamin start-domain domain1
STOP :   glassfish4/bin/asadamin stop-domain domain1
Deploy War: glassfish4/bin/asadmin deploy warfiledirectory/hello.war

Default Admin Port Number : 4848
Default Port Number : 8080

To change https port to 9999

asadmin set server.http-service.http-listener.http-listener-2.port=9999

Oracle Weblogic 

START :
1. You need to create domain before starting the server; more information on creating domain can be found at http://docs.oracle.com/cd/E17904_01/web.1111/e13715/domains.htm#WLSTG156

2. Change to the directory in which you located the domain and run the script
On windows: bin\startWebLogic.cmd
On Linux: bin/startWebLogic.sh

STOP : 
On windows: bin\stopWeblogic.cmd
On Linux: bin/stopWeblogic.sh

DEPLOY:
Java weblogic.Deployer –adminurl t3://localhost:7001 –username admin –password 123456  -name app –source /directory/helloworld.war –targets AdminServer –deploy

JBoss

START:
By default run run.sh script in linux and run.bat on windows

STOP:
On linux you can use shutdown.sh command to shutdown the server

Deploy:
if you are using JBoss 7.1.1 you need to place your war file inside standalone\deployments folder and restart the server.

in previous releases use server\default\deploy folder for war placements

To change the port number in jBoss

Default Port Number : 8080

locate standalon xml file jboss/standalone/configuration/standalone.xml ; find
<socket-binding-group> , <socket-binding> and alter the values.

Apache Tomcat Server

START
On UNIX: bin/startup
On Win32: bin\startup

STOP
On UNIX: bin/shutdown
On Win32: bin\shutdown

Deploy War
Deploying the war file is handled automatically by the server software; so put your war file in webapps and then restart your server.

To change the port Number

Default Port Number : 8084 or 8080

Locate server.xml in \conf\ folder, search for <Connector  tag and alter the port attribute to desired port number

IBM WebSphere

START

On windows: Web Application Server Profile root\bin\startServer.bat
On Linux: Web Application Server Profile root/bin/startServer.sh

STOP
On windows: Web Application Server Profile root\bin\stopServer.bat WebSphere_Portal -user admin_userid -password admin_password
On Linux: Web Application Server Profile root/bin/stopServer.sh WebSphere_Portal -user admin_userid -password admin_password

Default Admin Port Number : 9060
Default Port Number : 9080

Hopefully you’ve found this useful, please share your thoughts we can expand the list to fulfill your suggestions. 

If you would like a tutorial on setting up your own PDF to HTML5 Application Server please Click Here.

If you’re a first-time reader, or simply want to be notified when we post new articles and updates, you can keep up to date by social media (TwitterFacebook and Google+) or the  Blog RSS.

Related Posts:

The following two tabs change content below.

suda

Java EE developer at IDRSolutions
Suda is the Senior Java EE Developer at IDR Solutions, and specialises in XFA, Fonts, True-Type Fonts, application servers and conversions. He is a keen science-fiction fan in his spare time.
suda

About suda

Suda is the Senior Java EE Developer at IDR Solutions, and specialises in XFA, Fonts, True-Type Fonts, application servers and conversions. He is a keen science-fiction fan in his spare time.

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes:

<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>