2012-04-16 2 views
0

현재 JSF 2.0 웹 애플리케이션에서 작업 중이며 내 작업을 내 서버의 저장소에 저장합니다. 나는 새 컴퓨터를 구입하고 그것에 대한 프로젝트를 체크 아웃했다. 오류가 표시되지 않습니다. Eclipse IDE Helios를 사용하고 있습니다. 거기에 tomcat v7 서버를 설치했습니다. 나는 그것을 시작한다, 문제 없다. 하지만 내 프로젝트를 볼 때 올바르게 표시되지 않습니다.JSF 2.0 웹 애플리케이션이 템플릿을 렌더링하지 않습니다.

enter image description here 을 그리고 HTML은 다음과 같이 렌더링 : 그것은 다음과 같습니다

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 

<html xmlns="http://www.w3.org/1999/xhtml" 
    xmlns:ui="http://java.sun.com/jsf/facelets" 
    xmlns:h="http://java.sun.com/jsf/html" 
    xmlns:f="http://java.sun.com/jsf/core"> 

<ui:composition template="/WEB-INF/templates/base.xhtml"> 

    <ui:define name="head"> 
     <style type="text/css"> 
      #content{margin:0 10px !important;} 
     </style>   
    </ui:define> 

    <ui:define name="sidebar1"></ui:define> 

    <ui:define name="content"> 


      <h:panelGrid columns="2"> 
      <div class="login"> 
      <img src="/miloWeb/images/medical.jpg" /> 
      </div> 
      <h:column> 
      <center> 
       <div class="login"> 
        <h4 style="color: #FF0000;"><h:outputText value="#{loginBean.message}"/></h4><br/> 
        <ul style="list-style-type:none; width: 265px; text-align: left;" > 
         <li>User ID</li> 
         <li><h:inputText id="userId" styleClass="loginText" value="#{loginBean.user.userID}"></h:inputText></li> 
         <li>Password</li> 
         <li><h:inputSecret id="password" styleClass="loginText" value="#{loginBean.user.password}"></h:inputSecret></li> 
         <li><h:commandButton id="login" value="Login" action="#{loginBean.login}" styleClass="button"></h:commandButton></li> 
        </ul> 
       </div> 
      </center> 
      </h:column> 
      </h:panelGrid> 
    </ui:define> 

</ui:composition> 
</html> 

을하지만 난 내 원래 컴퓨터 (하나의 그것에서 작동)에서 실행하는 경우는 다음과 같아야합니다

enter image description here

그리고 HTML은 다음과 같이 렌더링 :

<?xml version="1.0" encoding="utf-8"?> 
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> 
<html xmlns="http://www.w3.org/1999/xhtml"><head><link type="text/css" rel="stylesheet" href="/miloWeb/faces/javax.faces.resource/theme.css?ln=primefaces-aristo" /><script type="text/javascript" src="/miloWeb/faces/javax.faces.resource/jquery/jquery.js?ln=primefaces&amp;v=3.2"></script><script type="text/javascript" src="/miloWeb/faces/javax.faces.resource/primefaces.js?ln=primefaces&amp;v=3.2"></script> 
      <title>MILO</title> 

     <link rel="stylesheet" type="text/css" href="/miloWeb/css/redmond/jquery-ui-1.8.11.custom.css" media="screen" /> 
     <link rel="stylesheet" type="text/css" href="/miloWeb/css/style.css" media="screen" /> 
     <link rel="stylesheet" type="text/css" href="/miloWeb/css/view.css" media="screen" /> 
     <link rel="stylesheet" type="text/css" href="/miloWeb/css/ezmark.css" media="screen" /> 


     <!--[if IE]> 
      <style type="text/css"> 
       /* place css fixes for all versions of IE in this conditional comment */ 
       .milo #content { zoom: 1; } 
       /* the above proprietary zoom property gives IE the hasLayout it may need to avoid several bugs */ 
      </style> 
     <![endif]--> 

     <script type="text/javascript" src="/miloWeb/js/jquery.ezmark.js"></script> 
     <script type="text/javascript" src="/miloWeb/js/jquery.maskedinput.js"></script> 
     <script type="text/javascript" src="/miloWeb/js/random.js"></script> 
     <script type="text/javascript" src="/miloWeb/js/jquery-ui-1.8.11.custom.min.js"></script> 


     <script type="text/javascript"> 
      $(document).ready(function(){ 
       $(".button").button(); 
      }); 

      function loading(){ 
       $("#loadingPopUp").dialog("open"); 
       return false; 
      } 

      function unloading(){ 
       $("#loadingPopUp").dialog("close"); 
       return false; 
      } 
     </script> 
     <style type="text/css"> 
      #content{margin:0 10px !important;} 
     </style></head><body class="milo"> 
    <form id="j_idt11" name="j_idt11" method="post" action="/miloWeb/faces/pages/index.xhtml;jsessionid=735F094AD14A3977F9976960A61EEB0C" class="miloForm" enctype="multipart/form-data"> 
    <input type="hidden" name="j_idt11" value="j_idt11" /> 

      <div id="container"> 
       <div id="header"><html xmlns="http://www.w3.org/1999/xhtml"><body> 

    <div> 
     <h1 class="headerTitle">MILO Chart</h1> 
     <div class="headerTreadmark">Medical Information Leading Operations Chart</div> 
     <div class="clear"></div> 
    </div> 

    <div id="headerInfo"><table> 
    <tbody> 
    <tr><td></td></tr></tbody> 
    </table> 

    </div><div id="j_idt11:j_idt42"></div><script id="j_idt11:j_idt42_s" type="text/javascript">PrimeFaces.cw('AjaxStatus','widget_j_idt11_j_idt42',{id:'j_idt11:j_idt42'});widget_j_idt11_j_idt42.bindCallback('ajaxStart',function(){loading();});widget_j_idt11_j_idt42.bindCallback('ajaxSuccess',function(){unloading();});</script></body> 
</html> 
       </div> 

       <div id="sidebar1">    
       </div> 
       <br /> 
       <br /> 
       <div id="content"><table> 
<tbody> 
<tr> 
<td> 
      <div class="login"> 
      <img src="/miloWeb/images/medical.jpg" /> 
      </div></td> 
<td> 
      <center> 
       <div class="login"> 
        <h4 style="color: #FF0000;"></h4><br /> 
        <ul style="list-style-type:none; width: 265px; text-align: left;"> 
         <li>User ID</li> 
         <li><input id="j_idt11:userId" type="text" name="j_idt11:userId" class="loginText" /></li> 
         <li>Password</li> 
         <li><input id="j_idt11:password" type="password" name="j_idt11:password" value="" class="loginText" /></li> 
         <li><input id="j_idt11:login" type="submit" name="j_idt11:login" value="Login" class="button" /></li> 
        </ul> 
       </div> 
      </center></td> 
</tr> 
</tbody> 
</table> 

       </div> 

       <br class="clear" /> 

       <div id="footer"><div id="template_footer_id" style="text-align: center;">&copy; 2012 Bravo Technologies. 
</div> 
       </div> 
      </div><input type="hidden" name="javax.faces.ViewState" id="javax.faces.ViewState" value="H4sIAAAAAAAAAM1WX2gcRRif3p/ExBjPtIYWSRWMStTumdjEapDmai7k8JoevZha+3DO7U5ye5nbmczM3u0FDPZFH4pQUBEhog8+9KFvfepLRUopFBpQEEERRHxVfFAEfXFm9m73LtmQWpA6D9/O7cz3ze/7fb/95i7/ApKUM/BQFdah4QobG/OQV05Cmuz97svrw29+FQexOdCPCbTmoCkIy4E+UWGIVwi2PHp8Bqgx0LhP2pSaCZCqlmxLjI+/RCHnDcIsl4H95/L6BAydFeNUuYpMMX1x6/VPU3wMxwDwqHRNUDkE6NHuL7hrYAPE5etYMEtSGenAuYhQB7/4u/jz6ve32qH2hd51BkbVfs9YhibiBqojRxgFwkXGshbJko0aWfXqtwtXb3ybunJVhWDgyZ0ur5AaJY6cFZtcoJp2urZy7PelraVB32lkp1PH3idWP7pu/3Boy9/7cEi4XvUTyb/Xt3Cw9tYlnYcsy/5wV4Yx2MzbXHjnvx75+Cb8JA725UCC2+tIpxxrJJTl27CbbdRGUUCB5mXVECvCOmJnb115+f3N2ydjIJYHfSaWxVqANSTAkOY3rfhNFwWznZXpPOjn0sfSMQQY9nfYJF1EzIbYXodljKY9SuuK9xRXdkiAbDSS13IBl6NRrKoskYNYxoJUIBbWsh13XMYyuOu0IjPkyKRWbWFURA2XypDbplE0mU3Fab2EGJUyOLwbmlOuoK4A4fCo52vxwbaU/efRSFHKEf7aYGBy76wLjFDERPNV1OQFZtclq+2zh7Q8BkOJZx231rkoYR2AQtal7ArEFytQZBgqIqHJSXUoQZNFlR1uzQU43M2csli6GplCIZ/LznoSvvHv4HdCU6c8LkB/CC8AFdeg4i0gWiagA+FYay7lO7kLRLtGsTGLlqGLxZz/cjRDKW4uklXk/HHp2bObM9WZAcVQYww8mj6TPXEktzCXlqqiWBLM0xUEpRgMT6lE9oipa+tTE54X9pzn9y6vmozeAdM6J83HM7tQoGw6igH1mGg8BUYiMpDSRl34X/TxD7Z16nLEclaAt9VSk2p5fM/s4rL6R3arvmqUpwnZs/g9spGInBXcKVrDOUegFcSGfvrs8z/Pv3ssplpXsg6xi6TWU+G+BbdWRuydyx+O3P/Bjxfa3Ty+81OcjL4f7k2totW2LMnaprYpv1q9firP/R9SUPa4F4hkIgJTTxem3m5MO08Jm03CkfdJ8KsX22UGWXMbzKQOkNwFJg7c+ymza0jrsmO9GqynqmsuYs20/zCq3NtQS08LMMBal8Bik8rL65FOhcs/MsRlJmpdF92qPUEIRtC5/Rh7+5vNv36Vqn2jrVoKVHBTnntIhyvpcCVMTChs4pTms5nZOyPwvyuqsq689xJ1Yltdt5taaSqzvv27Ojp1b6V4xmsrMaoZ36USO4WiRXVXElR2LVJ6D4TSVLrTvCvTCHi+SL1/ADdCMJVqCwAA" autocomplete="off" /> 
</form></body> 

</html> 

위에있는 내 이미지가 보이지 않고 입력 텍스트 상자가 누락되어 있으며 명령 단추도 없습니다. 나는 파일을 검사했지만 모두 거기에있는 것처럼 보입니다.

앱의 템플리트 Aspect가 작동하지 않는 것처럼 보이므로 "헤더"가 표시되지 않는 이유와 나머지 속성이 제대로 작동하지 않는 이유가 있습니다.

모든 도움은 크게 감사드립니다. 나는 매우 감사 할 것이다!

편집 : 작동

한 :

Apr 17, 2012 12:24:49 AM org.apache.catalina.core.AprLifecycleListener init 
INFO: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: C:\Program Files\Java\jre6\bin;.;C:\Windows\Sun\Java\bin;C:\Windows\system32;C:\Windows;C:\Program Files\Common Files\Microsoft Shared\Windows Live;C:\Program Files (x86)\Common Files\Microsoft Shared\Windows Live;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files\WIDCOMM\Bluetooth Software\;C:\Program Files\WIDCOMM\Bluetooth Software\syswow64;C:\Program Files\Intel\WiFi\bin\;C:\Program Files\Common Files\Intel\WirelessCommon\;C:\Program Files (x86)\Common Files\Roxio Shared\10.0\DLLShared\;C:\Program Files (x86)\Common Files\Roxio Shared\DLLShared\;C:\Program Files (x86)\Windows Live\Shared;C:\Program Files (x86)\QuickTime\QTSystem\;C:\Program Files\SlikSvn\bin\;C:\Program Files\Java\jdk1.6\bin 
Apr 17, 2012 12:24:50 AM org.apache.coyote.http11.Http11Protocol init 
INFO: Initializing Coyote HTTP/1.1 on http-8080 
Apr 17, 2012 12:24:50 AM org.apache.coyote.ajp.AjpProtocol init 
INFO: Initializing Coyote AJP/1.3 on ajp-8009 
Apr 17, 2012 12:24:50 AM org.apache.catalina.startup.Catalina load 
INFO: Initialization processed in 909 ms 
Apr 17, 2012 12:24:50 AM org.apache.catalina.core.StandardService startInternal 
INFO: Starting service Catalina 
Apr 17, 2012 12:24:50 AM org.apache.catalina.core.StandardEngine startInternal 
INFO: Starting Servlet Engine: Apache Tomcat/7.0.4 
Apr 17, 2012 12:24:50 AM org.apache.catalina.startup.HostConfig deployDescriptor 
INFO: Deploying configuration descriptor miloWeb.xml from C:\tomcat\conf\Catalina\localhost 
Apr 17, 2012 12:25:10 AM org.apache.catalina.startup.TaglibUriRule body 
INFO: TLD skipped. URI: http://java.sun.com/jsf/core is already defined 
Apr 17, 2012 12:25:10 AM org.apache.catalina.startup.TaglibUriRule body 
INFO: TLD skipped. URI: http://shiro.apache.org/tags is already defined 
Apr 17, 2012 12:25:11 AM com.sun.faces.config.ConfigureListener contextInitialized 
INFO: Initializing Mojarra 2.0.6 (FCS FCS) for context '/miloWeb' 
Apr 17, 2012 12:25:13 AM com.sun.faces.spi.InjectionProviderFactory createInstance 
INFO: JSF1048: PostConstruct/PreDestroy annotations present. ManagedBeans methods marked with these annotations will have said annotations processed. 
Apr 17, 2012 12:25:13 AM com.sun.faces.config.processor.FaceletTaglibConfigProcessor processComponent 
WARNING: JSF1029: Application is versioned at 2.0 (either explicitly by the version of /WEB-INF/faces-config.xml or the lack of a /WEB-INF/faces-confg.xml), however class 'org.apache.myfaces.custom.aliasbean.AliasBeanTagHandler' depends on a legacy facelet class. The facelet artifact represented by this class will not be registered. 
Apr 17, 2012 12:25:13 AM com.sun.faces.config.processor.FaceletTaglibConfigProcessor processComponent 
WARNING: JSF1029: Application is versioned at 2.0 (either explicitly by the version of /WEB-INF/faces-config.xml or the lack of a /WEB-INF/faces-confg.xml), however class 'org.apache.myfaces.custom.aliasbean.AliasBeansScopeTagHandler' depends on a legacy facelet class. The facelet artifact represented by this class will not be registered. 
Apr 17, 2012 12:25:13 AM com.sun.faces.config.processor.FaceletTaglibConfigProcessor processComponent 
WARNING: JSF1029: Application is versioned at 2.0 (either explicitly by the version of /WEB-INF/faces-config.xml or the lack of a /WEB-INF/faces-confg.xml), however class 'org.apache.myfaces.custom.calendar.HtmlInputCalendarTagHandler' depends on a legacy facelet class. The facelet artifact represented by this class will not be registered. 
Apr 17, 2012 12:25:13 AM com.sun.faces.config.processor.FaceletTaglibConfigProcessor processComponent 
WARNING: JSF1029: Application is versioned at 2.0 (either explicitly by the version of /WEB-INF/faces-config.xml or the lack of a /WEB-INF/faces-confg.xml), however class 'org.apache.myfaces.custom.date.HtmlInputDateTagHandler' depends on a legacy facelet class. The facelet artifact represented by this class will not be registered. 
Apr 17, 2012 12:25:13 AM com.sun.faces.config.processor.FaceletTaglibConfigProcessor processComponent 
WARNING: JSF1029: Application is versioned at 2.0 (either explicitly by the version of /WEB-INF/faces-config.xml or the lack of a /WEB-INF/faces-confg.xml), however class 'org.apache.myfaces.custom.schedule.ScheduleTagHandler' depends on a legacy facelet class. The facelet artifact represented by this class will not be registered. 
Apr 17, 2012 12:25:13 AM com.sun.faces.config.processor.FaceletTaglibConfigProcessor processComponent 
WARNING: JSF1029: Application is versioned at 2.0 (either explicitly by the version of /WEB-INF/faces-config.xml or the lack of a /WEB-INF/faces-confg.xml), however class 'org.apache.myfaces.custom.tabbedpane.HtmlPanelTabbedPaneTagHandler' depends on a legacy facelet class. The facelet artifact represented by this class will not be registered. 
Apr 17, 2012 12:25:13 AM com.sun.faces.config.processor.FaceletTaglibConfigProcessor processComponent 
WARNING: JSF1029: Application is versioned at 2.0 (either explicitly by the version of /WEB-INF/faces-config.xml or the lack of a /WEB-INF/faces-confg.xml), however class 'org.apache.myfaces.custom.tree.taglib.TreeTagHandler' depends on a legacy facelet class. The facelet artifact represented by this class will not be registered. 
Apr 17, 2012 12:25:13 AM com.sun.faces.config.processor.FaceletTaglibConfigProcessor processValidator 
WARNING: JSF1029: Application is versioned at 2.0 (either explicitly by the version of /WEB-INF/faces-config.xml or the lack of a /WEB-INF/faces-confg.xml), however class 'org.apache.myfaces.validator.ValidatorBaseTagHandler' depends on a legacy facelet class. The facelet artifact represented by this class will not be registered. 
Apr 17, 2012 12:25:13 AM com.sun.faces.config.processor.FaceletTaglibConfigProcessor processValidator 
WARNING: JSF1029: Application is versioned at 2.0 (either explicitly by the version of /WEB-INF/faces-config.xml or the lack of a /WEB-INF/faces-confg.xml), however class 'org.apache.myfaces.validator.ValidatorBaseTagHandler' depends on a legacy facelet class. The facelet artifact represented by this class will not be registered. 
Apr 17, 2012 12:25:13 AM com.sun.faces.config.processor.FaceletTaglibConfigProcessor processValidator 
WARNING: JSF1029: Application is versioned at 2.0 (either explicitly by the version of /WEB-INF/faces-config.xml or the lack of a /WEB-INF/faces-confg.xml), however class 'org.apache.myfaces.validator.ValidatorBaseTagHandler' depends on a legacy facelet class. The facelet artifact represented by this class will not be registered. 
Apr 17, 2012 12:25:13 AM com.sun.faces.config.processor.FaceletTaglibConfigProcessor processValidator 
WARNING: JSF1029: Application is versioned at 2.0 (either explicitly by the version of /WEB-INF/faces-config.xml or the lack of a /WEB-INF/faces-confg.xml), however class 'org.apache.myfaces.validator.ValidatorBaseTagHandler' depends on a legacy facelet class. The facelet artifact represented by this class will not be registered. 
Apr 17, 2012 12:25:13 AM com.sun.faces.config.processor.FaceletTaglibConfigProcessor processHandlerClass 
WARNING: JSF1029: Application is versioned at 2.0 (either explicitly by the version of /WEB-INF/faces-config.xml or the lack of a /WEB-INF/faces-confg.xml), however class '[handler-class: null]' depends on a legacy facelet class. The facelet artifact represented by this class will not be registered. 
Apr 17, 2012 12:25:13 AM com.sun.faces.config.processor.FaceletTaglibConfigProcessor processHandlerClass 
WARNING: JSF1029: Application is versioned at 2.0 (either explicitly by the version of /WEB-INF/faces-config.xml or the lack of a /WEB-INF/faces-confg.xml), however class '[handler-class: null]' depends on a legacy facelet class. The facelet artifact represented by this class will not be registered. 
Apr 17, 2012 12:25:13 AM com.sun.faces.config.processor.FaceletTaglibConfigProcessor processHandlerClass 
WARNING: JSF1029: Application is versioned at 2.0 (either explicitly by the version of /WEB-INF/faces-config.xml or the lack of a /WEB-INF/faces-confg.xml), however class '[handler-class: null]' depends on a legacy facelet class. The facelet artifact represented by this class will not be registered. 
Apr 17, 2012 12:25:13 AM com.sun.faces.config.processor.FaceletTaglibConfigProcessor processHandlerClass 
WARNING: JSF1029: Application is versioned at 2.0 (either explicitly by the version of /WEB-INF/faces-config.xml or the lack of a /WEB-INF/faces-confg.xml), however class '[handler-class: null]' depends on a legacy facelet class. The facelet artifact represented by this class will not be registered. 
Apr 17, 2012 12:25:13 AM org.primefaces.webapp.PostConstructApplicationEventListener processEvent 
INFO: Running on PrimeFaces 3.2 
Apr 17, 2012 12:25:13 AM org.apache.catalina.startup.HostConfig deployDirectory 
INFO: Deploying web application directory docs 
Apr 17, 2012 12:25:14 AM org.apache.catalina.startup.HostConfig deployDirectory 
INFO: Deploying web application directory examples 
Apr 17, 2012 12:25:14 AM org.apache.catalina.core.ApplicationContext log 
INFO: ContextListener: contextInitialized() 
Apr 17, 2012 12:25:14 AM org.apache.catalina.core.ApplicationContext log 
INFO: SessionListener: contextInitialized() 
Apr 17, 2012 12:25:14 AM org.apache.catalina.startup.HostConfig deployDirectory 
INFO: Deploying web application directory host-manager 
Apr 17, 2012 12:25:14 AM org.apache.catalina.startup.HostConfig deployDirectory 
INFO: Deploying web application directory manager 
Apr 17, 2012 12:25:14 AM org.apache.catalina.startup.HostConfig deployDirectory 
INFO: Deploying web application directory ROOT 
Apr 17, 2012 12:25:14 AM org.apache.coyote.http11.Http11Protocol start 
INFO: Starting Coyote HTTP/1.1 on http-8080 
Apr 17, 2012 12:25:14 AM org.apache.coyote.ajp.AjpProtocol start 
INFO: Starting Coyote AJP/1.3 on ajp-8009 
Apr 17, 2012 12:25:14 AM org.apache.catalina.startup.Catalina start 
INFO: Server startup in 24304 ms 
추가 web.xml의 로컬 호스트 시작 콘솔에서 Tomcatv7.0 서버에 대한 AS

<?xml version="1.0" encoding="UTF-8"?> 
<web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:web="http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd" id="WebApp_ID" version="3.0"> 
    <display-name>miloWeb</display-name> 
    <welcome-file-list> 
    <welcome-file>faces/pages/index.xhtml</welcome-file> 
    </welcome-file-list> 
    <listener> 
    <listener-class>com.bravo.listeners.ServletListener</listener-class> 
    </listener> 
    <servlet> 
    <servlet-name>Faces Servlet</servlet-name> 
    <servlet-class>javax.faces.webapp.FacesServlet</servlet-class> 
    <load-on-startup>1</load-on-startup> 
    </servlet> 
    <servlet-mapping> 
    <servlet-name>Faces Servlet</servlet-name> 
    <url-pattern>/faces/*</url-pattern> 
    </servlet-mapping> 
    <servlet> 
     <servlet-name>PdfServlet</servlet-name> 
     <servlet-class>com.bravo.servlets.PdfServlet</servlet-class> 
    </servlet>  
    <servlet-mapping> 
     <servlet-name>PdfServlet</servlet-name> 
     <url-pattern>/PdfServlet</url-pattern> 
    </servlet-mapping> 
    <filter> 
     <filter-name>MyFacesExtensionsFilter</filter-name> 
     <filter-class>org.apache.myfaces.webapp.filter.ExtensionsFilter</filter-class> 
    </filter> 
    <filter-mapping> 
     <filter-name>MyFacesExtensionsFilter</filter-name> 
     <servlet-name>Faces Servlet</servlet-name> 
    </filter-mapping> 
    <context-param> 
    <description> 
     This is to Have separated faces.config files    
    </description> 
    <param-name>javax.faces.CONFIG_FILES</param-name> 
    <param-value> 
     /pages/history/faces-config.xml, 
     /pages/contactInformation/faces-config.xml, 
     /pages/childHealthRecord/faces-config.xml, 
     /pages/dashboard/faces-config.xml, 
     /pages/insurance/faces-config.xml, 
     /pages/search/faces-config.xml, 
     /pages/labs/faces-config.xml, 
     /pages/patient/faces-config.xml, 
     /pages/physical/faces-config.xml, 
     /pages/notes/faces-config.xml, 
     /pages/scheduler/faces-config.xml, 
     /pages/settings/faces-config.xml, 
     /pages/orderEntry/faces-config.xml, 
     /pages/vitals/faces-config.xml 
    </param-value> 
    </context-param> 
    <context-param> 
    <param-name>javax.faces.DEFAULT_SUFFIX</param-name> 
    <param-value>*.xhtml</param-value> 
    </context-param> 
    <context-param> 
    <description>State saving method: 'client' or 'server' (=default). See JSF Specification 2.5.2</description> 
    <param-name>javax.faces.STATE_SAVING_METHOD</param-name> 
    <param-value>client</param-value> 
    </context-param> 
    <context-param> 
    <param-name>javax.servlet.jsp.jstl.fmt.localizationContext</param-name> 
    <param-value>resources.application</param-value> 
    </context-param> 
</web-app> 

작동하지 않는 것 :

 Apr 17, 2012 12:25:03 AM org.apache.catalina.core.AprLifecycleListener init 
INFO: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: C:\Program Files\Java\jre6\bin;C:\windows\Sun\Java\bin;C:\windows\system32;C:\windows;C:\Program Files\Common Files\Microsoft Shared\Windows Live;C:\Program Files (x86)\Common Files\Microsoft Shared\Windows Live;C:\windows\system32;C:\windows;C:\windows\System32\Wbem;C:\windows\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\Windows Live\Shared;C:\Program Files (x86)\ATI Technologies\ATI.ACE\Core-Static;C:\Program Files\SlikSvn\bin\;C:\Program Files\Java\jdk1.6.0_29\bin;. 
Apr 17, 2012 12:25:03 AM org.apache.tomcat.util.digester.SetPropertiesRule begin 
WARNING: [SetPropertiesRule]{Server/Service/Engine/Host/Context} Setting property 'source' to 'org.eclipse.jst.jee.server:miloWeb' did not find a matching property. 
Apr 17, 2012 12:25:03 AM org.apache.coyote.http11.Http11Protocol init 
INFO: Initializing Coyote HTTP/1.1 on http-8080 
Apr 17, 2012 12:25:03 AM org.apache.coyote.ajp.AjpProtocol init 
INFO: Initializing Coyote AJP/1.3 on ajp-8009 
Apr 17, 2012 12:25:03 AM org.apache.catalina.startup.Catalina load 
INFO: Initialization processed in 972 ms 
Apr 17, 2012 12:25:03 AM org.apache.catalina.core.StandardService startInternal 
INFO: Starting service Catalina 
Apr 17, 2012 12:25:03 AM org.apache.catalina.core.StandardEngine startInternal 
INFO: Starting Servlet Engine: Apache Tomcat/7.0.4 
Apr 17, 2012 12:25:25 AM org.apache.catalina.startup.TaglibUriRule body 
INFO: TLD skipped. URI: http://java.sun.com/jsf/core is already defined 
Apr 17, 2012 12:25:25 AM org.apache.catalina.startup.TaglibUriRule body 
INFO: TLD skipped. URI: http://shiro.apache.org/tags is already defined 
Apr 17, 2012 12:25:26 AM com.sun.faces.config.ConfigureListener contextInitialized 
INFO: Initializing Mojarra (1.2_12-b01-FCS) for context '/miloWeb' 
Apr 17, 2012 12:25:26 AM com.sun.faces.spi.InjectionProviderFactory createInstance 
INFO: JSF1048: PostConstruct/PreDestroy annotations present. ManagedBeans methods marked with these annotations will have said annotations processed. 
Apr 17, 2012 12:25:27 AM org.apache.coyote.http11.Http11Protocol start 
INFO: Starting Coyote HTTP/1.1 on http-8080 
Apr 17, 2012 12:25:27 AM org.apache.coyote.ajp.AjpProtocol start 
INFO: Starting Coyote AJP/1.3 on ajp-8009 
Apr 17, 2012 12:25:27 AM org.apache.catalina.startup.Catalina start 
INFO: Server startup in 23737 ms 
+0

이 스크린 샷은 많이하지 그래서, 거의 완전히 응용 프로그램을 구현하는 방법에 따라 달라집니다 무엇이 잘못되었는지 알아내는 데 도움이됩니다. 어떤 문제 해결 방법을 시도 했습니까? 이전 Tomcat과 새로운 Tomcat 사이에 구성 차이점이 있습니까? 아마도 등록 정보 파일과 관련이 있습니까? 두 브라우저에서 렌더링되는 실제 HTML을 비교해 보셨습니까? – Wyzard

+0

tomcat7 구성을 확인했습니다. 항아리, 같은. web.xml, 동일. 그러나 어떤 이유로 그것은 같은 것을 렌더링하지 않습니다. 내 업데이트 된 HTML을보십시오. – Myy

+0

그 이유는 앱의 템플릿 측면이 작동하지 않는 것입니다. 따라서 헤더가 표시되지 않는 이유는 무엇이든간에 푸터는 표시되지 않습니다. 왜 그걸 렌더링하지 않을거야 ... 왜? 또는이 문제를 어떻게 해결할 수 있습니까? – Myy

답변

2

바람둥이에 올바른 Mojarra 버전이 있습니까? 너무 보이지 않는 : -/

가 작동하지 :

Apr 17, 2012 12:25:26 AM com.sun.faces.config.ConfigureListener contextInitialized 
INFO: Initializing Mojarra (1.2_12-b01-FCS) for context '/miloWeb' 

WORKING :

Apr 17, 2012 12:25:11 AM com.sun.faces.config.ConfigureListener contextInitialized 
INFO: Initializing Mojarra 2.0.6 (FCS FCS) for context '/miloWeb' 
+0

나는 이것이 원인일지도 모른다라고 생각한다. 그것은 teh 항아리가 저장소 위에 있기 때문에 별난 것이다. 그래서 jsf-impl.jar와 jsf-api.jars를 swaith해야합니다. 새로운 2.0 jars로는 작동하지 않는 프로젝트 tahts에 있습니까? – Myy

+0

맞습니다. – Tobi

+0

그랬어. nice Catch, tbh 답을 찾기 위해 총 8 시간을 보냈다. 단지 이해가되지 않았다. 저장소에는 모든 항아리가 있었다. 왜 최신 기사를 업데이트하지 않았는지 궁금해. 어쨌든. 토비, ​​정말 고마워. 나는 고맙게 생각한다. = D – Myy

0

글쎄, 렌더링 된 HTML에서 JSF가 xhtml에서 작동하지 않는다는 것이 명백합니다. 그것은 그대로입니다. JSF가 올바르게 구성되지 않았거나 서블릿 매핑이 올바르지 않은 것처럼 보입니다. 여기에 web.xml을 추가하고 JSF가 tomcat 로그 (헬리오 콘솔보기에서)에서 올바르게 시작되었는지 확인할 수도 있습니다.

+0

xml을 추가했습니다. – Myy

+0

Eclipse에서 서버를 시작할 때 콘솔 메시지가 추가되었습니다. 바람둥이에 몇 가지 구성 문제가있을 수 있습니다. 내가 확인할 수있는 어떤 생각? – Myy

+0

@Tobi는 응용 프로그램이 2.0 대신 JSF 1.2에서 실행되고 있음을 확인했습니다. 이 프로젝트에서 jsf로 구성된 이클립스 라이브러리를보십시오 –

0

Ok 프로젝트가 변경되지 않았다고 가정합니다. ? 가능한 문제는 다음과 같습니다. 서버가 변경 되었습니까? facelets jar가 프로젝트 또는 서버에 있는지 확인 했습니까? 이름이 바뀌 었습니까? 프로젝트 이름이 새 것이거나 프로젝트 이름이 서버에 올바르게 매핑되어 있어야합니까? 프로젝트가 손상 되었습니까? 프로젝트를 체크인하거나 체크 아웃 할 때 오류가 있습니까?

+0

제가 언급했듯이, 원래 컴퓨터에서 작동하지만 새 프로젝트를 설정 한 다음 저장소에 프로젝트를 커밋했습니다. 나는 그대로 프로젝트를 다운로드했으며 새 컴퓨터는 JSf 부분을 렌더링하지 않습니다. 이름은 동일합니다. 모든 항아리들이 거기에있는 것처럼 보입니다. – Myy

관련 문제