facebook

Null pointer exceptions editing .xhtml or faces-config

  1. MyEclipse IDE
  2.  > 
  3. Java EE Development (EJB, JSP, Struts, XDoclet, etc.)
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #293119 Reply

    This message has not been recovered.

    #293191 Reply

    Loyal Water
    Member

    George,
    Can you go to MyEclipse > Installation Summary > Installation Details and paste the information here for me.

    Also, can you paste a sample .xhtml file here for me so that I can test this issue at my end.

    #293201 Reply

    INSTALLATION DETAILS ARE AS FOLLOWS:

    *** Date:
    Wednesday, January 7, 2009 1:26:00 PM CST

    ** System properties:
    OS=WindowsXP
    OS version=5.1.0
    Java version=1.6.0_11

    *** MyEclipse details:
    MyEclipse Enterprise Workbench
    Version: 7.0
    Build id: 7.0-20081201

    *** Eclipse details:
    Eclipse SDK

    Version: 3.4.1
    Build id: M20080911-1700

    Eclipse Project SDK

    Version: 3.4.1.R34x_v20080827-7O7S78C2J40sK2o_ALcK8tLN_yZSJeg0P-3EtL4Ra90kv
    Build id: M20080911-1700

    Eclipse Plug-in Development Environment

    Version: 3.4.1.r341_v20080731-7T7U0E9mlRIuGUYviF_VP
    Build id: M20080703-0800

    Eclipse Platform

    Version: 3.4.1.r341_v20080731-9I96EiDElYevwz-p1bP5z-NlAaP7vtX6Utotqsu
    Build id: M20080911-1700

    Eclipse Graphical Editing Framework GEF

    Version: 3.4.1.v20080806-67718083A56B4H2A3213573
    Build id: 200809101400

    Eclipse RCP

    Version: 3.4.100.r341_v20080814-989JESIEdAciFYfkZZsBfSwQ2341
    Build id: M20080703-0800

    Eclipse Java Development Tools

    Version: 3.4.1.r341_v20080709-0800-7o7tEAfEF_U5qyUgrb2HAp539P97
    Build id: M20080709-0800

    Eclipse startup command=-os
    win32
    -ws
    win32
    -arch
    x86
    -showsplash
    C:\eclipse\\plugins\org.eclipse.platform_3.3.101.v200809111700\splash.bmp
    -launcher
    C:\eclipse\eclipse.exe
    -name
    Eclipse
    –launcher.library
    C:\eclipse\plugins\org.eclipse.equinox.launcher.win32.win32.x86_1.0.101.R34x_v20080731\eclipse_1115.dll
    -startup
    C:\eclipse\plugins\org.eclipse.equinox.launcher_1.0.101.R34x_v20080819.jar
    -vm
    C:\Program Files\Java\jre6\bin\client\jvm.dll

    EXAMPLE .XHTML PAGE:

    <?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”&gt;

    <html xmlns=”http://www.w3.org/1999/xhtml&#8221;
    xmlns:ui=”http://java.sun.com/jsf/facelets&#8221;
    xmlns:h=”http://java.sun.com/jsf/html&#8221;
    xmlns:f=”http://java.sun.com/jsf/core&#8221;
    xmlns:ice=”http://www.icesoft.com/icefaces/component&#8221; >
    <head>
    <title>cGrant: connecting small business to grants – MyCGrant</title>
    <ice:outputStyle href=”./xmlhttp/css/xp/xp.css” />
    </head>
    <body>
    <f:view>
    <ice:graphicImage value=”images/CGrantLogoC_cropped.png” style=”width: 300px; height: 49px”></ice:graphicImage>
    <hr />
    <ice:form>
    <ice:menuBar>
    <ice:menuItem value=”Logout” action=”logout_MyCGrant”>
    </ice:menuItem>
    <ice:menuItem value=”My Search Profiles” action=”gotoMySearchProfiles_MyCGrant”>
    </ice:menuItem>
    </ice:menuBar>
    <br></br>
    <br></br>
    <h3>Open Grants</h3>
    <table width=”600px” align=”left”>
    <tr>
    <td> <b>Search Date</b> </td>
    <td> <b>Agency</b> </td>
    <td> <b>Relevance</b> </td>
    <td> <b>Days Remaining</b> </td>
    <td> <b>Grant</b> </td>
    </tr>
    <tr>
    <td> 12/1/2008 </td>
    <td> NIH </td>
    <td> 75% </td>
    <td> 20 </td>
    <td> <a href=”DisplayGrant.faces”> Cardiovascular Diseases</a> </td>
    </tr>
    <tr>
    <td> 12/1/2008 </td>
    <td> NIH </td>
    <td> 50% </td>
    <td> 20</td>
    <td> <a href=”DisplayGrant.faces”> Information Retrieval</a></td>
    </tr>
    <tr>
    <td> 8/15/2008 </td>
    <td> NSF </td>
    <td> 95% </td>
    <td> 5</td>
    <td> <a href=”DisplayGrant.faces”> Intelligent Processes</a></td>
    </tr>
    </table>
    <br></br>
    <br></br>
    <br></br>
    <br></br>
    <br></br>
    <br></br>
    <br></br>
    <h3>Search History</h3>
    <table width=”500px” align=”left”>
    <tr>
    <td> <b>Search Date</b> </td>
    <td> <b>Status</b> </td>
    <td> <b>Profile</b> </td>
    <td> <b>View Results</b> </td>
    </tr>
    <tr>
    <td> 12/1/2008 </td>
    <td> ALL OPEN </td>
    <td> <a href=”MySearchProfile.faces”>Pacemaker</a> </td>
    <td> <a href=”SearchResults.faces”>Results</a> </td>
    </tr>
    <tr>
    <td> 8/15/2008 </td>
    <td> SOME OPEN </td>
    <td> <a href=”MySearchProfile.faces”>Process Controls</a> </td>
    <td> <a href=”SearchResults.faces”>Results</a> </td>
    </tr>
    </table>
    </ice:form>
    </f:view>
    </body>
    </html>

    FOR REFERENCE – CONFIG-FACES.XML FILE

    <?xml version=”1.0″ encoding=”UTF-8″?>
    <faces-config version=”1.2″ xmlns=”http://java.sun.com/xml/ns/javaee&#8221;
    xmlns:xi=”http://www.w3.org/2001/XInclude&#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-facesconfig_1_2.xsd”&gt;
    <managed-bean>
    <managed-bean-name>login</managed-bean-name>
    <managed-bean-class>com.rai.backingbeans.Login</managed-bean-class>
    <managed-bean-scope>request</managed-bean-scope>
    </managed-bean>
    <managed-bean>
    <managed-bean-name>myCGrant</managed-bean-name>
    <managed-bean-class>com.rai.backingbeans.MyCGrant</managed-bean-class>
    <managed-bean-scope>request</managed-bean-scope>
    </managed-bean>
    <managed-bean>
    <managed-bean-name>mySearchProfile</managed-bean-name>
    <managed-bean-class>com.rai.backingbeans.MySearchProfile</managed-bean-class>
    <managed-bean-scope>session</managed-bean-scope>
    </managed-bean>
    <managed-bean>
    <managed-bean-name>searchProfiles</managed-bean-name>
    <managed-bean-class>com.rai.backingbeans.SearchProfiles</managed-bean-class>
    <managed-bean-scope>request</managed-bean-scope>
    </managed-bean>
    <managed-bean>
    <managed-bean-name>searchResults</managed-bean-name>
    <managed-bean-class>com.rai.backingbeans.SearchResults</managed-bean-class>
    <managed-bean-scope>request</managed-bean-scope>
    </managed-bean>
    <managed-bean>
    <managed-bean-name>signUp</managed-bean-name>
    <managed-bean-class>com.rai.backingbeans.SignUp</managed-bean-class>
    <managed-bean-scope>request</managed-bean-scope>
    </managed-bean>
    <managed-bean>
    <managed-bean-name>searchTopicsTree</managed-bean-name>
    <managed-bean-class>com.rai.backingbeans.SearchTopicsTree</managed-bean-class>
    <managed-bean-scope>session</managed-bean-scope>
    </managed-bean>
    <navigation-rule>
    <from-view-id>/CGrantHome.xhtml</from-view-id>
    <navigation-case>
    <from-outcome>signUp</from-outcome>
    <to-view-id>/SignUp.xhtml</to-view-id>
    </navigation-case>
    <navigation-case>
    <from-outcome>cGrantLogin</from-outcome>
    <to-view-id>/Login.xhtml</to-view-id>
    </navigation-case>
    </navigation-rule>
    <navigation-rule>
    <from-view-id>/Login.xhtml</from-view-id>
    <navigation-case>
    <from-outcome>loginDone</from-outcome>
    <to-view-id>/MyCGrant.xhtml</to-view-id>
    </navigation-case>
    <navigation-case>
    <from-outcome>goHome_Login</from-outcome>
    <to-view-id>/CGrantHome.xhtml</to-view-id>
    </navigation-case>
    </navigation-rule>
    <navigation-rule>
    <from-view-id>/SignUp.xhtml</from-view-id>
    <navigation-case>
    <from-outcome>signUpDone</from-outcome>
    <to-view-id>/Login.xhtml</to-view-id>
    </navigation-case>
    <navigation-case>
    <from-outcome>goHome_SignUp</from-outcome>
    <to-view-id>/CGrantHome.xhtml</to-view-id>
    </navigation-case>
    </navigation-rule>
    <navigation-rule>
    <from-view-id>/MyCGrant.xhtml</from-view-id>
    <navigation-case>
    <from-outcome>logout_MyCGrant</from-outcome>
    <to-view-id>/CGrantHome.xhtml</to-view-id>
    </navigation-case>
    <navigation-case>
    <from-outcome>gotoMySearchProfiles_MyCGrant</from-outcome>
    <to-view-id>/MySearchProfiles.xhtml</to-view-id>
    </navigation-case>
    </navigation-rule>
    <navigation-rule>
    <from-view-id>/MySearchProfiles.xhtml</from-view-id>
    <navigation-case>
    <from-outcome>mySearchProfiles_Done</from-outcome>
    <to-view-id>/MyCGrant.xhtml</to-view-id>
    </navigation-case>
    </navigation-rule>
    <navigation-rule>
    <from-view-id>/DisplayGrant.xhtml</from-view-id>
    <navigation-case>
    <from-outcome>displayGrant_Done</from-outcome>
    <to-view-id>/MyCGrant.xhtml</to-view-id>
    </navigation-case>
    </navigation-rule>
    <navigation-rule>
    <from-view-id>/MySearchProfile.xhtml</from-view-id>
    <navigation-case>
    <from-outcome>mySearchProfile_Done</from-outcome>
    <to-view-id>/MyCGrant.xhtml</to-view-id>
    </navigation-case>
    </navigation-rule>
    <navigation-rule>
    <from-view-id>/SearchResults.xhtml</from-view-id>
    <navigation-case>
    <from-outcome>searchResults_Done</from-outcome>
    <to-view-id>/MyCGrant.xhtml</to-view-id>
    </navigation-case>
    </navigation-rule>
    <application>
    <view-handler>com.icesoft.faces.facelets.D2DFaceletViewHandler</view-handler>
    </application>
    </faces-config>

    DITTO – WEB.XML

    <?xml version=”1.0″ encoding=”UTF-8″?>
    <web-app xmlns=”http://java.sun.com/xml/ns/javaee&#8221; xmlns:xsi=”http://www.w3.org/2001/XMLSchema-instance&#8221;
    version=”2.5″
    xsi:schemaLocation=”http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd&#8221;
    id=”CGrant”>
    <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>
    <context-param>
    <param-name>javax.faces.DEFAULT_SUFFIX</param-name>
    <param-value>.xhtml</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>
    –>
    <!–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>

    #293251 Reply

    Loyal Water
    Member

    George,
    I was unable to reproduce the issue at my end but can you switch to a new workspace and work with your project. Does the issue persist?

    I’ll ask the dev team to look into this issue in the mean time.

Viewing 4 posts - 1 through 4 (of 4 total)
Reply To: Null pointer exceptions editing .xhtml or faces-config

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