Correct some errors in scripts.
Created beans.xml for common and xml modules.