TEC538492 - How to install JBoss AS and JBoss ... - CA Communities

yazooalbumSecurity

Nov 3, 2013 (3 years and 9 months ago)

88 views

Document ID
:


TEC538492


Title:

How to install JBoss AS and JBoss WS for CA Gen.

Description:

This information is a guide how to install JBossAS and JBossWS to work with CA Gen Web
Services.

Solution:

Prerequisites

Ant must be installed and working
correctly. Use version 1.8.1 or newer.

NOTE:

Apache Ant is a Java library and command
-
line tool whose mission is to drive processes
described in build files as targets and extension points dependent upon each other. The main
known usage of Ant is the build

of Java applications.

Java JRE installed. Use 1.6.0 or newer.

Required Software

jboss
-
5.1.0.GA.zip

jbossws
-
metro
-
3.2.2.GA.zip

Introduction

Web Services in JBoss are implemented as a set of stacks. Users are free to use whichever stack
meets their requirem
ents. When you install JBoss out of the box it comes preconfigured with the
native stack. In Gen and Gen Studio we will be using the metro stack.

Procedure

Unzip the base JBoss GA distribution zip file into a directory

Unzip the GA metro distribution zip f
ile into a directory (different from above)

Follow the instructions in the docs
\
install.txt document of the metro installation. Only the first 3
steps are necessary. Ensure that step 3 is done using the
ant deploy
-
jboss510

command.

To start JBoss open a DO
S window and execute the bin
\
run.bat command.

Once the system output starts scrolling notice the use of the correct web services metro stack:

some messages...

12:17:00,446 INFO [JMXKernel] Legacy JMX core initialized

12:17:05,863 INFO [ProfileServiceBootst
rap] Loading profile: ProfileKey@121c5df

[domain=default, server=default, name=default]

12:17:10,089 INFO [WebService] Using RMI server codebase: http://127.0.0.1:8083

/

12:17:31,259 INFO [AbstractServerConfig] JBoss Web Services
-

Metro Server

12:17:31,25
9 INFO [AbstractServerConfig] 3.2.2.GA

12:17:31,259 INFO [AbstractServerConfig] JBoss Web Services
-

Metro Server

12:17:31,259 INFO [AbstractServerConfig] 3.2.2.GA

12:17:33,973 INFO [AttributeCallbackItem] Owner callback not implemented.

12:17:38,679 INFO
[LogNotificationListener] Adding notification listener for logging

mbean "jboss.system:service=Logging,type=Log4jService" to server org.jboss

.mx.server.MBeanServerImpl@1c4bcda[ defaultDomain='jboss' ]

more messages...

To invoke the console:

http://localho
st:8080/jmx
-
console/

Web Services

http://localhost:8080/jbossws/

Default port: 8080

JBoss and NLS Characters

If a CA Gen model contains characters from a codepage other than 1252 you may have to
modify certain JBoss configuration files.

%JBOSS_HOME%
\
bin
\
run.conf.bat

Add the
-
Dfile.encoding=UTF
-
8

VM runtime option to the JAVA_OPTS variable.

%JBOSS_HOME%
\
server
\
default
\
deploy
\
jbossweb.sar
\
server.xml

Add the
URIEncoding="UTF
-
8"

attribute to the Connector HTTP/1.1 element

Security

Before ver
sion 4.2.0 GA JBoss always bound to 0.0.0.0, i.e. any address, by default. For security
purposes starting with version 4.2.0 this is no longer the case. Therefore in order to use anything
other than localhost as a hostname in the URL to access services JBo
ss must be started using the
-
b option. For development and testing purposes use the following command to start JBoss:

run.bat
-
b 0.0.0.0

References

Useful links about JBoss and Web Services.

http://
www.jboss.org/jbossws

https://jira.jboss.org/browse/JBPAPP
-
5040