Configuration: JBoss AS 7.1
JBoss shutdown command for Linux
{JBOSS_HOME}/bin/jboss-cli.sh –
and for Windows
{JBOSS_HOME}/bin/jboss-cli.bat –
Configuration: JBoss AS 7.1
JBoss shutdown command for Linux
{JBOSS_HOME}/bin/jboss-cli.sh –
and for Windows
{JBOSS_HOME}/bin/jboss-cli.bat –
Today I installed JBoss AS 7.1 on our Ubuntu 13.04 stend. I'm sure it is not the last time when I prepare JBoss application server, so I decided to memorize my steps in this post.
The installation procedure is:
Install JDK from repository (oracle-java7-installer from this ppa is JDK)
sudo add-apt-repository ppa:webupd8team/java
sudo apt-get update
sudo apt-get install oracle-java7-installer
Set this version to be used by default
sudo update-java-alternatives -s java-7-oracle
Set up environment variables
sudo apt-get install oracle-java7-set-default
Last week I spent some time to bring together Spring MVC, Apache Tiles, Hibernate+JPA with JTA.
My EAR application consists of two modules: WAR and EJB project.
WAR project: Spring MVC 3.1.1, Apache Tiles,Maven
EJB project: Hibernate through JPA, Spring 3.1.1, JBoss AS 7.1, JTA data source, Maven.
Configuration artifacts are:
Contains Spring MVC and Apache Tiles dependencies
Today I faced an interesting problem at work. It was JSP + Spring MVC 4 + Apache Tiles 2 + JBoss AS 7.1 application. JSP pages contain UTF-8 encoded Russian text encoding and should be displayed in UTF-8 in browser. I placed @Page directive in some pages:
Pages with above directive started to display non-English text perfectly fine. Others continued to show me unreadable rubbish instead (in default JBoss ISO-8859-1). So I already had a solution:
Solution 1 – modify every JSP page in the project to add proper @page directive.
This post is about adding PostgreSQL driver and data source to JBoss Application Server.
Used versions are: JBoss AS 7.1.1, PostgreSQL 9.1.10 and postgresql-9.3-1100.jdbc41 driver.
Download postgresql jdbc driver here http://jdbc.postgresql.org/download.html