Hi, i am trying to run one jbossESB program to test the data persistence. i have ClassInfo as POJO and corresponding table as user_info but i get this error once i do "ant sendesb"(this is hibernate specific).
13:59:51,225 ERROR [STDERR] org.hibernate.MappingException: Unknown entity: org. jboss.soa.esb.samples.quickstart.helloworld.pojo.ClassInfo at org.hibernate.impl.SessionFactoryImpl.getEntityPersister(SessionFacto ryImpl.java:580)
**In Continuation.....
[Sorry for the incomplete paste towards the end of sentence, but it prints my name and in the footer too it prints my name, so data is somehow sent but not inserting data in user_info table in mysql]**
13:59:45,084 INFO [STDOUT] Hi Animesh 13:59:45,084 INFO [STDOUT] org.jboss.soa.esb.samples.quickstart.helloworld.poj .ClassInfo@1c21645
**13:59:45,287 ERROR [STDERR] javax.naming.NameNotFoundException: SessionFactory ot bound 13:59:45,287 ERROR [STDERR] at org.jnp.server.NamingServer.getBinding(Namin Server.java:771) 13:59:45,287 ERROR [STDERR] at org.jnp.server.NamingServer.getBinding(Namin Server.java:779) 13:59:45,287 ERROR [STDERR] at org.jnp.server.NamingServer.getObject(Naming erver.java:785) 13:59:45,287 ERROR [STDERR] at org.jnp.server.NamingServer.lookup(NamingSer er.java:443) 13:59:45,287 ERROR [STDERR] at sun.reflect.GeneratedMethodAccessor272.invok (Unknown Source) 13:59:45,287 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.inv ke(DelegatingMethodAccessorImpl.java:25) 13:59:45,287 ERROR [STDERR] at java.lang.reflect.Method.invoke(Method.java: 97) 13:59:45,287 ERROR [STDERR] at sun.rmi.server.UnicastServerRef.dispatch(Uni astServerRef.java:305) 13:59:45,303 ERROR [STDERR] at sun.rmi.transport.Transport$1.run(Transport. ava:159) 13:59:45,303 ERROR [STDERR] at java.security.AccessController.doPrivileged( ative Method) 13:59:45,303 ERROR [STDERR] at sun.rmi.transport.Transport.serviceCall(Tran port.java:155) 13:59:45,303 ERROR [STDERR] at sun.rmi.transport.tcp.TCPTransport.handleMes ages(TCPTransport.java:535) 13:59:45,303 ERROR [STDERR] at sun.rmi.transport.tcp.TCPTransport$Connectio Handler.run0(TCPTransport.java:790) 13:59:45,303 ERROR [STDERR] at sun.rmi.transport.tcp.TCPTransport$Connectio Handler.run(TCPTransport.java:649) 13:59:45,303 ERROR [STDERR] at java.util.concurrent.ThreadPoolExecutor$Work r.runTask(ThreadPoolExecutor.java:886) 13:59:45,303 ERROR [STDERR] at java.util.concurrent.ThreadPoolExecutor$Work r.run(ThreadPoolExecutor.java:908) 13:59:45,303 ERROR [STDERR] at java.lang.Thread.run(Thread.java:619) 13:59:45,303 ERROR [STDERR] at sun.rmi.transport.StreamRemoteCall.exception eceivedFromServer(StreamRemoteCall.java:255) 13:59:45,319 ERROR [STDERR] at sun.rmi.transport.StreamRemoteCall.executeCa l(StreamRemoteCall.java:233) 13:59:45,319 ERROR [STDERR] at sun.rmi.server.UnicastRef.invoke(UnicastRef. ava:142) 13:59:45,319 ERROR [STDERR] at org.jnp.server.NamingServer_Stub.lookup(Unkn wn Source) 13:59:45,319 ERROR [STDERR] at org.jnp.interfaces.NamingContext.lookup(Nami gContext.java:726) 13:59:45,319 ERROR [STDERR] at org.jnp.interfaces.NamingContext.lookup(Nami gContext.java:686) 13:59:45,319 ERROR [STDERR] at javax.naming.InitialContext.lookup(InitialCo text.java:392) 13:59:45,319 ERROR [STDERR] at org.jboss.soa.esb.samples.quickstart.hellowo ld.SessionFactorySingleton.init(SessionFactorySingleton.java:80) 13:59:45,319 ERROR [STDERR] at org.jboss.soa.esb.samples.quickstart.hellowo ld.SessionFactorySingleton.getInstance(SessionFactorySingleton.java:57) 13:59:45,319 ERROR [STDERR] at org.jboss.soa.esb.samples.quickstart.hellowo ld.action.PersistClassInfoAction.displayMessage(PersistClassInfoAction.java:34) 13:59:45,334 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke0 Native Method) 13:59:45,334 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke( ativeMethodAccessorImpl.java:39) 13:59:45,334 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.inv ke(DelegatingMethodAccessorImpl.java:25) 13:59:45,334 ERROR [STDERR] at java.lang.reflect.Method.invoke(Method.java: 97) 13:59:45,334 ERROR [STDERR] at org.jboss.soa.esb.listeners.message.ActionPr cessorMethodInfo.processMethods(ActionProcessorMethodInfo.java:102) 13:59:45,334 ERROR [STDERR] at org.jboss.soa.esb.listeners.message.Overridd nActionLifecycleProcessor.process(OverriddenActionLifecycleProcessor.java:74) 13:59:45,334 ERROR [STDERR] at org.jboss.soa.esb.listeners.message.ActionPr cessingPipeline.processPipeline(ActionProcessingPipeline.java:634) 13:59:45,334 ERROR [STDERR] at org.jboss.soa.esb.listeners.message.ActionPr cessingPipeline.processPipeline(ActionProcessingPipeline.java:586) 13:59:45,334 ERROR [STDERR] at org.jboss.soa.esb.listeners.message.ActionPr cessingPipeline.process(ActionProcessingPipeline.java:420) 13:59:45,350 ERROR [STDERR] at org.jboss.soa.esb.listeners.message.MessageA areListener$TransactionalRunner.run(MessageAwareListener.java:545) 13:59:45,350 ERROR [STDERR] at java.util.concurrent.ThreadPoolExecutor$Work r.runTask(ThreadPoolExecutor.java:886) 13:59:45,350 ERROR [STDERR] at java.util.concurrent.ThreadPoolExecutor$Work r.run(ThreadPoolExecutor.java:908) 13:59:45,350 ERROR [STDERR] at java.lang.Thread.run(Thread.java:619) 13:59:45,350 ERROR [SessionFactorySingleton] Could not find SessionFactory in J DI - Interceptors will not work! 13:59:45,350 INFO [Configuration] configuring from resource: hibernate.cfg.xml 13:59:45,350 INFO [Configuration] Configuration resource: hibernate.cfg.xml 13:59:45,491 INFO [Configuration] Reading mappings from resource : org/jboss/s a/esb/samples/quickstart/hibernateaction/esb-mappings.hbm.xml 13:59:45,819 INFO [HbmBinder] Mapping class: org.jboss.soa.esb.samples.quickst rt.hibernateaction.Order -> orders 13:59:45,850 INFO [Configuration] Configured SessionFactory: null 13:59:46,178 INFO [DriverManagerConnectionProvider] Using Hibernate built-in c nnection pool (not for production use!) 13:59:46,178 INFO [DriverManagerConnectionProvider] Hibernate connection pool ize: 10 13:59:46,194 INFO [DriverManagerConnectionProvider] autocommit mode: false 13:59:46,194 INFO [DriverManagerConnectionProvider] using driver: com.mysql.jd c.Driver at URL: jdbc:mysql://localhost:3306/db 13:59:46,194 INFO [DriverManagerConnectionProvider] connection properties: {us r=jbossesb, password=**} 13:59:49,413 INFO [SettingsFactory] RDBMS: MySQL, version: 5.0.67-community-nt 13:59:49,413 INFO [SettingsFactory] JDBC driver: MySQL-AB JDBC Driver, version mysql-connector-java-5.1.9 ( Revision: ${svn.Revision} ) 13:59:49,538 INFO [Dialect] Using dialect: org.hibernate.dialect.MySQLDialect 13:59:49,553 INFO [TransactionFactoryFactory] Using default transaction strate y (direct JDBC transactions) 13:59:49,631 INFO [TransactionManagerLookupFactory] No TransactionManagerLooku configured (in JTA environment, use of read-write or transactional second-leve cache is not recommended) 13:59:49,631 INFO [SettingsFactory] Automatic flush during beforeCompletion(): disabled 13:59:49,631 INFO [SettingsFactory] Automatic session close at end of transact on: disabled 13:59:49,631 INFO [SettingsFactory] JDBC batch size: 15 13:59:49,631 INFO [SettingsFactory] JDBC batch updates for versioned data: dis bled 13:59:49,631 INFO [SettingsFactory] Scrollable result sets: enabled 13:59:49,631 INFO [SettingsFactory] JDBC3 getGeneratedKeys(): enabled 13:59:49,647 INFO [SettingsFactory] Connection release mode: auto 13:59:49,647 INFO [SettingsFactory] Maximum outer join fetch depth: 2 13:59:49,647 INFO [SettingsFactory] Default batch fetch size: 1 13:59:49,647 INFO [SettingsFactory] Generate SQL with comments: disabled 13:59:49,647 INFO [SettingsFactory] Order SQL updates by primary key: disabled 13:59:49,647 INFO [SettingsFactory] Order SQL inserts for batching: disabled 13:59:49,647 INFO [SettingsFactory] Query translator: org.hibernate.hql.ast.AS QueryTranslatorFactory 13:59:49,663 INFO [ASTQueryTranslatorFactory] Using ASTQueryTranslatorFactory 13:59:49,678 INFO [SettingsFactory] Query language substitutions: {} 13:59:49,678 INFO [SettingsFactory] JPA-QL strict compliance: disabled 13:59:49,678 INFO [SettingsFactory] Second-level cache: enabled 13:59:49,678 INFO [SettingsFactory] Query cache: disabled 13:59:49,678 INFO [SettingsFactory] Cache region factory : org.hibernate.cache impl.NoCachingRegionFactory 13:59:49,725 INFO [SettingsFactory] Optimize cache for minimal puts: disabled 13:59:49,725 INFO [SettingsFactory] Structured second-level cache entries: dis bled 13:59:49,725 INFO [SettingsFactory] Echoing all SQL to stdout 13:59:49,725 INFO [SettingsFactory] Statistics: disabled 13:59:49,725 INFO [SettingsFactory] Deleted entity synthetic identifier rollba k: disabled 13:59:49,741 INFO [SettingsFactory] Default entity-mode: pojo 13:59:49,741 INFO [SettingsFactory] Named query checking : enabled 13:59:49,788 INFO [SessionFactoryImpl] building session factory 13:59:50,006 INFO [SessionFactoryObjectFactory] Factory name: SessionFactory 13:59:50,006 INFO [NamingHelper] JNDI InitialContext properties:{} 13:59:50,022 INFO [SessionFactoryObjectFactory] Bound factory to JNDI name: Se sionFactory 13:59:50,038 WARN [SessionFactoryObjectFactory] InitialContext did not impleme t EventContext 13:59:50,256 INFO [SchemaUpdate] Running hbm2ddl schema update 13:59:50,256 INFO [SchemaUpdate] fetching database metadata 13:59:50,256 INFO [SchemaUpdate] updating schema 13:59:50,553 INFO [TableMetadata] table found: db.orders 13:59:50,553 INFO [TableMetadata] columns: [product, unique_id, price, quantit ] 13:59:50,553 INFO [TableMetadata] foreign keys: [] 13:59:50,553 INFO [TableMetadata] indexes: [primary] 13:59:50,569 INFO [SchemaUpdate] schema update complete 13:59:51,225 ERROR [STDERR] org.hibernate.MappingException: Unknown entity: org jboss.soa.esb.samples.quickstart.helloworld.pojo.ClassInfo at org.hibernate.impl.SessionFactoryImpl.getEntityPersister(SessionFact ryImpl.java:580) at org.hibernate.impl.SessionImpl.getEntityPersister(SessionImpl.java:1 65) at org.hibernate.event.def.AbstractSaveEventListener.saveWithGeneratedI (AbstractSaveEventListener.java:121) at org.hibernate.event.def.DefaultSaveOrUpdateEventListener.saveWithGen ratedOrRequestedId(DefaultSaveOrUpdateEventListener.java:210) at org.hibernate.event.def.DefaultSaveEventListener.saveWithGeneratedOr equestedId(DefaultSaveEventListener.java:56) at org.hibernate.event.def.DefaultSaveOrUpdateEventListener.entityIsTra sient(DefaultSaveOrUpdateEventListener.java:195) at org.hibernate.event.def.DefaultSaveEventListener.performSaveOrUpdate DefaultSaveEventListener.java:50) at org.hibernate.event.def.DefaultSaveOrUpdateEventListener.onSaveOrUpd te(DefaultSaveOrUpdateEventListener.java:93) at org.hibernate.impl.SessionImpl.fireSave(SessionImpl.java:562) at org.hibernate.impl.SessionImpl.save(SessionImpl.java:550) at org.hibernate.impl.SessionImpl.save(SessionImpl.java:546) at org.jboss.soa.esb.samples.quickstart.helloworld.action.PersistClassI foAction.displayMessage(PersistClassInfoAction.java:37) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcce sorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.jboss.soa.esb.listeners.message.ActionProcessorMethodInfo.proces Methods(ActionProcessorMethodInfo.java:102) at org.jboss.soa.esb.listeners.message.OverriddenActionLifecycleProcess r.process(OverriddenActionLifecycleProcessor.java:74) at org.jboss.soa.esb.listeners.message.ActionProcessingPipeline.process ipeline(ActionProcessingPipeline.java:634) at org.jboss.soa.esb.listeners.message.ActionProcessingPipeline.process ipeline(ActionProcessingPipeline.java:586) at org.jboss.soa.esb.listeners.message.ActionProcessingPipeline.process ActionProcessingPipeline.java:420) at org.jboss.soa.esb.listeners.message.MessageAwareListener$Transaction lRunner.run(MessageAwareListener.java:545) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExe utor.java:886) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecuto .java:908) at java.lang.Thread.run(Thread.java:619) 13:59:51,272 INFO [STDOUT] &&&&&&&&&&&&&&&&&&&&&&&&ANIMESH&&&&&&&&&&&&&&&&&&&& &&&****