title: Why is Target Unreachable, identifier resolved to null on weblogic
body: <p>People are marking this a duplicate, but if you look at my answer below, you will see why it is different.</p>
  
  <p>I am using STS, weblogic, and primefaces 5.3 and I keep getting the error "Target Unreachable, identifier 'dtObservationsView' resolved to null".</p>
  
  <p>This is a spring application using REST.</p>
  
  <p>The application runs perfectly well on tomcat, but not when I deploy to weblogic.</p>
  
  <p>I have read through the posted response at <a href="https://stackoverflow.com/questions/30128395/identifying-and-solving-javax-el-propertynotfoundexception-target-unreachable">dentifying and solving javax.el.PropertyNotFoundException: Target Unreachable</a> but it has not yielded any solution that works.</p>
  
  <p>I have also tried <a href="https://stackoverflow.com/questions/34092269/javax-el-propertynotfoundexception-target-unreachable-identifier-bean-resolved">WebLogic Reference</a>, but I am still getting the same error.</p>
  
  <p>pom.xml:</p>
  
  <pre><code>    &lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
      xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"&gt;
      &lt;modelVersion&gt;4.0.0&lt;/modelVersion&gt;
      &lt;groupId&gt;gov.fda&lt;/groupId&gt;
      &lt;artifactId&gt;pcocar&lt;/artifactId&gt;
      &lt;name&gt;pcocar_car_web&lt;/name&gt;
      &lt;packaging&gt;war&lt;/packaging&gt;
      &lt;version&gt;1.0.0-BUILD-SNAPSHOT&lt;/version&gt;
      &lt;properties&gt;
          &lt;java-version&gt;1.7&lt;/java-version&gt;
          &lt;org.springframework-version&gt;3.1.1.RELEASE&lt;/org.springframework-version&gt;
          &lt;org.aspectj-version&gt;1.6.10&lt;/org.aspectj-version&gt;
          &lt;org.slf4j-version&gt;1.6.6&lt;/org.slf4j-version&gt;
      &lt;/properties&gt;
      &lt;dependencies&gt;
          &lt;!-- Spring --&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;org.springframework&lt;/groupId&gt;
              &lt;artifactId&gt;spring-context&lt;/artifactId&gt;
              &lt;version&gt;${org.springframework-version}&lt;/version&gt;
              &lt;exclusions&gt;
                  &lt;!-- Exclude Commons Logging in favor of SLF4j --&gt;
                  &lt;exclusion&gt;
                      &lt;groupId&gt;commons-logging&lt;/groupId&gt;
                      &lt;artifactId&gt;commons-logging&lt;/artifactId&gt;
                   &lt;/exclusion&gt;
              &lt;/exclusions&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;org.springframework&lt;/groupId&gt;
              &lt;artifactId&gt;spring-webmvc&lt;/artifactId&gt;
              &lt;version&gt;${org.springframework-version}&lt;/version&gt;
          &lt;/dependency&gt;
  
          &lt;!-- AspectJ --&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;org.aspectj&lt;/groupId&gt;
              &lt;artifactId&gt;aspectjrt&lt;/artifactId&gt;
              &lt;version&gt;${org.aspectj-version}&lt;/version&gt;
          &lt;/dependency&gt;   
  
          &lt;!-- Logging --&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;org.slf4j&lt;/groupId&gt;
              &lt;artifactId&gt;slf4j-api&lt;/artifactId&gt;
              &lt;version&gt;${org.slf4j-version}&lt;/version&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;org.slf4j&lt;/groupId&gt;
              &lt;artifactId&gt;jcl-over-slf4j&lt;/artifactId&gt;
              &lt;version&gt;${org.slf4j-version}&lt;/version&gt;
              &lt;scope&gt;runtime&lt;/scope&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;org.slf4j&lt;/groupId&gt;
              &lt;artifactId&gt;slf4j-log4j12&lt;/artifactId&gt;
              &lt;version&gt;${org.slf4j-version}&lt;/version&gt;
              &lt;scope&gt;runtime&lt;/scope&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;log4j&lt;/groupId&gt;
              &lt;artifactId&gt;log4j&lt;/artifactId&gt;
              &lt;version&gt;1.2.15&lt;/version&gt;
              &lt;exclusions&gt;
                  &lt;exclusion&gt;
                      &lt;groupId&gt;javax.mail&lt;/groupId&gt;
                      &lt;artifactId&gt;mail&lt;/artifactId&gt;
                  &lt;/exclusion&gt;
                  &lt;exclusion&gt;
                      &lt;groupId&gt;javax.jms&lt;/groupId&gt;
                      &lt;artifactId&gt;jms&lt;/artifactId&gt;
                  &lt;/exclusion&gt;
                  &lt;exclusion&gt;
                      &lt;groupId&gt;com.sun.jdmk&lt;/groupId&gt;
                      &lt;artifactId&gt;jmxtools&lt;/artifactId&gt;
                  &lt;/exclusion&gt;
                  &lt;exclusion&gt;
                      &lt;groupId&gt;com.sun.jmx&lt;/groupId&gt;
                      &lt;artifactId&gt;jmxri&lt;/artifactId&gt;
                  &lt;/exclusion&gt;
              &lt;/exclusions&gt;
              &lt;scope&gt;runtime&lt;/scope&gt;
          &lt;/dependency&gt;
  
          &lt;!-- @Inject --&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;javax.inject&lt;/groupId&gt;
              &lt;artifactId&gt;javax.inject&lt;/artifactId&gt;
              &lt;version&gt;1&lt;/version&gt;
          &lt;/dependency&gt;
  
          &lt;!-- Servlet --&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;javax.servlet&lt;/groupId&gt;
              &lt;artifactId&gt;servlet-api&lt;/artifactId&gt;
              &lt;version&gt;2.5&lt;/version&gt;
              &lt;scope&gt;provided&lt;/scope&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;javax.servlet.jsp&lt;/groupId&gt;
              &lt;artifactId&gt;jsp-api&lt;/artifactId&gt;
              &lt;version&gt;2.1&lt;/version&gt;
              &lt;scope&gt;provided&lt;/scope&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;javax.servlet&lt;/groupId&gt;
              &lt;artifactId&gt;jstl&lt;/artifactId&gt;
              &lt;version&gt;1.2&lt;/version&gt;
          &lt;/dependency&gt;
  
          &lt;!-- Test --&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;junit&lt;/groupId&gt;
              &lt;artifactId&gt;junit&lt;/artifactId&gt;
              &lt;version&gt;4.7&lt;/version&gt;
              &lt;scope&gt;test&lt;/scope&gt;
          &lt;/dependency&gt;
          &lt;!-- Primefaces --&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;org.primefaces&lt;/groupId&gt;
              &lt;artifactId&gt;primefaces&lt;/artifactId&gt;
              &lt;version&gt;5.3&lt;/version&gt;
          &lt;/dependency&gt;
          &lt;!-- JSF 2 --&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;com.sun.faces&lt;/groupId&gt;
              &lt;artifactId&gt;jsf-impl&lt;/artifactId&gt;
              &lt;version&gt;2.2.14&lt;/version&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;com.sun.faces&lt;/groupId&gt;
              &lt;artifactId&gt;jsf-api&lt;/artifactId&gt;
              &lt;version&gt;2.2.14&lt;/version&gt;
          &lt;/dependency&gt;
          &lt;!-- https://mvnrepository.com/artifact/org.apache.httpcomponents/httpclient --&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;org.apache.httpcomponents&lt;/groupId&gt;
              &lt;artifactId&gt;httpclient&lt;/artifactId&gt;
              &lt;version&gt;4.5.3&lt;/version&gt;
          &lt;/dependency&gt;
  
          &lt;!-- https://mvnrepository.com/artifact/org.jsoup/jsoup --&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;org.jsoup&lt;/groupId&gt;
              &lt;artifactId&gt;jsoup&lt;/artifactId&gt;
              &lt;version&gt;1.10.3&lt;/version&gt;
          &lt;/dependency&gt;
  
          &lt;!-- https://mvnrepository.com/artifact/org.json/json --&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;org.json&lt;/groupId&gt;
              &lt;artifactId&gt;json&lt;/artifactId&gt;
              &lt;version&gt;20170516&lt;/version&gt;
          &lt;/dependency&gt;
  
          &lt;dependency&gt;
              &lt;groupId&gt;com.googlecode.json-simple&lt;/groupId&gt;
              &lt;artifactId&gt;json-simple&lt;/artifactId&gt;
              &lt;version&gt;1.1.1&lt;/version&gt;
          &lt;/dependency&gt;
  
          &lt;dependency&gt;
              &lt;groupId&gt;org.glassfish.web&lt;/groupId&gt;
              &lt;artifactId&gt;el-impl&lt;/artifactId&gt;
              &lt;version&gt;2.2&lt;/version&gt;
          &lt;/dependency&gt;
  
  &lt;!--        &lt;dependency&gt;
              &lt;groupId&gt;el.api&lt;/groupId&gt;
              &lt;artifactId&gt;el-api&lt;/artifactId&gt;
              &lt;version&gt;2.2&lt;/version&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;el.impl&lt;/groupId&gt;
              &lt;artifactId&gt;el-impl&lt;/artifactId&gt;
              &lt;version&gt;2.2&lt;/version&gt;
          &lt;/dependency&gt; --&gt;
      &lt;/dependencies&gt;
      &lt;build&gt;
          &lt;plugins&gt;
              &lt;plugin&gt;
                  &lt;artifactId&gt;maven-eclipse-plugin&lt;/artifactId&gt;
                  &lt;version&gt;2.9&lt;/version&gt;
                  &lt;configuration&gt;
                      &lt;additionalProjectnatures&gt;
                          &lt;projectnature&gt;org.springframework.ide.eclipse.core.springnature&lt;/projectnature&gt;
                      &lt;/additionalProjectnatures&gt;
                      &lt;additionalBuildcommands&gt;
                          &lt;buildcommand&gt;org.springframework.ide.eclipse.core.springbuilder&lt;/buildcommand&gt;
                      &lt;/additionalBuildcommands&gt;
                      &lt;downloadSources&gt;true&lt;/downloadSources&gt;
                      &lt;downloadJavadocs&gt;true&lt;/downloadJavadocs&gt;
                  &lt;/configuration&gt;
              &lt;/plugin&gt;
              &lt;plugin&gt;
                  &lt;groupId&gt;org.apache.maven.plugins&lt;/groupId&gt;
                  &lt;artifactId&gt;maven-compiler-plugin&lt;/artifactId&gt;
                  &lt;version&gt;2.5.1&lt;/version&gt;
                  &lt;configuration&gt;
                      &lt;source&gt;1.6&lt;/source&gt;
                      &lt;target&gt;1.6&lt;/target&gt;
                      &lt;compilerArgument&gt;-Xlint:all&lt;/compilerArgument&gt;
                      &lt;showWarnings&gt;true&lt;/showWarnings&gt;
                      &lt;showDeprecation&gt;true&lt;/showDeprecation&gt;
                  &lt;/configuration&gt;
              &lt;/plugin&gt;
              &lt;plugin&gt;
                  &lt;groupId&gt;org.codehaus.mojo&lt;/groupId&gt;
                  &lt;artifactId&gt;exec-maven-plugin&lt;/artifactId&gt;
                  &lt;version&gt;1.2.1&lt;/version&gt;
                  &lt;configuration&gt;
                      &lt;mainClass&gt;org.test.int1.Main&lt;/mainClass&gt;
                  &lt;/configuration&gt;
              &lt;/plugin&gt;
          &lt;/plugins&gt;
      &lt;/build&gt;
  &lt;/project&gt;
  </code></pre>
  
  <p>web.xml</p>
  
  <pre><code>    &lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;web-app version="2.5" xmlns="http://java.sun.com/xml/ns/javaee"
      xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
      xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"&gt;
  
      &lt;!-- The definition of the Root Spring Container shared by all Servlets and Filters --&gt;
      &lt;context-param&gt;
          &lt;param-name&gt;contextConfigLocation&lt;/param-name&gt;
          &lt;param-value&gt;/WEB-INF/spring/root-context.xml&lt;/param-value&gt;
      &lt;/context-param&gt;
  
      &lt;!-- Creates the Spring Container shared by all Servlets and Filters --&gt;
      &lt;listener&gt;
          &lt;listener-class&gt;org.springframework.web.context.ContextLoaderListener&lt;/listener-class&gt;
      &lt;/listener&gt;
  
      &lt;!-- Processes application requests --&gt;
      &lt;servlet&gt;
          &lt;servlet-name&gt;appServlet&lt;/servlet-name&gt;
          &lt;servlet-class&gt;org.springframework.web.servlet.DispatcherServlet&lt;/servlet-class&gt;
          &lt;init-param&gt;
              &lt;param-name&gt;contextConfigLocation&lt;/param-name&gt;
              &lt;param-value&gt;/WEB-INF/spring/appServlet/servlet-context.xml&lt;/param-value&gt;
          &lt;/init-param&gt;
          &lt;load-on-startup&gt;1&lt;/load-on-startup&gt;
      &lt;/servlet&gt;
  
      &lt;servlet-mapping&gt;
          &lt;servlet-name&gt;appServlet&lt;/servlet-name&gt;
          &lt;url-pattern&gt;/&lt;/url-pattern&gt;
      &lt;/servlet-mapping&gt;
  
      &lt;!-- Change to "Production" when you are ready to deploy --&gt;
      &lt;context-param&gt;
          &lt;param-name&gt;javax.faces.PROJECT_STAGE&lt;/param-name&gt;
          &lt;param-value&gt;Development&lt;/param-value&gt;
      &lt;/context-param&gt;
  
      &lt;!-- Welcome page --&gt;
      &lt;!-- 
      &lt;welcome-file-list&gt;
          &lt;welcome-file&gt;faces/test.xhtml&lt;/welcome-file&gt;
      &lt;/welcome-file-list&gt;
       --&gt;
  
  &lt;!--     &lt;context-param&gt;
         &lt;param-name&gt;com.sun.faces.enableRestoreView11Compatibility&lt;/param-name&gt;
         &lt;param-value&gt;true&lt;/param-value&gt;
      &lt;/context-param&gt; --&gt;
  
      &lt;context-param&gt;
          &lt;param-name&gt;javax.faces.DEFAULT_SUFFIX&lt;/param-name&gt;
          &lt;param-value&gt;.xhtml&lt;/param-value&gt;
      &lt;/context-param&gt;
  
      &lt;!-- Facelets pages will use the .xhtml extension --&gt;
      &lt;context-param&gt;
          &lt;param-name&gt;facelets.VIEW_MAPPINGS&lt;/param-name&gt;
          &lt;param-value&gt;*.xhtml&lt;/param-value&gt;
      &lt;/context-param&gt;
  
      &lt;mime-mapping&gt;
          &lt;extension&gt;xhtml&lt;/extension&gt;
          &lt;mime-type&gt;application/xml&lt;/mime-type&gt;
      &lt;/mime-mapping&gt;
  
      &lt;!-- JSF mapping --&gt;
      &lt;servlet&gt;
          &lt;servlet-name&gt;Faces Servlet&lt;/servlet-name&gt;
          &lt;servlet-class&gt;javax.faces.webapp.FacesServlet&lt;/servlet-class&gt;
          &lt;load-on-startup&gt;1&lt;/load-on-startup&gt;
      &lt;/servlet&gt;
  
      &lt;servlet-mapping&gt;
          &lt;servlet-name&gt;Faces Servlet&lt;/servlet-name&gt;
          &lt;url-pattern&gt;*.xhtml&lt;/url-pattern&gt;
          &lt;url-pattern&gt;/faces/*&lt;/url-pattern&gt;
      &lt;/servlet-mapping&gt;
  
      &lt;context-param&gt;
          &lt;description&gt;State saving method: 'client' or 'server' (=default). See JSF Specification 2.5.2&lt;/description&gt;
          &lt;param-name&gt;javax.faces.STATE_SAVING_METHOD&lt;/param-name&gt;
          &lt;param-value&gt;client&lt;/param-value&gt;
      &lt;/context-param&gt;
      &lt;listener&gt;
          &lt;listener-class&gt;com.sun.faces.config.ConfigureListener&lt;/listener-class&gt;
      &lt;/listener&gt;
  
      &lt;!-- Map these files with JSF --&gt;
  &lt;!--     &lt;servlet-mapping&gt;
          &lt;servlet-name&gt;Faces Servlet&lt;/servlet-name&gt;
          &lt;url-pattern&gt;/faces/*&lt;/url-pattern&gt;
      &lt;/servlet-mapping&gt;
      &lt;servlet-mapping&gt;
          &lt;servlet-name&gt;Faces Servlet&lt;/servlet-name&gt;
          &lt;url-pattern&gt;*.jsf&lt;/url-pattern&gt;
      &lt;/servlet-mapping&gt;
      &lt;servlet-mapping&gt;
          &lt;servlet-name&gt;Faces Servlet&lt;/servlet-name&gt;
          &lt;url-pattern&gt;*.faces&lt;/url-pattern&gt;
      &lt;/servlet-mapping&gt;
      &lt;servlet-mapping&gt;
          &lt;servlet-name&gt;Faces Servlet&lt;/servlet-name&gt;
          &lt;url-pattern&gt;*.xhtml&lt;/url-pattern&gt;
      &lt;/servlet-mapping&gt; --&gt;
  
  
  &lt;/web-app&gt;
  </code></pre>
  
  <p>observations.xhtml:</p>
  
  <pre><code>    &lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&gt;
  &lt;html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:p="http://primefaces.org/ui"&gt;
  
  &lt;h:head&gt;
      &lt;style&gt;
          .blockLabel { display: block; }
      &lt;/style&gt;
  &lt;/h:head&gt;
  &lt;h:body&gt;
  &lt;h2&gt;PREVENTIVE CONTROLS&lt;/h2&gt;
  &lt;h3&gt;Food and Drug Administration Corrective Action Report&lt;/h3&gt;
  
  &lt;h:form id="observationform"&gt;
      &lt;p:inputText id="feiInput" value="#{dtObservationsView.feiNumber}" /&gt;
      &lt;p:commandButton value="FEIN Search" id="fein_search"
              process="@this :#{p:component('feiInput')}"
              action="#{dtObservationsView.getObservationsByFein}"
              update="@form" /&gt;
  
      &lt;p:dataTable id="observationAddressId" var="address" value="#{dtObservationsView.addresses}" style="margin-bottom:40px" scrollable="true" draggableColumns="true" resizableColumns="true"&gt;
              &lt;f:facet name="header"&gt;
              Address for Observations below.
          &lt;/f:facet&gt;
          &lt;p:column headerText="FEI NUM" sortBy="#{address.feiNum}"&gt;
              &lt;h:outputText value="#{address.feiNum}" /&gt;
          &lt;/p:column&gt;
          &lt;p:column headerText="DUNS NUM" sortBy="#{address.dunsNum}"&gt;
              &lt;h:outputText value="#{address.dunsNum}" /&gt;
          &lt;/p:column&gt;         
          &lt;p:column headerText="AdrLine1" sortBy="#{address.adrLine1}"&gt;
              &lt;h:outputText value="#{address.adrLine1}" /&gt;
          &lt;/p:column&gt;
          &lt;p:column headerText="AdrLine2" sortBy="#{address.adrLine2}"&gt;
              &lt;h:outputText value="#{address.adrLine2}" /&gt;
          &lt;/p:column&gt;
          &lt;p:column headerText="City" sortBy="#{address.city}"&gt;
              &lt;h:outputText value="#{address.city}" /&gt;
          &lt;/p:column&gt;
          &lt;p:column headerText="State" sortBy="#{address.stateCd}"&gt;
              &lt;h:outputText value="#{address.stateCd}" /&gt;
          &lt;/p:column&gt;       
          &lt;p:column headerText="Zip" sortBy="#{address.zipCd}"&gt;
              &lt;h:outputText value="#{address.zipCd}" /&gt;
          &lt;/p:column&gt;
          &lt;p:column headerText="Country" sortBy="#{address.isoCntryCd}"&gt;
              &lt;h:outputText value="#{address.isoCntryCd}" /&gt;
          &lt;/p:column&gt;
          &lt;p:column headerText="RefCd" sortBy="#{address.refCd.id}"&gt;
              &lt;h:outputText value="#{address.refCd.id}" /&gt;
          &lt;/p:column&gt;
      &lt;/p:dataTable&gt;
  
      &lt;p:dataTable id="addressrefcdId" var="addressrefcd" value="#{dtObservationsView.addressRefCds}" style="margin-bottom:40px" scrollable="true" draggableColumns="true" resizableColumns="true"&gt;
          &lt;f:facet name="header"&gt;
              Single Column Sort For RefCd for the above Address
          &lt;/f:facet&gt;
          &lt;p:column headerText="RefCd ID" sortBy="#{addressrefcd.id}"&gt;
              &lt;h:outputText value="#{addressrefcd.id}"&gt;
              &lt;/h:outputText&gt;
          &lt;/p:column&gt;
           &lt;p:column headerText="IsActv" sortBy="#{addressrefcd.isActv}"&gt;
              &lt;h:outputText value="#{addressrefcd.isActv}"&gt;
              &lt;/h:outputText&gt;
          &lt;/p:column&gt;  
          &lt;p:column headerText="ModuleId" sortBy="#{addressrefcd.moduleId}"&gt;
              &lt;h:outputText value="#{addressrefcd.moduleId}"&gt;
              &lt;/h:outputText&gt;
          &lt;/p:column&gt;          
          &lt;p:column headerText="RefType" sortBy="#{addressrefcd.refType}"&gt;
              &lt;h:outputText value="#{addressrefcd.refType}"&gt;
              &lt;/h:outputText&gt;
          &lt;/p:column&gt;     
  
          &lt;p:column headerText="RefValue" sortBy="#{addressrefcd.refValue}"&gt;
              &lt;h:outputText value="#{addressrefcd.refValue}"&gt;
              &lt;/h:outputText&gt;
          &lt;/p:column&gt;
  
  
          &lt;p:column headerText="Description" sortBy="#{addressrefcd.description}"&gt;
              &lt;h:outputText value="#{addressrefcd.description}"&gt;
              &lt;/h:outputText&gt;
          &lt;/p:column&gt;
  
          &lt;p:column headerText="cFRCiteLanguage" sortBy="#{addressrefcd.cFRCiteLanguage}"&gt;
              &lt;h:outputText value="#{addressrefcd.cFRCiteLanguage}"&gt;
              &lt;/h:outputText&gt;
          &lt;/p:column&gt;
  
      &lt;/p:dataTable&gt;
  
      &lt;p:dataTable id="observationtableId" var="observation" value="#{dtObservationsView.observations}" style="margin-bottom:40px" scrollable="true" draggableColumns="true" resizableColumns="true"&gt;
          &lt;f:facet name="header"&gt;
              Single Column Sort For Observations
          &lt;/f:facet&gt;
          &lt;p:column headerText="Id" sortBy="#{observation.id}"&gt;
              &lt;h:outputText value="#{observation.id}" /&gt;
          &lt;/p:column&gt;
  
          &lt;p:column headerText="Description" sortBy="#{observation.citationShortDescription}"&gt;
              &lt;h:outputText value="#{observation.citationShortDescription}" /&gt;
          &lt;/p:column&gt;
  
          &lt;p:column headerText="DtCrrctnRcvd" sortBy="#{observation.dateCorrectionReceived}"&gt;
              &lt;h:outputText value="#{observation.dateCorrectionReceived}"&gt;
                    &lt;f:convertDateTime type="date" pattern="yyyy-MM-dd" /&gt;
              &lt;/h:outputText&gt;
          &lt;/p:column&gt;
  
          &lt;p:column headerText="InspctnEndDt" sortBy="#{observation.inspectionEndDate}"&gt;
              &lt;h:outputText value="#{observation.inspectionEndDate}"&gt;
                   &lt;f:convertDateTime type="date" pattern="yyyy-MM-dd" /&gt;
              &lt;/h:outputText&gt;
          &lt;/p:column&gt;
  
          &lt;p:column headerText="InspctnDt" sortBy="#{observation.inspectionDate}"&gt;
              &lt;h:outputText value="#{observation.inspectionDate}"&gt;
                   &lt;f:convertDateTime type="date" pattern="yyyy-MM-dd" /&gt;
              &lt;/h:outputText&gt;
          &lt;/p:column&gt;
  
          &lt;p:column headerText="Assgnmnt ID" sortBy="#{observation.assignment.id}"&gt;
              &lt;h:outputText value="#{observation.assignment.id}"&gt;
              &lt;/h:outputText&gt;
          &lt;/p:column&gt; 
  
  
          &lt;p:column headerText="RefCd ID" sortBy="#{observation.refCd.id}"&gt;
              &lt;h:outputText value="#{observation.refCd.id}"&gt;
              &lt;/h:outputText&gt;
          &lt;/p:column&gt; 
  
      &lt;/p:dataTable&gt;
  
  
  
  &lt;/h:form&gt;
  
  &lt;/h:body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>ObservationsView.java:</p>
  
  <pre><code>    /**
   * 
   */
  package gov.fda.furls.fsma.pcocar.primefaces.managedbean.observations;
  
  import java.io.Serializable;
  import java.util.HashSet;
  import java.util.Set;
  
  import javax.annotation.PostConstruct;
  import javax.faces.bean.ManagedBean;
  import javax.faces.bean.ManagedProperty;
  import javax.faces.bean.SessionScoped;
  import javax.faces.bean.ViewScoped;
  
  import gov.fda.furls.fsma.pcocar.primefaces.domain.ActionResponse;
  import gov.fda.furls.fsma.pcocar.primefaces.domain.Adr;
  import gov.fda.furls.fsma.pcocar.primefaces.domain.Assignment;
  import gov.fda.furls.fsma.pcocar.primefaces.domain.Atchmnt;
  import gov.fda.furls.fsma.pcocar.primefaces.domain.AtchmntDetail;
  import gov.fda.furls.fsma.pcocar.primefaces.domain.Cntct;
  import gov.fda.furls.fsma.pcocar.primefaces.domain.Evidence;
  import gov.fda.furls.fsma.pcocar.primefaces.domain.Observation;
  import gov.fda.furls.fsma.pcocar.primefaces.domain.Prfl;
  import gov.fda.furls.fsma.pcocar.primefaces.domain.PrflDetail;
  import gov.fda.furls.fsma.pcocar.primefaces.domain.RefCd;
  import gov.fda.furls.fsma.pcocar.service.AddressService;
  import gov.fda.furls.fsma.pcocar.service.ObservationService;
  
  /**
   * @author Denis.Putnam
   *
   */
  @ManagedBean(name="dtObservationsView")
  //@ViewScoped
  @SessionScoped
  public class ObservationsView implements Serializable {
  
      /**
       * 
       */
      private static final long serialVersionUID = -3273738869247166831L;
  
      private Set&lt;Observation&gt; observations;
  
      private Set&lt;Adr&gt; addresses;
  
      private Set&lt;Assignment&gt; assignments;
  
      private Set&lt;Prfl&gt; profiles;
  
      private Set&lt;PrflDetail&gt; profileDetails;
  
      private Set&lt;Cntct&gt; contacts;
  
  //  private List&lt;Citation&gt; citations;
  
      private Set&lt;Evidence&gt; evidences;
  
      private Set&lt;ActionResponse&gt; actionResponses;
  
      private Set&lt;ActionResponse&gt; evidenceActionResponses;
  
      private Set&lt;AtchmntDetail&gt; attachmentDetails;
  
      private Set&lt;Atchmnt&gt; attachments;
  
      private Set&lt;RefCd&gt; refCds;
  
      private Set&lt;RefCd&gt; addressRefCds;
  
      private Set&lt;RefCd&gt; observationRefCds;
  
      private Set&lt;RefCd&gt; attachmentRefCds;
  
      @ManagedProperty("#{observationService}")
      private ObservationService observationService;
  
      @ManagedProperty("#{addressService}")
      private AddressService addressService;
  
      private String feiNumber;
  
      public ObservationsView(){
          super();
      }
  
      @PostConstruct
      public void init() {
          this.observations = new HashSet&lt;Observation&gt;();
          this.feiNumber = new String();
      }
  
  //    @PostConstruct
  //    public void init() {
  //        try {
  //          this.observations = new HashSet&lt;Observation&gt;(this.observationService.getObservations());
  //      } catch (Exception e) {
  //          // TODO Auto-generated catch block
  //          e.printStackTrace();
  //      }
  //    }
  
      public Set&lt;RefCd&gt; getRefCds() {
          return refCds;
      }
  
      public void setRefCds(Set&lt;RefCd&gt; refCds) {
          this.refCds = refCds;
      }
  
  //  public List&lt;Citation&gt; getCitations() {
  //      return citations;
  //  }
  //
  //  public void setCitations(List&lt;Citation&gt; citations) {
  //      this.citations = citations;
  //  }
  
  
      public AddressService getAddressService() {
          return addressService;
      }
  
      public void setAddressService(AddressService addressService) {
          this.addressService = addressService;
      }
  
      public void setObservationService(ObservationService service) {
          this.observationService = service;
      }
  
      public ObservationService getObservationService(){
          return this.observationService;
      }
  
      public Set&lt;Observation&gt; getObservations(){
          return this.observations;
      }
  
      public void getObservationsByFein(){
          if( this.feiNumber != null ){
              try {
                  this.observations = new HashSet&lt;Observation&gt;(this.observationService.getObservationsByFein(new Long(feiNumber)));
                  this.addresses = new HashSet&lt;Adr&gt;(this.addressService.getAddressesByFein(new Long(feiNumber)));
                  this.assignments = new HashSet&lt;Assignment&gt;();
                  this.profiles = new HashSet&lt;Prfl&gt;();
                  this.profileDetails = new HashSet&lt;PrflDetail&gt;();
                  this.contacts = new HashSet&lt;Cntct&gt;();
                  this.refCds = new HashSet&lt;RefCd&gt;();
                  this.addressRefCds = new HashSet&lt;RefCd&gt;();
                  this.observationRefCds = new HashSet&lt;RefCd&gt;();
                  this.attachmentRefCds = new HashSet&lt;RefCd&gt;();
  //              this.citations = new HashSet&lt;Citation&gt;();
                  this.evidences = new HashSet&lt;Evidence&gt;();
  //              this.citationEvidences = new HashSet&lt;Evidence&gt;();
                  this.actionResponses = new HashSet&lt;ActionResponse&gt;();
                  this.evidenceActionResponses = new HashSet&lt;ActionResponse&gt;();
                  this.attachmentDetails = new HashSet&lt;AtchmntDetail&gt;();
                  this.attachments = new HashSet&lt;Atchmnt&gt;();
  //              Set&lt;Citation&gt; citations = null;
                  Set&lt;Evidence&gt; evidences = null;
                  Set&lt;ActionResponse&gt; actionResponses = null;
                  for( Observation observation: this.observations){
                      Assignment assignment = observation.getAssignment();
                      if( assignment != null &amp;&amp; assignment.getId() != null ){
                          this.assignments.add(assignment);
                          Prfl profile = assignment.getProfile();
                          if( profile != null &amp;&amp; profile.getId() != null ){
                              this.profiles.add(profile);
                              for( PrflDetail profileDetail: profile.getPrflDetails()){
                                  this.profileDetails.add(profileDetail);
                                  Cntct contact = profileDetail.getCntct();
                                  if( contact != null &amp;&amp; contact.getId() != null ){
                                      this.contacts.add(contact);
                                      RefCd refCd = contact.getRefCd();
                                      if( refCd != null ){
                                          this.refCds.add(refCd);
                                      }
                                  }
                              }
                          }
                      }
                      this.observationRefCds.add(observation.getRefCd());
  //                  citations = observation.getCitations();
  //                  this.citations.addAll(citations);
  //                  for( Citation citation: this.citations ){
  //                      if( citation.getEvidences() != null ){
  //                          this.citationEvidences.addAll(citation.getEvidences());
  //                      }
  //                  }
                      actionResponses = observation.getActionResponses();
                      this.actionResponses.addAll(actionResponses);
  
                      evidences = observation.getEvidences();
                      Set&lt;ActionResponse&gt; evidenceActionResponses = null;
                      Set&lt;AtchmntDetail&gt; attachmentDetails = null;
  
                      for( Evidence evidence: evidences){
                          evidenceActionResponses = evidence.getActionResponses();
                          attachmentDetails = evidence.getAtchmtDet();
                          this.evidenceActionResponses.addAll(evidenceActionResponses);
                          this.attachmentDetails.addAll(attachmentDetails);
                          for( AtchmntDetail attachmentDetail: attachmentDetails ){
                              this.attachments.add(attachmentDetail.getAtchmnt());
                          }
                      }
                      for( Atchmnt attachment: this.attachments ){
                          this.attachmentRefCds.add(attachment.getRefCd());
                      }
                      this.evidences.addAll(evidences);
                  }
                  for( Adr address: this.addresses ){
                      RefCd refCd = address.getRefCd();
                      this.addressRefCds.add(refCd);                  
                  }
              } catch (Exception e) {
                  // TODO Auto-generated catch block
                  e.printStackTrace();
              }
          }
  //        return this.observations;     
      }
  
      public Set&lt;Prfl&gt; getProfiles() {
          return profiles;
      }
  
      public void setProfiles(Set&lt;Prfl&gt; profiles) {
          this.profiles = profiles;
      }
  
      public void setObservations(Set&lt;Observation&gt; observations){
          this.observations = observations;
      }
  
      public String getFeiNumber() {
          return feiNumber;
      }
  
      public void setFeiNumber(String feiNumber) {
          this.feiNumber = feiNumber;
      }
  
      public Set&lt;Adr&gt; getAddresses() {
          return addresses;
      }
  
      public void setAddresses(Set&lt;Adr&gt; addresses) {
          this.addresses = addresses;
      }
  
      public Set&lt;Assignment&gt; getAssignments() {
          return assignments;
      }
  
      public void setAssignments(Set&lt;Assignment&gt; assignments) {
          this.assignments = assignments;
      }
  
      public Set&lt;PrflDetail&gt; getProfileDetails() {
          return profileDetails;
      }
  
      public void setProfileDetails(Set&lt;PrflDetail&gt; profileDetails) {
          this.profileDetails = profileDetails;
      }
  
      public Set&lt;Cntct&gt; getContacts() {
          return contacts;
      }
  
      public void setContacts(Set&lt;Cntct&gt; contacts) {
          this.contacts = contacts;
      }
  
      public Set&lt;Evidence&gt; getEvidences() {
          return evidences;
      }
  
      public void setEvidences(Set&lt;Evidence&gt; evidences) {
          this.evidences = evidences;
      }
  
      public Set&lt;ActionResponse&gt; getActionResponses() {
          return actionResponses;
      }
  
      public void setActionResponses(Set&lt;ActionResponse&gt; actionResponses) {
          this.actionResponses = actionResponses;
      }
  
      public Set&lt;ActionResponse&gt; getEvidenceActionResponses() {
          return evidenceActionResponses;
      }
  
      public void setEvidenceActionResponses(Set&lt;ActionResponse&gt; evidenceActionResponses) {
          this.evidenceActionResponses = evidenceActionResponses;
      }
  
      public Set&lt;RefCd&gt; getAddressRefCds() {
          return addressRefCds;
      }
  
      public void setAddressRefCds(Set&lt;RefCd&gt; addressRefCds) {
          this.addressRefCds = addressRefCds;
      }
  
      public Set&lt;RefCd&gt; getObservationRefCds() {
          return observationRefCds;
      }
  
      public void setObservationRefCds(Set&lt;RefCd&gt; observationRefCds) {
          this.observationRefCds = observationRefCds;
      }
  
      public Set&lt;AtchmntDetail&gt; getAttachmentDetails() {
          return attachmentDetails;
      }
  
      public void setAttachmentDetails(Set&lt;AtchmntDetail&gt; attachmentDetails) {
          this.attachmentDetails = attachmentDetails;
      }
  
      public Set&lt;Atchmnt&gt; getAttachments() {
          return attachments;
      }
  
      public void setAttachments(Set&lt;Atchmnt&gt; attachments) {
          this.attachments = attachments;
      }
  
      public Set&lt;RefCd&gt; getAttachmentRefCds() {
          return attachmentRefCds;
      }
  
      public void setAttachmentRefCds(Set&lt;RefCd&gt; attachmentRefCds) {
          this.attachmentRefCds = attachmentRefCds;
      }
  
  }
  </code></pre>
  
  <p>stack trace:</p>
  
  <pre><code>    WARNING: JSF1091: No mime type could be found for file images/ui-icons_38667f_256x240.png.  To resolve this, add a mime-type mapping to the applications web.xml.
  Jul 31, 2017 2:07:05 PM com.sun.faces.context.PartialViewContextImpl processPartial
  INFO: javax.el.PropertyNotFoundException: //C:/Users/Denis.Putnam/Documents/workspace-sts-3.8.4.RELEASE/pcocar_car_web/src/main/webapp/observations.xhtml @20,71 value="#{dtObservationsView.feiNumber}": Target Unreachable, identifier 'dtObservationsView' resolved to null
  </code></pre>