0 Replies Latest reply on Jul 29, 2016 10:37 AM by Matheus Lozano Sanches

    How to add oraclepki.jar in JBoss EAP 6.3?

    Matheus Lozano Sanches Newbie

      Hi,

       

      I'm setting the Oracle Wallet on JBoss and after I set all configs and properties my Application return error message.

       

      I already setuped the CLASSPATH on bashrc and bash_profile (JBoss user):

       

      Have other configuration file to change?

       

      JBoss CLASSPATH:

      CLASSPATH=$CLASSPATH:/opt/redhat/eap/domain/configuration/jamagent:/u01/agent13c/agent_13.1.0.0.0/oracle_common/modules/oracle.osdt_12.1.3/osdt_cert.jar:/u01/agent13c/agent_13.1.0.0.0/oracle_common/modules/oracle.osdt_12.1.3/osdt_cert.jar:/u01/agent13c/agent_13.1.0.0.0/oracle_common/modules/oracle.osdt_12.1.3/oraclepki.jar

      export CLASSPATH

       

      Web error:

      java.sql.SQLException: PKI classes not found. To use 'connect /' functionality, oraclepki.jar must be in the classpath: java.lang.NoClassDefFoundError: oracle/security/pki/OracleWallet

        oracle.jdbc.driver.PhysicalConnection.getSecretStoreCredentials(PhysicalConnection.java:3031)

        oracle.jdbc.driver.PhysicalConnection.parseUrl(PhysicalConnection.java:2797)

        oracle.jdbc.driver.PhysicalConnection.readConnectionProperties(PhysicalConnection.java:2335)

        oracle.jdbc.driver.PhysicalConnection.<init>(PhysicalConnection.java:527)

        oracle.jdbc.driver.T4CConnection.<init>(T4CConnection.java:236)

        oracle.jdbc.driver.T4CDriverExtension.getConnection(T4CDriverExtension.java:32)

        oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:521)

        org.jboss.jca.adapters.jdbc.local.LocalManagedConnectionFactory.getLocalManagedConnection(LocalManagedConnectionFactory.java:303)

        org.jboss.jca.adapters.jdbc.local.LocalManagedConnectionFactory.createManagedConnection(LocalManagedConnectionFactory.java:288)

        org.jboss.jca.core.connectionmanager.pool.mcp.SemaphoreArrayListManagedConnectionPool.createConnectionEventListener(SemaphoreArrayListManagedConnectionPool.java:834)

        org.jboss.jca.core.connectionmanager.pool.mcp.SemaphoreArrayListManagedConnectionPool.getConnection(SemaphoreArrayListManagedConnectionPool.java:379)

        org.jboss.jca.core.connectionmanager.pool.AbstractPool.getSimpleConnection(AbstractPool.java:406)

        org.jboss.jca.core.connectionmanager.pool.AbstractPool.getConnection(AbstractPool.java:378)

        org.jboss.jca.core.connectionmanager.AbstractConnectionManager.getManagedConnection(AbstractConnectionManager.java:354)

        org.jboss.jca.core.connectionmanager.AbstractConnectionManager.getManagedConnection(AbstractConnectionManager.java:327)

        org.jboss.jca.core.connectionmanager.AbstractConnectionManager.allocateConnection(AbstractConnectionManager.java:491)

        org.jboss.jca.adapters.jdbc.WrapperDataSource.getConnection(WrapperDataSource.java:143)

        br.com.odontoprev.api.mip.core.dao.util.DataConnection.getConnection(DataConnection.java:18)

        br.com.odontoprev.mip.core.dao.ParametroDaoBean.consultarParametro(ParametroDaoBean.java:26)

        br.com.odontoprev.api.mip.core.servico.cartao.OperacaoCartaoBraspagServicoBean.<init>(OperacaoCartaoBraspagServicoBean.java:60)

        sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)

        sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)

        sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)

        java.lang.reflect.Constructor.newInstance(Constructor.java:526)

        org.jboss.weld.introspector.jlr.WeldConstructorImpl.newInstance(WeldConstructorImpl.java:206)

        org.jboss.weld.injection.ConstructorInjectionPoint.newInstance(ConstructorInjectionPoint.java:117)

        org.jboss.weld.bean.ManagedBean.createInstance(ManagedBean.java:340)

        org.jboss.weld.bean.ManagedBean$ManagedBeanInjectionTarget.produce(ManagedBean.java:204)

        org.jboss.weld.bean.ManagedBean.create(ManagedBean.java:296)

        org.jboss.weld.context.unbound.DependentContextImpl.get(DependentContextImpl.java:68)

        org.jboss.weld.manager.BeanManagerImpl.getReference(BeanManagerImpl.java:626)

        org.jboss.weld.manager.BeanManagerImpl.getReference(BeanManagerImpl.java:692)

        org.jboss.weld.injection.ParameterInjectionPoint.getValueToInject(ParameterInjectionPoint.java:120)

        org.jboss.weld.injection.ConstructorInjectionPoint.getParameterValues(ConstructorInjectionPoint.java:170)

        org.jboss.weld.injection.ConstructorInjectionPoint.newInstance(ConstructorInjectionPoint.java:117)

        org.jboss.weld.bean.ManagedBean.createInstance(ManagedBean.java:340)

        org.jboss.weld.bean.ManagedBean$ManagedBeanInjectionTarget.produce(ManagedBean.java:204)

        org.jboss.weld.bean.ManagedBean.create(ManagedBean.java:296)

        org.jboss.weld.context.unbound.DependentContextImpl.get(DependentContextImpl.java:68)

        org.jboss.weld.manager.BeanManagerImpl.getReference(BeanManagerImpl.java:626)

        org.jboss.weld.manager.BeanManagerImpl.getReference(BeanManagerImpl.java:692)

        org.jboss.weld.injection.ParameterInjectionPoint.getValueToInject(ParameterInjectionPoint.java:120)

        org.jboss.weld.injection.ConstructorInjectionPoint.getParameterValues(ConstructorInjectionPoint.java:170)

        org.jboss.weld.injection.ConstructorInjectionPoint.newInstance(ConstructorInjectionPoint.java:117)

        org.jboss.weld.bean.ManagedBean.createInstance(ManagedBean.java:340)

        org.jboss.weld.bean.ManagedBean$ManagedBeanInjectionTarget.produce(ManagedBean.java:204)

        org.jboss.weld.bean.ManagedBean.create(ManagedBean.java:296)

        org.jboss.weld.context.unbound.DependentContextImpl.get(DependentContextImpl.java:68)

        org.jboss.weld.manager.BeanManagerImpl.getReference(BeanManagerImpl.java:626)

        org.jboss.weld.manager.BeanManagerImpl.getReference(BeanManagerImpl.java:692)

        org.jboss.weld.injection.ParameterInjectionPoint.getValueToInject(ParameterInjectionPoint.java:120)

        org.jboss.weld.injection.ConstructorInjectionPoint.getParameterValues(ConstructorInjectionPoint.java:170)

        org.jboss.weld.injection.ConstructorInjectionPoint.newInstance(ConstructorInjectionPoint.java:117)

        org.jboss.weld.bean.ManagedBean.createInstance(ManagedBean.java:340)

        org.jboss.weld.bean.ManagedBean$ManagedBeanInjectionTarget.produce(ManagedBean.java:204)

        org.jboss.resteasy.cdi.JaxrsInjectionTarget.produce(JaxrsInjectionTarget.java:80)

        org.jboss.weld.bean.ManagedBean.create(ManagedBean.java:296)

        org.jboss.weld.context.AbstractContext.get(AbstractContext.java:103)

        org.jboss.weld.bean.proxy.ContextBeanInstance.getInstance(ContextBeanInstance.java:90)

        org.jboss.weld.bean.proxy.ProxyMethodHandler.invoke(ProxyMethodHandler.java:79)

        br.com.odontoprev.api.ApiApplication$Proxy$_$$_WeldClientProxy.cartaoBandeirasGet(ApiApplication$Proxy$_$$_WeldClientProxy.java)

        sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

        sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)

        sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

        java.lang.reflect.Method.invoke(Method.java:606)

        org.jboss.resteasy.core.MethodInjectorImpl.invoke(MethodInjectorImpl.java:167)

        org.jboss.resteasy.core.ResourceMethod.invokeOnTarget(ResourceMethod.java:269)

        org.jboss.resteasy.core.ResourceMethod.invoke(ResourceMethod.java:227)

        org.jboss.resteasy.core.ResourceMethod.invoke(ResourceMethod.java:216)

        org.jboss.resteasy.core.SynchronousDispatcher.getResponse(SynchronousDispatcher.java:542)

        org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:524)

        org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:126)

        org.jboss.resteasy.plugins.server.servlet.ServletContainerDispatcher.service(ServletContainerDispatcher.java:208)

        org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher.service(HttpServletDispatcher.java:55)

        org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher.service(HttpServletDispatcher.java:50)

        javax.servlet.http.HttpServlet.service(HttpServlet.java:847)