I have the following problem with
JBoss handling a deployment that I'm rather stumped on how to fix.
I'm trying to deploy an
EJB tier / persistence set of classes and business logic as a .jar written with EJB3 and using Hibernate as my persistence provider.
The database that my classes are mapped to are in Sybase15.
Enclosed are the jboss-ds.xml and META-INF/persistence.xml files.
-----jboss-ds.xml-----------
<?xml version="1.0" encoding="UTF-8"?>
<datasources>
<local-tx-datasource>
<jndi-name>
java:/ChadbertApp</jndi-name>
<connection-url>
jdbc:sybase:Tds:corporatedb.fictional.db.com:7001/toaster</connection-url>
<driver-class>com.sybase.jdbc3.jdbc.SybDriver</driver-class>
<user-name>productionUser</user-name>
<password>password</password
<min-pool-size>5</min-pool-size>
<max-pool-size>20</max-pool-size>
<idle-timeout-minutes>5</idle-timeout-minutes>
</local-tx-datasource>
</datasources>
----------------------------
-----persistence.xml--------
<?xml version="1.0" encoding="UTF-8"?>
<persistence version="1.0"
xmlns="http://java.sun.com/xml/ns/persistence"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/persistence
http://java.sun.com/xml/ns/persistence/persistence_1_0.xsd"> <persistence-unit name="ChadbertAppDataTierPU" transaction-type="JTA">
<provider>org.hibernate.ejb.HibernatePersistence</provider>
<jta-data-source>java:/ChadbertApp</jta-data-source>
<properties>
<property name="hibernate.hbm2ddl.auto" value="update"/>
<property name="hibernate.dialect" value="SybaseDialect"/>
<property name="hibernate.connection.url"
value="jdbc:sybase:Tds:corporatedb.fictional.db.com:7001/toaster"/>
<property name="hibernate.connection.driver_class"
value="com.sybase.jdbc3.jdbc.SybDriver"/>
<property name="hibernate.connection.username" value="productionUser"/>
<property name="hibernate.connection.password" value="password"/>
</properties>
</persistence-unit>
</persistence>
----------------------------
When I try to deploy this to JBoss-4.2.1-GA app server, I get the following error list.
09:28:00, 021 INFO [JmxKernelAbstraction] jboss.jca:ChadbertApp, service=DataSouceBinding
09:28:00, 021 INFO [JmxKernelAbstraction] creating wrapper delegate for: org.jboss.ejb3.stateless.StatelessContainer
09:28:00, 382 INFO [JmxKernelAbstraction] installing MBean: jboss.j2ee:jar=ChadbertAppDataTier.jar, name=ClassificationEJBBean, service=EJB3 with dependencies:
09:28:00, 382 INFO [JmxKernelAbstraction] persistence.units:jar=ChadbertAppDataTier.jar,unitName= ChadbertAppDataTierPU
09:28:00, 412 INFO [EJB3Deployer] Deployed:file:/C:/jboss4.2.1.GA/server/default/deploy/ ChadbertAppDataTier.jar
09:28:00, 412 ERROR [URLDeploymentScanner] Incomplete Deployment listing:
--- Incompletely deployed packages ---
org.jboss.deployment.DeploymentInfo@fcd2bd5a { url=file:/C:/jboss-4.2.1.GA/server/default/deploy/ jboss-ds.xml }
deployer: org.jboss.deployment.XSLSubDeployer@1ef45e0
status: Deployment FAILED reason: Invalid character ':' in value part of property; - nested throwable: (javax.management.MalformedObjectNameException: Invalid character ':' in value part of property)
state: FAILED
watch: file:/C:/jboss-4.2.1.GA/server/default/deploy/jboss-ds.xml
altDD: null
lastDeployed: 1197469679691
lastModified: 1197469679671
mbeans:
--- MBeans waiting for other MBeans ---
ObjectName: persistence.units:jar=ChadbertAppDataTier.jar, unitName=ChadbertAppDataTierPU
State: NOTYETINSTALLED
I Depend On:
jboss.jca:name=ChadbertApp, service=DataSourceBinding
ObjectName: persistence.units:jar=ChadbertAppDataTier.jar, unitName=ChadbertAppDataTierPU
State: NOTYETINSTALLED
I Depend On:
jboss.jca:name=ChadbertApp, service=DataSourceBinding
Depends On Me:
jboss.j2ee:jar=ChadbertAppDataTier.jar, name=ClassificationEJBBean, service=EJB3
ObjectName: jboss.j2ee:jar=ChadbertAppDataTier.jar, name=ClassificationEJBBean, service=EJB3
State: NOTYETINSTALLED
I Depend On:
persistence.units:jar=ChadbertAppDataTier.jar, unitName=ChadbertAppDataTierPU
--- MBEANS THAT ARE THE ROOT CAUSE OF THE PROBLEM ---
ObjectName: jboxx.jca:name=ChadbertApp, service=DataSourceBinding
State: NOTYETINSTALLED
Depends On Me:
persistence.units:jar=ChadbertAppDataTier.jar, unitName=ChadbertAppDataTierPU
persistence.units:jar=ChadbertAppDataTier.jar, unitName=ChadbertAppDataTierPU
--------------------------------------------
I'm hoping someone can help point me in the right direction on what to do
here.
Appreciate any advice.
Thanks,
Chad