ora7 [
https://community.jboss.org/people/ora7] created the discussion
"Re: persistence.xml does not deploy"
To view the discussion, visit:
https://community.jboss.org/message/739304#739304
--------------------------------------------------------------
I changed in the persistence.xml
<?
xml version=++"1.0"++ encoding=++"UTF-8"++?><
persistence xmlns=++"
http://java.sun.com/xml/ns/persistence
http://java.sun.com/xml/ns/persistence"+
+
xmlns:xsi=++"
http://www.w3.org/2001/XMLSchema-instance
http://www.w3.org/2001/XMLSchema-instance"+
+
xsi:schemaLocation=++"
http://java.sun.com/xml/ns/persistence
http://java.sun.com/xml/ns/persistence
http://java.sun.com/xml/ns/persistence/persistence_1_0.xsd
http://java.sun.com/xml/ns/persistence/persistence_1_0.xsd"+
+
version=++"1.0"++>
<persistence-unit name=++"physicsunit"++>
<jta-data-source>PhysicsDS</jta-data-source>
<properties>
<property name=++"hibernate.hbm2ddl.auto"++
value=++"create"++/>
<!-- EntityManager-Zugriff per JNDI aktivieren -->
<property name=++"jboss.entity.manager.jndi.name"++
value=++"physicsEntityManager"++/>
<property name=++"hibernate.dialect"++
value=++"org.hibernate.dialect.FirebirdDialect"++/>
<property name=++"hibernate.transaction.manager_lookup_class"++
value=++"org.hibernate.transaction.JBossTransactionManagerLookup"++/>
</properties>
</persistence-unit></
persistence>
I think the Firebird data acces does really not work. I must create the entity manager
manually. And I get a strange error message of Firebird:
Invalid clumplet buffer structure: buffer end before end of clumplet - clumplet too long,
error code: HY000
4:25:09,540 INFO [org.hibernate.impl.SessionFactoryImpl] building session factory
14:25:09,541 INFO [org.hibernate.type.BasicTypeRegistry] Type registration
[materialized_blob] overrides previous : org.hibernate.type.MaterializedBlobType@160e1337
14:25:09,541 INFO [org.hibernate.type.BasicTypeRegistry] Type registration [clob]
overrides previous : org.hibernate.type.ClobType@760f8b30
14:25:09,542 INFO [org.hibernate.type.BasicTypeRegistry] Type registration [java.sql.Clob]
overrides previous : org.hibernate.type.ClobType@760f8b30
14:25:09,542 INFO [org.hibernate.type.BasicTypeRegistry] Type registration
[wrapper_characters_clob] overrides previous :
org.hibernate.type.CharacterArrayClobType@767b38dd
14:25:09,542 INFO [org.hibernate.type.BasicTypeRegistry] Type registration
[materialized_clob] overrides previous : org.hibernate.type.MaterializedClobType@13d271f0
14:25:09,542 INFO [org.hibernate.type.BasicTypeRegistry] Type registration
[wrapper_materialized_blob] overrides previous :
org.hibernate.type.WrappedMaterializedBlobType@5d364dba
14:25:09,542 INFO [org.hibernate.type.BasicTypeRegistry] Type registration
[characters_clob] overrides previous :
org.hibernate.type.PrimitiveCharacterArrayClobType@18291e25
14:25:09,542 INFO [org.hibernate.type.BasicTypeRegistry] Type registration [blob]
overrides previous : org.hibernate.type.BlobType@337a1b87
14:25:09,542 INFO [org.hibernate.type.BasicTypeRegistry] Type registration [java.sql.Blob]
overrides previous : org.hibernate.type.BlobType@337a1b87
14:25:09,543 INFO [org.hibernate.impl.SessionFactoryObjectFactory] Not binding factory to
JNDI, no JNDI name configured
14:25:09,544 INFO [org.hibernate.validator.engine.resolver.DefaultTraversableResolver]
Instantiated an instance of
org.hibernate.validator.engine.resolver.JPATraversableResolver.
14:25:09,547 INFO [org.hibernate.validator.engine.resolver.DefaultTraversableResolver]
Instantiated an instance of
org.hibernate.validator.engine.resolver.JPATraversableResolver.
14:25:09,548 INFO [org.hibernate.tool.hbm2ddl.SchemaExport] Running hbm2ddl schema export
14:25:09,549 INFO [org.hibernate.tool.hbm2ddl.SchemaExport] exporting generated schema to
database
14:25:09,551 WARN [org.jboss.resource.connectionmanager.JBossManagedConnectionPool]
Throwable while attempting to get a new connection: null:
org.firebirdsql.jca.FBResourceException: Invalid clumplet buffer structure: buffer end
before end of clumplet - clumplet too long, error code: HY000
Reason: Invalid clumplet buffer structure: buffer end before end of clumplet - clumplet
too long
at org.firebirdsql.jca.FBManagedConnection.<init>(
FBManagedConnection.java:91) [:2.1.6JDK_1.6 (build: CVSTag=Jaybird_2_1_6
date=200807191859)]at
org.firebirdsql.jca.FBManagedConnectionFactory.createManagedConnection(
FBManagedConnectionFactory.java:477) [:2.1.6JDK_1.6 (build: CVSTag=Jaybird_2_1_6
date=200807191859)]at
org.jboss.resource.connectionmanager.InternalManagedConnectionPool.createConnectionEventListener(
InternalManagedConnectionPool.java:648) [:6.1.0.Final]at
org.jboss.resource.connectionmanager.InternalManagedConnectionPool.getConnection(
InternalManagedConnectionPool.java:272) [:6.1.0.Final]at
org.jboss.resource.connectionmanager.JBossManagedConnectionPool$BasePool.getConnection(
JBossManagedConnectionPool.java:747) [:6.1.0.Final]at
org.jboss.resource.connectionmanager.BaseConnectionManager2.getManagedConnection(
BaseConnectionManager2.java:403) [:6.1.0.Final]at
org.jboss.resource.connectionmanager.TxConnectionManager.getManagedConnection(
TxConnectionManager.java:414) [:6.1.0.Final]at
org.jboss.resource.connectionmanager.BaseConnectionManager2.allocateConnection(
BaseConnectionManager2.java:496) [:6.1.0.Final]at
org.jboss.resource.connectionmanager.BaseConnectionManager2$ConnectionManagerProxy.allocateConnection(
BaseConnectionManager2.java:941) [:6.1.0.Final]at
org.firebirdsql.jdbc.FBDataSource.getConnection(
FBDataSource.java:95) [:2.1.6JDK_1.6 (build: CVSTag=Jaybird_2_1_6 date=200807191859)]at
org.hibernate.connection.DatasourceConnectionProvider.getConnection(
DatasourceConnectionProvider.java:92) [:3.6.6.Final]at
org.hibernate.tool.hbm2ddl.SuppliedConnectionProviderConnectionHelper.prepare(
SuppliedConnectionProviderConnectionHelper.java:51) [:3.6.6.Final]at
org.hibernate.tool.hbm2ddl.SchemaExport.execute(
SchemaExport.java:263) [:3.6.6.Final]at org.hibernate.tool.hbm2ddl.SchemaExport.create(
SchemaExport.java:219) [:3.6.6.Final]at
org.hibernate.impl.SessionFactoryImpl.<init>(
SessionFactoryImpl.java:372) [:3.6.6.Final]at
org.hibernate.cfg.Configuration.buildSessionFactory(
Configuration.java:1872) [:3.6.6.Final]at
org.hibernate.ejb.Ejb3Configuration.buildEntityManagerFactory(
Ejb3Configuration.java:906) [:3.6.6.Final]at
org.hibernate.ejb.HibernatePersistence.createEntityManagerFactory(
HibernatePersistence.java:57) [:3.6.6.Final]at
javax.persistence.Persistence.createEntityManagerFactory(
Persistence.java:48) [:1.0.0.Final]at
javax.persistence.Persistence.createEntityManagerFactory(
Persistence.java:32) [:1.0.0.Final]at org.physics.PhysicistManagerRemote.<init>(
PhysicistManagerRemote.java:29) [:]at
sun.reflect.NativeConstructorAccessorImpl.newInstance0(
Native Method) [:1.7.0_04]at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown
Source) [:1.7.0_04]
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source) [:1.7.0_04]
at java.lang.reflect.Constructor.newInstance(Unknown Source) [:1.7.0_04]
at java.lang.Class.newInstance0(Unknown Source) [:1.7.0_04]
at java.lang.Class.newInstance(Unknown Source) [:1.7.0_04]
at org.jboss.ejb3.instantiator.impl.Ejb31SpecBeanInstantiator.create(
Ejb31SpecBeanInstantiator.java:80) [:1.0.0-alpha-5]at
org.jboss.ejb3.EJBContainer.construct(
EJBContainer.java:1048) [:1.7.21]at
org.jboss.ejb3.stateless.StatelessContainer.createBeanContext(
StatelessContainer.java:123) [:1.7.21]at
org.jboss.ejb3.pool.AbstractPool.createBeanContext(
AbstractPool.java:94) [:1.7.21]at org.jboss.ejb3.pool.AbstractPool.create(
AbstractPool.java:81) [:1.7.21]at org.jboss.ejb3.InfinitePool.get(
InfinitePool.java:62) [:1.7.21]at org.jboss.ejb3.InfinitePool.get(
InfinitePool.java:57) [:1.7.21]at org.jboss.ejb3.pool.ThreadlocalPool.create(
ThreadlocalPool.java:54) [:1.7.21]at org.jboss.ejb3.pool.ThreadlocalPool.get(
ThreadlocalPool.java:86) [:1.7.21]at
org.jboss.ejb3.stateless.StatelessInstanceInterceptor.invoke(
StatelessInstanceInterceptor.java:58) [:1.7.21]at
org.jboss.aop.joinpoint.MethodInvocation.invokeNext(
MethodInvocation.java:102) [jboss-aop.jar:2.2.2.GA]at
org.jboss.ejb3.core.context.SessionInvocationContextAdapter.proceed(
SessionInvocationContextAdapter.java:95) [:1.7.21]at
org.jboss.ejb3.tx2.impl.CMTTxInterceptor.invokeInOurTx(
CMTTxInterceptor.java:247) [:0.0.2]at org.jboss.ejb3.tx2.impl.CMTTxInterceptor.required(
CMTTxInterceptor.java:349) [:0.0.2]at org.jboss.ejb3.tx2.impl.CMTTxInterceptor.invoke(
CMTTxInterceptor.java:209) [:0.0.2]at
org.jboss.ejb3.tx2.aop.CMTTxInterceptorWrapper.invoke(
CMTTxInterceptorWrapper.java:52) [:0.0.2]at
org.jboss.aop.joinpoint.MethodInvocation.invokeNext(
MethodInvocation.java:102) [jboss-aop.jar:2.2.2.GA]at
org.jboss.aspects.tx.TxPropagationInterceptor.invoke(
TxPropagationInterceptor.java:76) [:1.0.0.GA]at
org.jboss.aop.joinpoint.MethodInvocation.invokeNext(
MethodInvocation.java:102) [jboss-aop.jar:2.2.2.GA]at
org.jboss.ejb3.tx.NullInterceptor.invoke(
NullInterceptor.java:42) [:1.0.4]at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(
MethodInvocation.java:102) [jboss-aop.jar:2.2.2.GA]at
org.jboss.ejb3.security.Ejb3AuthenticationInterceptorv2.invoke(
Ejb3AuthenticationInterceptorv2.java:182) [:1.7.21]at
org.jboss.aop.joinpoint.MethodInvocation.invokeNext(
MethodInvocation.java:102) [jboss-aop.jar:2.2.2.GA]at
org.jboss.ejb3.ENCPropagationInterceptor.invoke(
ENCPropagationInterceptor.java:41) [:1.7.21]at
org.jboss.aop.joinpoint.MethodInvocation.invokeNext(
MethodInvocation.java:102) [jboss-aop.jar:2.2.2.GA]at
org.jboss.ejb3.BlockContainerShutdownInterceptor.invoke(
BlockContainerShutdownInterceptor.java:67) [:1.7.21]at
org.jboss.aop.joinpoint.MethodInvocation.invokeNext(
MethodInvocation.java:102) [jboss-aop.jar:2.2.2.GA]at
org.jboss.ejb3.core.context.CurrentInvocationContextInterceptor.invoke(
CurrentInvocationContextInterceptor.java:47) [:1.7.21]at
org.jboss.aop.joinpoint.MethodInvocation.invokeNext(
MethodInvocation.java:102) [jboss-aop.jar:2.2.2.GA]at
org.jboss.aspects.currentinvocation.CurrentInvocationInterceptor.invoke(
CurrentInvocationInterceptor.java:67) [:1.0.1]at
org.jboss.aop.joinpoint.MethodInvocation.invokeNext(
MethodInvocation.java:102) [jboss-aop.jar:2.2.2.GA]at
org.jboss.ejb3.interceptor.EJB3TCCLInterceptor.invoke(
EJB3TCCLInterceptor.java:86) [:1.7.21]at
org.jboss.aop.joinpoint.MethodInvocation.invokeNext(
MethodInvocation.java:102) [jboss-aop.jar:2.2.2.GA]at
org.jboss.ejb3.stateless.StatelessContainer.dynamicInvoke(
StatelessContainer.java:392) [:1.7.21]at
org.jboss.ejb3.remoting.IsLocalInterceptor.invokeLocal(
IsLocalInterceptor.java:88) [:1.7.21]at
org.jboss.ejb3.remoting.IsLocalInterceptor.invoke(
IsLocalInterceptor.java:75) [:1.7.21]at
org.jboss.aop.joinpoint.MethodInvocation.invokeNext(
MethodInvocation.java:102) [jboss-aop.jar:2.2.2.GA]at
org.jboss.ejb3.async.impl.interceptor.AsynchronousClientInterceptor.invoke(
AsynchronousClientInterceptor.java:143) [:1.7.21]at
org.jboss.aop.joinpoint.MethodInvocation.invokeNext(
MethodInvocation.java:102) [jboss-aop.jar:2.2.2.GA]at
org.jboss.aspects.remoting.PojiProxy.invoke(
PojiProxy.java:62) [:1.0.1.GA]at $Proxy267.invoke(Unknown Source) at
org.jboss.ejb3.proxy.impl.handler.session.SessionProxyInvocationHandlerBase.invoke(
SessionProxyInvocationHandlerBase.java:185) [:1.0.11]at $Proxy266.getPhysicists(Unknown
Source) at org.physics.PhysicistManagerBean.search(
PhysicistManagerBean.java:59)at sun.reflect.NativeMethodAccessorImpl.invoke0(
Native Method) [:1.7.0_04]at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
[:1.7.0_04]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) [:1.7.0_04]
at java.lang.reflect.Method.invoke(Unknown Source) [:1.7.0_04]
at org.apache.el.parser.AstValue.invoke(
AstValue.java:196) [:6.1.0.Final]at org.apache.el.MethodExpressionImpl.invoke(
MethodExpressionImpl.java:276) [:6.1.0.Final]at
com.sun.faces.facelets.el.TagMethodExpression.invoke(
TagMethodExpression.java:102) [:2.0.3-]at
javax.faces.component.MethodBindingMethodExpressionAdapter.invoke(
MethodBindingMethodExpressionAdapter.java:84) [:2.0.3-]at
com.sun.faces.application.ActionListenerImpl.processAction(
ActionListenerImpl.java:98) [:2.0.3-]at javax.faces.component.UICommand.broadcast(
UICommand.java:311) [:2.0.3-]at javax.faces.component.UIViewRoot.broadcastEvents(
UIViewRoot.java:781) [:2.0.3-]at javax.faces.component.UIViewRoot.processApplication(
UIViewRoot.java:1246) [:2.0.3-]at com.sun.faces.lifecycle.InvokeApplicationPhase.execute(
InvokeApplicationPhase.java:77) [:2.0.3-]at com.sun.faces.lifecycle.Phase.doPhase(
Phase.java:97) [:2.0.3-]at com.sun.faces.lifecycle.LifecycleImpl.execute(
LifecycleImpl.java:114) [:2.0.3-]at javax.faces.webapp.FacesServlet.service(
FacesServlet.java:308) [:2.0.3-]
Is there anyone who can give me a working firebird-ds.xml? Thanks, I think I have to
give
my plan using JBoss with Firebird.
--------------------------------------------------------------
Reply to this message by going to Community
[
https://community.jboss.org/message/739304#739304]
Start a new discussion in Datasource Configuration at Community
[
https://community.jboss.org/choose-container!input.jspa?contentType=1&...]