[jboss-user] [Persistence, JBoss/CMP, Hibernate, Database] - Re: *-ds.xml not being bound to JNDI Name

jaikiran do-not-reply at jboss.com
Sun Apr 6 05:50:34 EDT 2008

"jej2003" wrote : I see it get bound if I place my -ds.xml file in the deploy directory, but not if I put it under my ear directory.  Am I missing something?  Is there something else that I need to do to get this to work?

If you want to deploy the -ds.xml file as part of your EAR, then you will have to create a jboss-app.xml and place the jboss-app.xml in the META-INF folder of your EAR. The -ds.xml can then be placed at the root of the EAR. Your jboss-app.xml should contain something like this:

  | <?xml version="1.0" encoding="ISO-8859-1"?>
  | <!DOCTYPE jboss-app
  |     PUBLIC "-//JBoss//DTD J2EE Application 4.2//EN"
  |     "http://www.jboss.org/j2ee/dtd/jboss-app_4_2.dtd">
  | <jboss-app>
  |   <module>
  |        <service>dali-ds.xml</service>
  |  </module>
  | </jboss-app>

"jej2003" wrote : 
  | Also, when I deploy my application I am getting an error complaining about the tag <jta-data-source> (don't have the exact error, the code is at work), is there something I did wrong with my persistence.xml that I listed below?

Can't say, without looking at the exception stacktrace. Post it, once you have access to it.

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4141880#4141880

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4141880

More information about the jboss-user mailing list