[jboss-user] [Persistence, JBoss/CMP, Hibernate, Database] - Re: QuerySyntaxException Class is not mapped JBOSS 4.2.2GA E

July Pyrra do-not-reply at jboss.com
Tue May 27 11:37:35 EDT 2008


The Account.class is part of the DAO and is in datamodel.jar while the other classes are in another services.jar file. I have packaged the persistence.xml in the META-INF of both jar.


  | 17:35:11,697 INFO  [EJB3Deployer] Deployed: file:/D:/jboss-4.2.2.GA/server/appli/deploy/_julie/Datamodel.jar
  | 17:35:11,728 INFO  [JmxKernelAbstraction] creating wrapper delegate for: org.jboss.ejb3.entity.PersistenceUnitDeployment
  | 17:35:11,728 INFO  [JmxKernelAbstraction] installing MBean: persistence.units:jar=app.jar,unitName=app with dependencies:
  | 17:35:11,728 INFO  [JmxKernelAbstraction]       jboss.jca:name=applids,service=DataSourceBinding
  | 17:35:11,728 INFO  [PersistenceUnitDeployment] Starting persistence unit persistence.units:jar=app.jar,unitName=app
  | 17:35:11,744 INFO  [Configuration] Reading mappings from resource : META-INF/orm.xml
  | 17:35:11,744 INFO  [Ejb3Configuration] [PersistenceUnit: app] no META-INF/orm.xml found
  | 17:35:11,759 INFO  [ConnectionProviderFactory] Initializing connection provider: org.hibernate.ejb.connection.InjectedDataSourceConnectionProvider
  | 17:35:11,759 INFO  [InjectedDataSourceConnectionProvider] Using provided datasource
  | 17:35:11,759 INFO  [SettingsFactory] RDBMS: MySQL, version: 5.0.45-community-nt
  | 17:35:11,759 INFO  [SettingsFactory] JDBC driver: MySQL-AB JDBC Driver, version: mysql-connector-java-5.0.3 ( $Date: 2006-07-26 17:26:47 +0200 (Wed, 26 Jul 2006) $, $Revision: 5553
  |  $ )
  | 17:35:11,759 INFO  [Dialect] Using dialect: org.hibernate.dialect.MySQLDialect
  | 17:35:11,759 INFO  [TransactionFactoryFactory] Transaction strategy: org.hibernate.ejb.transaction.JoinableCMTTransactionFactory
  | 17:35:11,759 INFO  [TransactionManagerLookupFactory] instantiating TransactionManagerLookup: org.hibernate.transaction.JBossTransactionManagerLookup
  | 17:35:11,775 INFO  [TransactionManagerLookupFactory] instantiated TransactionManagerLookup
  | 17:35:11,775 INFO  [SettingsFactory] Automatic flush during beforeCompletion(): disabled
  | 17:35:11,775 INFO  [SettingsFactory] Automatic session close at end of transaction: disabled
  | 17:35:11,775 INFO  [SettingsFactory] JDBC batch size: 15
  | 17:35:11,790 INFO  [SettingsFactory] JDBC batch updates for versioned data: disabled
  | 17:35:11,790 INFO  [SettingsFactory] Scrollable result sets: enabled
  | 17:35:11,790 INFO  [SettingsFactory] JDBC3 getGeneratedKeys(): enabled
  | 17:35:11,806 INFO  [SettingsFactory] Connection release mode: auto
  | 17:35:11,806 INFO  [SettingsFactory] Maximum outer join fetch depth: 2
  | 17:35:11,806 INFO  [SettingsFactory] Default batch fetch size: 1
  | 17:35:11,806 INFO  [SettingsFactory] Generate SQL with comments: disabled
  | 17:35:11,822 INFO  [SettingsFactory] Order SQL updates by primary key: disabled
  | 17:35:11,822 INFO  [SettingsFactory] Order SQL inserts for batching: disabled
  | 17:35:11,822 INFO  [SettingsFactory] Query translator: org.hibernate.hql.ast.ASTQueryTranslatorFactory
  | 17:35:11,822 INFO  [ASTQueryTranslatorFactory] Using ASTQueryTranslatorFactory
  | 17:35:11,822 INFO  [SettingsFactory] Query language substitutions: {}
  | 17:35:11,822 INFO  [SettingsFactory] JPA-QL strict compliance: enabled
  | 17:35:11,822 INFO  [SettingsFactory] Second-level cache: enabled
  | 17:35:11,837 INFO  [SettingsFactory] Query cache: disabled
  | 17:35:11,837 INFO  [SettingsFactory] Cache provider: org.hibernate.cache.HashtableCacheProvider
  | 17:35:11,837 INFO  [SettingsFactory] Optimize cache for minimal puts: disabled
  | 17:35:11,837 INFO  [SettingsFactory] Cache region prefix: app_jar,app
  | 17:35:11,853 INFO  [SettingsFactory] Structured second-level cache entries: disabled
  | 17:35:11,853 INFO  [SettingsFactory] Statistics: disabled
  | 17:35:11,853 INFO  [SettingsFactory] Deleted entity synthetic identifier rollback: disabled
  | 17:35:11,853 INFO  [SettingsFactory] Default entity-mode: pojo
  | 17:35:11,869 INFO  [SettingsFactory] Named query checking : enabled
  | 17:35:11,869 INFO  [SessionFactoryImpl] building session factory
  | 17:35:11,869 INFO  [SessionFactoryObjectFactory] Factory name: persistence.units:jar=app.jar,unitName=app
  | 17:35:11,884 INFO  [NamingHelper] JNDI InitialContext properties:{java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory, java.naming.factory.url.pkgs=org.jboss.naming
  | :org.jnp.interfaces}
  | 17:35:11,884 INFO  [SessionFactoryObjectFactory] Bound factory to JNDI name: persistence.units:jar=app.jar,unitName=app
  | 17:35:11,884 WARN  [SessionFactoryObjectFactory] InitialContext did not implement EventContext
  | 17:35:11,900 INFO  [NamingHelper] JNDI InitialContext properties:{java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory, java.naming.factory.url.pkgs=org.jboss.naming
  | :org.jnp.interfaces}
  | 17:35:11,900 INFO  [JmxKernelAbstraction] creating wrapper delegate for: org.jboss.ejb3.stateless.StatelessContainer
  | 17:35:11,900 INFO  [JmxKernelAbstraction] installing MBean: jboss.j2ee:jar=app.jar,name=Update,service=EJB3 with dependencies:
  | 17:35:11,931 INFO  [EJBContainer] STARTED EJB: ws.services.Update ejbName: Update
  | 17:35:11,994 INFO  [JmxKernelAbstraction] creating wrapper delegate for: org.jboss.ejb3.stateful.StatefulContainer
  | 17:35:12,009 INFO  [JmxKernelAbstraction] installing MBean: jboss.j2ee:jar=app.jar,name=Query,service=EJB3 with dependencies:
  | 17:35:12,009 INFO  [JmxKernelAbstraction]       persistence.units:jar=app.jar,unitName=app
  | 17:35:12,040 INFO  [EJBContainer] STARTED EJB: bd.query.Query ejbName: Query
  | 17:35:12,087 INFO  [EJB3Deployer] Deployed: file:/D:/jboss-4.2.2.GA/server/appli/deploy/_julie/app.jar
  | 17:35:14,119 INFO  [WSDLFilePublisher] WSDL published to: file:/D:/jboss-4.2.2.GA/server/appli/data/wsdl/app.jar/UpdateService57618.wsdl
  | 17:35:14,806 INFO  [DefaultEndpointRegistry] register: jboss.ws:context=app,endpoint=Update
  | 17:35:14,837 INFO  [TomcatDeployer] deploy, ctxPath=/app, warUrl=.../tmp/deploy/app.jar57620.war/
  | 17:35:14,994 INFO  [TomcatDeployer] deploy, ctxPath=/jmx-console, warUrl=.../deploy/jmx-console.war/
  | 17:35:15,556 INFO  [Http11Protocol] DÚmarrage de Coyote HTTP/1.1 sur http-giggles.lst.tfo.upm.es%2F138.4.10.233-8080
  | 17:35:15,587 INFO  [AjpProtocol] Starting Coyote AJP/1.3 on ajp-giggles.lst.tfo.upm.es%2F138.4.10.233-8009
  | 17:35:15,603 INFO  [Server] JBoss (MX MicroKernel) [4.2.2.GA (build: SVNTag=JBoss_4_2_2_GA date=200710221139)] Started in 58s:48ms
  | 
  | 

There are 2000 lines displayed in the console since it's a big application and a lot of things are not useful, so this is the end of the console concerning the persistence... I hope it helps... sorry

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4153682#4153682

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4153682




More information about the jboss-user mailing list