Red Hat Jboss 5.1.2 Download
Liferay 5.1.2
Red Hat CodeReady Studio 12.17.0.GA Stable Red Hat CodeReady Studio 12.17.0.GA is the latest stable version available for Eclipse 4.17 (2020-09). Zero to Hero using Red Hat JBoss BRMS Eric D. Schabell JBoss Technology Evangelist t: @ericschabell / e: [email protected] 1 2. Today Part I Basic training The making of a hero Questions 2.
• RedHat rel 5
• Oracle 10g XE
• JBoss 5
JBOSS
1) Download and install jboss-5.0.0.CR2-jdk6.zipinto your preferred directory. From now on, the directory where you installedJBoss will be referred to as $JBOSS_HOME
2) Edit$JBOSS_HOME/server/default/deployers/jbossweb.deployer/web.xml
Replace the default servlet (lines 109 - 121)
<servlet>
<servlet-name>default</servlet-name>
<servlet-class>org.apache.catalina.servlets.DefaultServlet</servlet-class>
<init-param>
<param-name>debug</param-name>
<param-value>0</param-value>
</init-param>
<init-param>
<param-name>listings</param-name>
<param-value>false</param-value>
</init-param>
<load-on-startup>1</load-on-startup>
</servlet>
with:
<servlet>
<servlet-name>default</servlet-name>
<servlet-class>org.apache.catalina.servlets.DefaultServlet</servlet-class>
<init-param>
<param-name>debug</param-name>
<param-value>0</param-value>
</init-param>
<init-param>
<param-name>listings</param-name>
<param-value>false</param-value>
</init-param>
<init-param>
<param-name>input</param-name>
<param-value>4096</param-value>
</init-param>
<init-param>
<param-name>output</param-name>
<param-value>4096</param-value>
</init-param>
<load-on-startup>1</load-on-startup>
</servlet>
3) Create$JBOSS_HOME/server/default/deploy/liferay-ds.xml with following content:
<datasources>
<local-tx-datasource>
<jndi-name>jdbc/LiferayPool</jndi-name>
<connection-url>
jdbc:oracle:thin:@localhost:1521:XE
</connection-url>
<driver-class>oracle.jdbc.driver.OracleDriver</driver-class>
<user-name>test</user-name>
<password>test</password>
<min-pool-size>0</min-pool-size>
</local-tx-datasource>
</datasources>
4) Go to $JBOSS_HOME/common/lib/,download ojdbc14.jar and copy to this directory. This is the JDBC driver forOracle. If you are using a different database, copy the appropriate driver.
5) Download Liferay's PortalDependencies(liferay-portal-dependencies-5.1.2.zip). Unzip the downloadedarchive into $JBOSS_HOME/server/default/lib.
6) Set mail properties by replacingthe contents of
$JBOSS_HOME/server/default/deploy/mail-service.xml with:
<?xmlversion='1.0'?>
<server>
<mbean code='org.jboss.mail.MailService'name='jboss:service=MailSession'>
<attribute name='JNDIName'>mail/MailSession</attribute>
<attributename='User'>nobody</attribute>
<attributename='Password'>password</attribute>
<attributename='Configuration'>
<configuration>
<propertyname='mail.store.protocol' value='imap' />
<property name='mail.transport.protocol'value='smtp' />
<propertyname='mail.imap.host' value='localhost' />
<propertyname='mail.pop3.host' value='localhost' />
<propertyname='mail.smtp.host' value='localhost' />
</configuration>
</attribute>
</mbean>
</server>
7) Configure JAAS. Edit$JBOSS_HOME/server/default/conf/login-config.xml and comment out the entire XMLfor policy other in lines 113-129.
<!--<application-policyname = 'other'>-->
<!-- A simple server login module, which can be used whenthe number
of users is relatively small. It uses two properties files:
users.properties, which holds users (key) and their password(value).
roles.properties, which holds users (key) and acomma-separated list of
their roles (value).
The unauthenticatedIdentity property defines the name of theprincipal
that will be used when a null username and password arepresented as is
the case for an unuathenticated web client or MDB. If youwant to
allow such users to be authenticated add the property, e.g.,
unauthenticatedIdentity='nobody'
-->
<!--<authentication>
<login-module code ='org.jboss.security.auth.spi.UsersRolesLoginModule'
flag = 'required' />
</authentication>
</application-policy>-->
8) Edit $JBOSS_HOME/bin/run.conf.Change the following:
set JAVA_OPTS=%JAVA_OPTS% -Xms128m -Xmx512m-XX:MaxPermSize=256m
Jboss 5 Download
with:
set JAVA_OPTS=%JAVA_OPTS% -Xms128m -Xmx512m-XX:MaxPermSize=256m -Dfile.encoding=UTF-8 -Duser.timezone=GMT
LIFERAY
9) Download liferay-portal-5.1.2.war
10) Deploy liferay-portal-5.1.2.war.
- Create new directory $JBOSS_HOME/server/default/deploy/liferay-portal.war/
- Unzip liferay-portal-5.1.2.war to directory.
- Go into $JBOSS_HOME/server/default/deploy/liferay-portal-5.1.x.war/WEB-INF/lib.
- Delete dom4j.jar, jaxen.jar, commons-collections.jar, hibernate3.jar,jaxrpc.jar,
jmx-remote.jar, jmx-ri.jar, mx4j.jar, stax.jar, xercesImpl.jar, xml-apis.jar
11) Create$JBOSS_HOME/server/default/deploy/liferay-portal-5.1.2.war/WEB-INF/classes/portal-ext.propertiesfile containing the following:
portal.ctx=/liferay
12) Edit$JBOSS_HOME/server/default/deploy/liferay-portal-5.1.2.war/WEB-INF/jboss-web.xml.Change the following:
<context-root>/</context-root>
with:
<context-root>/liferay</context-root>
13) Copydeploy/liferay-portal-5.1.2.war/WEB-INF/lib/portal-impl.jar todeploy/liferay-portal-5.1.2.war/WEB-INF/classes (so its in the same directoryas portal-ext.properties). (portal-impl.jar should be untared for the compilerto read portal.properties inside it.)
ORACLE
14) Download andinstall oracle-xe-univ-10.2.0.1-1.0.i386.rpm
1.Logon to your computer with root permissions.
2.Goto the following Web site:
3.ClickFree Download and follow the instructions to select anddownload the Linux version of Oracle Database XE Server.
4.Runone the following Oracle Database XE executables to either install or upgradeOracle Database XE server:
oUniversal character set: oracle-xe-univ-10.2.0.1-1.0.i386.rpm
If you downloaded the oracle-xe-univ-10.2.0.1-1.0.i386.rpm
executable, youwould enter this command:
The installation displays a status of its progress.
5.Whenprompted, run the following command:
8.Enterthe following configuration information:
·A valid HTTP port for the Oracle Database XEgraphical user interface 8090 (8080 IS FOR JBOSS You can choose your ownexcept 8080).
·A valid port for the Oracle database listener(the default is 1521):1521
·A password for the SYS
and SYSTEM
administrative user accounts: password (Youcan choose your own)
·Whether you want the database to startautomatically when the computer starts: YES(You can choose your own)
9. Login to Oracle GUI http://<host>:8090 as SYS or SYSTEM. Create a user test with password test. See step #3, the username and password should be the same aswhat you’ll create here.
15) Add ENVvariables: JAVA_HOME, JBOSS_HOME,ORACLE_HOME, AND add their /bin to the PATH.
16) Start JBoss. Open your browserto http://<host>:8080/liferay.You should see the
default Liferay home page.
Email: [email protected] for comments/questions
PicketLink and Keycloak projects are merging!
Check out this announcement to learn more!
Read detailed FAQ covering all major questions and possible concerns
Visit Keycloak project website and subscribe to Developer or User mailing lists to track current development efforts.
Simplified Security and Identity management for Java Applications
PicketLink is an umbrella project for security and identity management for Java Applications. It is licensed under a friendly Apache v2 license.
Java EE Application Security
Authentication API
Authorization and Permission API
Session Based Identity
Fully Integrated With CDI
Identity Management
Built-in Identity Stores for Databases and LDAP
Supports Java EE and Java SE Platforms
Rich and Extensible API
Multi-Tenancy
Ideal for Cloud and SaaS applications
Federation
Red Hat Jboss Application Server
SAML (v2.0 and v1.1)
OAuth2
XACML v2
OpenID
WS-Trust based Security Token Server (STS)
Social Login
Facebook Connect
Twitter Login
Google+ Login
Mobile Applications Security
Security of mobile applications
REST Applications Security

Security of REST applications
Quickstarts
Get Ready and bootstrapped fast using the quickstart examples.
Instructions in the quickstarts.
Jboss 7.1.3 Download
Deploy seamlessly in JBoss Enterprise Application Platform 6 server.
Questions
Jboss 7.1 Download
Do you have any questions? Check FAQ.
Are you ready? Get Involved.
Check out some presentations on PicketLink. Presentations.
Jboss 5.1.0 Download
Testimonials
Still having doubts on PicketLink? Visit Testimonials.
KeyCloak Project
Do you want an Out Of The Box Solution for Security?
KeyCloak is a new project under the PicketLink Family.
Jboss 6.4 Download
KeyCloak is led by Bill Burke and Stian Thorgersen.