fix build issue. now can build ear package and could run fine on jboss.