I want create project with maven. So: File -> New Project -> Maven -> Maven Web Application -> Finish
And I have pure maven web project without frameworks:D The next step is choose framework. So: Right Click on project -> Properties -> Frameworks -> Add -> ICEfaces -> OK -> and set options: facelets,create welcome page,use Icefaces 2 and compatible 1.8 -> OK
Then Netbeans throw EXCEPTION:
Unexpected exception:
The serverInstanceId parameter cannot be null
More info:
java.lang.NullPointerException: The serverInstanceId parameter cannot be null
at org.openide.util.Parameters.notNull(Parameters.java:86)
at org.netbeans.modules.j2ee.deployment.devmodules.api.Deployment.getServerInstance(Deployment.java:539)
at org.icefaces.netbeans.modules.web.frameworks.wizard.ICEfacesModuleExtender.classExistsInServer(ICEfacesModuleExtender.java:264)
at org.icefaces.netbeans.modules.web.frameworks.wizard.ICEfacesModuleExtender.extend(ICEfacesModuleExtender.java:328)
at org.netbeans.modules.maven.webframeworks.WebFrameworksPanel.applyChanges(WebFrameworksPanel.java:126)
at org.netbeans.modules.maven.webframeworks.WebFrameworksPanelProvider$1$1.run(WebFrameworksPanelProvider.java:83)
at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:602)
[catch] at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:1084)
This is an issue with netbeans maven web project as it does not provide server instance id. ICEfaces integration requires server instance to check server classes and adjust configurations. We will try to address this issue in next release.
For now you may have to create Web project with ICEfaces framework.
I create maven project with ICEfaces! This is what I do: File -> New Project -> Maven -> Maven Web Application -> Finish
Right Click on project -> Properties -> Frameworks -> Add -> JavaServer Faces -> and in library I set icefaces-2.0.0-alpha2
After that I add all jar library from compat folder (add to pom and then install manually). On the page add simple ice:outpuText component to test. Run project. Everything is OK, firebug dont show errors, but On the page I dont see text from ice:outputText component:/
PLEASE HELP I'am so close
On the image You can see my maven project.
I change servlet mapping in web.xml and seems to be working:D :
<servlet-mapping>
<servlet-name>Faces Servlet</servlet-name>
<url-pattern>*.jsf</url-pattern>
</servlet-mapping>
ice.push is undefined
[Break on this error] <script type="text/javascript">window....d'}}, document.body);</script></body>
mavenproject14
ice.onBlockingConnectionUnstable is not a function
[Break on this error] ice.onBlockingConnectionUnstable(function() {
compat.js.jsf
ice.push is undefined
[Break on this error] <script type="text/javascript">window....d'}}, document.body);</script></body>
This is an issue with netbeans maven web project as it does not provide server instance id. ICEfaces integration requires server instance to check server classes and adjust configurations. We will try to address this issue in next release.
For now you may have to create Web project with ICEfaces framework.
Be aware that you may also get this error, if you try to create a new Project that has the same name as the maven project you tried before.