I guess different appservers package their ear differently. Basically whatever you do is to package the extension on the app level not inside the war. Maybe, you have to add the extension in the classpath of the war.