Can't get IceFaces 2.0 integration to work on Netbeans 6.9
[Logo]
ICEsoft.org Forums: ICEfaces, ICEmobile, ICEpdf
[Search] Search   [Recent Topics] Recent Topics   [Groups] Home Page | www.icefaces.org  [Register] Register  [Login] Login 
Can't get IceFaces 2.0 integration to work on Netbeans 6.9  XML
Forum Index -> Tools
Author Message
drewh

Joined: 01/07/2009 00:00:00
Messages: 54
Offline


I've downloaded the IceFaces integration for netbeans 6.9. If I start a project and use 1.8 it works great. If I start a project using IceFaces 2, I run it and get this message everytime.
Code:
 SEVERE: WebModule[/IceFaces2Test]PWC1275: Exception sending context initialized event to listener instance of class com.sun.faces.config.ConfigureListener
 com.sun.faces.config.ConfigurationException: CONFIGURATION FAILED! cvc-complex-type.2.4.a: Invalid content was found starting with element 'ns516:ordering'. One of '{"http://java.sun.com/xml/ns/javaee":application, "http://java.sun.com/xml/ns/javaee":factory, "http://java.sun.com/xml/ns/javaee":component, "http://java.sun.com/xml/ns/javaee":converter, "http://java.sun.com/xml/ns/javaee":managed-bean, "http://java.sun.com/xml/ns/javaee":navigation-rule, "http://java.sun.com/xml/ns/javaee":referenced-bean, "http://java.sun.com/xml/ns/javaee":render-kit, "http://java.sun.com/xml/ns/javaee":lifecycle, "http://java.sun.com/xml/ns/javaee":validator, "http://java.sun.com/xml/ns/javaee":faces-config-extension}' is expected.
         at com.sun.faces.config.ConfigManager.initialize(ConfigManager.java:213)
 


I've tried running on glassfish 2 and 3. No luck.

It looks like there is an issue in in web.xml

Here it is.
Code:
<?xml version="1.0" encoding="UTF-8"?>
 <web-app version="3.0" 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_3_0.xsd">
 
     <context-param>
         <param-name>javax.faces.PROJECT_STAGE</param-name>
         <param-value>Development</param-value>
     </context-param>
     <context-param>
         <param-name>javax.faces.FACELETS_SKIP_COMMENTS</param-name>
         <param-value>true</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>
     <servlet>
         <servlet-name>Faces Servlet</servlet-name>
         <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
         <load-on-startup>1</load-on-startup>
     </servlet>
     <servlet>
         <servlet-name>Resource Servlet</servlet-name>
         <servlet-class>com.icesoft.faces.webapp.CompatResourceServlet</servlet-class>
         <load-on-startup>1</load-on-startup>
     </servlet>
     <servlet-mapping>
         <servlet-name>Faces Servlet</servlet-name>
         <url-pattern>*.iface</url-pattern>
     </servlet-mapping>
     <servlet-mapping>
         <servlet-name>Faces Servlet</servlet-name>
         <url-pattern>/icefaces/*</url-pattern>
     </servlet-mapping>
     <servlet-mapping>
         <servlet-name>Resource Servlet</servlet-name>
         <url-pattern>/xmlhttp/*</url-pattern>
     </servlet-mapping>
     <session-config>
         <session-timeout>
             30
         </session-timeout>
     </session-config>
     <welcome-file-list>
         <welcome-file>index.html</welcome-file>
         <welcome-file>welcomeICEfaces.iface</welcome-file>
     </welcome-file-list>
 </web-app>
 


liming.wu

Joined: 26/10/2004 00:00:00
Messages: 405
Online


from the web.xml, I can see you select Java EE 6 and ICEfaces compat mode. You app should be able to run on glassfish 3. The web.xml is right.

I wonder if dependent jars files were wrong. Please compare yours with mine (attached screenshot). Do you create faces-config in your app?

Liming
[Thumb - nb.png]
 Filename nb.png [Disk] Download
 Description
 Filesize 21 Kbytes
 Downloaded:  53 time(s)

[Email]
drewh

Joined: 01/07/2009 00:00:00
Messages: 54
Offline


Hey. My libs look the same as you. I do not have a faces-config.xml. I thought jsf 2.0 got rid of that. Defining beans is in the actual class now.

I do have 2 jsf 2.0 libs, I see that you don't.
liming.wu

Joined: 26/10/2004 00:00:00
Messages: 405
Online


I don't have jsf jars because the project's target server is gf3 when I create the project. Yes you don't have to have faces-config. The reason I asked is because the error message looked like related to faces-config

Could you please try to create a default project with ICEfaces 2 to see if it works?

Liming
[Email]
 
Forum Index -> Tools
Go to:   
Powered by JForum 2.1.7ice © JForum Team