jLuger.de - Migration from Weblogic 10g to 11g and Java Webstart

The last days I was migrating an application from Weblogic 10g to 11g. The application had a Swing client as frontend. The Swing client used stubs that were created during building the server. For the build I've used tools/libs of a local Weblogic installation. To test the migrated server I've started the client from my IDE. I've got up to the point where this local client worked perfectly with the migrated server backend. Then I've deployed the frontend to the webstart repository and started it. The application didn't start but I've got this exception:

java.security.AccessControlException: access denied (java.lang.RuntimePermission getClassLoader)

It seemed that it want to load code which is forbidden for webstart applications. I was wondering why it would like to load code until I've remembered that you don't need to generate stubs for Weblogic. Under some circumstance it could load the stubs from the server. The stubs I provide were generated with the 10g version. I thought that maybe the 11g requires others stubs and tries to provide them. So I've installed a local Weblogic 11g and changed my build environment so that it uses the 11g installation. After a recompilation everything worked fine.

To sum it up: Pregenerate the stubs with the same Weblogic version that you use for deployment.