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.
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
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?
<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.