Java App server Configuration


To perform the necessary configurations, press the Config button next to your application server. In the case, you have several application servers you can configure them together or separately. To do this follow the steps:

Open the drop-down menu at the top of the configuration tab. It includes the list of all of the app servers in your environment.


Choose the one you need and make the configurations.
 
To apply the changes:
 
  • only for the chosen server click Save only for current instance button from the drop-down menu;
  • for all the servers click Save.

Note: if you create/rename a file or folder in the Configuration manager, this will be applied only in the list of the chosen node. You can’t save this change for all of the app servers available in the environment. If you want to also create/rename the file or folder in the other servers you need to do this manually.

Below you will see the list of the configuration files available for editing in the Java application servers:

  • Tomcat 6
  • Tomcat 7
  • TomEE
  • GlassFish 3
  • Jetty 6

To get more information on which settings can be changed in the provided config folders, use the appropriate descriptions:

  • server
  • home
  • webapps/work
  • JAVA_HOME
  • lib
  • cron
  • keys
  • contexts
  • server_lib
  • apps

SERVER

The main Java servlet container configurations are performed in the files, located in the server folder.
Using the following config files, you can perform the actions listed below (these are just some examples):

context.xml

    • configure session replication via Memcached

web.xml

    • configure remote access via WebDav
server.xml
 
    • enable Multiple Domains
variables.conf
 
    • configure memory settings for your java containers by stating your custom GC, 
      -Xmx, -Xms parameters (use standard parameters stating each at the new line):
-Xmx< size >m
-Xms< size >m


    • set your custom environment variables for your Tomcat, TomEE, Jetty or GlassFish:
-Dvar1=value1 -Dvar2=value2
-Dmy.var3=/my/value


    • configure JavaAgent interceptor
    • enable remote debugging:
-Xdebug
-Xrunjdwp:transport=dt_socket,server=y,suspend=n,address={port_number}

Note that this file is available only for Tomcat 6,7 and TomEE application servers. For configuring a GlassFish server, use the Admin Panel.




WEBAPPS / WORK

The webapps (for Tomcat/TomEE) and work (for Jetty) folders are used for storing the unpacked application deployed to the environment.




LIB

The lib folder is used for storing default and uploading custom jar libraries.




CRON
App servers include a cron folder with the config file, where cronjobs can be configured.
Detailed information on Cronjob configuration can be found in the Setting Up a Cronjob document. 




KEYS
The keys directory is used as a location for uploading any private key which is needed for your application.
Generate the key, save it as a simple file and upload to the key folder.
It can be used for different cases by simply stating the path to your key: 
/var/lib/jelastic/keys/{key_file_name} 





Tomcat 6
 
Folder
File
Path
server
catalina.policy
server.xml
catalina.properties
tomcat-users.xml
context.xml
web.xml
variables.conf
logging.properties
/opt/tomcat/conf/
home   /opt/tomcat/temp
webapps   /opt/tomcat/webapps
JAVA_HOME   /usr/java/latest
lib   /opt/tomcat/lib
cron
tomcat
/var/spool/cron
keys   /var/lib/jelastic/keys

 

Tomcat 7
 
Folder
File
Path
server
catalina.policy
server.xml
catalina.properties
tomcat-users.xml
context.xml
web.xml
variables.conf
logging.properties
/opt/tomcat/conf/
home   /opt/tomcat/temp
webapps   /opt/tomcat/webapps
JAVA_HOME   /usr/java/latest
lib   /opt/tomcat/lib
cron
tomcat
/var/spool/cron
keys   /var/lib/jelastic/keys

 

TomEE
 
Folder
File
Path
server
catalina.policy
server.xml
catalina.properties
tomcat-users.xml
context.xml
web.xml
variables.conf
logging.properties
tomee.xml
system.properties
/opt/tomcat/conf/
home   /opt/tomcat/temp
webapps   /opt/tomcat/webapps
apps   /opt/tomcat/apps
JAVA_HOME   /usr/java/default
lib   /opt/tomcat/lib
cron
tomcat
/var/spool/cron
keys   /var/lib/jelastic/keys
 
GlassFish 3
 
Folder
File
Path
server
default-web.xml
domain.xml
domain.xml.bak
domain.xml.orig
local-password
logging.properties
logging.properties.orig
login.conf
server.policy
sun-acc.xml
wss-server-config-1.0.xml
wss-server-config-2.0.xml
/opt/glassfish3/glassfish/domains/
domain1/config
gfcluster-config (in server folder)
logging.properties
/opt/glassfish3/glassfish/domains/
domain1/config/gfcluster-config
home   /opt/glassfish3/temp
JAVA_HOME   /usr/java/latest
server_lib   /opt/glassfish3/glassfish/lib/
cron
glassfish
/var/spool/cron
keys   /var/lib/jelastic/keys
 
Jetty 6
 
Folder
File
Path
server
jdbcRealm.properties
jetty-ajp.xml
jetty-bio.xml
jetty-jaas.xml
jetty-jmx.xml
jetty-logging.xml
jetty-plus.xml
jetty-rewrite.xml
jetty-setuid.xml
jetty-sslengine.xml
jetty-ssl.xml
jetty-stats.xml
jetty.xml
login.conf
login.properties
realm.properties
spnego.properties
variables.conf
webdefault.xml
/opt/jetty/etc
home   /opt/jetty/home
contexts   /opt/jetty/contexts/
work   /opt/jetty/work
JAVA_HOME   /usr/java/latest
lib   /opt/jetty/lib
cron
jetty
/var/spool/cron
keys   /var/lib/jelastic/keys

 

 
  • 0 کاربر این را مفید یافتند
آیا این پاسخ به شما کمک کرد؟

مقالات مربوطه

Secure Java Encryption and Decryption

Secure Java Encryption and Decryption in Apiqcloud Java security technology includes a...

Timezone Data for Java/PHP App Server

  Managing Timezone Data for Java/PHP App Server All of the Java and PHP application servers...

Tomcat HTTP to HTTPS redirect

Option 1 Update web.xml configuration file and add the following content into the...

Environment Variables - Java custom Environment Variables

Environment variables represent a kind of placeholders, where you can store the frequently...

WildFly server

WildFly is a modern, flexible, lightweight and managed application runtime, which is...