I am working through this deployment one step at a time. Did get some answers from people that have helped but I am now stuck on this error:
JBAS014775: New missing/unsatisfied dependencies:
service jboss.naming.context.java.jboss.datasources.DoDSRDS (missing) dependents: [service jboss.persistenceunit."dodsr.ear/dodsr.jar#DoDSRMGR"]
My persistence.xml file is this:
<?xml version="1.0" encoding="windows-1252" ?>
<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"
version="1.0" xmlns="http://java.sun.com/xml/ns/persistence">
<persistence-unit name="DoDSRMGR">
<jta-data-source>java:jboss/datasources/DoDSRDS</jta-data-source>
<class>mil.army.amedd.dodsr.model.ManifestsPass1</class>
<class>mil.army.amedd.dodsr.model.ManifestsPass2</class>
<properties>
<property name="hibernate.dialect" value="org.hibernate.dialect.Oracle10gDialect"/>
<property name="javax.persistence.jtaDataSource" value="java:/DoDSRDS"/>
</properties>
</persistence-unit>
And the datasource in standalone.xml is this:
<datasource jndi-name="java:jboss/datasources/DoDSRDS" pool-name=" DoDSRDS " enabled="true" use-java-context="true">
<connection-url>jdbc:oracle:thin:@160.151.120.38:2115:apdb</connection-url>
<driver>oracle</driver>
<pool>
<prefill>true</prefill>
<use-strict-min>false</use-strict-min>
</pool>
<security>
<user-name>username</user-name>
<password>password</password>
</security>
How do I get this thing to deploy??
There might be 2 potential problems:
<jta-data-source>java:jboss/datasources/DoDSRDS</jta-data-source>
<jta-data-source>java:/DoDSRDS</jta-data-source>
.I'd your main problem is number 2 but number 1 might still be true (you didn't provide the name definition in your post).
Update:
If you don't need to use the name jboss/datasources/DoDSRDS
I'd suggest just using DoDSRS
, i.e. jndi-name="java:/DoDSRDS"
and <jta-data-source>java:/DoDSRDS</jta-data-source>
.
Update 2:
A third problem might be the spaces in the pool-name
. I'm not sure they're allowed here but at least it might cause problems if you reference the pool by name and don't have the exact same number of spaces, so I'd remove those in any case.