java.lang.ClassNotFoundException: oracle.jdbc.driver.OracleDriver

JIRA | Dmitri Barski | 3 years ago
  1. 0

    {panel:title=*This issue has moved*} {color:red}This issue has been moved permanently to [Adaptavist's Product Support JIRA instance|https://productsupport.adaptavist.com/browse/JBHV-282].{color} All existing users of this instance should have the same username on our Product Support instance. However, you will very likely need to click on the [Can't access your account|https://productsupport.adaptavist.com/secure/ForgotLoginDetails.jspa] link in order to reset to a new password. {panel}When creating a connection to Oracle, following exception is shown in the log (the code works allright in Script Console!): /rest/com.onresolve.jira.plugin.Behaviours/1.0/behaviours/runvalidator.json [onresolve.jira.groovy.BehaviourManagerImpl] Something went wrong with method run in class java.lang.ClassNotFoundException: oracle.jdbc.driver.OracleDriver at org.apache.felix.framework.ModuleImpl.findClassOrResourceByDelegation(ModuleImpl.java:772) The code looks like following: import groovy.sql.Sql import com.atlassian.jira.ComponentManager; import com.atlassian.jira.issue.fields.CustomField; import org.apache.log4j.Category; import com.atlassian.crowd.directory.* import com.atlassian.crowd.embedded.api.* import com.atlassian.jira.component.ComponentAccessor /* ..................... */ db = Sql.newInstance('jdbc:oracle:thin:@<myOracleHost>:<port>:<sid>', 'user', 'pass', 'oracle.jdbc.driver.OracleDriver'); /* ......................*/ def rqs = \['val1', 'val2', 'val3'\]; // the actual construction is more complex, but this does the trick for the example try { def sql = "select count(1) from table where somefield = ?" rqs.each { def cnt = 0 row = db.firstRow(sql, [it]); cnt = row[0]; if(cnt == 0) wrongEntries.add(it); } } finally { db.close() } if(wrongEntries.size > 0) { getFieldById(getFieldChanged()).setError(wrongEntries.join(",")+" are not valid IDs!"); } else { getFieldById(getFieldChanged()).clearError() } //return(wrongEntries.toString()); // is there for testing with Script Console

    JIRA | 3 years ago | Dmitri Barski
    java.lang.ClassNotFoundException: oracle.jdbc.driver.OracleDriver
  2. 0

    {panel:title=*This issue has moved*} {color:red}This issue has been moved permanently to [Adaptavist's Product Support JIRA instance|https://productsupport.adaptavist.com/browse/JBHV-282].{color} All existing users of this instance should have the same username on our Product Support instance. However, you will very likely need to click on the [Can't access your account|https://productsupport.adaptavist.com/secure/ForgotLoginDetails.jspa] link in order to reset to a new password. {panel}When creating a connection to Oracle, following exception is shown in the log (the code works allright in Script Console!): /rest/com.onresolve.jira.plugin.Behaviours/1.0/behaviours/runvalidator.json [onresolve.jira.groovy.BehaviourManagerImpl] Something went wrong with method run in class java.lang.ClassNotFoundException: oracle.jdbc.driver.OracleDriver at org.apache.felix.framework.ModuleImpl.findClassOrResourceByDelegation(ModuleImpl.java:772) The code looks like following: import groovy.sql.Sql import com.atlassian.jira.ComponentManager; import com.atlassian.jira.issue.fields.CustomField; import org.apache.log4j.Category; import com.atlassian.crowd.directory.* import com.atlassian.crowd.embedded.api.* import com.atlassian.jira.component.ComponentAccessor /* ..................... */ db = Sql.newInstance('jdbc:oracle:thin:@<myOracleHost>:<port>:<sid>', 'user', 'pass', 'oracle.jdbc.driver.OracleDriver'); /* ......................*/ def rqs = \['val1', 'val2', 'val3'\]; // the actual construction is more complex, but this does the trick for the example try { def sql = "select count(1) from table where somefield = ?" rqs.each { def cnt = 0 row = db.firstRow(sql, [it]); cnt = row[0]; if(cnt == 0) wrongEntries.add(it); } } finally { db.close() } if(wrongEntries.size > 0) { getFieldById(getFieldChanged()).setError(wrongEntries.join(",")+" are not valid IDs!"); } else { getFieldById(getFieldChanged()).clearError() } //return(wrongEntries.toString()); // is there for testing with Script Console

    JIRA | 3 years ago | Dmitri Barski
    java.lang.ClassNotFoundException: oracle.jdbc.driver.OracleDriver
  3. 0

    Hi, Getting several users reporting this when accessing my licensing screen. I've attached my pom.xml Everything works fine using atlas-debug but stand alone servers produce the error. Advice on how to tweak my pom.xml? I basically used the create-confluence-module - License Support in it's own project and then integrated it. There is a thread on the issue here: http://gsfn.us/t/2v4k3 (also is this the right place for Marketplace 3rd-party plugin developers to report issues?) java.lang.NoClassDefFoundError: com/atlassian/upm/license/storage/plugin/PluginLicenseStorageManager {code} Cause javax.servlet.ServletException: Servlet execution threw an exception at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:313) caused by: java.lang.NoClassDefFoundError: com/atlassian/upm/license/storage/plugin/PluginLicenseStorageManager at java.lang.Class.getDeclaredMethods0(Native Method) caused by: java.lang.ClassNotFoundException: com.atlassian.upm.license.storage.plugin.PluginLicenseStorageManager at org.apache.felix.framework.ModuleImpl.findClassOrResourceByDelegation(ModuleImpl.java:772) Stack Trace:[hide] javax.servlet.ServletException: Servlet execution threw an exception at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:313) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at com.atlassian.plugin.servlet.filter.IteratingFilterChain.doFilter(IteratingFilterChain.java:46) at com.atlassian.plugin.servlet.filter.DelegatingPluginFilter$1.doFilter(DelegatingPluginFilter.java:66) at com.atlassian.applinks.core.rest.context.ContextFilter.doFilter(ContextFilter.java:25) at com.atlassian.plugin.servlet.filter.DelegatingPluginFilter.doFilter(DelegatingPluginFilter.java:74) at com.atlassian.plugin.servlet.filter.IteratingFilterChain.doFilter(IteratingFilterChain.java:42) at com.atlassian.plugin.servlet.filter.DelegatingPluginFilter$1.doFilter(DelegatingPluginFilter.java:66) at com.atlassian.labs.httpservice.resource.ResourceFilter.doFilter(ResourceFilter.java:59) at com.atlassian.plugin.servlet.filter.DelegatingPluginFilter.doFilter(DelegatingPluginFilter.java:74) at com.atlassian.plugin.servlet.filter.IteratingFilterChain.doFilter(IteratingFilterChain.java:42) at com.atlassian.plugin.servlet.filter.ServletFilterModuleContainerFilter.doFilter(ServletFilterModuleContainerFilter.java:77) at com.atlassian.plugin.servlet.filter.ServletFilterModuleContainerFilter.doFilter(ServletFilterModuleContainerFilter.java:63) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at com.atlassian.confluence.security.websudo.MessagesDecoratorFilter.doFilter(MessagesDecoratorFilter.java:59) at com.atlassian.core.filters.AbstractHttpFilter.doFilter(AbstractHttpFilter.java:31) {code}

    Ecosystem JIRA | 5 years ago | Brendan Patterson
    java.lang.ClassNotFoundException: com.atlassian.upm.license.storage.plugin.PluginLicenseStorageManager
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    ClassNotFoundException:&#160; com.sun.corba.ee.impl.transport.CorbaOutboundConne

    Oracle Community | 7 years ago | cf126330
    java.lang.ClassNotFoundException: com.sun.corba.ee.impl.transport.CorbaOutboundConnectionCacheProbeProvider|#] [#|2009-09-22T17:01:44.692-0400|SEVERE|glassfish|null|_ThreadID=26;_ThreadName=Thread-3;|
  6. 0

    Help please! Problem accessing db connections from servlets

    Oracle Community | 1 decade ago | 843840
    java.lang.ClassNotFoundException: oracle.jdbc.driver.OracleDriver

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.lang.ClassNotFoundException

      oracle.jdbc.driver.OracleDriver

      at org.apache.felix.framework.ModuleImpl.findClassOrResourceByDelegation()
    2. Apache Felix Framework
      ModuleImpl.findClassOrResourceByDelegation
      1. org.apache.felix.framework.ModuleImpl.findClassOrResourceByDelegation(ModuleImpl.java:772)
      1 frame