Tuesday, January 17, 2012

Error Booting CentOs in VirtualBox - FATAL: INT18: BOOT FAILURE

Tonight, I tried to install CentOs in VirtualBox VM. I didn't find any problem with installation until the first reboot on which the system told me:


If this happens to you, be sure to check if the installation media (the cd-rom or the dvd-rom) is still present in the CD/DVD player device. You have to remove it.
It appears to be a known issue with VirtualBox, since a bug #2680 opened 4 years ago and still unresolved.

Finally, have nice time with the GREAT CentOS 6

Good Bye :-) 

NB: this solution can be applied for the CentOs' brothers , Fedora, Redhat, Enterprise Linux, ... ;)

EDIT: An additional solution 

Hans de Raad

3 weeks ago  -  Shared publicly
You could also press F12 on booting and select booting directly from the virtual harddrive. Also works.

Friday, January 6, 2012

How To Install Tomcat 6 and AXIS2 on linux Mint in 3 steps

Today, I will share with you a good experience with linux Mint. Last Night, I tried to prepare Tomcat and Axis2 to create and test web services.
The implementation was easy and it only took some minutes.

Follow  the 3 steps below to install Tomcat 6 and Axis2 on linux Mint:
  1. Installation of Tomcat6 packages:
    With Linux Mint, you will find  
    java version 1.6.* installed. You have only to install tomcat6 packages with this command 

    sudo apt-get install tomcat6 tomcat6-admin tomcat6-docs tomcat6-examples

    Now, you can try accessing localhost:8080/ in your browser

  2. Tomcat's Configuration
    Tomcat6 default install hasn’t the admin user parameters in config file, you’ll have to edit tomcat-users.xml file

    sudo gedit /etc/tomcat6/tomcat-users.xml  

    you’ll have to add next lines:

    <?xml version='1.0' encoding='utf-8'?>

          <role rolename="manager"/>
          <role rolename="tomcat"/>
          <role rolename="admin"/>
          <user username="admin" password="password" roles="manager,tomcat,admin"/>

    Don't forget to change 
     “password” with your own  :-).Finally, you will need to restart tomcat6 with this command
    sudo service tomcat6 restart
  3. AXIS2 Deployment
    In this step, we will try to deploy axis2 on our installed tomcat6. First, download  the WAR archive from this link: 
    Open Tomcat Web Application Manager with this URL: http://localhost:8080/manager/html and deploy the WAR archive on tomcat from the "WAR file to deploy" menu.If all works fine, you can access it through this link : http://localhost:8080/axis2/

Good Bye :-)

NB: May be you will have some permissions and access problems, try this  : 
sudo chmod -R 777  /var/lib/tomcat6/webapps/axis2/WEB-INF/