NoClassDefFoundError: "javax/net/ssl/TrustManager"

Solution Verified - Updated -

Issue

  • NoClassDefFoundError: "javax/net/ssl/TrustManager"
  • We are trying to connec MYSQLServer using Digital Certificate.Able to connect from plain Jar but not working in Fuse Bundle.
3:38:22,735 | ERROR | xtenderThread-64 | ErrorMapper                      | 377 - com.xyz | ErrorMapper.ErrorMapper - SQL connection failed in method arrayReading :java.sql.SQLException: java.lang.NoClassDefFoundError: javax/net/ssl/TrustManager
13:38:22,735 | INFO  | xtenderThread-64 | DefaultListableBeanFactory       | 172 - org.apache.servicemix.bundles.spring-beans - 3.2.12.RELEASE_2 | Destroying singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@3e44a2ca: defining beans [webServiceEndpoint,projectProperties,restService,soapRequest,cleanXMLResponse,camel-97:beanPostProcessor,camel-97,Projects,PrepareRes,projectStrategy,ErrorMapper,dbcon,commonConstants,myDS,EncryptDecrypt]; root of factory hierarchy

Environment

  • Red Hat JBoss Fuse
    • 6.2.1

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content