[jboss-user] [Datasource Configuration] - Re: persistence.xml does not deploy

ora7 do-not-reply at jboss.com
Tue May 29 14:32:37 EDT 2012


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/738568#738568

--------------------------------------------------------------
It is only a warnig. I have removed the java prefix. The warning comes again.



















20:24:19,847 WARN [org.jboss.profileservice.deployment.hotdeploy.HDScanner] Scan failed: 
org.jboss.deployers.client.spi.IncompleteDeploymentException: Summary of incomplete deployments (SEE PREVIOUS ERRORS FOR DETAILS):
DEPLOYMENTS MISSING DEPENDENCIES:
Deployment "persistence.unit:unitName=physics.ear/physics-ejb.jar#physicsdb" is missing the following dependencies:
Dependency "jboss.jca:name=PhysicsDS,service=DataSourceBinding" (should be in state "Create", but is actually in state "** NOT FOUND Depends on 'jboss.jca:name=PhysicsDS,service=DataSourceBinding' **")

DEPLOYMENTS IN ERROR:
Deployment "jboss.jca:name=PhysicsDS,service=DataSourceBinding" is in error due to the following reason(s): ** NOT FOUND Depends on 'jboss.jca:name=PhysicsDS,service=DataSourceBinding' **

at org.jboss.deployers.plugins.deployers.DeployersImpl.checkComplete(

DeployersImpl.java:1370) [:2.2.2.GA]at org.jboss.deployers.plugins.deployers.DeployersImpl.checkComplete(

DeployersImpl.java:1316) [:2.2.2.GA]at org.jboss.deployers.plugins.main.MainDeployerImpl.checkComplete(

MainDeployerImpl.java:968) [:2.2.2.GA]at org.jboss.system.server.profileservice.deployers.MainDeployerPlugin.checkComplete(

MainDeployerPlugin.java:82) [:6.1.0.Final]at org.jboss.profileservice.dependency.ProfileControllerContext$DelegateDeployer.checkComplete(

ProfileControllerContext.java:138) [:0.2.2]at org.jboss.profileservice.deployment.hotdeploy.HDScanner$HDScanAction.deploy(

HDScanner.java:246) [:0.2.2]at org.jboss.profileservice.deployment.hotdeploy.HDScanner$HDScanAction.complete(

HDScanner.java:192) [:0.2.2]at org.jboss.profileservice.management.TwoPCActionWrapper.doComplete(

TwoPCActionWrapper.java:57) [:0.2.2]at org.jboss.profileservice.management.actions.AbstractTwoPhaseModificationAction.complete(

AbstractTwoPhaseModificationAction.java:74) [:0.2.2]at org.jboss.profileservice.management.actions.AbstractTwoPhaseModificationAction.prepare(

AbstractTwoPhaseModificationAction.java:95) [:0.2.2]at org.jboss.profileservice.management.ModificationSession.prepare(

ModificationSession.java:87) [:0.2.2]at org.jboss.profileservice.management.AbstractActionController.internalPerfom(

AbstractActionController.java:234) [:0.2.2]at org.jboss.profileservice.management.AbstractActionController.performWrite(

AbstractActionController.java:213) [:0.2.2]at org.jboss.profileservice.management.AbstractActionController.perform(

AbstractActionController.java:150
) [:0.2.2]at org.jboss.profileservice.management.AbstractActionController.perform(
AbstractActionController.java:135) [:0.2.2]at org.jboss.profileservice.deployment.hotdeploy.HDScanner.scan(

HDScanner.java:146) [:0.2.2]at org.jboss.profileservice.deployment.hotdeploy.HDScanner.run(

HDScanner.java:90) [:0.2.2]at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source) [:1.7.0_04]
at java.util.concurrent.FutureTask$Sync.innerRunAndReset(Unknown Source) [:1.7.0_04]
at java.util.concurrent.FutureTask.runAndReset(Unknown Source) [:1.7.0_04]
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(Unknown Source) [:1.7.0_04]
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(Unknown Source) [:1.7.0_04]
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) [:1.7.0_04]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) [:1.7.0_04]
at java.lang.Thread.run(Unknown Source) [:1.7.0_04]





physics-dx.xml content which is deployed


































<?

xml version=++"1.0"++ encoding=++"UTF-8"++?>



<!-- $Id: firebird-ds.xml 84886 2009-02-27 17:48:44Z scott.stark at jboss.org $ -->



<!-- ==================================================================== -->


<!-- New ConnectionManager setup for firebird dbs using jca-jdbc xa driver-->


<!-- Build jmx-api (build/build.sh all) and view for config documentation -->


<!-- ==================================================================== -->


<

connection-factories>



<!--FBManager can be used to create and drop databases.Drop is especially useful during testing, since it 
assures a clean start next time. -->



<mbean code=++"org.firebirdsql.management.FBManager"++ name=++"jboss.jca:service=FirebirdManager"++>


<attribute name=++"FileName"++>${jboss.server.data.dir}${/}firebird${/}physics.gdb</attribute>


<attribute name=++"UserName"++>einstein</attribute>


<attribute name=++"Password"++>relativity</attribute>


<attribute name=++"CreateOnStart"++>true</attribute>


<attribute name=++"DropOnStop"++>false</attribute>


</mbean>



<tx-connection-factory>


<jndi-name>PhysicsDS</jndi-name>


<xa-transaction/>


<!-- uncomment to enable interleaving <interleaving/> -->



<rar-name>jaybird-2.1.6.rar</rar-name>


<connection-definition>javax.sql.DataSource</connection-definition> 

<config-property name=++"Database"++ type=++"java.lang.String"++>localhost/3050:${jboss.server.data.dir}${/}firebird${/}phyisics.gdb</config-property>


<user-name>einstein</user-name>


<password>albert</password>


<!--additional properties. only use one way of setting tx isolation, please<config-property name="TransactionIsolation"></config-property>
<config-property name="TransactionIsolationName">TRANSACTION_READ_COMMITTED</config-property>
<config-property name="BlobBufferLength"></config-property>
<config-property name="Encoding">UNICODE_FSS</config-property>
-->



<min-pool-size>0</min-pool-size>


<!-- sql to call when connection is created<new-connection-sql>some arbitrary sql</new-connection-sql>
-->



<!-- sql to call on an existing pooled connection when it is obtained from pool<check-valid-connection-sql>some arbitrary sql</check-valid-connection-sql>
-->



<!-- corresponding type-mapping in the standardjbosscmp-jdbc.xml (optional) --> 

<metadata>


<type-mapping>Firebird</type-mapping>


</metadata> 

</tx-connection-factory>


</

connection-factories>


persistencex.xml content
















<?

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=++"physicsdb"++>


<jta-data-source>PhysicsDS</jta-data-source>


<properties>


<property name=++"hibernate.hbm2ddl.auto"++ value=++"create"++/>


<property name=++"hibernate.dialect"++ value=++"org.hibernate.dialect.FirebirdDialect"++/>


</properties>


</persistence-unit></



persistence>



Thanks for Your patience.
--------------------------------------------------------------

Reply to this message by going to Community
[https://community.jboss.org/message/738568#738568]

Start a new discussion in Datasource Configuration at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2077]

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20120529/211562a0/attachment-0001.html 


More information about the jboss-user mailing list