2 Replies Latest reply on Nov 25, 2003 1:12 PM by Viet

    Newbie Installation problems

    rhino Newbie

      Greetings all, recently decided to kick the tires of JBOSS and thought a good way to start would be to play around with Nukes. So using the following proceedures, I installed it and find it almost works. However, there seems to be an issue between MySQL and JBOSS as the trace generated by the JBOSS server shows lots of complaints about not being able to connect to "nukes@localhost.localdomain." JBOSS server seems to work as I can bring up http://localhost:8080/jmx-console. I also checked MySQL and found that there is a "nukes" database and a "nukes" user specified in the user table of the mysql database. I also checked to make sure my installation of MySQL is listening on port 3306 and it is. So now I am beating my head on the wall and from experience know that I am probably missing something really simple and fundamental. Right now, the only thing I can think of is that perhaps there is a problem with the name of the MySQL driver: "mysql-connector-java-309-stable-bin.jar" However, I don't know where to correct this (if it is the problem). So I appreciate any help other eyes can bring to the solution of this problem. Following is a detailed listing of proceedures I have followed to install Nukes:

      Thanks for looking.

      How I installed JBOSS and Nukes on a Linux box (Redhat 7.2)

      1. Download and un-tar jboss-3.2.2RC4.tgz into /usr/local/jboss directory. Follow instructions for installation and test by pointing browser to http://localhost:8080/jmx-console -- so far so good.

      2. Make sure JBOSS_HOME environment varialbe by adding the following 2 lines to /etc/profile

      JBOSS_HOME=/usr/local/jboss
      export JBOSS_HOME

      3. Create a nukes directory; $JBOSS_HOME/server/default/nukes. Not yet clear on what this directory is for but assume it is for deploying my own custom portal components, etc.

      4. Get the Nukes source code. I like to keep source code and projects under my personal USER_HOME directory so I first setup a 'Nukes' directory here (which I'll now call NUKES_HOME) then open a terminal from this directory and issue the following command: cvs -d:pserver:anonymous@cvs.jboss.sourceforge.net:/cvsroot/jboss co nukes

      5. After about a moment or two we have the latest greatest version of the Nukes source code in my NUKES_HOME directory.

      6. Next go to $NUKES_HOME/nukes/src/resources/mysql directory and create the nukes database with the following commands:

      >mysql -u root -p < 'profile.ddl'
      >mysql -u root -p nukes < 'setup.ddl'
      >mysqladmin -u root -p reload

      7. Get/download the MySQL driver (from http://www.mysql.com/downloads/api-jdbc-stable.html) and copy the driver jar file into the the deploy directory of JBoss: $JBOSS_HOME/server/default/deploy.

      8. Next copy $NUKES_HOME/nukes/src/resources/mysql/nukes-ds.xml to $JBOSS_HOME/server/default/deploy

      9. Next copy $NUKES_HOME/build/etc/local.properties-mysql as $NUKES_HOME/build/local.properties

      10. Then execute the Nukes build script in $NUKES_HOME/build/build >./build.sh

      11. Then deploy the new build by going to $NUKES_HOME/nukes and >./build.sh deploy

      After doing all of the above, I now have the following 3 extra files under the $JBOSS_HOME/server/default/deploy directory:

      nukes-ds.xml
      nukes.ear
      mysql-connector-java-309-stable-bin.jar