When I start JBoss 3.2.3 the ff warning & error occur:
406 WARN [org.jboss.ejb.EntityContainer] No resource manager found for jdbc/MyDataBase
140 ERROR [org.jboss.ejb.EntityContainer] Starting failed
org.jboss.deployment.DeploymentException: Error: can't find data source:
java:/comp/env/jdbc/MyDataBase; - nested throwable:
(javax.naming.NameNotFoundException: jdbc not bound)
at
org.jboss.ejb.plugins.cmp.jdbc.bridge.JDBCEntityBridge.init(JDBCEntityBridge.java:143)
The following - my configuration:
server\default\conf\standardjbosscmp-jdbc.xml has:
<jbosscmp-jdbc>
java:/MyOwnMySqlDS
<datasource-mapping>mySQL</datasource-mapping>
......
server\default\deploy\mysql-ds.xml has:
<local-tx-datasource>
<jndi-name>MyOwnMySqlDS</jndi-name>
<connection-url>jdbc:mysql://localhost:8080/assets</connection-url>
<driver-class>com.mysql.jdbc.Driver</driver-class>
<user-name>root</user-name>
</local-tx-datasource>
MyApp.jar has jbosscmp-jdbc.xml with:
java:/comp/env/jdbc/MyDataBase
.......
MyApp.war has jboss-web.xml with:
<resource-ref>
<res-ref-name>jdbc/MyDataBase</res-ref-name>
<jndi-name>java:comp/env/jdbc/MyDataBase</jndi-name>
</resource-ref>
MyApp.war also has struts-config.xml with:
<data-source>
<set-property property="description" value="MyDataBase Config"/>
<set-property property="driverClass" value="com.mysql.jdbc.Driver"/>
<set-property property="url"
value="jdbc:mysql://localhost/MyDataBase"/>
<set-property property="user" value="root"/>
<set-property property="password" value=""/>
......
View the original post :
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3842740#3842740
Reply to the post :
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3842740
-------------------------------------------------------
This SF.Net email is sponsored by BEA Weblogic Workshop
FREE Java Enterprise J2EE developer tools!
Get your free copy of BEA WebLogic Workshop 8.1 today.
http://ads.osdn.com/?ad_id=4721&alloc_id=10040&op=click
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user