-
1. Re: Simple JSF app that attaches to a database
rhanus Jul 21, 2013 3:43 AM (in response to jgagnon)the reason is here:
16:26:56,970 INFO [org.jboss.as.server] (DeploymentScanner-threads - 2) JBAS015870: Deploy of deployment "DB_Test.war" was rolled back with failure message {"JBAS014771: Services with missing/unavailable dependencies" => ["jboss.naming.context.java.module.DB_Test.DB_Test.env.jdbc.db_testjboss.naming.context.java.jboss.resources.jdbc.db_testMissing[jboss.naming.context.java.module.DB_Test.DB_Test.env.jdbc.db_testjboss.naming.context.java.jboss.resources.jdbc.db_test]"]}
resource reference jdbc/db_test in UserBean is not connected with any jboss server resource
you need to add jboss-web.xml beside web.xml and define jndi-name reference:
<?xml version="1.0" encoding="UTF-8"?>
<jboss-web>
<resource-ref>
<res-ref-name>jdbc/db_test</res-ref-name>
<jndi-name>java:jboss/datasources/TestDS</jndi-name>
</resource-ref>
</jboss-web>
-
2. Re: Simple JSF app that attaches to a database
jgagnon Jul 21, 2013 10:48 AM (in response to rhanus)It looks like that worked. I still don't understand what's going on "behind the curtain". Is there a good source of information I can go to in order to understand what goes on behind the scenes that makes all of this work? Something that's geared for someone who knows just about nothing about configuring web servers (that would be me ) would be the greatest help. I try to find stuff by doing a web search, but that is very inefficient and usually leads off on tangents or dead ends.
Thanks
-
3. Re: Simple JSF app that attaches to a database
rhanus Jul 21, 2013 4:45 PM (in response to jgagnon)the best way to start with both enterprise java and jboss are jboss as quickstarts along with jboss 7.1 getting started quide
then you may advance to the javaee6 tutorial look for details on jboss forums, stackoverflow.com...