6 Replies Latest reply on May 14, 2008 6:47 PM by hotwater

    Target Unreachable when switching jndi reference to Oracle database

    hotwater

      I created an Oracle datasource and changed Yuan's HelloWorld example application to point to it instead of DefaultDS.  I created the Person table with columns name and id.  Now I get this runtime Exception:


      12:50:00,877 WARN  [lifecycle] /hello.jsp(18,0) '#{person.name}' Target Unreachable, identifier 'person' resolved to null
      org.apache.jasper.el.JspPropertyNotFoundException: /hello.jsp(18,0) '#{person.name}' Target Unreachable, identifier 'person' resolved to null
           at org.apache.jasper.el.JspValueExpression.getType(JspValueExpression.java:61)
           at com.sun.faces.renderkit.html_basic.HtmlBasicInputRenderer.getConvertedValue(HtmlBasicInputRenderer.java:81)
      



      The application does connect to Oracle, I can see the two connections it creates, but it's unable to execute a query, I guess.  The application ran fine before I changed the datasource.


      I copied ojdbc14.jar into jboss\server\default\lib.