Running an opennebula application with tomcat server

I try to run web application that allocate VM’s using opennebula java api in eclipse framework, but i failed.
How can i achieve this goal?