[Persistence, JBoss/CMP, Hibernate, Database] - Re: QuerySyntaxException Class is not mapped JBOSS 4.2.2GA E
by July Pyrra
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
17 years, 11 months
[JNDI/Naming/Network] - Java API
by bedehaan
I am getting the following error when while using Eclipse/JBoss. Can anyone help in pointing me to a solution? Help is greatly appreciated.
log4j:WARN The log4j system is not properly configured!
log4j:WARN All ERROR messages will be sent to the system console until proper configuration has been detected.
com.filenet.api.exception.EngineRuntimeException: API_UNEXPECTED_JNDI_ERROR: An unexpected error occured accessing JNDI.
at com.filenet.apiimpl.util.SessionLocator.locateEJBByPath(SessionLocator.java:789)
at com.filenet.apiimpl.util.SessionLocator.findEJBSessionByPath(SessionLocator.java:724)
at com.filenet.apiimpl.util.SessionLocator.createNewSession(SessionLocator.java:510)
at com.filenet.apiimpl.util.SessionLocator.getSession(SessionLocator.java:133)
at com.filenet.apiimpl.core.IndependentObjectImpl.getObject(IndependentObjectImpl.java:153)
at com.filenet.apiimpl.core.IndependentObjectImpl.refresh(IndependentObjectImpl.java:161)
at com.filenet.api.core.Factory$Domain.fetchInstance(Factory.java:2724)
at com.ibm.filenet.edu.CEConnectionEDU.getDomainEDU(CEConnectionEDU.java:29)
at com.ibm.filenet.edu.CEConnectionEDU.main(CEConnectionEDU.java:69)
Caused by: javax.naming.CommunicationException: Could not obtain connection to any of these urls: iiop://host:12345 and discovery failed with error: javax.naming.CommunicationException: Receive timed out [Root exception is java.net.SocketTimeoutException: Receive timed out] [Root exception is javax.naming.CommunicationException: Failed to connect to server iiop:1099 [Root exception is javax.naming.ServiceUnavailableException: Failed to connect to server iiop:1099 [Root exception is java.net.UnknownHostException: iiop: iiop]]]
at org.jnp.interfaces.NamingContext.checkRef(NamingContext.java:1414)
at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:594)
at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:587)
at javax.naming.InitialContext.lookup(Unknown Source)
at com.filenet.apiimpl.util.SessionLocator.locateEJBByPath(SessionLocator.java:778)
... 8 more
Caused by: javax.naming.CommunicationException: Failed to connect to server iiop:1099 [Root exception is javax.naming.ServiceUnavailableException: Failed to connect to server iiop:1099 [Root exception is java.net.UnknownHostException: iiop: iiop]]
at org.jnp.interfaces.NamingContext.getServer(NamingContext.java:269)
at org.jnp.interfaces.NamingContext.checkRef(NamingContext.java:1385)
... 12 more
Caused by: javax.naming.ServiceUnavailableException: Failed to connect to server iiop:1099 [Root exception is java.net.UnknownHostException: iiop: iiop]
at org.jnp.interfaces.NamingContext.getServer(NamingContext.java:243)
... 13 more
Caused by: java.net.UnknownHostException: iiop: iiop
at java.net.InetAddress.getAllByName0(Unknown Source)
at java.net.InetAddress.getAllByName0(Unknown Source)
at java.net.InetAddress.getAllByName(Unknown Source)
at java.net.InetAddress.getByName(Unknown Source)
at org.jnp.interfaces.TimedSocketFactory.createSocket(TimedSocketFactory.java:76)
at org.jnp.interfaces.NamingContext.getServer(NamingContext.java:239)
... 13 more
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4153677#4153677
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4153677
17 years, 11 months
[Installation, Configuration & DEPLOYMENT] - JBoss/Java API
by bedehaan
I am getting the following error when while using Eclipse/JBoss. Can anyone help in pointing me to a solution? Help is greatly appreciated.
log4j:WARN The log4j system is not properly configured!
log4j:WARN All ERROR messages will be sent to the system console until proper configuration has been detected.
com.filenet.api.exception.EngineRuntimeException: API_UNEXPECTED_JNDI_ERROR: An unexpected error occured accessing JNDI.
at com.filenet.apiimpl.util.SessionLocator.locateEJBByPath(SessionLocator.java:789)
at com.filenet.apiimpl.util.SessionLocator.findEJBSessionByPath(SessionLocator.java:724)
at com.filenet.apiimpl.util.SessionLocator.createNewSession(SessionLocator.java:510)
at com.filenet.apiimpl.util.SessionLocator.getSession(SessionLocator.java:133)
at com.filenet.apiimpl.core.IndependentObjectImpl.getObject(IndependentObjectImpl.java:153)
at com.filenet.apiimpl.core.IndependentObjectImpl.refresh(IndependentObjectImpl.java:161)
at com.filenet.api.core.Factory$Domain.fetchInstance(Factory.java:2724)
at com.ibm.filenet.edu.CEConnectionEDU.getDomainEDU(CEConnectionEDU.java:29)
at com.ibm.filenet.edu.CEConnectionEDU.main(CEConnectionEDU.java:69)
Caused by: javax.naming.CommunicationException: Could not obtain connection to any of these urls: iiop://host:12345 and discovery failed with error: javax.naming.CommunicationException: Receive timed out [Root exception is java.net.SocketTimeoutException: Receive timed out] [Root exception is javax.naming.CommunicationException: Failed to connect to server iiop:1099 [Root exception is javax.naming.ServiceUnavailableException: Failed to connect to server iiop:1099 [Root exception is java.net.UnknownHostException: iiop: iiop]]]
at org.jnp.interfaces.NamingContext.checkRef(NamingContext.java:1414)
at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:594)
at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:587)
at javax.naming.InitialContext.lookup(Unknown Source)
at com.filenet.apiimpl.util.SessionLocator.locateEJBByPath(SessionLocator.java:778)
... 8 more
Caused by: javax.naming.CommunicationException: Failed to connect to server iiop:1099 [Root exception is javax.naming.ServiceUnavailableException: Failed to connect to server iiop:1099 [Root exception is java.net.UnknownHostException: iiop: iiop]]
at org.jnp.interfaces.NamingContext.getServer(NamingContext.java:269)
at org.jnp.interfaces.NamingContext.checkRef(NamingContext.java:1385)
... 12 more
Caused by: javax.naming.ServiceUnavailableException: Failed to connect to server iiop:1099 [Root exception is java.net.UnknownHostException: iiop: iiop]
at org.jnp.interfaces.NamingContext.getServer(NamingContext.java:243)
... 13 more
Caused by: java.net.UnknownHostException: iiop: iiop
at java.net.InetAddress.getAllByName0(Unknown Source)
at java.net.InetAddress.getAllByName0(Unknown Source)
at java.net.InetAddress.getAllByName(Unknown Source)
at java.net.InetAddress.getByName(Unknown Source)
at org.jnp.interfaces.TimedSocketFactory.createSocket(TimedSocketFactory.java:76)
at org.jnp.interfaces.NamingContext.getServer(NamingContext.java:239)
... 13 more
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4153676#4153676
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4153676
17 years, 11 months