I want my Applet to make a secure connection to an EJB deployed on the server(Weblogic
Server 7.0). But i get the following exception..
java.lang.RuntimeException: Missing license file for: WebLogic Platform 7.0
at weblogic.security.utils.SSLSetup.getLicenseLevel(SSLSetup.java:135)
at weblogic.security.utils.SSLSetup.getWrapperClass(SSLSetup.java:187)
at weblogic.security.utils.SSLContextWrapper.getInstance(SSLContextWrapper.java:24)
at weblogic.security.utils.SSLSetup.getSSLContext(SSLSetup.java:381)
at weblogic.rjvm.t3.T3SJVMConnection.newSocket(T3SJVMConnection.java:95)
at weblogic.rjvm.t3.T3JVMConnection.newSocketWithRetry(T3JVMConnection.java:358)
at weblogic.rjvm.t3.T3JVMConnection.connect(T3JVMConnection.java:239)
at weblogic.rjvm.t3.T3SJVMConnection.createConnection(T3SJVMConnection.java:83)
at weblogic.rjvm.Protocol.createConnection(Protocol.java:231)
at weblogic.rjvm.ConnectionManager.findOrCreateConnection(ConnectionManager.java:1269)
at weblogic.rjvm.ConnectionManager.bootstrap(ConnectionManager.java:418)
at weblogic.rjvm.ConnectionManager.bootstrap(ConnectionManager.java:300)
at weblogic.rjvm.RJVMManager.findOrCreateRemoteInternal(RJVMManager.java:233)
at weblogic.rjvm.RJVMManager.findOrCreate(RJVMManager.java:190)
at weblogic.rjvm.RJVMFinder.findOrCreateRemoteServer(RJVMFinder.java:196)
at weblogic.rjvm.RJVMFinder.findOrCreate(RJVMFinder.java:162)
at weblogic.rjvm.ServerURL.findOrCreateRJVM(ServerURL.java:262)
at weblogic.jndi.WLInitialContextFactoryDelegate.getInitialContext(WLInitialContextFactoryDelegate.java:323)
at weblogic.jndi.WLInitialContextFactoryDelegate.getInitialContext(WLInitialContextFactoryDelegate.java:221)
at weblogic.jndi.WLInitialContextFactory.getInitialContext(WLInitialContextFactory.java:149)
at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:662)
at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:243)
at javax.naming.InitialContext.init(InitialContext.java:219)
at javax.naming.InitialContext.<init>(InitialContext.java:195)
at WLClientApplet.init(WLClientApplet.java:53)
at sun.applet.AppletPanel.run(AppletPanel.java:341)
at java.lang.Thread.run(Thread.java:536)
The Applet works well in non-secure mode(using t3 instead of t3s).
The same code works as an Application(secure). Here i have to include the directory
containing the file "license.bea" in the classpath. But in case of Applet, including
the license file in the jar file doesn't help
Regards
Raees
Hi,
The issue is that to make SSL work we need to specify the bea.home property mentioning
the license_file_directory. How can this be achieved in case of Applet where the
license.bea file is not present in the client.
Regards
Raees
I found a simple solution. Just copy the license.bea to the class path and omit
the parameter bea.home
Regards