Missing license file Error while Accessing Webservice | WebLogic
Env Details:
Machine A – No Weblogic Installed – Used as client to access webservice.
Machine B – Weblogic Installed and Working – Acts as a server, Serving the webservice
When we run a Java Process on Machine A trying to call a web service on Machine B (Weblogic 9). Machine B acts as a server which provide services to clients. Machine B weblogic server by itself is working fine.
Intermittently getting the following error message on Machine A while accessing the web service on Machine B:-
java.lang.RuntimeException: Missing license file for: WebLogic Platform 9 at weblogic.security.utils.SSLSetup.getLicenseLevel(SSLSetup.java:157) at com.bea.sslplus.WeblogicHandler.checkLicense(Unknown Source) at com.certicom.net.ssl.SSLContext.<init>(Unknown Source) at weblogic.webservice.client.BaseWLSSLAdapter.getContext(BaseWLSSLAdapter.java:750) at weblogic.webservice.client.BaseWLSSLAdapter.setTrustManager(BaseWLSSLAdapter.java:676) at weblogic.webservice.client.BaseWLSSLAdapter._setStrictChecking(BaseWLSSLAdapter.java:332) at weblogic.webservice.client.WLSSLAdapter.setStrictChecking(WLSSLAdapter.java:132) at weblogic.webservice.client.WLSSLAdapter.<init>(WLSSLAdapter.java:32) at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27) at java.lang.reflect.Constructor.newInstance(Constructor.java:282) at java.lang.Class.newInstance0(Class.java:308) at java.lang.Class.newInstance(Class.java:261) at weblogic.webservice.client.SSLAdapterFactory.createSSLAdapter(SSLAdapterFactory.java:199) at weblogic.webservice.client.SSLAdapterFactory.getSSLAdapter(SSLAdapterFactory.java:168) at weblogic.webservice.tools.wsdlp.DefinitionFactory.<init>(DefinitionFactory.java:42) at weblogic.webservice.tools.wsdlp.WSDLParser.<init>(WSDLParser.java:75) at weblogic.webservice.WebServiceFactory.createFromWSDL(WebServiceFactory.java:108) at weblogic.webservice.WebServiceFactory.createFromWSDL(WebServiceFactory.java:84) at weblogic.webservice.core.rpc.ServiceImpl.getWebService(ServiceImpl.java:121) at weblogic.webservice.core.rpc.ServiceFactoryImpl.createService(ServiceFactoryImpl.java:42) ............. ............. at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:331)
To Solve above error follow below steps:
Copy the BEA license file to the client? You have to copy the BEA license file to the client(B to A) when using SSL from the client to the server.
You must have it on the client if you are remotely calling an EJB over SSL:
The workaround is simply to copy the dev license that is installed by default(or the license used by your server) to the client and set the bea.home system property to point to the directory where you put the license file.
java -Dbea.home=c:\bea…
For more info please check below doc:
http://download.oracle.com/docs/cd/E13222_01/wls/docs81/security/SSL_client.html#1029618
In case of any ©Copyright or missing credits issue please check CopyRights page for faster resolutions.