Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
7 changes: 6 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1 +1,6 @@
# lesson14
# lesson14
## Jboss app deploy check.
---

![alt tag](https://raw.githubusercontent.com/hopetds/lesson14/ikhamiakou/curl.png)

24 changes: 24 additions & 0 deletions Vagrantfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# -*- mode: ruby -*-
# vi: set ft=ruby :

Vagrant.configure("2") do |config|
config.vm.define "master" do |master|
master.vm.hostname = "master"
master.vm.box = "centos/7"
master.vm.network "private_network", ip: "192.168.33.33"
master.vm.provider "virtualbox" do |vm|
vm.memory = "4096"
vm.cpus = "2"
end
master.vm.synced_folder "shares/master", "/tmp/configs"
master.vm.provision "shell", path: "/home/student/cm/puppet/lab12/server/provision_scripts/jbossprepare.sh"
end

config.vm.define "client" do |client|
client.vm.hostname = "client"
client.vm.box = "centos/7"
client.vm.network "private_network", ip: "192.168.33.34"
client.vm.synced_folder "shares/client", "/tmp/configs"
client.vm.provision "shell", path: "/home/student/cm/puppet/lab12/server/provision_scripts/jbossinstall.sh"
end
end
Binary file added curl.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
502 changes: 502 additions & 0 deletions files/jboss-as-7.1.1/LICENSE.txt

Large diffs are not rendered by default.

81 changes: 81 additions & 0 deletions files/jboss-as-7.1.1/README.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,81 @@
______ ___ _____ _____
/ / __ )____ __________ / | / ___/ /__ /
__ / / __ / __ \/ ___/ ___/ / /| | \__ \ / /
/ /_/ / /_/ / /_/ (__ |__ ) / ___ |___/ / / /
\____/_____/\____/____/____/ /_/ |_/____/ /_/

Welcome to JBoss Application Server 7.1.1
http://www.jboss.org/jbossas/

Go to the above link for documentation, and additional downloads.

Also, once JBoss AS7 is started you can go to http://localhost:8080
for additional information.


Key Features
--------------
* Java EE 6
* Fast Startup
* Small Footprint
* Modular Design
* Unified Configuration and Management
* Distributed Domain Management
* OSGi

Release Notes
-------------
You can obtain the release notes here:
https://community.jboss.org/wiki/AS711FinalReleaseNotes

Getting Started
----------------
JBoss AS 7 requires JDK 1.6 or later. For information regarding installation
of the JDK, see http://www.oracle.com/technetwork/java/index.html

JBoss AS 7 has two modes of operation: Standalone and Domain. For more
information regarding these modes, please refer to the documentation
available on the JBoss.org site:

https://docs.jboss.org/author/display/AS71/Documentation


Starting a Standalone Server
----------------------------
An AS7 standalone server runs a single instance of AS7.

<JBOSS_HOME>/bin/standalone.sh (Unix / Linux)

<JBOSS_HOME>\bin\standalone.bat (Windows)


Starting a Managed Domain
--------------------------
An AS7 managed domain allows you to control and configure multiple instances
of AS7, potentially across several physical (or virtual) machines. The default
configuration includes a domain controller and a single server group with three
servers (two of which start automatically), all running on the localhost.

<JBOSS_HOME>/bin/domain.sh (Unix / Linux)

<JBOSS_HOME>\bin\domain.bat (Windows)


Accessing the Web Console
--------------------------
Once the server has started you can access the landing page:

http:/localhost:8080/

This page includes links to online documentation, quick start guides, forums
and the administration console.


Stopping the Server
-------------------
The JBoss AS7 server can be stopped by pressing Ctrl-C on the command line.
If the server is running in a background process, the server can be stopped
using the JBoss CLI:

<JBOSS_HOME>/bin/jboss-cli.sh --connect --command=:shutdown

162 changes: 162 additions & 0 deletions files/jboss-as-7.1.1/appclient/configuration/appclient.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,162 @@
<!--
~ JBoss, Home of Professional Open Source.
~ Copyright 2011, Red Hat, Inc., and individual contributors
~ as indicated by the @author tags. See the copyright.txt file in the
~ distribution for a full listing of individual contributors.
~
~ This is free software; you can redistribute it and/or modify it
~ under the terms of the GNU Lesser General Public License as
~ published by the Free Software Foundation; either version 2.1 of
~ the License, or (at your option) any later version.
~
~ This software is distributed in the hope that it will be useful,
~ but WITHOUT ANY WARRANTY; without even the implied warranty of
~ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
~ Lesser General Public License for more details.
~
~ You should have received a copy of the GNU Lesser General Public
~ License along with this software; if not, write to the Free
~ Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
~ 02110-1301 USA, or see the FSF site: http://www.fsf.org.
-->

<server xmlns="urn:jboss:domain:1.2">

<extensions>
<extension module="org.jboss.as.connector"/>
<extension module="org.jboss.as.ee"/>
<extension module="org.jboss.as.ejb3"/>
<extension module="org.jboss.as.jacorb"/>
<extension module="org.jboss.as.jaxr"/>
<extension module="org.jboss.as.jpa"/>
<extension module="org.jboss.as.logging"/>
<extension module="org.jboss.as.naming"/>
<extension module="org.jboss.as.security"/>
<extension module="org.jboss.as.transactions"/>
<extension module="org.jboss.as.webservices"/>
</extensions>

<profile>
<subsystem xmlns="urn:jboss:domain:logging:1.1">
<console-handler name="CONSOLE">
<level name="INFO"/>
<formatter>
<pattern-formatter pattern="%d{HH:mm:ss,SSS} %-5p [%c] (%t) %s%E%n"/>
</formatter>
</console-handler>

<periodic-rotating-file-handler name="FILE">
<level name="INFO"/>
<formatter>
<pattern-formatter pattern="%d{HH:mm:ss,SSS} %-5p [%c] (%t) %s%E%n"/>
</formatter>
<file relative-to="jboss.server.log.dir" path="appclient.log"/>
<suffix value=".yyyy-MM-dd"/>
<append value="true"/>
</periodic-rotating-file-handler>

<logger category="com.arjuna">
<level name="WARN"/>
</logger>
<logger category="sun.rmi">
<level name="WARN"/>
</logger>
<logger category="jacorb">
<level name="WARN"/>
</logger>
<!-- set jacorb.config to ERROR to avoid the "jacorb.properties not found" messages during startup -->
<logger category="jacorb.config">
<level name="ERROR"/>
</logger>

<root-logger>
<level name="INFO"/>
<handlers>
<handler name="CONSOLE"/>
<handler name="FILE"/>
</handlers>
</root-logger>
</subsystem>
<subsystem xmlns="urn:jboss:domain:datasources:1.0">
<datasources>
<datasource jndi-name="java:jboss/datasources/ExampleDS" enabled="false" use-java-context="true"
pool-name="java:jboss/datasources/ExampleDS">
<connection-url>jdbc:h2:mem:test;DB_CLOSE_DELAY=-1</connection-url>
<driver>h2</driver>
<pool></pool>
<security>
<user-name>sa</user-name>
<password>sa</password>
</security>
</datasource>
<drivers>
<driver name="h2" module="com.h2database.h2">
<xa-datasource-class>org.h2.jdbcx.JdbcDataSource</xa-datasource-class>
</driver>
</drivers>
</datasources>
</subsystem>
<subsystem xmlns="urn:jboss:domain:ee:1.0"/>
<subsystem xmlns="urn:jboss:domain:ejb3:1.2" />
<subsystem xmlns="urn:jboss:domain:jacorb:1.0">
<orb name="JBoss" print-version="off" giop-minor-version="2">
<connection max-managed-buf-size="24" outbuf-cache-timeout="-1"/>
<naming root-context="JBoss/Naming/root" export-corbaloc="on"/>
</orb>
<poa monitoring="off" queue-wait="off">
<request-processors pool-size="2" max-threads="8"/>
</poa>
<interop sun="on" chunk-custom-rmi-valuetypes="on" strict-check-on-tc-creation="off"/>
</subsystem>
<subsystem xmlns="urn:jboss:domain:jpa:1.0">
<jpa default-datasource=""/>
</subsystem>
<subsystem xmlns="urn:jboss:domain:naming:1.0"/>
<subsystem xmlns="urn:jboss:domain:security:1.0">
<security-domains>
<security-domain name="other" cache-type="default">
<authentication>
<login-module code="UsersRoles" flag="required"/>
</authentication>
</security-domain>
<security-domain name="jboss-web-policy" cache-type="default">
<authorization>
<policy-module code="Delegating" flag="required"/>
</authorization>
</security-domain>
<security-domain name="jboss-ejb-policy" cache-type="default">
<authorization>
<policy-module code="Delegating" flag="required"/>
</authorization>
</security-domain>
</security-domains>
</subsystem>
<subsystem xmlns="urn:jboss:domain:jaxr:1.1">
<connection-factory jndi-name="java:jboss/jaxr/ConnectionFactory"/>
</subsystem>
<subsystem xmlns="urn:jboss:domain:transactions:1.0">
<recovery-environment socket-binding="txn-recovery-environment" status-socket-binding="txn-status-manager"/>
<core-environment>
<process-id>
<uuid/>
</process-id>
</core-environment>
<coordinator-environment default-timeout="300"/>
</subsystem>
<subsystem xmlns="urn:jboss:domain:webservices:1.1"/>
</profile>

<interfaces>
<interface name="public">
<inet-address value="${jboss.bind.address:127.0.0.1}"/>
</interface>
</interfaces>

<socket-binding-group name="standard-sockets" default-interface="public">
<socket-binding name="jacorb" port="3528"/>
<socket-binding name="jacorb-ssl" port="3529"/>
<socket-binding name="txn-recovery-environment" port="4712"/>
<socket-binding name="txn-status-manager" port="4713"/>
</socket-binding-group>

</server>
52 changes: 52 additions & 0 deletions files/jboss-as-7.1.1/appclient/configuration/logging.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
#
# JBoss, Home of Professional Open Source.
# Copyright 2010, Red Hat, Inc., and individual contributors
# as indicated by the @author tags. See the copyright.txt file in the
# distribution for a full listing of individual contributors.
#
# This is free software; you can redistribute it and/or modify it
# under the terms of the GNU Lesser General Public License as
# published by the Free Software Foundation; either version 2.1 of
# the License, or (at your option) any later version.
#
# This software is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
# Lesser General Public License for more details.
#
# You should have received a copy of the GNU Lesser General Public
# License along with this software; if not, write to the Free
# Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
# 02110-1301 USA, or see the FSF site: http://www.fsf.org.
#

# Additional logger names to configure (root logger is always configured)
loggers=org.jboss.as.config

# Dump system environment at boot by default
logger.org.jboss.as.config.level=DEBUG

# Root logger level
logger.level=${jboss.boot.server.log.level:INFO}
# Root logger handlers
logger.handlers=FILE,CONSOLE

# Console handler configuration
handler.CONSOLE=org.jboss.logmanager.handlers.ConsoleHandler
handler.CONSOLE.properties=autoFlush
handler.CONSOLE.level=${jboss.boot.server.log.console.level:INFO}
handler.CONSOLE.autoFlush=true
handler.CONSOLE.formatter=PATTERN

# File handler configuration
handler.FILE=org.jboss.logmanager.handlers.FileHandler
handler.FILE.level=DEBUG
handler.FILE.properties=autoFlush,fileName
handler.FILE.autoFlush=true
handler.FILE.fileName=${org.jboss.boot.log.file:boot.log}
handler.FILE.formatter=PATTERN

# Formatter pattern configuration
formatter.PATTERN=org.jboss.logmanager.formatters.PatternFormatter
formatter.PATTERN.properties=pattern
formatter.PATTERN.pattern=%d{HH:mm:ss,SSS} %-5p [%c] %s%E%n
Loading