facebook

Myeclipse and icefaces integration issue 1.7.1

  1. MyEclipse Archived
  2.  > 
  3. ICEfaces Integration
Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #295394 Reply

    nmatrix9
    Member

    Hello MyEclipse Team,

    I’m using icefaces with myeclipse 6.6, The issue I’m facing is that whenever I add icefaces capabilities to a project ver icefaces 1.7.1, my project begins throwing the error upon deployment:

    Mar 1, 2009 8:47:33 PM org.apache.catalina.core.ApplicationContext log
    SEVERE: WebModule[/VirtualTrainer]PWC1257: Error configuring application listene
    r of class com.icesoft.faces.util.event.servlet.ContextEventRepeater
    java.lang.ClassNotFoundException: com.icesoft.faces.util.event.servlet.ContextEv
    entRepeater
    at java.lang.ClassNotFoundException.<init>(ClassNotFoundException.java:76)
    at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.jav
    a:1498) . . .

    Here is my web.xml:

    <?xml version=”1.0″ encoding=”UTF-8″?>
    <web-app id=”VirtualTrainer” version=”2.5″
    xmlns=”http://java.sun.com/xml/ns/javaee&#8221;
    xmlns:xsi=”http://www.w3.org/2001/XMLSchema-instance&#8221; xsi:schemaLocation=”http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd”&gt;
    <context-param>
    <param-name>javax.faces.CONFIG_FILES</param-name>
    <param-value>/WEB-INF/faces-config.xml</param-value>
    </context-param>
    <context-param>
    <param-name>javax.faces.DEFAULT_SUFFIX</param-name>
    <param-value>.jspx</param-value>
    </context-param>
    <context-param>
    <param-name>facelets.LIBRARIES</param-name>
    <param-value>/WEB-INF/facelets/tags/arcmind.taglib.xml</param-value>
    </context-param>
    <context-param>
    <param-name>javax.faces.STATE_SAVING_METHOD</param-name>
    <param-value>server</param-value>
    </context-param>
    <context-param>
    <param-name>com.icesoft.faces.uploadDirectory</param-name>
    <param-value>upload</param-value>
    </context-param>
    <context-param>
    <param-name>com.icesoft.faces.uploadMaxFileSize</param-name>
    <param-value>4048576</param-value>
    </context-param>
    <filter>
    <filter-name>SecurityFilter</filter-name>
    <filter-class>com.jsfcompref.register.trainer.security.SecurityFilter</filter-class>
    </filter>
    <filter-mapping>
    <filter-name>SecurityFilter</filter-name>
    <url-pattern>/faces/pages/*</url-pattern>
    </filter-mapping>
    <filter-mapping>
    <filter-name>SecurityFilter</filter-name>
    <url-pattern>/pages/*</url-pattern>
    </filter-mapping>
    <listener>
    <listener-class>com.icesoft.faces.util.event.servlet.ContextEventRepeater</listener-class>
    </listener>
    <servlet>
    <servlet-name>Faces Servlet</servlet-name>
    <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
    <load-on-startup>0</load-on-startup>
    </servlet>
    <servlet>
    <servlet-name>Persistent Faces Servlet</servlet-name>
    <servlet-class>com.icesoft.faces.webapp.xmlhttp.PersistentFacesServlet</servlet-class>
    <load-on-startup>0</load-on-startup>
    </servlet>
    <servlet>
    <servlet-name>Blocking Servlet</servlet-name>
    <servlet-class>com.icesoft.faces.webapp.xmlhttp.BlockingServlet</servlet-class>
    <load-on-startup>0</load-on-startup>
    </servlet>
    <servlet>
    <servlet-name>uploadServlet</servlet-name>
    <servlet-class>com.icesoft.faces.component.inputfile.FileUploadServlet</servlet-class>
    <load-on-startup>0</load-on-startup>
    </servlet>
    <servlet-mapping>
    <servlet-name>Persistent Faces Servlet</servlet-name>
    <url-pattern>*.faces</url-pattern>
    </servlet-mapping>
    <servlet-mapping>
    <servlet-name>Persistent Faces Servlet</servlet-name>
    <url-pattern>/faces/*</url-pattern>
    </servlet-mapping>
    <servlet-mapping>
    <servlet-name>Persistent Faces Servlet</servlet-name>
    <url-pattern>*.jspx</url-pattern>
    </servlet-mapping>
    <servlet-mapping>
    <servlet-name>Persistent Faces Servlet</servlet-name>
    <url-pattern>*.iface</url-pattern>
    </servlet-mapping>
    <servlet-mapping>
    <servlet-name>Persistent Faces Servlet</servlet-name>
    <url-pattern>/xmlhttp/*</url-pattern>
    </servlet-mapping>
    <servlet-mapping>
    <servlet-name>Blocking Servlet</servlet-name>
    <url-pattern>/block/*</url-pattern>
    </servlet-mapping>
    <servlet-mapping>
    <servlet-name>uploadServlet</servlet-name>
    <url-pattern>/uploadHtml</url-pattern>
    </servlet-mapping>
    <session-config>
    <session-timeout>10000</session-timeout>
    </session-config>
    <mime-mapping>
    <extension>html</extension>
    <mime-type>text/html</mime-type>
    </mime-mapping>
    <mime-mapping>
    <extension>txt</extension>
    <mime-type>text/plain</mime-type>
    </mime-mapping>
    <welcome-file-list>
    <welcome-file>index.jsp</welcome-file>
    </welcome-file-list>
    <login-config>
    <auth-method>BASIC</auth-method>
    </login-config>
    <!–Tomcat 5 Workaround: Listener used to initialize JSF on startup
    Remove comment tags to enable listener.
    <listener>
    <listener-class>com.sun.faces.config.ConfigureListener</listener-class>
    </listener>

    Tomcat 5 Workaround: Listener implementation to handle web application lifecycle event
    Remove comment tags to enable listener.
    <listener>
    <listener-class>com.sun.faces.application.WebappLifecycleListener</listener-class>
    </listener>
    –>
    </web-app>

    I’m assuming I have to additional modifications to my web.xml to get my projects to use icefaces effectively?

    #295424 Reply

    Loyal Water
    Member

    Hi,
    I created a new project, added the ICEFaces capabilities to it and deployed it without issues. Can you list the exact steps to help me reproduce this issue at my end.

    #295449 Reply

    nmatrix9
    Member

    I think the issue is that icefaces does not like being integrated with the Tomahawk library and/or facelets libraries. I’ve decide to use RichFaces and I’ve been to get a demo app running in 20 minutes, compared to not getting any icefaces custom demos running on my machine. I also think it’s the out version support icefaces DOES NOT have for jsf 1.2 > 1.1. When will you be adding official support for RichFaces? Is it on the road map?

    #295467 Reply

    Loyal Water
    Member

    RichFaces is not committed to an official roadmap yet, but it’s something we are aware that our users want. It’s just up to the management team to target for a release

    #295942 Reply

    Aroussi
    Member

    Hello MyEclipse Team,
    I created a new project using MyEclipse 6.6 supporting J2EE 5.0 and tomcat 6.0.18 , added JSF capabilities and facelets , then when i add icefaces capabilities i have this exception when i try to use a simple <ice:outputText value=”outputText_first_try”></ice:outputText> in a jsp.

    12 mars 2009 23:12:46 com.sun.faces.lifecycle.LifecycleImpl phase
    ATTENTION: executePhase(RENDER_RESPONSE 6,com.icesoft.faces.context.BridgeFacesContext@122dad5) threw exception
    javax.faces.FacesException: Can’t find stream for /index.jspx.jsp
    at com.icesoft.faces.application.D2DViewHandler.renderResponse(D2DViewHandler.java:472)

    this is my web.xml

    <?xml version=”1.0″ encoding=”UTF-8″?>
    <web-app xmlns=”http://java.sun.com/xml/ns/j2ee&#8221; xmlns:xsi=”http://www.w3.org/2001/XMLSchema-instance&#8221;
    version=”2.4″
    xsi:schemaLocation=”http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd&#8221;
    id=”Test”>
    <context-param>
    <param-name>javax.faces.CONFIG_FILES</param-name>
    <param-value>/WEB-INF/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>
    <param-name>javax.faces.STATE_SAVING_METHOD</param-name>
    <param-value>server</param-value>
    </context-param>
    <context-param>
    <param-name>com.icesoft.faces.uploadDirectory</param-name>
    <param-value>upload</param-value>
    </context-param>
    <context-param>
    <param-name>com.icesoft.faces.uploadMaxFileSize</param-name>
    <param-value>4048576</param-value>
    </context-param>
    <listener>
    <listener-class>com.icesoft.faces.util.event.servlet.ContextEventRepeater</listener-class>
    </listener>
    <servlet>
    <servlet-name>Faces Servlet</servlet-name>
    <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
    <load-on-startup>0</load-on-startup>
    </servlet>
    <servlet>
    <servlet-name>Persistent Faces Servlet</servlet-name>
    <servlet-class>com.icesoft.faces.webapp.xmlhttp.PersistentFacesServlet</servlet-class>
    <load-on-startup>0</load-on-startup>
    </servlet>
    <servlet>
    <servlet-name>Blocking Servlet</servlet-name>
    <servlet-class>com.icesoft.faces.webapp.xmlhttp.BlockingServlet</servlet-class>
    <load-on-startup>0</load-on-startup>
    </servlet>
    <servlet>
    <servlet-name>uploadServlet</servlet-name>
    <servlet-class>com.icesoft.faces.component.inputfile.FileUploadServlet</servlet-class>
    <load-on-startup>0</load-on-startup>
    </servlet>
    <servlet-mapping>
    <servlet-name>Persistent Faces Servlet</servlet-name>
    <url-pattern>*.faces</url-pattern>
    </servlet-mapping>
    <servlet-mapping>
    <servlet-name>Persistent Faces Servlet</servlet-name>
    <url-pattern>*.jspx</url-pattern>
    </servlet-mapping>
    <servlet-mapping>
    <servlet-name>Persistent Faces Servlet</servlet-name>
    <url-pattern>*.iface</url-pattern>
    </servlet-mapping>
    <servlet-mapping>
    <servlet-name>Persistent Faces Servlet</servlet-name>
    <url-pattern>/xmlhttp/*</url-pattern>
    </servlet-mapping>
    <servlet-mapping>
    <servlet-name>Blocking Servlet</servlet-name>
    <url-pattern>/block/*</url-pattern>
    </servlet-mapping>
    <servlet-mapping>
    <servlet-name>uploadServlet</servlet-name>
    <url-pattern>/uploadHtml</url-pattern>
    </servlet-mapping>
    <welcome-file-list>
    <welcome-file>index.jsp</welcome-file>
    </welcome-file-list>
    <!–Tomcat 5 Workaround: Listener used to initialize JSF on startup–>
    <!–Remove comment tags to enable listener.–>
    <listener>
    <listener-class>com.sun.faces.config.ConfigureListener</listener-class>
    </listener>

    <!–Tomcat 5 Workaround: Listener implementation to handle web application lifecycle event–>
    <!–Remove comment tags to enable listener.–>
    <listener>
    <listener-class>com.sun.faces.application.WebappLifecycleListener</listener-class>
    </listener>

    </web-app>

    So please tell me can i use JSF 1.2 with facelets and icefaces 1.7.1 in my web app using MyEclipse

    I m a beginner in JSF 🙂 thanks for help

Viewing 5 posts - 1 through 5 (of 5 total)
Reply To: Myeclipse and icefaces integration issue 1.7.1

You must be logged in to post in the forum log in