Hello, We are using the Tracer component in out project for monitoring and resending the messages to specific end points. The project is a WAR file that we are deploying in Jboss 7.1.1.Final server. We are using Derby as the DB for persisting the trace messages.
*a. We have followed the same approach as shown in the camel tracer example. (The tracer example is an OSGI bundle whereas ours is a WAR file). Upon deploying in Jboss we get the following error, (Note: we tested this in the tomcat-cfx example that is a WAR file)*---------------------------------------------------------------- 1.Final/bin/content/camel-example-cxf-tomcat.war/WEB-INF/lib/derbyclient-10.9.1.0.jar" does not point to a valid jar for a Class-Path reference. 10:23:31,012 WARN [org.jboss.as.server.deployment] (MSC service thread 1-7) Class Path entry derbyLocale_fr.jar in "/E:/prj/Softwares/jboss-as-7.1. 1.Final/bin/content/camel-example-cxf-tomcat.war/WEB-INF/lib/derbyclient-10.9.1.0.jar" does not point to a valid jar for a Class-Path reference. 10:23:31,028 WARN [org.jboss.as.server.deployment] (MSC service thread 1-7) Class Path entry derbyLocale_hu.jar in "/E:/prj/Softwares/jboss-as-7.1. 1.Final/bin/content/camel-example-cxf-tomcat.war/WEB-INF/lib/derbyclient-10.9.1.0.jar" does not point to a valid jar for a Class-Path reference. 10:23:31,044 WARN [org.jboss.as.server.deployment] (MSC service thread 1-7) Class Path entry derbyLocale_it.jar in "/E:/prj/Softwares/jboss-as-7.1. 1.Final/bin/content/camel-example-cxf-tomcat.war/WEB-INF/lib/derbyclient-10.9.1.0.jar" does not point to a valid jar for a Class-Path reference. 10:23:31,044 WARN [org.jboss.as.server.deployment] (MSC service thread 1-7) Class Path entry derbyLocale_ja_JP.jar in "/E:/prj/Softwares/jboss-as-7 .1.1.Final/bin/content/camel-example-cxf-tomcat.war/WEB-INF/lib/derbyclient-10.9.1.0.jar" does not point to a valid jar for a Class-Path reference. 10:23:31,044 WARN [org.jboss.as.server.deployment] (MSC service thread 1-7) Class Path entry derbyLocale_ko_KR.jar in "/E:/prj/Softwares/jboss-as-7 .1.1.Final/bin/content/camel-example-cxf-tomcat.war/WEB-INF/lib/derbyclient-10.9.1.0.jar" does not point to a valid jar for a Class-Path reference. 10:23:31,044 WARN [org.jboss.as.server.deployment] (MSC service thread 1-7) Class Path entry derbyLocale_pl.jar in "/E:/prj/Softwares/jboss-as-7.1. 1.Final/bin/content/camel-example-cxf-tomcat.war/WEB-INF/lib/derbyclient-10.9.1.0.jar" does not point to a valid jar for a Class-Path reference. 10:23:31,059 WARN [org.jboss.as.server.deployment] (MSC service thread 1-7) Class Path entry derbyLocale_pt_BR.jar in "/E:/prj/Softwares/jboss-as-7 .1.1.Final/bin/content/camel-example-cxf-tomcat.war/WEB-INF/lib/derbyclient-10.9.1.0.jar" does not point to a valid jar for a Class-Path reference. 10:23:31,059 WARN [org.jboss.as.server.deployment] (MSC service thread 1-7) Class Path entry derbyLocale_ru.jar in "/E:/prj/Softwares/jboss-as-7.1. 1.Final/bin/content/camel-example-cxf-tomcat.war/WEB-INF/lib/derbyclient-10.9.1.0.jar" does not point to a valid jar for a Class-Path reference. 10:23:31,075 WARN [org.jboss.as.server.deployment] (MSC service thread 1-7) Class Path entry derbyLocale_zh_CN.jar in "/E:/prj/Softwares/jboss-as-7 .1.1.Final/bin/content/camel-example-cxf-tomcat.war/WEB-INF/lib/derbyclient-10.9.1.0.jar" does not point to a valid jar for a Class-Path reference. 10:23:31,090 WARN [org.jboss.as.server.deployment] (MSC service thread 1-7) Class Path entry derbyLocale_zh_TW.jar in "/E:/prj/Softwares/jboss-as-7 .1.1.Final/bin/content/camel-example-cxf-tomcat.war/WEB-INF/lib/derbyclient-10.9.1.0.jar" does not point to a valid jar for a Class-Path reference. 10:23:31,106 WARN [org.jboss.as.server.deployment] (MSC service thread 1-7) Class Path entry jaxb-api.jar in "/E:/prj/Softwares/jboss-as-7.1.1.Fina l/bin/content/camel-example-cxf-tomcat.war/WEB-INF/lib/jaxb-impl-2.2.5.jar" does not point to a valid jar for a Class-Path reference. 10:23:31,106 WARN [org.jboss.as.server.deployment] (MSC service thread 1-7) Class Path entry activation.jar in "/E:/prj/Softwares/jboss-as-7.1.1.Fi nal/bin/content/camel-example-cxf-tomcat.war/WEB-INF/lib/jaxb-impl-2.2.5.jar" does not point to a valid jar for a Class-Path reference. 10:23:31,106 WARN [org.jboss.as.server.deployment] (MSC service thread 1-7) Class Path entry jsr173_1.0_api.jar in "/E:/prj/Softwares/jboss-as-7.1. 1.Final/bin/content/camel-example-cxf-tomcat.war/WEB-INF/lib/jaxb-impl-2.2.5.jar" does not point to a valid jar for a Class-Path reference. 10:23:31,122 WARN [org.jboss.as.server.deployment] (MSC service thread 1-7) Class Path entry jaxb1-impl.jar in "/E:/prj/Softwares/jboss-as-7.1.1.Fi nal/bin/content/camel-example-cxf-tomcat.war/WEB-INF/lib/jaxb-impl-2.2.5.jar" does not point to a valid jar for a Class-Path reference. 10:23:31,137 WARN [org.jboss.as.server.deployment] (MSC service thread 1-5) JBAS015893: Encountered invalid class name 'org.springframework.context.A pplicationContext,org.springframework.beans.BeansException' for service type 'org.apache.cxf.bus.factory' 10:23:31,137 INFO [org.jboss.as.jpa] (MSC service thread 1-5) JBAS011401: Read persistence.xml for tracer 10:23:31,278 WARN [org.jboss.as.ee] (MSC service thread 1-6) JBAS011006: Not installing optional component org.apache.cxf.transport.http.Servlet3Cont inuationProvider$Servlet3Continuation due to exception: org.jboss.as.server.deployment.DeploymentUnitProcessingException: JBAS011054: Could not find d efault constructor for class org.apache.cxf.transport.http.Servlet3ContinuationProvider$Servlet3Continuation at org.jboss.as.ee.component.ComponentDescription$DefaultComponentConfigurator.configure(ComponentDescription.java:606) at org.jboss.as.ee.component.deployers.EEModuleConfigurationProcessor.deploy(EEModuleConfigurationProcessor.java:81) at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:113) [jboss-as-server-7.1.1.Final.jar:7.1.1 .Final] at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1811) [jboss-msc-1.0.2.GA.jar:1.0.2.GA] at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1746) [jboss-msc-1.0.2.GA.jar:1.0.2.GA] at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110) [rt.jar:1.7.0_04] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603) [rt.jar:1.7.0_04] at java.lang.Thread.run(Thread.java:722) [rt.jar:1.7.0_04] /10:23:31,512 INFO [org.jboss.as.connector.deployers.jdbc] (MSC service thread 1-6) JBAS010403: Deploying JDBC-compliant driver class org.apache.derby .jdbc.AutoloadedDriver (version 10.9) 10:23:31,512 INFO [org.jboss.as.connector.deployers.jdbc] (MSC service thread 1-6) JBAS010403: Deploying JDBC-compliant driver class org.apache.derby .jdbc.ClientDriver (version 10.9)/10:23:31,512 INFO [org.jboss.as.jpa] (MSC service thread 1-3) JBAS011402: Starting Persistence Unit Service 'camel-example-cxf-tomcat.war#tracer' 10:23:31,512 INFO [org.hibernate.ejb.Ejb3Configuration] (MSC service thread 1-3) HHH000204: Processing PersistenceUnitInfo [ name: tracer ...] 10:23:31,590 INFO [org.hibernate.service.jdbc.connections.internal.DriverManagerConnectionProviderImpl] (MSC service thread 1-3) HHH000402: Using Hib ernate built-in connection pool (not for production use!) 10:23:31,590 INFO [org.hibernate.service.jdbc.connections.internal.DriverManagerConnectionProviderImpl] (MSC service thread 1-3) HHH000115: Hibernate connection pool size: 20 10:23:31,590 INFO [org.hibernate.service.jdbc.connections.internal.DriverManagerConnectionProviderImpl] (MSC service thread 1-3) HHH000006: Autocommi t mode: true 10:23:31,590 INFO [org.hibernate.service.jdbc.connections.internal.DriverManagerConnectionProviderImpl] (MSC service thread 1-3) HHH000401: using dri ver [org.apache.derby.jdbc.ClientDriver] at URL [jdbc:derby://localhost:1527/prj_MESSAGETRACED] 10:23:31,590 INFO [org.hibernate.service.jdbc.connections.internal.DriverManagerConnectionProviderImpl] (MSC service thread 1-3) HHH000046: Connectio n properties: {autocommit=true, release_mode=auto} 10:23:31,605 WARN [org.hibernate.engine.jdbc.internal.JdbcServicesImpl] (MSC service thread 1-3) HHH000342: Could not obtain connection to query meta data : No suitable driver found for jdbc:derby://localhost:1527/prj_MESSAGETRACED 10:23:31,605 INFO [org.hibernate.dialect.Dialect] (MSC service thread 1-3) HHH000400: Using dialect: org.apache.camel.example.cxf.FixedDerbyDialect 10:23:31,605 WARN [org.hibernate.dialect.DerbyDialect] (MSC service thread 1-3) HHH000430: The DerbyDialect dialect has been deprecated; use one of t he version-specific dialects instead 10:23:31,605 INFO [org.hibernate.engine.jdbc.internal.LobCreatorBuilder] (MSC service thread 1-3) HHH000422: Disabling contextual LOB creation as con nection was null 10:23:31,621 INFO [org.hibernate.engine.transaction.internal.TransactionFactoryInitiator] (MSC service thread 1-3) HHH000268: Transaction strategy: o rg.hibernate.engine.transaction.internal.jdbc.JdbcTransactionFactory 10:23:31,621 INFO [org.hibernate.hql.internal.ast.ASTQueryTranslatorFactory] (MSC service thread 1-3) HHH000397: Using ASTQueryTranslatorFactory 10:23:31,636 INFO [org.hibernate.tool.hbm2ddl.SchemaExport] (MSC service thread 1-3) HHH000227: Running hbm2ddl schema export /10:23:31,652 ERROR [org.hibernate.tool.hbm2ddl.SchemaExport] (MSC service thread 1-3) HHH000231: Schema export unsuccessful: java.sql.SQLException: No suitable driver found for jdbc:derby://localhost:1527/prj_MESSAGETRACED at java.sql.DriverManager.getConnection(DriverManager.java:604) [rt.jar:1.7.0_04] at java.sql.DriverManager.getConnection(DriverManager.java:190) [rt.jar:1.7.0_04] at /org.hibernate.service.jdbc.connections.internal.DriverManagerConnectionProviderImpl.getConnection(DriverManagerConnectionProviderImpl.java: 173) [hibernate-core-4.0.1.Final.jar:4.0.1.Final] at org.hibernate.tool.hbm2ddl.SuppliedConnectionProviderConnectionHelper.prepare(SuppliedConnectionProviderConnectionHelper.java:51) [hibernat e-core-4.0.1.Final.jar:4.0.1.Final] at org.hibernate.tool.hbm2ddl.DatabaseExporter.<init>(DatabaseExporter.java:52) [hibernate-core-4.0.1.Final.jar:4.0.1.Final] at org.hibernate.tool.hbm2ddl.SchemaExport.execute(SchemaExport.java:368) [hibernate-core-4.0.1.Final.jar:4.0.1.Final] at org.hibernate.tool.hbm2ddl.SchemaExport.create(SchemaExport.java:305) [hibernate-core-4.0.1.Final.jar:4.0.1.Final] at org.hibernate.tool.hbm2ddl.SchemaExport.create(SchemaExport.java:294) [hibernate-core-4.0.1.Final.jar:4.0.1.Final] at org.hibernate.internal.SessionFactoryImpl.<init>(SessionFactoryImpl.java:452) [hibernate-core-4.0.1.Final.jar:4.0.1.Final] at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1737) [hibernate-core-4.0.1.Final.jar:4.0.1.Final] at org.hibernate.ejb.EntityManagerFactoryImpl.<init>(EntityManagerFactoryImpl.java:84) [hibernate-entitymanager-4.0.1.Final.jar:4.0.1.Final] at org.hibernate.ejb.Ejb3Configuration.buildEntityManagerFactory(Ejb3Configuration.java:904) [hibernate-entitymanager-4.0.1.Final.jar:4.0.1.Fi nal] at org.hibernate.ejb.Ejb3Configuration.buildEntityManagerFactory(Ejb3Configuration.java:889) [hibernate-entitymanager-4.0.1.Final.jar:4.0.1.Fi nal] at org.hibernate.ejb.HibernatePersistence.createContainerEntityManagerFactory(HibernatePersistence.java:73) [hibernate-entitymanager-4.0.1.Fin al.jar:4.0.1.Final] at org.jboss.as.jpa.service.PersistenceUnitServiceImpl.createContainerEntityManagerFactory(PersistenceUnitServiceImpl.java:162) [jboss-as-jpa- 7.1.1.Final.jar:7.1.1.Final] at org.jboss.as.jpa.service.PersistenceUnitServiceImpl.start(PersistenceUnitServiceImpl.java:85) [jboss-as-jpa-7.1.1.Final.jar:7.1.1.Final] at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1811) at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1746) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110) [rt.jar:1.7.0_04] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603) [rt.jar:1.7.0_04] at java.lang.Thread.run(Thread.java:722) [rt.jar:1.7.0_04] 10:23:31,714 INFO [org.hibernate.tool.hbm2ddl.SchemaExport] (MSC service thread 1-3) HHH000230: Schema export complete 10:23:31,714 WARN [org.hibernate.internal.SessionFactoryImpl] (MSC service thread 1-3) HHH000008: JTASessionContext being used with JDBCTransactionFa ctory; auto-flush will not operate correctly with getCurrentSession() 10:23:31,730 INFO [org.apache.catalina.core.ContainerBase.[jboss.web].[default-host].[/camel-example-cxf-tomcat]] (MSC service thread 1-2) Initializi ng Spring root WebApplicationContext 10:23:31,746 INFO [org.springframework.web.context.ContextLoader] (MSC service thread 1-2) Root WebApplicationContext: initialization started 10:23:31,761 INFO [org.springframework.web.context.support.XmlWebApplicationContext] (MSC service thread 1-2) Refreshing Root WebApplicationContext: startup date [Tue Dec 18 10:23:31 IST 2012]; root of context hierarchy 10:23:31,792 INFO [org.springframework.beans.factory.xml.XmlBeanDefinitionReader] (MSC service thread 1-2) Loading XML bean definitions from class pa th resource [camel-config.xml] 10:23:31,902 INFO [org.springframework.beans.factory.xml.XmlBeanDefinitionReader] (MSC service thread 1-2) Loading XML bean definitions from class pa th resource [META-INF/cxf/cxf.xml] 10:23:32,837 INFO [org.springframework.beans.factory.support.DefaultListableBeanFactory] (MSC service thread 1-2) Overriding bean definition for bean 'traced': replacing [Generic bean: class [org.apache.camel.spring.CamelEndpointFactoryBean]; scope=; abstract=false; lazyInit=false; autowireMode=0; dependencyCheck=0; autowireCandidate=true; primary=false; factoryBeanName=null; factoryMethodName=null; initMethodName=null; destroyMethodName=null] w ith [Generic bean: class [org.apache.camel.spring.CamelEndpointFactoryBean]; scope=; abstract=false; lazyInit=false; autowireMode=0; dependencyCheck=0 ; autowireCandidate=true; primary=false; factoryBeanName=null; factoryMethodName=null; initMethodName=null; destroyMethodName=null] 10:23:33,134 INFO [org.springframework.web.context.support.XmlWebApplicationContext] (MSC service thread 1-2) Bean 'cxf' of type [class org.apache.cx f.bus.spring.SpringBus] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying) 10:23:33,149 INFO [org.springframework.beans.factory.support.DefaultListableBeanFactory] (MSC service thread 1-2) Pre-instantiating singletons in org .springframework.beans.factory.support.DefaultListableBeanFactory@1cea54a: defining beans [cxf,org.apache.cxf.bus.spring.BusWiringBeanFactoryPostProce ssor,org.apache.cxf.bus.spring.Jsr250BeanPostProcessor,org.apache.cxf.bus.spring.BusExtensionPostProcessor,myRoutes,traced,template,consumerTemplate,c amel-1:beanPostProcessor,camel-1,camelTracer,transactionTemplate,jpaTemplate,entityManagerFactory]; root of factory hierarchy 10:23:33,649 INFO [org.apache.camel.impl.converter.DefaultTypeConverter] (MSC service thread 1-2) Loaded 182 type converters 10:23:33,649 INFO [org.apache.camel.core.xml.AbstractCamelContextFactoryBean] (MSC service thread 1-2) Using custom Tracer: Tracer 10:23:33,664 INFO [org.springframework.orm.jpa.LocalEntityManagerFactoryBean] (MSC service thread 1-2) Building JPA EntityManagerFactory for persiste nce unit 'tracer' 10:23:34,132 INFO [org.hibernate.service.jdbc.connections.internal.DriverManagerConnectionProviderImpl] (MSC service thread 1-2) HHH000402: Using Hib ernate built-in connection pool (not for production use!) 10:23:34,132 INFO [org.hibernate.service.jdbc.connections.internal.DriverManagerConnectionProviderImpl] (MSC service thread 1-2) HHH000115: Hibernate connection pool size: 20 10:23:34,132 INFO [org.hibernate.service.jdbc.connections.internal.DriverManagerConnectionProviderImpl] (MSC service thread 1-2) HHH000006: Autocommi t mode: true 10:23:34,148 INFO [org.hibernate.service.jdbc.connections.internal.DriverManagerConnectionProviderImpl] (MSC service thread 1-2) HHH000401: using dri ver [org.apache.derby.jdbc.ClientDriver] at URL [jdbc:derby://localhost:1527/prj_MESSAGETRACED] 10:23:34,148 INFO [org.hibernate.service.jdbc.connections.internal.DriverManagerConnectionProviderImpl] (MSC service thread 1-2) HHH000046: Connectio n properties: {autocommit=true, release_mode=auto} 10:23:34,163 WARN [org.hibernate.engine.jdbc.internal.JdbcServicesImpl] (MSC service thread 1-2) HHH000342: Could not obtain connection to query meta data : No suitable driver found for jdbc:derby://localhost:1527/prj_MESSAGETRACED 10:23:34,163 INFO [org.hibernate.dialect.Dialect] (MSC service thread 1-2) HHH000400: Using dialect: org.apache.camel.example.cxf.FixedDerbyDialect 10:23:34,163 WARN [org.hibernate.dialect.DerbyDialect] (MSC service thread 1-2) HHH000430: The DerbyDialect dialect has been deprecated; use one of t he version-specific dialects instead 10:23:34,163 INFO [org.hibernate.engine.jdbc.internal.LobCreatorBuilder] (MSC service thread 1-2) HHH000422: Disabling contextual LOB creation as con nection was null 10:23:34,163 INFO [org.hibernate.engine.transaction.internal.TransactionFactoryInitiator] (MSC service thread 1-2) HHH000268: Transaction strategy: o rg.hibernate.engine.transaction.internal.jdbc.JdbcTransactionFactory 10:23:34,163 INFO [org.hibernate.hql.internal.ast.ASTQueryTranslatorFactory] (MSC service thread 1-2) HHH000397: Using ASTQueryTranslatorFactory 10:23:34,241 INFO [org.hibernate.tool.hbm2ddl.SchemaExport] (MSC service thread 1-2) HHH000227: Running hbm2ddl schema export 10:23:34,241 ERROR [org.hibernate.tool.hbm2ddl.SchemaExport] (MSC service thread 1-2) HHH000231: Schema export unsuccessful: java.sql.SQLException: No suitable driver found for jdbc:derby://localhost:1527/prj_MESSAGETRACED at java.sql.DriverManager.getConnection(DriverManager.java:604) [rt.jar:1.7.0_04] at java.sql.DriverManager.getConnection(DriverManager.java:190) [rt.jar:1.7.0_04] at org.hibernate.service.jdbc.connections.internal.DriverManagerConnectionProviderImpl.getConnection(DriverManagerConnectionProviderImpl.java: 173) [hibernate-core-4.0.1.Final.jar:4.0.1.Final] at org.hibernate.tool.hbm2ddl.SuppliedConnectionProviderConnectionHelper.prepare(SuppliedConnectionProviderConnectionHelper.java:51) [hibernat e-core-4.0.1.Final.jar:4.0.1.Final] at org.hibernate.tool.hbm2ddl.DatabaseExporter.<init>(DatabaseExporter.java:52) [hibernate-core-4.0.1.Final.jar:4.0.1.Final] at org.hibernate.tool.hbm2ddl.SchemaExport.execute(SchemaExport.java:368) [hibernate-core-4.0.1.Final.jar:4.0.1.Final] at org.hibernate.tool.hbm2ddl.SchemaExport.create(SchemaExport.java:305) [hibernate-core-4.0.1.Final.jar:4.0.1.Final] at org.hibernate.tool.hbm2ddl.SchemaExport.create(SchemaExport.java:294) [hibernate-core-4.0.1.Final.jar:4.0.1.Final] at org.hibernate.internal.SessionFactoryImpl.<init>(SessionFactoryImpl.java:452) [hibernate-core-4.0.1.Final.jar:4.0.1.Final] at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1737) [hibernate-core-4.0.1.Final.jar:4.0.1.Final] at org.hibernate.ejb.EntityManagerFactoryImpl.<init>(EntityManagerFactoryImpl.java:84) [hibernate-entitymanager-4.0.1.Final.jar:4.0.1.Final] at org.hibernate.ejb.Ejb3Configuration.buildEntityManagerFactory(Ejb3Configuration.java:904) [hibernate-entitymanager-4.0.1.Final.jar:4.0.1.Fi nal] at org.hibernate.ejb.Ejb3Configuration.buildEntityManagerFactory(Ejb3Configuration.java:889) [hibernate-entitymanager-4.0.1.Final.jar:4.0.1.Fi nal] at org.hibernate.ejb.HibernatePersistence.createEntityManagerFactory(HibernatePersistence.java:56) [hibernate-entitymanager-4.0.1.Final.jar:4. 0.1.Final] at javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:63) [hibernate-jpa-2.0-api-1.0.1.Final.jar:1.0.1.Final] at org.springframework.orm.jpa.LocalEntityManagerFactoryBean.createNativeEntityManagerFactory(LocalEntityManagerFactoryBean.java:92) [spring-o rm-3.0.7.RELEASE.jar:3.0.7.RELEASE] at org.springframework.orm.jpa.AbstractEntityManagerFactoryBean.afterPropertiesSet(AbstractEntityManagerFactoryBean.java:310) [spring-orm-3.0. 7.RELEASE.jar:3.0.7.RELEASE] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1479 ) [spring-beans-3.0.7.RELEASE.jar:3.0.7.RELEASE] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1419) [ spring-beans-3.0.7.RELEASE.jar:3.0.7.RELEASE] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:518) [spr ing-beans-3.0.7.RELEASE.jar:3.0.7.RELEASE] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:455) [sprin g-beans-3.0.7.RELEASE.jar:3.0.7.RELEASE] at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:293) [spring-beans-3.0.7.RELEASE.jar:3.0 .7.RELEASE] at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222) [spring-beans-3. 0.7.RELEASE.jar:3.0.7.RELEASE] at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:290) [spring-beans-3.0.7.RELEASE.jar:3.0.7 .RELEASE] at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:192) [spring-beans-3.0.7.RELEASE.jar:3.0.7.R ELEASE] at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:322) [spring-beans- 3.0.7.RELEASE.jar:3.0.7.RELEASE] at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:106) [spring -beans-3.0.7.RELEASE.jar:3.0.7.RELEASE] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:13 27) [spring-beans-3.0.7.RELEASE.jar:3.0.7.RELEASE] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1085) [sp ring-beans-3.0.7.RELEASE.jar:3.0.7.RELEASE] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:516) [spr ing-beans-3.0.7.RELEASE.jar:3.0.7.RELEASE] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:455) [sprin g-beans-3.0.7.RELEASE.jar:3.0.7.RELEASE] at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveInnerBean(BeanDefinitionValueResolver.java:270) [spring-beans- 3.0.7.RELEASE.jar:3.0.7.RELEASE] at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:120) [spring -beans-3.0.7.RELEASE.jar:3.0.7.RELEASE] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:13 27) [spring-beans-3.0.7.RELEASE.jar:3.0.7.RELEASE] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1085) [sp ring-beans-3.0.7.RELEASE.jar:3.0.7.RELEASE] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:516) [spr ing-beans-3.0.7.RELEASE.jar:3.0.7.RELEASE] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:455) [sprin g-beans-3.0.7.RELEASE.jar:3.0.7.RELEASE] at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:293) [spring-beans-3.0.7.RELEASE.jar:3.0 .7.RELEASE] at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222) [spring-beans-3. 0.7.RELEASE.jar:3.0.7.RELEASE] at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:290) [spring-beans-3.0.7.RELEASE.jar:3.0.7 .RELEASE] at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:192) [spring-beans-3.0.7.RELEASE.jar:3.0.7.R ELEASE] at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:585) [spring- beans-3.0.7.RELEASE.jar:3.0.7.RELEASE] at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:895) [spring -context-3.0.7.RELEASE.jar:3.0.7.RELEASE] at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:425) [spring-context-3.0.7.RELEASE.j ar:3.0.7.RELEASE] at org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:282) [spring-web-3.0.7.RELEASE.jar:3.0.7.RELEA SE] at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:204) [spring-web-3.0.7.RELEASE.jar:3.0.7.RELEASE ] at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:47) [spring-web-3.0.7.RELEASE.jar:3.0.7 .RELEASE] at org.apache.catalina.core.StandardContext.contextListenerStart(StandardContext.java:3392) [jbossweb-7.0.13.Final.jar:] at org.apache.catalina.core.StandardContext.start(StandardContext.java:3850) [jbossweb-7.0.13.Final.jar:] at org.jboss.as.web.deployment.WebDeploymentService.start(WebDeploymentService.java:90) [jboss-as-web-7.1.1.Final.jar:7.1.1.Final] at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1811) at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1746) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110) [rt.jar:1.7.0_04] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603) [rt.jar:1.7.0_04] at java.lang.Thread.run(Thread.java:722) [rt.jar:1.7.0_04] 10:23:34,460 INFO [org.hibernate.tool.hbm2ddl.SchemaExport] (MSC service thread 1-2) HHH000230: Schema export complete 10:23:34,475 INFO [org.apache.camel.spring.SpringCamelContext] (MSC service thread 1-2) Apache Camel 2.10.0 (CamelContext: camel-1) is starting 10:23:34,475 INFO [org.apache.camel.spring.SpringCamelContext] (MSC service thread 1-2) Tracing is enabled on CamelContext: camel-1 10:23:34,491 INFO [org.apache.camel.management.ManagementStrategyFactory] (MSC service thread 1-2) JMX enabled. 10:23:34,491 INFO [org.apache.camel.management.DefaultManagementLifecycleStrategy] (MSC service thread 1-2) StatisticsLevel at All so enabling load p erformance statistics 10:23:34,569 INFO [org.apache.camel.component.jpa.JpaComponent] (MSC service thread 1-2) Using EntityManagerFactory found in registry with id [entity ManagerFactory] org.springframework.orm.jpa.LocalEntityManagerFactoryBean@b3820d 10:23:34,569 INFO [org.apache.camel.component.jpa.JpaComponent] (MSC service thread 1-2) Using TransactionManager found in registry with id [transact ionTemplate] org.springframework.orm.jpa.JpaTransactionManager@11f4eec 10:23:34,584 INFO [org.apache.camel.spring.SpringCamelContext] (MSC service thread 1-2) Total 0 routes, of which 0 is started. 10:23:34,584 INFO [org.apache.camel.spring.SpringCamelContext] (MSC service thread 1-2) Apache Camel 2.10.0 (CamelContext: camel-1) started in 0.109 seconds 10:23:34,584 INFO [org.springframework.web.context.ContextLoader] (MSC service thread 1-2) Root WebApplicationContext: initialization completed in 28 38 ms 10:23:34,787 INFO [org.jboss.web] (MSC service thread 1-2) JBAS018210: Registering web context: /camel-example-cxf-tomcat 10:23:35,427 INFO [org.jboss.as.server] (DeploymentScanner-threads - 1) JBAS018559: Deployed "camel-example-cxf-tomcat.war" ---------------------------------------------------------------------------------------------------------------------------------------------------- The configurations are as follows, *i.camel-config*<beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:camel="http://camel.apache.org/schema/spring" xmlns:cxf="http://camel.apache.org/schema/cxf" xsi:schemaLocation=" http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd http://camel.apache.org/schema/spring http://camel.apache.org/schema/spring/camel-spring.xsd http://camel.apache.org/schema/cxf http://camel.apache.org/schema/cxf/camel-cxf.xsd"> <import resource="classpath:META-INF/cxf/cxf.xml"/> <bean id="myRoutes" class="org.apache.camel.example.cxf.CamelRoute"/> <camelContext xmlns="http://camel.apache.org/schema/spring"> <endpoint id="traced" uri="jpa://org.apache.camel.processor.interceptor.jpa.JpaTraceEventMessage?persistenceUnit=tracer"/> </camelContext> <bean id="camelTracer" class="org.apache.camel.processor.interceptor.Tracer"> <property name="useJpa" value="true"/> <property name="destination" ref="traced"/> <property name="logLevel" value="OFF"/> </bean> <bean id="transactionTemplate" class="org.springframework.transaction.support.TransactionTemplate"> <property name="transactionManager"> <bean class="org.springframework.orm.jpa.JpaTransactionManager"> <property name="entityManagerFactory" ref="entityManagerFactory"/> </bean> </property> </bean> <bean id="jpaTemplate" class="org.springframework.orm.jpa.JpaTemplate"> <property name="entityManagerFactory" ref="entityManagerFactory"/> </bean> <bean id="entityManagerFactory" class="org.springframework.orm.jpa.LocalEntityManagerFactoryBean"> <property name="persistenceUnitName" value="tracer"/> </bean> </beans> *ii. persistence.xml* <?xml version="1.0" encoding="UTF-8"?> <persistence xmlns="http://java.sun.com/xml/ns/persistence" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="1.0"> <persistence-unit name="tracer" transaction-type="RESOURCE_LOCAL"> <class>org.apache.camel.processor.interceptor.jpa.JpaTraceEventMessage</class> <properties> <property name="hibernate.dialect" value="org.apache.camel.example.cxf.FixedDerbyDialect"/> <property name="hibernate.connection.driver_class" value="org.apache.derby.jdbc.ClientDriver"/> <property name="hibernate.connection.url" value="jdbc:derby://localhost:1527/prj_MESSAGETRACED"/> <property name="hibernate.hbm2ddl.auto" value="create"/> <property name="hibernate.show_sql" value="true"/> <property name="hibernate.format_sql" value="true"/> </properties> </persistence-unit> </persistence> *b. In one of the hibernate forums it was mentioned that Spring 3 would be compatible with Hibernate 3. We deployed Hibernate 3 jas as a module in Jboss - forcing our application to use Hibernate 3.6.6 Final. Even with that we are getting the same exception. c. We also tried defining a derby-ds.xml (placing the same in Web-INF). Now the exception we are getting is somewhat different. Refer the same below.*17:36:30,965 INFO [org.jboss.as.connector.deployers.jdbc] (MSC service thread 1-8) JBAS010403: Deploying JDBC-compliant driver class org.apache.derby .jdbc.AutoloadedDriver (version 10.9) 17:36:30,981 INFO [org.jboss.as.connector.deployers.jdbc] (MSC service thread 1-8) JBAS010403: Deploying JDBC-compliant driver class org.apache.derby .jdbc.ClientDriver (version 10.9) 17:36:31,261 INFO [org.jboss.wsf.stack.cxf.metadata.MetadataBuilder] (MSC service thread 1-8) Add Service id=com.company.prj.usecase.enricher.EnrichmentEndpointImpl address=http://localhost:8080/camel-prj-usecase/EnrichmentEndpointService implementor=com.company.prj.usecase.enricher.EnrichmentEndpointImpl invoker=org.jboss.wsf.stack.cxf.JBossWSInvoker serviceName={http://enricher.usecase.prj.company.com}EnrichmentEndpointService portName={http://enricher.usecase.prj.company.com}EnrichmentService wsdlLocation=null mtomEnabled=false 17:36:31,308 INFO [org.apache.cxf.service.factory.ReflectionServiceFactoryBean] (MSC service thread 1-8) Creating Service {http://enricher.usecase.is ova.company.com}EnrichmentEndpointService from class com.company.prj.usecase.enricher.EnrichmentEndpoint 17:36:31,417 INFO [org.apache.cxf.endpoint.ServerImpl] (MSC service thread 1-8) Setting the server's publish address to be http://localhost:8080/came l-prj-usecase/EnrichmentEndpointService 17:36:31,511 INFO [org.jboss.wsf.stack.cxf.deployment.WSDLFilePublisher] (MSC service thread 1-8) WSDL published to: file:/E:/prj/Softwares/jboss-a s-7.1.1.Final/standalone/data/wsdl/camel-prj-usecase.war/EnrichmentEndpointService.wsdl 17:36:31,527 INFO [org.jboss.as.webservices] (MSC service thread 1-2) JBAS015539: Starting service jboss.ws.port-component-link 17:36:31,527 INFO [org.jboss.as.webservices] (MSC service thread 1-2) JBAS015539: Starting service jboss.ws.endpoint."camel-prj-usecase.war"."com.w ipro.prj.usecase.enricher.EnrichmentEndpointImpl" 17:36:31,542 INFO [org.jboss.ws.common.management.DefaultEndpointRegistry] (MSC service thread 1-2) register: jboss.ws:context=camel-prj-usecase,en dpoint=com.company.prj.usecase.enricher.EnrichmentEndpointImpl 17:36:31,761 INFO [org.jboss.as.server] (DeploymentScanner-threads - 1) JBAS015870: Deploy of deployment "camel-prj-usecase.war" was rolled back wi th failure message {"JBAS014771: Services with missing/unavailable dependencies" => ["jboss.persistenceunit.\"camel-prj-usecase.war#tracer\"jboss.na ming.context.java.jboss.datasources.derbyDSMissing[jboss.persistenceunit.\"camel-prj-usecase.war#tracer\"jboss.naming.context.java.jboss.datasources .derbyDS]"]} 17:36:31,761 INFO [org.jboss.as.webservices] (MSC service thread 1-6) JBAS015540: Stopping service jboss.ws.endpoint."camel-prj-usecase.war"."com.w ipro.prj.usecase.enricher.EnrichmentEndpointImpl" 17:36:31,776 INFO [org.jboss.ws.common.management.DefaultEndpointRegistry] (MSC service thread 1-6) remove: jboss.ws:context=camel-prj-usecase,endp oint=com.company.prj.usecase.enricher.EnrichmentEndpointImpl 17:36:31,792 INFO [org.jboss.as.webservices] (MSC service thread 1-7) JBAS015540: Stopping service jboss.ws.port-component-link 17:36:37,377 INFO [org.jboss.as.server.deployment] (MSC service thread 1-5) JBAS015877: Stopped deployment camel-prj-usecase.war in 5622ms 17:36:37,377 INFO [org.jboss.as.controller] (DeploymentScanner-threads - 1) JBAS014774: Service status report JBAS014775: New missing/unsatisfied dependencies: service jboss.naming.context.java.jboss.datasources.derbyDS (missing) dependents: [service jboss.persistenceunit."camel-prj-usecase.war#tracer "] 17:36:37,392 ERROR [org.jboss.as.server.deployment.scanner] (DeploymentScanner-threads - 2) {"JBAS014653: Composite operation failed and was rolled ba ck. Steps that failed:" => {"Operation step-2" => {"JBAS014771: Services with missing/unavailable dependencies" => ["jboss.persistenceunit.\"camel-iso va-usecase.war#tracer\"jboss.naming.context.java.jboss.datasources.derbyDSMissing[jboss.persistenceunit.\"camel-prj-usecase.war#tracer\"jboss.naming .context.java.jboss.datasources.derbyDS]"]}}} Thanks and Regards, Bhavani -- View this message in context: http://camel.465427.n5.nabble.com/Camel-Tracer-Component-problem-with-persistence-tp5724262.html Sent from the Camel - Users mailing list archive at Nabble.com.