You will have to check the licence details yourself to be sure but as far as I am aware :-
You can sell a product that uses JBoss (I think you can even sell JBoss if you can get someone to buy it)
If you want to sell a product that relies on MySQL I think that they expect you to purchase a redistribution licence.
Thank you for the clearfication.
JBoss is LGPL which means that we allow redistribution at no-cost.
MySQL is GPL which means that redistribution would GPL your code. You probably don't want that so you should buy a proprietary license from them.
When and if you do, do me a favor and mention you come from JBoss