Deploying your Small Business Jboss, Apache, Java and Linux IT Infrastructure

Sep 24, 2006 BY Francis Ssennoga

Running the Jboss Enterprise server is a cool thing if your users do not have to type in the correct port whenever they access the app. For a better user experience you need to hide the enterprise server behind the Apache web server. Among the best solutions I have found is the use of the Apache Proxy Pass Directive detailed in this article.

Running the Enterprise server Jboss is a cool thing but not if you have to type in the correct port whenever you are running the App. This brings about the need to hide the enterprise server behind Apache the web server to simplify the user experience. Among the best solutions is the use of the Apache

When you are using the Proxy Pass directive of Apache avoid using two similar names and you will save time and money. The other thing to watch is to make sure that the JBoss start script uses the same IP and that one used in the Proxy Pass directive.

When you are using the Proxy Pass directive of Apache avoid using two similar names and you will save time and money. The other thing to watch is to make sure that the JBoss start script uses the same IP and that one used in the Proxy Pass directive.

There are however a number of different configuration that may save you the pain. But generally speaking, these warning hold and they worked out very well for me. Here below is a possible Application Server Deployment checklist

-Create App Folder on the server, preferably a .war file
-Proxy Pass Setup with Apache, restart Apache
-Create Start/status/stop Script eg. jboss4_appname
-setup scripts in the home of App
-Setup login reams via login-config.xml, web.xml and jboss-web.xml
-Restart JBoss with jboss4_appname start

Points to Note:
When you create a new JBoss server instance folder make sure JBoss can write to it otherwise the application will not start and log files will not be written. If you see that log files are not being created, this points to a permission problem usually. Just let JBoss own the server instance
folder.

When naming applications watch out confusing the server. You can use one single IP to run two or more applications but you cannot use the same domain to run two application deployed as above. For instance, ssensoft.com/ur and ssensoft.com/de will not work. What you will get when you press enter in the browser is a nested url of type:
ssensoft.com/ur/de which will not take you where you want to go. However, you can use the same IP for different apps like here below.

1.1.1.1/ur
1.1.1.1/de
The above could be going to different sites or application directories (home directories)

Configurations and security check list:
configure the security manager application
configure run scripts in the the directory below:
/opt/jboss_version/bin
configure java policy - java.policy
change default parameters that are security sensitive eg passwords.
check log files for warns and error message and try to reduce and remove them. This clauses a lot of loop holes. Make sure if you see errors in log files that you understand what they mean.

To enable https for jboss web apps:
1. Add confidential in the WEB-INF/web.xml
2. Generate certificate keys private and acquire the public key
3. Edit servername/jbossweb.xml

server.xml
deploy/jbossweb.sar
Other configs:
login-config.xml
mysql-DS
web.xml
jboss-web.xml
deploy/messaging

If servlets are not running or are giving errors on compiling them on the server, most likely the servletapi.jar file is not installed. Check and find it in the directory below:
jboss/common/lib/

Then install it in the directory below:
java home/j2re/lib/ext/

After creating a server instance make sure the permissions for jboss allow it to read the server home directory eg server/myapp
Usually if created by root will be owned by root but if jboss cannot write to it, there will be no log files and therefore errors.

Mail Services
Deploy or configure your mail services in this folder:
...deploy/mail-services
Here you will get to set up your Jboss Messaging

Note:
Make sure /etc/init.d/jboss_app script runs the right wrapper configuration otherwise your run script will run another server instance if it points to that instance or fail if it points to none. Eg jboss_app runscript should point to jboss_app.conf which runs server/app

Next, if mail needs to be moved, move mails and domains to the new server.

Use documentation from jboss_version/docs/example/jca

You cannot install two SSL security Certificate two times on the same IP without getting an era. Once you install it on an IP, it is gone.

Login configuration
Set restrictions in web.xml inside the WEB-INF. This is where you set login groups and restricted application.

After the web.xml, set the login parameters in the login-conf.xml in the server/servername/conf directory. Here you will be able to state which login realm (group, eg jmx-console, uraxxess, and any other realm. You will configure where the login parameters are going to come from, either from the mysql db or the props directory. You will configure which rows and fields the username and passwords are going to come from.

Connect you web.xml with the login-conf.xml via jboss-web. Here you configure how you have set up the parameters in the web.xml. This file is inside the WEB-INF as well next to the web.xml

Sometimes JBoss may fail to start because of lack of enough disk space.

news letter signup

Message Sent Successfully.

Message Sending Fail.

insight scoop

membership_magmt.jpg

5 Ways to Strengthen Membership Loyalty in Your Small Staff Association

In small staff associations, it is not easy to cultivate a loyal membership. There are so many ways member growth can stagnate or decline. Many association leaders are scratching their heads to keep their associations attractive and that way avoid falling member numbers. I have five ways here below that will help strengthen member loyalty. See what works in your case.

ssensoft_demo_receipt.jpg

5 Ways to Simplify Association Management

In a small staff member association, some of the vital activities can also become major hurdles if you do not have the right tools. As an association manager, your membership management can turn into frustrating work and take away most of your time that you would have used more productively. See how you can remove this extra work here below.

credit_cards2.jpg

10 Things to Learn from the 40 Million Credit Card Theft from Target

News of 40 million credit card numbers stolen from Target Corp was a big wake up call for everybody and officials at Target have been sweating since the theft. Because of the rampant internet hacking, some businesses are cashing in, exploiting the fear, scaring clients even more that they are the next targets as they sell their security solutions. But as hacked businesses sweat and others cash in, what can the average person do?

youth_on_phone.jpg

5 Things to Learn from the $19 Billion Facebook Like of Whatsapp

The $19 billion deal between Facebook and Whatsapp received tremendous attention throughout the world. The mixed feelings that came with this block buster buy, varied from joy, pride, awe, shock and of course; envy. But regardless of the feelings you had when you learnt of the news, you can still take away something from the Whatsapp pay day. I noted 5 key things you could learn from the buy. Before the scoop though, let me revisit some of the emotions that the deal triggered in people the day of the news.

microsoft_logo_x.jpg

Reducing your Microsoft Outlook Express Mailbox Size

Trouble shooting your Microsoft Outlook email box can be frustrating if you do not have an idea what needs to be done. This article is intended to give you a tip on what to do when your mailbox is full or almost full preventing you from sending or receiving mail. There are quite a number of things you can do when you receive a message, "Your mailbox is full". These are usually; deleting unwanted 'sent' items, deleting unwanted mail especially mail with attachments and completely removing your 'deleted mail', from your mailbox. There is one extra thing that could be done but is not usually mentioned in recommendations to reduce your outlook express mailbox. This is checking your 'drafts' folder. This is the subject of my discussion today.

marathon.jpg

Fittness for IT Professionals

IT professionals as myself have some common characteristics among which are; sitting on a computer for very long hours, working alone away from others, skipping meals to finish a fun project and many more. Looking at these characteristics shows you right away that these might be incompatible with staying fit which can result into bad consequences in the not so far away future. This blog posting is intended to provide some quick tips on how IT professional can stay fit but at the same time keep delivering on fun projects.

epresence.jpg

Why a Business, an Organisation or an Individual needs e-Presence

There are always many warning signs that indicate to a business, individual or organization that there are doing excessive work that could be performed in seconds by computers.

strategy.jpg

Web Strategy for Job Hunters

Strategy in the most simplest terms, is a plan to move from point A to point B, point A in this case being the point of origin and B being the destination. Deploy web strategy in job hunting, business, love search, etc.

arrow left
arrow right