Friday, 15 August 2014

java - JBoss AS 7 Error while deplouing EJBs -



java - JBoss AS 7 Error while deplouing EJBs -

i working through deployment 1 step @ time. did answers people have helped stuck on 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 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 datasource in standalone.xml 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 thing deploy??

there might 2 potential problems:

the name of datasource in standalone.xml might wrong or missing. you might need alter <jta-data-source>java:jboss/datasources/dodsrds</jta-data-source> in persistence.xml to <jta-data-source>java:/dodsrds</jta-data-source>.

i'd main problem number 2 number 1 might still true (you didn't provide name definition in post).

update:

if don't need utilize name jboss/datasources/dodsrds i'd suggest using dodsrs, i.e. jndi-name="java:/dodsrds" , <jta-data-source>java:/dodsrds</jta-data-source>.

update 2:

a 3rd problem might spaces in pool-name. i'm not sure they're allowed here @ to the lowest degree might cause problems if reference pool name , don't have exact same number of spaces, i'd remove in case.

java jboss7.x ear

No comments:

Post a Comment