Amitava Shee's Technical Diary

Saturday, April 29, 2006

JBoss seam example deployment

I was getting the following exception while deploying jboss-seam-1.0.0.CR2

ejb-jar.xml must either obey the right xml schema or define a valid DOCTYPE!

I didn't find much help googling for it. Turns out that while installating JBoss 4.0.4CR2 (using the installer), you have to select ejb3 radio button. I had mistakenly assumed that by selecting "all" ejb3 would be included. After I reinstalled jboss AS with "ejb3" checked, jboss seam example "seam-booking" is up and running

I'll be playing around with seam and post my findings here.

Stay tuned

Monday, April 24, 2006

Reset mysql root password

The steps to reset mysql root password

  1. Stop mysqld service - In fedora this can be done as "sudo /sbin/service mysqld stop"
  2. Start mysqld with skip-grant-table option - "sudo /usr/bin/mysqld_safe --skip-grant-table &"
  3. Fire up mysql client as "mysql -u root mysql"
  4. Reset password - mysql> update user set password=password("secret") where user="root";
  5. Flush privileges - mysql>flush privileges;
  6. Shutdown mysqld - mysqladmin -u root -p shutdown. Please note that this will prompt for the newly created password