[jboss-user] [JBossWS] - Re: Can't use MySql under JBOSSWS (Works under JBOSS)

cshannon do-not-reply at jboss.com
Tue Apr 7 20:18:47 EDT 2009

Thanks for taking a look at this. The resource ref is in my web.xml file, like I said it works perfectly under JBOSS, the webservice I am doing is just a helloworld, the only difference is that I try to connect to the database. All code that works fine. It is some kind of configuration problem. 

  | <resource-ref>  
  |           <description>MySql Dataset Definition</description>
  | 	  <res-ref-name>jdbc/MySqlDS</res-ref-name>  
  | 		<jndi-name>java:/MySqlDS</jndi-name>
  |           <res-type>javax.sql.DataSource</res-type>  
  |           <res-auth>Container</res-auth>  
  | </resource-ref>
  | <display-name>postSubmission</display-name>
  | </web-app>

and my jboss-web.xml
<?xml version="1.0" encoding="ISO-8859-1"?>
  | <!DOCTYPE jboss-web
  |     PUBLIC "-//JBoss//DTD Web Application 2.3V2//EN"
  |     "http://www.jboss.org/j2ee/dtd/jboss-web_3_2.dtd">
  | <jboss-web>
  |   <!-- A security domain that restricts access
  |   <security-domain>java:/jaas/JBossWS</security-domain>
  |   --> 
  |   <context-root>jbossws</context-root>
  | <resource-ref>
  | 	<res-ref-name>jdbc/MySqlDS</res-ref-name>
  | 	<jndi-name>java:/MySqlDS</jndi-name>
  | </resource-ref>
  | </jboss-web>

It's like JBOSSWS cant find the mysql-ds.xml or something. I tried to copy that into the jbossws deployment folder but then it error-ed out saying that it was already defined. 

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

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

More information about the jboss-user mailing list