Error java.lang.ClassNotFoundException: com.sun.crypto.provider.SunJCE thrown when starting TIBCO BusinessEvents engine.

Error java.lang.ClassNotFoundException: com.sun.crypto.provider.SunJCE thrown when starting TIBCO BusinessEvents engine.

book

Article ID: KB0087611

calendar_today

Updated On:

Products Versions
TIBCO BusinessEvents Enterprise Edition -
Not Applicable -

Description

Resolution:
Description:
=========
Error java.lang.ClassNotFoundException: com.sun.crypto.provider.SunJCE thrown when starting TIBCO BusinessEvents engine.



Environment:
============
TIBCO BusinessEvents 5.0.1
All Operating Systems


Symptoms:
============
The following error is thrown when trying to start the BusinessEvents engine in Studio.

2012 Jul 17 14:55:20:442 GMT +1 DataReader Info [main] - [runtime.channel] Initialized Channel Manager
10 [main] INFO com.tibco.security.impl.ooOO - Initializing JSSE's crypto provide r class com.sun.net.ssl.internal.ssl.Provider in default mode
27 [main] ERROR com.tibco.security.providers.CryptoVendorImpl_j2se - java.lang.C
lassNotFoundException: com.sun.crypto.provider.SunJCE
java.lang.ClassNotFoundException: com.sun.crypto.provider.SunJCE
        at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
        at sun.misc.Launcher$ExtClassLoader.findClass(Launcher.java:229)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
        at java.lang.Class.forName0(Native Method)
        at java.lang.Class.forName(Class.java:169)
        at com.tibco.security.providers.CryptoVendorImpl_j2se.&ltclinit>(CryptoVen
dorImpl_j2se.java:63)
        at java.lang.Class.forName0(Native Method)
        at java.lang.Class.forName(Class.java:169)
        at com.tibco.security.impl.F.init(CryptoVendor.java:63)
        at com.tibco.security.impl.F.init(CryptoVendor.java:46)
        at com.tibco.security.impl.F.getInstance(CryptoVendor.java:83)
        at com.tibco.security.Crypto.rename(Crypto.java:59)
        at com.tibco.security.ObfuscationEngine.encrypt(ObfuscationEngine.java:2
71)
        at com.tibco.cep.driver.jms.JMSChannelConfig.if(SourceFile:533)
        at com.tibco.cep.driver.jms.JMSChannelConfig.do(SourceFile:507)
        at com.tibco.cep.driver.jms.JMSChannelConfig.&ltinit>(SourceFile:69)
        at com.tibco.cep.driver.jms.JMSDriver.createChannel(SourceFile:26)
        at com.tibco.cep.runtime.channel.impl.ChannelManagerImpl.registerChannel
(ChannelManagerImpl.java:106)
        at com.tibco.cep.runtime.channel.impl.ChannelManagerImpl.init(ChannelMan
agerImpl.java:96)
        at com.tibco.cep.runtime.session.impl.RuleServiceProviderImpl.initChanne
ls(RuleServiceProviderImpl.java:998)
        at com.tibco.cep.runtime.session.impl.RuleServiceProviderImpl.initAll(Ru
leServiceProviderImpl.java:598)
        at com.tibco.cep.runtime.session.impl.RuleServiceProviderImpl.configure(
RuleServiceProviderImpl.java:242)
        at com.tibco.curfewTracker.SubjectReader.readAndPublish(SubjectReader.ja
Caused by: java.lang.ClassNotFoundException: com.sun.crypto.provider.SunJCE
        at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
        at sun.misc.Launcher$ExtClassLoader.findClass(Launcher.java:229)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
        at java.lang.Class.forName0(Native Method)
        at java.lang.Class.forName(Class.java:169)
        at com.tibco.security.providers.CryptoVendorImpl_j2se.&ltclinit>(CryptoVen


Cause:
============
The jar file sunjce_provider.jar is missing from the Standard Classpath setting in be-engine.tra. This needs to be added.


Resolution:
============
Check the location C:\tibco\tibcojre\1.6.0\lib\ext and confirm that the jar file sunjce_provider is present. If so, add the following to be-engine.tra file:

Update tibco.env.STD_EXT_CP  with %TIB_JAVA_HOME%/lib%PSP%%TIB_JAVA_HOME%/lib/ext%PSP%

Issue/Introduction

Error java.lang.ClassNotFoundException: com.sun.crypto.provider.SunJCE thrown when starting TIBCO BusinessEvents engine.