Glassfish cannot load application

I’m using vaadin 6.8.11 with glassfish I get error
Failed to load application class: com.timm.ui.AdminApplication
while loading application in eclipse context. The vaadin.jar file is deployed under glassfish domain in the share application (ear) lib folder, and the class is in the war.

It works fine if the vaadin library is deploy in the war library folder.

This is not a problem with eclipse.

Any solution ?