0 Replies Latest reply: Jun 20, 2013 10:47 PM by 228ace7a-2a67-4a7b-8c41-504f222f441d RSS

    Cannot find JDBC cartridge class

    228ace7a-2a67-4a7b-8c41-504f222f441d

      Hello,

       

      I just began to use Oracle CEP. Now I practice a sample of JDBC cartridge with manual. (http://docs.oracle.com/cd/E23943_01/apirefs.1111/e12048/datacartjdbc.htm)

      But, I cannot take one step more after facing the error below.

      Could you explain why and how to resolve this situation if you experience it before?

       

      -- log --

      <Jun 20, 2013 11:20:06 PM EDT> <Notice> <Spring> <BEA-2047000> <The application context for "com.oracle.cep.cartridge.jdbc" was started successfully>

      <Jun 20, 2013 11:20:07 PM EDT> <Notice> <Spring> <BEA-2047000> <The application context for "com.bea.wlevs.dataservices" was started successfully>

      <Jun 20, 2013 11:20:08 PM EDT> <Notice> <Deployment> <BEA-2045000> <The application bundle "sample" was deployed successfully to file:/home/user/Oracle/Middlew

      are/user_projects/domains/ocep_domain/defaultserver/applications/sample/sample.jar with version 1371783026839>

      <Jun 20, 2013 11:20:08 PM EDT> <Warning> <org.springframework.osgi.extensions.annotation.ServiceReferenceDependencyBeanFactoryPostProcessor> <BEA-000000> <Could

      not load class [com.oracle.cep.cartridge.jdbc.JdbcCartridgeContext] for [sample]>

      <Jun 20, 2013 11:20:08 PM EDT> <Warning> <com.bea.wlevs.spring.support.ServiceDependencyBeanFactoryPostProcessor> <BEA-000000> <Could not load class [com.oracle

      .cep.cartridge.jdbc.JdbcCartridgeContext] for [sample]>

      <Jun 20, 2013 11:20:08 PM EDT> <Warning> <Ede> <BEA-000000> <Error parsing configuration with validation enabled, file /home/user/Oracle/Middleware/user_projec

      ts/domains/ocep_domain/defaultserver/applications/sample/p2.xml at line 7 column 18 for application sample: cvc-complex-type.2.4.c: The matching wildcard is str

      ict, but no declaration can be found for element 'jc:jdbc-ctx'. Please check that your configuration validates and that your application imports the JAXB packag

      es implied by the schema that it is using.>

      <Jun 20, 2013 11:20:12 PM EDT> <Error> <Deployment> <BEA-2045010> <The application context "sample" could not be started: org.springframework.beans.factory.Cann

      otLoadBeanClassException: Cannot find class [com.oracle.cep.cartridge.jdbc.JdbcCartridgeContext] for bean with name 'JdbcCartridgeOne' defined in null; nested e

      xception is java.lang.ClassNotFoundException: com.oracle.cep.cartridge.jdbc.JdbcCartridgeContext not found from bundle [sample]

      org.springframework.beans.factory.CannotLoadBeanClassException: Cannot find class [com.oracle.cep.cartridge.jdbc.JdbcCartridgeContext] for bean with name 'JdbcC

      artridgeOne' defined in null; nested exception is java.lang.ClassNotFoundException: com.oracle.cep.cartridge.jdbc.JdbcCartridgeContext not found from bundle [sa

      mple]

        at org.springframework.beans.factory.support.AbstractBeanFactory.resolveBeanClass(AbstractBeanFactory.java:1141)

        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.predictBeanType(AbstractAutowireCapableBeanFactory.java:524)

        at org.springframework.beans.factory.support.AbstractBeanFactory.isFactoryBean(AbstractBeanFactory.java:1177)

        at org.springframework.beans.factory.support.AbstractBeanFactory.isFactoryBean(AbstractBeanFactory.java:758)

        at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:422)

        at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:729)

        at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.access$1600(AbstractDelegatedExecutionApplicationContext.java:69)

        at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext$4.run(AbstractDelegatedExecutionApplicationContext.java:355)

        at org.springframework.osgi.util.internal.PrivilegedUtils.executeWithCustomTCCL(PrivilegedUtils.java:85)

        at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.completeRefresh(AbstractDelegatedExecutionApplicationContext.java:320)

        at org.springframework.osgi.extender.internal.dependencies.startup.DependencyWaiterApplicationContextExecutor$CompleteRefreshTask.run(DependencyWaiterApplicati

      onContextExecutor.java:139)

        at org.springframework.scheduling.commonj.DelegatingWork.run(DelegatingWork.java:62)

        at weblogic.work.commonj.CommonjWorkManagerImpl$WorkWithListener.run(CommonjWorkManagerImpl.java:204)

        at weblogic.work.SelfTuningWorkManagerImpl$WorkAdapterImpl.run(SelfTuningWorkManagerImpl.java:545)

        at weblogic.work.ExecuteThread.execute(ExecuteThread.java:256)

        at weblogic.work.ExecuteThread.run(ExecuteThread.java:221)

      Caused By: java.lang.ClassNotFoundException: com.oracle.cep.cartridge.jdbc.JdbcCartridgeContext not found from bundle [sample]

        at org.springframework.osgi.util.BundleDelegatingClassLoader.findClass(BundleDelegatingClassLoader.java:103)

        at org.springframework.osgi.util.BundleDelegatingClassLoader.loadClass(BundleDelegatingClassLoader.java:156)

        at java.lang.ClassLoader.loadClass(ClassLoader.java:247)

        at org.springframework.util.ClassUtils.forName(ClassUtils.java:211)

        at org.springframework.beans.factory.support.AbstractBeanDefinition.resolveBeanClass(AbstractBeanDefinition.java:385)

        at org.springframework.beans.factory.support.AbstractBeanFactory.resolveBeanClass(AbstractBeanFactory.java:1138)

        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.predictBeanType(AbstractAutowireCapableBeanFactory.java:524)

        at org.springframework.beans.factory.support.AbstractBeanFactory.isFactoryBean(AbstractBeanFactory.java:1177)

        at org.springframework.beans.factory.support.AbstractBeanFactory.isFactoryBean(AbstractBeanFactory.java:758)

        at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:422)

        at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:729)

        at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.access$1600(AbstractDelegatedExecutionApplicationContext.java:69)

        at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext$4.run(AbstractDelegatedExecutionApplicationContext.java:355)

        at org.springframework.osgi.util.internal.PrivilegedUtils.executeWithCustomTCCL(PrivilegedUtils.java:85)

        at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.completeRefresh(AbstractDelegatedExecutionApplicationContext.java:320)

        at org.springframework.osgi.extender.internal.dependencies.startup.DependencyWaiterApplicationContextExecutor$CompleteRefreshTask.run(DependencyWaiterApplicati

      onContextExecutor.java:139)

        at org.springframework.scheduling.commonj.DelegatingWork.run(DelegatingWork.java:62)

        at weblogic.work.commonj.CommonjWorkManagerImpl$WorkWithListener.run(CommonjWorkManagerImpl.java:204)

        at weblogic.work.SelfTuningWorkManagerImpl$WorkAdapterImpl.run(SelfTuningWorkManagerImpl.java:545)

        at weblogic.work.ExecuteThread.execute(ExecuteThread.java:256)

        at weblogic.work.ExecuteThread.run(ExecuteThread.java:221)

      Caused By: java.lang.ClassNotFoundException: com.oracle.cep.cartridge.jdbc.JdbcCartridgeContext

        at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:506)

        at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:422)

        at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:410)

        at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.java:109)

        at java.lang.ClassLoader.loadClass(ClassLoader.java:247)

        at org.eclipse.osgi.internal.loader.BundleLoader.loadClass(BundleLoader.java:338)

        at org.eclipse.osgi.framework.internal.core.BundleHost.loadClass(BundleHost.java:232)

        at org.eclipse.osgi.framework.internal.core.AbstractBundle.loadClass(AbstractBundle.java:1197)

        at org.springframework.osgi.util.BundleDelegatingClassLoader.findClass(BundleDelegatingClassLoader.java:99)

        at org.springframework.osgi.util.BundleDelegatingClassLoader.loadClass(BundleDelegatingClassLoader.java:156)

        at java.lang.ClassLoader.loadClass(ClassLoader.java:247)

        at org.springframework.util.ClassUtils.forName(ClassUtils.java:211)

        at org.springframework.beans.factory.support.AbstractBeanDefinition.resolveBeanClass(AbstractBeanDefinition.java:385)

        at org.springframework.beans.factory.support.AbstractBeanFactory.resolveBeanClass(AbstractBeanFactory.java:1138)

        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.predictBeanType(AbstractAutowireCapableBeanFactory.java:524)

        at org.springframework.beans.factory.support.AbstractBeanFactory.isFactoryBean(AbstractBeanFactory.java:1177)

        at org.springframework.beans.factory.support.AbstractBeanFactory.isFactoryBean(AbstractBeanFactory.java:758)

        at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:422)

        at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:729)

        at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.access$1600(AbstractDelegatedExecutionApplicationContext.java:69)

        at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext$4.run(AbstractDelegatedExecutionApplicationContext.java:355)

        at org.springframework.osgi.util.internal.PrivilegedUtils.executeWithCustomTCCL(PrivilegedUtils.java:85)

        at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.completeRefresh(AbstractDelegatedExecutionApplicationContext.java:320)

        at org.springframework.osgi.extender.internal.dependencies.startup.DependencyWaiterApplicationContextExecutor$CompleteRefreshTask.run(DependencyWaiterApplicati

      onContextExecutor.java:139)

        at org.springframework.scheduling.commonj.DelegatingWork.run(DelegatingWork.java:62)

        at weblogic.work.commonj.CommonjWorkManagerImpl$WorkWithListener.run(CommonjWorkManagerImpl.java:204)

        at weblogic.work.SelfTuningWorkManagerImpl$WorkAdapterImpl.run(SelfTuningWorkManagerImpl.java:545)

        at weblogic.work.ExecuteThread.execute(ExecuteThread.java:256)

        at weblogic.work.ExecuteThread.run(ExecuteThread.java:221)

      >