hi, looks like you dont have a default datasource. like the one that is 
included in the deploy directory( $JBOSS_HOME/server/default/deploy ) when you 
have a new jboss istalation.

when you put in your META-INF directory this two files, you are saying to the 
application server that you will use hibernate, but not how you will use this 
tool, or.. where and what database you'll use. that for we have a 
datasource-ds.xml file. like this one

mydstoPostgres-ds.xml

  | <?xml version="1.0" encoding="UTF-8"?>
  | 
  | <datasources>
  |     <local-tx-datasource>
  |         <jndi-name>postgresDS</jndi-name>
  |         <connection-url>jdbc:postgresql://localhost/test</connection-url>
  |         <driver-class>org.postgresql.Driver</driver-class>
  |         <user-name>me</user-name>
  |         <password>secret</password>
  |     </local-tx-datasource>
  | </datasources>
  | 

this file is deployed also in the deploy directory next to your ear.  the 
<jndi-name>postgresDS</jndi-name>  line define how my application(.ear) will 
find my database,in your case,  your application now are searching a datasource 
with a jndi-name DefaultDS . so you have to provide this service to your 
application.



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

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


-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
_______________________________________________
JBoss-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to