• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Devaka Cooray
  • Tim Cooke
Sheriffs:
  • Rob Spoor
  • Liutauras Vilda
  • paul wheaton
Saloon Keepers:
  • Tim Holloway
  • Tim Moores
  • Mikalai Zaikin
  • Carey Brown
  • Piet Souris
Bartenders:
  • Stephan van Hulst

deployment problem to JBoss 4.2.1-GA

 
Greenhorn
Posts: 23
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
Sheriff
Posts: 10445
227
IntelliJ IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
In your jboss-ds.xml file

<jndi-name>java:/ChadbertApp</jndi-name>



Change this above line to



You don't have to specify the java: in the jndi-name. JBoss by default binds the datasource to java: namespace.
 
Hang a left on main. Then read this tiny ad:
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
reply
    Bookmark Topic Watch Topic
  • New Topic