Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

java.lang.RuntimeException: No such license: WebLogic Platform 8.1, SSL/Export

43 views
Skip to first unread message

A S

unread,
Mar 5, 2004, 6:46:08 PM3/5/04
to

Hi,

I have a small test program that works fine with the URL "t3:/remotehost:7001".
However when I try to use "t3s" [t3s://remotehost:7001], I am getting a "java.lang.RuntimeException:
No such license: WebLogic Platform 8.1, SSL/Export" exception.

The code snippet:
-------------
public void connect() throws Exception
{
Environment env = new Environment();
env.setProviderUrl(host);
env.setSecurityPrincipal(user);
env.setSecurityCredentials(passwd);
Context ctx = env.getInitialContext(); // exception thrown here <-----
System.out.println("Done");
MBeanHome mbHome = (MBeanHome) ctx.lookup(MBeanHome.ADMIN_JNDI_NAME);
}
-----------------------------------------

The command line is:

java -Dbea.home=c:\bea -Djava.protocol.handler.pkgs=com.certicom.net.ssl -classpath
weblogic.jar TestT3s

The valid license file "license.bea" is under "C:\bea" [passed in the command
line].

I am able to hit the server using the HTTPS URL https://remotehost:7001/console
from my test box.

What else do I need to do to get access over t3s?


Regards,
AS

Pavel

unread,
Mar 8, 2004, 10:44:48 AM3/8/04
to

Make sure the license.bea file folder or the file itself is in the classpath.

Pavel.

A S

unread,
Mar 8, 2004, 12:47:06 PM3/8/04
to

Pavel,

I have tried giving the path to license file in the classpath [c:\bea\license.bea]
as well as the directory path [c:\bea] in the classpath. The same exception gets
thrown.

I am using the same license file that the server is using [and I am able to connect
using https via a browser].

Any help is appreciated.

Regards,
A S

Pavel

unread,
Mar 8, 2004, 2:48:34 PM3/8/04
to

The error message indicates that the license file does not have SSL component:
either SSL/Domestic or SSL/Export. Though, with the server license folder in the
client classpath you'd be using the same file that the server, and without this
component the server SSL port would not start. To debug this set ssl debug flags
on on the server and the client:
-Dssl.debug=true -Dweblogic.StdoutDebugEnabled=true
This should output debug messages about where the license was loaded from and
what kind.

Just to rule out other errors: you are using the same port for both ssl and non-ssl
protocols. Is this just for example, or you modified the server config between
the connections? Also, in your code you set env.setProviderUrl(host). host is
the URL with port and protocol, right?

Amit

unread,
Mar 24, 2004, 3:22:01 PM3/24/04
to

I am having a similar issue as this one. I have tried setting the debug statements
as mentioned. Below is what the debug statements produced. Seems like the debug
statement <No SSL License found> is the key. But the license.bea is in the classpath
and it also has the SSL/export component. Any help is appreciated.

<Mar 24, 2004 12:19:25 PM PST> <Debug> <TLS> <000000> <JCE support for algorithm
ECDSA, class com.entrust.toolkit.security.provider.EntrustECDSA using provider
Entrust version 1.01>
<Mar 24, 2004 12:19:25 PM PST> <Debug> <TLS> <000000> <JCE support for algorithm
SHA1withDSA, class sun.security.provider.DSA using provider SUN version 1.2>
<Mar 24, 2004 12:19:25 PM PST> <Debug> <TLS> <000000> <JCE support for algorithm
MD5withRSA, class java.security.Signature$Delegate using provider SunJSSE versi
on 1.41>
<Mar 24, 2004 12:19:25 PM PST> <Debug> <TLS> <000000> <JCE support for algorithm
SHA1withRSA, class java.security.Signature$Delegate using provider SunJSSE vers
ion 1.41>
<Mar 24, 2004 12:19:25 PM PST> <Debug> <TLS> <000000> <JCE support for algorithm
MD2withRSA, class java.security.Signature$Delegate using provider SunJSSE versi
on 1.41>
<Mar 24, 2004 12:19:25 PM PST> <Debug> <TLS> <000000> <JCE support for algorithm
SHA, class java.security.MessageDigest$Delegate using provider SUN version 1.2>

<Mar 24, 2004 12:19:25 PM PST> <Debug> <TLS> <000000> <JCE support for algorithm
MD5, class java.security.MessageDigest$Delegate using provider SUN version 1.2>

<Mar 24, 2004 12:19:25 PM PST> <Debug> <TLS> <000000> <No JCE support for algori
thm NullMac, class javax.crypto.Mac>
<Mar 24, 2004 12:19:25 PM PST> <Debug> <TLS> <000000> <JCE support for algorithm
HmacSHA1, class javax.crypto.Mac using provider IAIK version 2.61>
<Mar 24, 2004 12:19:25 PM PST> <Debug> <TLS> <000000> <JCE support for algorithm
HmacMD5, class javax.crypto.Mac using provider IAIK version 2.61>
<Mar 24, 2004 12:19:25 PM PST> <Debug> <TLS> <000000> <JCE support for algorithm
DES/CBC/NoPadding, class javax.crypto.Cipher using provider Entrust version 1.0
1>
<Mar 24, 2004 12:19:25 PM PST> <Debug> <TLS> <000000> <JCE support for algorithm
DESede/CBC/NoPadding, class javax.crypto.Cipher using provider Entrust version
1.01>
<Mar 24, 2004 12:19:25 PM PST> <Debug> <TLS> <000000> <JCE support for algorithm
DESede/ECB/NoPadding, class javax.crypto.Cipher using provider Entrust version
1.01>
<Mar 24, 2004 12:19:25 PM PST> <Debug> <TLS> <000000> <JCE support for algorithm
RC4, class javax.crypto.Cipher using provider Entrust version 1.01>
<Mar 24, 2004 12:19:25 PM PST> <Debug> <TLS> <000000> <JCE support for algorithm
RSA/ECB/PKCS1Padding, class javax.crypto.Cipher using provider Entrust version
1.01>
<Mar 24, 2004 12:19:25 PM PST> <Debug> <TLS> <000000> <No JCE support for algori
thm RSA/ECB/NoPadding, class javax.crypto.Cipher>
<Mar 24, 2004 12:19:25 PM PST> <Debug> <TLS> <000000> <No JCE support for algori
thm Anonymous, class javax.crypto.KeyAgreement>
<Mar 24, 2004 12:19:25 PM PST> <Debug> <TLS> <000000> <No JCE support for algori
thm ECDH, class javax.crypto.KeyAgreement>
<Mar 24, 2004 12:19:25 PM PST> <Debug> <TLS> <000000> <JCE support for algorithm
DiffieHellman, class javax.crypto.KeyAgreement using provider IAIK version 2.61
>
<Mar 24, 2004 12:19:25 PM PST> <Debug> <TLS> <000000> <No JCE support for algori
thm RSA, class javax.crypto.KeyAgreement>
<Mar 24, 2004 12:19:25 PM PST> <Debug> <TLS> <000000> <ECDSA | java.security.Sig
nature | USEJCE | Entrust version 1.01>
<Mar 24, 2004 12:19:25 PM PST> <Debug> <TLS> <000000> <SHA1withDSA | java.securi
ty.Signature | USEJCE | SUN version 1.2>
<Mar 24, 2004 12:19:25 PM PST> <Debug> <TLS> <000000> <MD5withRSA | java.securit
y.Signature | USEJCE | SunJSSE version 1.41>
<Mar 24, 2004 12:19:25 PM PST> <Debug> <TLS> <000000> <SHA1withRSA | java.securi
ty.Signature | USEJCE | SunJSSE version 1.41>
<Mar 24, 2004 12:19:25 PM PST> <Debug> <TLS> <000000> <MD2withRSA | java.securit
y.Signature | USEJCE | SunJSSE version 1.41>
<Mar 24, 2004 12:19:25 PM PST> <Debug> <TLS> <000000> <SHA | java.security.Messa
geDigest | USEJCE | SUN version 1.2>
<Mar 24, 2004 12:19:25 PM PST> <Debug> <TLS> <000000> <MD5 | java.security.Messa
geDigest | USEJCE | SUN version 1.2>
<Mar 24, 2004 12:19:25 PM PST> <Debug> <TLS> <000000> <NullMac | javax.crypto.Ma
c | USEHARDWIRED>
<Mar 24, 2004 12:19:25 PM PST> <Debug> <TLS> <000000> <HmacSHA1 | javax.crypto.M
ac | USEJCE | IAIK version 2.61>
<Mar 24, 2004 12:19:25 PM PST> <Debug> <TLS> <000000> <HmacMD5 | javax.crypto.Ma
c | USEJCE | IAIK version 2.61>
<Mar 24, 2004 12:19:25 PM PST> <Debug> <TLS> <000000> <DES/CBC/NoPadding | javax
.crypto.Cipher | USEJCE | Entrust version 1.01>
<Mar 24, 2004 12:19:25 PM PST> <Debug> <TLS> <000000> <DESede/CBC/NoPadding |
ja
vax.crypto.Cipher | USEJCE | Entrust version 1.01>
<Mar 24, 2004 12:19:25 PM PST> <Debug> <TLS> <000000> <DESede/ECB/NoPadding |
ja
vax.crypto.Cipher | USEJCE | Entrust version 1.01>
<Mar 24, 2004 12:19:25 PM PST> <Debug> <TLS> <000000> <RC4 | javax.crypto.Cipher
| USEJCE | Entrust version 1.01>
<Mar 24, 2004 12:19:25 PM PST> <Debug> <TLS> <000000> <RSA/ECB/PKCS1Padding |
ja
vax.crypto.Cipher | USEJCE | Entrust version 1.01>
<Mar 24, 2004 12:19:25 PM PST> <Debug> <TLS> <000000> <RSA/ECB/NoPadding | javax
.crypto.Cipher | USEHARDWIRED>
<Mar 24, 2004 12:19:25 PM PST> <Debug> <TLS> <000000> <Anonymous | javax.crypto.
KeyAgreement | USEHARDWIRED>
<Mar 24, 2004 12:19:25 PM PST> <Debug> <TLS> <000000> <ECDH | javax.crypto.KeyAg
reement | USEHARDWIRED>
<Mar 24, 2004 12:19:25 PM PST> <Debug> <TLS> <000000> <DiffieHellman | javax.cry
pto.KeyAgreement | USEJCE | IAIK version 2.61>
<Mar 24, 2004 12:19:25 PM PST> <Debug> <TLS> <000000> <RSA | javax.crypto.KeyAgr
eement | USEHARDWIRED>
<Mar 24, 2004 12:19:25 PM PST> <Debug> <TLS> <000000> <JCE used for some SSL =
t
rue>
<Mar 24, 2004 12:19:25 PM PST> <Debug> <TLS> <000000> <jsafeJCE used for some
SS
L = false>
<Mar 24, 2004 12:19:25 PM PST> <Debug> <TLS> <000000> < provider[0] - SUN>
<Mar 24, 2004 12:19:25 PM PST> <Debug> <TLS> <000000> < SUN (DSA key/pa
rameter generation; DSA signing; SHA-1, MD5 digests; SecureRandom; X.509 certifi
cates; JKS keystore; PKIX CertPathValidator; PKIX CertPathBuilder; LDAP, Collect
ion CertStores)>
<Mar 24, 2004 12:19:25 PM PST> <Debug> <TLS> <000000> < provider[1] - SunJSSE>

<Mar 24, 2004 12:19:25 PM PST> <Debug> <TLS> <000000> < Sun JSSE provid
er(implements RSA Signatures, PKCS12, SunX509 key/trust factories, SSLv3, TLSv1)
>
<Mar 24, 2004 12:19:25 PM PST> <Debug> <TLS> <000000> < provider[2] - SunRsaSi
gn>
<Mar 24, 2004 12:19:25 PM PST> <Debug> <TLS> <000000> < SUN's provider
for RSA signatures>
<Mar 24, 2004 12:19:25 PM PST> <Debug> <TLS> <000000> < provider[3] - Entrust>

<Mar 24, 2004 12:19:25 PM PST> <Debug> <TLS> <000000> < Entrust Securit
y Provider v1.01>
<Mar 24, 2004 12:19:25 PM PST> <Debug> <TLS> <000000> < provider[4] - IAIK>
<Mar 24, 2004 12:19:25 PM PST> <Debug> <TLS> <000000> < IAIK Security
P
rovider v2.61>
<Mar 24, 2004 12:19:25 PM PST> <Debug> <TLS> <000000> < provider[5] - SunJCE>

<Mar 24, 2004 12:19:25 PM PST> <Debug> <TLS> <000000> < SunJCE Provider
(implements DES, Triple DES, Blowfish, PBE, Diffie-Hellman, HMAC-MD5, HMAC-SHA1
)>
<Mar 24, 2004 12:19:25 PM PST> <Debug> <TLS> <000000> < provider[6] - SunJGSS>

<Mar 24, 2004 12:19:25 PM PST> <Debug> <TLS> <000000> < Sun (Kerberos
v
5)>
<Mar 24, 2004 12:19:25 PM PST> <Debug> <TLS> <000000> <Crypto to use for RSA is
USEHARDWIRED>
<Mar 24, 2004 12:19:25 PM PST> <Debug> <TLS> <000000> <usingJCE = true>
<Mar 24, 2004 12:19:25 PM PST> <Debug> <TLS> <000000> <usingJsafeJCE = false>
<Mar 24, 2004 12:19:25 PM PST> <Debug> <TLS> <000000> <Algorithm DES/CBC/NoPaddi
ng is not configured for a specific provider>
<Mar 24, 2004 12:19:25 PM PST> <Debug> <TLS> <000000> <Provider found by default
for DES/CBC/NoPadding is Entrust version 1.01>
<Mar 24, 2004 12:19:25 PM PST> <Debug> <TLS> <000000> <Algorithm DESede/CBC/NoPa
dding is not configured for a specific provider>
<Mar 24, 2004 12:19:25 PM PST> <Debug> <TLS> <000000> <Provider found by default
for DESede/CBC/NoPadding is Entrust version 1.01>
<Mar 24, 2004 12:19:25 PM PST> <Debug> <TLS> <000000> <No SSL license found>
failure
java.lang.RuntimeException: Missing license file for: WebLogic Platform 8.1
at weblogic.security.utils.SSLSetup.getLicenseLevel(SSLSetup.java:183)
at weblogic.security.utils.SSLSetup.getWrapperClass(SSLSetup.java:221)
at weblogic.security.utils.SSLContextWrapper.getInstance(SSLContextWrapp
er.java:25)


Thanks!
Amit

Pavel

unread,
Mar 25, 2004, 11:27:46 AM3/25/04
to

According to the error message: "Missing license file for: WebLogic Platform 8.1"
- the license file was not found. Make sure the folder with the license.bea file,
not the file itself, is in the classpath.

Pavel.

0 new messages