Netbeans 6.8 Integration plugin
[Logo]
ICEsoft.org Forums: ICEfaces, ICEmobile, ICEpdf
[Search] Search   [Recent Topics] Recent Topics   [Groups] Home Page | www.icefaces.org  [Register] Register  [Login] Login 
Netbeans 6.8 Integration plugin  XML
Forum Index -> Tools
Author Message
kudlaty15

Joined: 08/02/2010 00:00:00
Messages: 5
Offline


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)


PLEASE HELP
liming.wu

Joined: 26/10/2004 00:00:00
Messages: 407
Offline


Thank you for your posting.

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.
[Email]
kudlaty15

Joined: 08/02/2010 00:00:00
Messages: 5
Offline


To get credits in subject I must use maven in project :( When the next release will appeare?
kudlaty15

Joined: 08/02/2010 00:00:00
Messages: 5
Offline


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.


[Thumb - zrzut_ekranu-2.jpg]
 Filename zrzut_ekranu-2.jpg [Disk] Download
 Description Seem my maven project
 Filesize 172 Kbytes
 Downloaded:  105 time(s)

kudlaty15

Joined: 08/02/2010 00:00:00
Messages: 5
Offline


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>

<welcome-file-list>
<welcome-file>index.jsf</welcome-file>
</welcome-file-list>
kudlaty15

Joined: 08/02/2010 00:00:00
Messages: 5
Offline


Without icepush Firebug show me this error:

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>
stinnux

Joined: 10/11/2007 00:00:00
Messages: 1
Offline


liming.wu wrote:
Thank you for your posting.

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.

It happened to me - until i restarted netbeans.
 
Forum Index -> Tools
Go to:   
Powered by JForum 2.1.7ice © JForum Team