Note that there are some explanatory texts on larger screens.

plurals
  1. POrichfaces + eclipse ee + tomcat 7
    text
    copied!<p>am having a problem configuring tomcat with richfaces. I copied the:</p> <pre><code>richfaces-components-ui-4.2.2.Final.jar richfaces-components-api-4.2.2.Final.jar richfaces-core-api-4.2.2.Final.jar richfaces-core-impl-4.2.2.Final.jar </code></pre> <p>jars into tomcat's \lib and restarted my server. The definition of my xhtml page looks like this:</p> <pre><code> &lt;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" xmlns:a4j="http://richfaces.org/a4j" xmlns:rich="http://richfaces.org/rich"&gt; </code></pre> <p>But eclipse generates a warning which says </p> <pre><code>NSL missing: CANNOT_FIND_FACELET_TAGLIB in : org.eclipse.jst.jsf.core.validation.internal.facelet.messages </code></pre> <p>Is there any other thing I need to configure? I skimmed a lot of tutorials but almost all uses JBoss. Is there a way to configure richfaces with my eclipse and tomcat?</p> <hr> <p>Edited</p> <p>When I add the jars as external jars, and add the dependencies too, it does not crash the site,though in the console it produces a this: </p> <pre><code>Jun 10, 2012 2:15:55 PM org.apache.myfaces.shared_impl.config.MyfacesConfig getBooleanInitParameter INFO: No context init parameter 'org.apache.myfaces.PRETTY_HTML' found, using default value true Jun 10, 2012 2:15:55 PM org.apache.myfaces.shared_impl.config.MyfacesConfig getBooleanInitParameter INFO: No context init parameter 'org.apache.myfaces.ALLOW_JAVASCRIPT' found, using default value true Jun 10, 2012 2:15:55 PM org.apache.myfaces.shared_impl.config.MyfacesConfig getBooleanInitParameter INFO: No context init parameter 'org.apache.myfaces.RENDER_CLEAR_JAVASCRIPT_FOR_BUTTON' found, using default value false Jun 10, 2012 2:15:55 PM org.apache.myfaces.shared_impl.config.MyfacesConfig getBooleanInitParameter INFO: No context init parameter 'org.apache.myfaces.RENDER_HIDDEN_FIELDS_FOR_LINK_PARAMS' found, using default value false Jun 10, 2012 2:15:55 PM org.apache.myfaces.shared_impl.config.MyfacesConfig getBooleanInitParameter INFO: No context init parameter 'org.apache.myfaces.SAVE_FORM_SUBMIT_LINK_IE' found, using default value false Jun 10, 2012 2:15:55 PM org.apache.myfaces.shared_impl.config.MyfacesConfig getBooleanInitParameter INFO: No context init parameter 'org.apache.myfaces.READONLY_AS_DISABLED_FOR_SELECTS' found, using default value true Jun 10, 2012 2:15:55 PM org.apache.myfaces.shared_impl.config.MyfacesConfig getBooleanInitParameter INFO: No context init parameter 'org.apache.myfaces.RENDER_VIEWSTATE_ID' found, using default value true Jun 10, 2012 2:15:55 PM org.apache.myfaces.shared_impl.config.MyfacesConfig getBooleanInitParameter INFO: No context init parameter 'org.apache.myfaces.STRICT_XHTML_LINKS' found, using default value true Jun 10, 2012 2:15:55 PM org.apache.myfaces.shared_impl.config.MyfacesConfig getBooleanInitParameter INFO: No context init parameter 'org.apache.myfaces.RENDER_FORM_SUBMIT_SCRIPT_INLINE' found, using default value false Jun 10, 2012 2:15:55 PM org.apache.myfaces.shared_impl.config.MyfacesConfig getLongInitParameter INFO: No context init parameter 'org.apache.myfaces.CONFIG_REFRESH_PERIOD' found, using default value 2 Jun 10, 2012 2:15:55 PM org.apache.myfaces.shared_impl.config.MyfacesConfig getBooleanInitParameter INFO: No context init parameter 'org.apache.myfaces.VIEWSTATE_JAVASCRIPT' found, using default value false Jun 10, 2012 2:15:55 PM org.apache.myfaces.shared_impl.config.MyfacesConfig getStringInitParameter INFO: No context init parameter 'org.apache.myfaces.REFRESH_TRANSIENT_BUILD_ON_PSS' found, using default value auto Jun 10, 2012 2:15:55 PM org.apache.myfaces.shared_impl.config.MyfacesConfig getBooleanInitParameter INFO: No context init parameter 'org.apache.myfaces.REFRESH_TRANSIENT_BUILD_ON_PSS_PRESERVE_STATE' found, using default value false Jun 10, 2012 2:15:55 PM org.apache.myfaces.shared_impl.config.MyfacesConfig getBooleanInitParameter INFO: No context init parameter 'org.apache.myfaces.VALIDATE_XML' found, using default value false Jun 10, 2012 2:15:55 PM org.apache.myfaces.shared_impl.config.MyfacesConfig getBooleanInitParameter INFO: No context init parameter 'org.apache.myfaces.WRAP_SCRIPT_CONTENT_WITH_XML_COMMENT_TAG' found, using default value true Jun 10, 2012 2:15:55 PM org.apache.myfaces.shared_impl.config.MyfacesConfig createAndInitializeMyFacesConfig INFO: Tomahawk jar not available. Autoscrolling, DetectJavascript, AddResourceClass and CheckExtensionsFilter are disabled now. Jun 10, 2012 2:15:55 PM org.apache.myfaces.config.FacesConfigurator feedStandardConfig INFO: Reading standard config META-INF/standard-faces-config.xml Jun 10, 2012 2:15:56 PM org.apache.myfaces.config.FacesConfigurator getWebAppConfig INFO: Reading config /WEB-INF/faces-config.xml Jun 10, 2012 2:15:56 PM org.apache.myfaces.config.FacesConfigurator startLib INFO: Starting up MyFaces-package : myfaces-api in version : 2.0.2 from path : file:/D:/Programming/Eclipse%20Workspace/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/OnTheRun/WEB-INF/lib/myfaces-api-2.0.2.jar Jun 10, 2012 2:15:56 PM org.apache.myfaces.config.FacesConfigurator startLib INFO: Starting up MyFaces-package : myfaces-impl in version : 2.0.2 from path : file:/D:/Programming/Eclipse%20Workspace/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/OnTheRun/WEB-INF/lib/myfaces-impl-2.0.2.jar Jun 10, 2012 2:15:56 PM org.apache.myfaces.config.FacesConfigurator startLib INFO: MyFaces-package : tomahawk not found. Jun 10, 2012 2:15:56 PM org.apache.myfaces.config.FacesConfigurator startLib INFO: MyFaces-package : tomahawk12 not found. Jun 10, 2012 2:15:56 PM org.apache.myfaces.config.FacesConfigurator startLib INFO: MyFaces-package : tomahawk-sandbox not found. Jun 10, 2012 2:15:56 PM org.apache.myfaces.config.FacesConfigurator startLib INFO: MyFaces-package : tomahawk-sandbox12 not found. Jun 10, 2012 2:15:56 PM org.apache.myfaces.config.FacesConfigurator startLib INFO: MyFaces-package : tomahawk-sandbox15 not found. Jun 10, 2012 2:15:56 PM org.apache.myfaces.config.FacesConfigurator startLib INFO: MyFaces-package : myfaces-orchestra-core not found. Jun 10, 2012 2:15:56 PM org.apache.myfaces.config.FacesConfigurator startLib INFO: MyFaces-package : myfaces-orchestra-core12 not found. Jun 10, 2012 2:15:56 PM org.apache.myfaces.config.FacesConfigurator startLib INFO: MyFaces-package : trinidad-api not found. Jun 10, 2012 2:15:56 PM org.apache.myfaces.config.FacesConfigurator startLib INFO: MyFaces-package : trinidad-impl not found. Jun 10, 2012 2:15:56 PM org.apache.myfaces.config.FacesConfigurator startLib INFO: MyFaces-package : tobago not found. Jun 10, 2012 2:15:56 PM org.apache.myfaces.config.FacesConfigurator startLib INFO: MyFaces-package : commons-el not found. Jun 10, 2012 2:15:56 PM org.apache.myfaces.config.FacesConfigurator startLib INFO: MyFaces-package : jsp-api not found. Jun 10, 2012 2:15:56 PM org.apache.myfaces.util.ExternalSpecifications isBeanValidationAvailable INFO: MyFaces Bean Validation support disabled Jun 10, 2012 2:15:56 PM org.apache.myfaces.config.FacesConfigurator handleSerialFactory INFO: Serialization provider : class org.apache.myfaces.shared_impl.util.serial.DefaultSerialFactory Jun 10, 2012 2:15:56 PM org.apache.myfaces.config.annotation.DefaultLifecycleProviderFactory getLifecycleProvider INFO: Using LifecycleProvider java.lang.String Jun 10, 2012 2:15:56 PM org.apache.myfaces.webapp.AbstractFacesInitializer initFaces INFO: ServletContext 'D:\Programming\Eclipse Workspace\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps\OnTheRun\' initialized. Jun 10, 2012 2:15:56 PM org.apache.myfaces.webapp.AbstractFacesInitializer initFaces </code></pre> <p>Which I assume is because some libraries are missing</p> <hr> <p>UPDATE</p> <p>Here are my config files: </p> <pre><code>&lt;faces-config 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-facesconfig_2_0.xsd" version="2.0"&gt; &lt;application&gt; &lt;resource-bundle&gt; &lt;base-name&gt;on.run.messages&lt;/base-name&gt; &lt;var&gt;msgs&lt;/var&gt; &lt;/resource-bundle&gt; &lt;/application&gt; &lt;navigation-rule&gt; &lt;from-view-id&gt;/login.xhtml&lt;/from-view-id&gt; &lt;navigation-case&gt; &lt;from-outcome&gt;secret&lt;/from-outcome&gt; &lt;to-view-id&gt;/restricted/transactions.xhtml&lt;/to-view-id&gt; &lt;redirect/&gt; &lt;/navigation-case&gt; &lt;/navigation-rule&gt; &lt;/faces-config&gt; </code></pre> <p>and </p> <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt; &lt;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" version="3.0"&gt; &lt;display-name&gt;OnTheRun&lt;/display-name&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;/servlet-mapping&gt; &lt;welcome-file-list&gt; &lt;welcome-file&gt;index.xhtml&lt;/welcome-file&gt; &lt;/welcome-file-list&gt; &lt;filter&gt; &lt;filter-name&gt;AuthFilter&lt;/filter-name&gt; &lt;filter-class&gt;on.run.AuthFilter&lt;/filter-class&gt; &lt;/filter&gt; &lt;filter-mapping&gt; &lt;filter-name&gt;AuthFilter&lt;/filter-name&gt; &lt;url-pattern&gt;/restricted/*&lt;/url-pattern&gt; &lt;/filter-mapping&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;/web-app&gt; </code></pre> <p>I also tried tomahawk lib, but I removed it and cleaned the project. I tried this example to test <a href="http://www.mastertheboss.com/web-interfaces/271-richfaces-calendar-example.html" rel="nofollow">richface</a> but there is nothing displayed. </p> <p>The console message still remains valid, even though I don't have any reference to tomahawk neither I have it in my buildpath and the project and server is clean. I also tried to add to the buildpath myfaces-impl.jar, does not help. The same console messages come up.</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload