Difference between revisions of "Installation JBoss 7.1.1"

From TempusServa wiki
Jump to navigation Jump to search
old>Admin
m (57 revisions imported)
 
(32 intermediate revisions by one other user not shown)
Line 5: Line 5:
Prerequisites are
Prerequisites are
* JBoss 7.1 installed and verified
* JBoss 7.1 installed and verified
* MySQL driver for Java
* MySQL driver for Java file: http://dev.mysql.com/downloads/connector/j/
** Optionally download using: yum install mysql-connector-java
* TempusServa install files (CD/USB/URL)
* TempusServa install files (CD/USB/URL)
** TempusServa-ds.xml
** TempusServa.war


== Register the MySQL driver ==
 
== Install MySQL driver (option) ==
# Create folder path: [JBOSS]\modules\com\mysql\main
# Create folder path: [JBOSS]\modules\com\mysql\main
# Copy '''mysql-connector-java-5.1.6-bin.jar'''
# Copy '''mysql-connector-java-5.1.''[VERSION]''-bin.jar'''
# Create the file [JBOSS]\modules\com\mysql\main\'''module.xml'''
# Create the file [JBOSS]\modules\com\mysql\main\'''module.xml'''
# Copy the following contents
# Copy the following contents (insert correct sub version number)
<blockquote><p>
 
&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;<br>
  &lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;
&lt;module xmlns=&quot;urn:jboss:module:1.0&quot; name=&quot;com.mysql&quot;&gt;<br>
  &lt;module xmlns=&quot;urn:jboss:module:1.0&quot; name=&quot;com.mysql&quot;&gt;
  &lt;resources&gt;<br>
    &lt;resources&gt;
    &lt;resource-root path=&quot;mysql-connector-java-5.1.6-bin.jar&quot;/&gt;<br>
      &lt;resource-root path=&quot;mysql-connector-java-5.1.[VERSION]-bin.jar&quot;/&gt;
  &lt;/resources&gt;<br>
    &lt;/resources&gt;
  &lt;dependencies&gt;<br>
    &lt;dependencies&gt;
    &lt;module name=&quot;javax.api&quot;/&gt;<br>
      &lt;module name=&quot;javax.api&quot;/&gt;
  &lt;/dependencies&gt;<br>
    &lt;/dependencies&gt;
&lt;/module&gt;<br>
  &lt;/module&gt;
</p></blockquote>
 
# Edit file [JBOSS]\standalone\configuration\standalone.xml
# Edit file [JBOSS]\standalone\configuration\'''standalone.xml'''
# Navigate to: '''server > profile > subsystem > datasource > drivers'''
# Navigate to: '''server > profile > subsystem > datasource > drivers'''
# Insert the following code
# Insert the following code


<blockquote><p>
  '''<driver name="mysql" module="com.mysql"/>'''
'''<driver name="mysql" module="com.mysql"/>'''
</p></blockquote>


== Install Tempus Serva ==
== Install Tempus Serva ==
# Copy TempusServa.xml to [JBOSS]\standalone\configuration
# Copy '''TempusServa-ds.xml''' to [JBOSS]\standalone\deployments
# Copy TempusServa.war to [JBOSS]\standalone\deployments
# Chown '''TempusServa-ds.xml''' to jboss user/group
# Rename file to TempusServa.zip
#* Optionally edit connection strings to database
# Extract all files
# Extract TempusServa'''.war''' to [JBOSS]\standalone\deployments
# Rename folder to '''TempusServa.war'''
# Rename extracted folder to '''TempusServa.war'''
# Create a file '''TempusServa.war.deployed''' in [JBOSS]\standalone\deployments
# Chown extracted folder to jboss user/group
# Create a file (touch) '''TempusServa.war.deployed''' in [JBOSS]\standalone\deployments
# Chown '''TempusServa.war.deployed''' folder to jboss user/group
 
== Configure JBoss memory settings ==
# Edit [JBoss home]\bin\standalone.conf.bat
# Ensure the following value is present
 
  set "JAVA_OPTS= -Xmx512m -Xms1024m -XX:MaxPermSize=256m"
 
Read more about [[Memory settings]]


== Start and check server ==
== Start and check server ==
Line 44: Line 56:
# Validate the application was deployed without errors (there will be lots of warnings)
# Validate the application was deployed without errors (there will be lots of warnings)
# Check server is responding at: localhost/TempusServa/login
# Check server is responding at: localhost/TempusServa/login
== Set up server configurations ==
Required configurations
* [[Email server setup]]
* [[Local system configuration]]
Other common options
* [[Setting up SSL/HTTPS]]
* [[Changing system folders]]

Latest revision as of 11:52, 10 December 2021

The following guide have been tested using JBoss 7.1.1. on a Windows 7 platform.

Unix users should be able to follow the guidelines here equally well.

Prerequisites are

  • JBoss 7.1 installed and verified
  • MySQL driver for Java file: http://dev.mysql.com/downloads/connector/j/
    • Optionally download using: yum install mysql-connector-java
  • TempusServa install files (CD/USB/URL)
    • TempusServa-ds.xml
    • TempusServa.war


Install MySQL driver (option)

  1. Create folder path: [JBOSS]\modules\com\mysql\main
  2. Copy mysql-connector-java-5.1.[VERSION]-bin.jar
  3. Create the file [JBOSS]\modules\com\mysql\main\module.xml
  4. Copy the following contents (insert correct sub version number)
 <?xml version="1.0" encoding="UTF-8"?>
 <module xmlns="urn:jboss:module:1.0%22 name="com.mysql">
   <resources>
     <resource-root path="mysql-connector-java-5.1.[VERSION]-bin.jar"/>
   </resources>
   <dependencies>
     <module name="javax.api"/>
   </dependencies>
 </module>
  1. Edit file [JBOSS]\standalone\configuration\standalone.xml
  2. Navigate to: server > profile > subsystem > datasource > drivers
  3. Insert the following code
 <driver name="mysql" module="com.mysql"/>

Install Tempus Serva

  1. Copy TempusServa-ds.xml to [JBOSS]\standalone\deployments
  2. Chown TempusServa-ds.xml to jboss user/group
    • Optionally edit connection strings to database
  3. Extract TempusServa.war to [JBOSS]\standalone\deployments
  4. Rename extracted folder to TempusServa.war
  5. Chown extracted folder to jboss user/group
  6. Create a file (touch) TempusServa.war.deployed in [JBOSS]\standalone\deployments
  7. Chown TempusServa.war.deployed folder to jboss user/group

Configure JBoss memory settings

  1. Edit [JBoss home]\bin\standalone.conf.bat
  2. Ensure the following value is present
 set "JAVA_OPTS= -Xmx512m -Xms1024m -XX:MaxPermSize=256m"

Read more about Memory settings

Start and check server

  1. Execute [JBOSS]\bin\standalone.bat
  2. Validate the application was deployed without errors (there will be lots of warnings)
  3. Check server is responding at: localhost/TempusServa/login

Set up server configurations

Required configurations

Other common options