Jboss配置的连接池报 org.jboss.deployment.DeploymentException: Error during deploy;

jboss 下部署程序,启动时报:
org.jboss.deployment.DeploymentException: Error during deploy; - nested throwable: (javax.naming.NamingException: resource-ref: jdbc/has no valid JNDI binding. Check the jboss-web/resource-ref.)
解决办法,
需要在添加WEB-INF/jboss-web.xml

  


jdbc/salesmgmt
java:/jdbc/salesmgmt


jdbc/homelink
java:/jdbc/homelink



再在web.xml:

  
jdbc/salesmgmt
javax.sql.DataSource
Container



jdbc/homelink
javax.sql.DataSource
Container



当然,前提是已在deploy/放了连接池的配置文件

你可能感兴趣的:(JBOSS,web.xml,开发工具,java)