voyent
Can't deploy ICEfaces onto Glassfish v3  XML
Forum Index -> General Help
Author Message
jbrisbin


Joined: 07/Aug/2008 00:00:00
Messages: 7
Offline


I've dug around all over the net trying to find information on the problem I'm seeing and I can't find anything. Has anyone had luck deploying ICEfaces (either 1.7 *or* 1.8) on Glassfish v3? I want a lightweight server that's more than just Tomcat, but less than the 500MB monster that GFv2 is. I have a small slice and I can't run v2 on it. I can, however, run v3.

I'm using NetBeans 6.5 and latest Glassfish v3. I tried deploying both ICEfaces 1.7.2 and 1.8.0 with the same traceback:

SEVERE: StandardWrapperValve[Persistent Faces Servlet]: PWC1406: Servlet.service() for servlet Persistent Faces Servlet threw exception
java.lang.UnsupportedOperationException
at javax.faces.context.FacesContext.setCurrentPhaseId(FacesContext.java:644)
at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:87)
at com.sun.faces.lifecycle.RestoreViewPhase.doPhase(RestoreViewPhase.java:107)
at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:118)

This exact same setup runs fine in Tomcat 6. But if I switch the server to GF and hit F6, it blows up every time I try and load the page.

I'm using the NB tooling provided by ICEfaces and the servlet mappings and context parameters are all still at their defaults.

Help!

Thanks!

Jon Brisbin
http://jbrisbin.com/content/

Thanks!

Jon Brisbin
http://jbrisbin.com/
ted.goddard

Joined: 26/Oct/2004 00:00:00
Messages: 874
Offline


Does the same application work on GlassFish v2? GlassFish v3 is working with the ICEfaces demos as of the fix for http://jira.icefaces.org/browse/ICE-3902.
[Email]
jbrisbin


Joined: 07/Aug/2008 00:00:00
Messages: 7
Offline


ted.goddard wrote:
Does the same application work on GlassFish v2? GlassFish v3 is working with the ICEfaces demos as of the fix for http://jira.icefaces.org/browse/ICE-3902.
 


Yes, it seems to work fine in GFv2, just like it does in Tomcat 6 (standalone).

Thanks!

Jon Brisbin
http://jbrisbin.com/
ken.fyten

Joined: 26/Oct/2004 00:00:00
Messages: 1345
Offline


Jon,

If you are using NetBeans you can use the latest ICEfaces integration for NetBeans 6.5, v3.4.0.3 (download here or use NetBeans Update Center). This version includes the ICEfaces 1.7.2-SP1b runtime libraries, which provides a small fix to make ICEfaces work with Glassfish v3.

The original ICEfaces 1.7.2-SP1 release will not deploy to Glassfish v3, you need the 1.7.2-SP1b variant which is only available via the NetBeans integration bundle or via svn.

ICEfaces 1.8 (icefaces/trunk in svn) is not currently working with Glassfish v3, but will be prior to DR#3 release in February.

Regards,
Ken

Ken Fyten
VP Product Development
ICEsoft Technologies, Inc.
jbrisbin


Joined: 07/Aug/2008 00:00:00
Messages: 7
Offline


ken.fyten wrote:
Jon,

If you are using NetBeans you can use the latest ICEfaces integration for NetBeans 6.5, v3.4.0.3 (download here or use NetBeans Update Center). This version includes the ICEfaces 1.7.2-SP1b runtime libraries, which provides a small fix to make ICEfaces work with Glassfish v3. 


I was already using the latest. I checked the version it was deploying, though, and it was using 1.7.2 SP1a. I did do an upgrade on the NBMs the other day, maybe that's what caused the version mismatch. I uninstalled it completely, wiped out everything from "~/.netbeans/6.5/modules/ext/icefaces" and every other trace of icefaces.jar I could find and re-installed.

At any rate, it still doesn't work. I'm sure it's deploying the right version:

Name: com.icesoft.faces
Implementation-Title: ICEfaces
Implementation-Version: SP1b 1.7.2_1 (2008-12-22 15:07 MST)
Implementation-Vendor: ICEsoft Technologies, Inc.

Same TB as before (UnsupportedOperationException on setCurrentPhaseId).

Should I try using a snapshot?

Thanks!

Jon Brisbin
http://jbrisbin.com/
ted.goddard

Joined: 26/Oct/2004 00:00:00
Messages: 874
Offline



Same TB as before (UnsupportedOperationException on setCurrentPhaseId).
 


This exception is not one that we have previously seen when deploying on GlassFish v3, so the cause of this is likely a specific feature that is not exercised in our test applications. Could you create a minimal ICEfaces application and try deploying that? Are there any factors that might be unique to your application?
[Email]
jbrisbin


Joined: 07/Aug/2008 00:00:00
Messages: 7
Offline


I tried to replicate the problem in a fresh, new installation of glassfish. So to be sure, I downloaded it again from java.net and copied over the ActiveMQ jars I need. I then created a fresh project with only ICEfaces/Facelets in it and deployed onto this new copy of GF. That worked fine, with no errors.

I seem to remember that in the last installation of GF, it prompted me to upgrade my JSF from 1.2 to 2.0. I had forgotten this until installing it again and it prompted me to update JSF again. I suspect this was part of the problem.

I'm not going to update JSF because it's working now! Might be worth noting that it won't work on GFv3 *if* you upgrade JSF. If you leave it at the shipped version, it seems to work (it's just annoying having that "1 update available" hanging around the admin console...oh well :).

Thanks for the help...
sven_is_here

Joined: 21/Oct/2008 00:00:00
Messages: 1
Offline


Same problem here.
NB plugin page shows version 1.7.2.3 (libs) and 3.4.0.3.1.1.1.
Deploying ok:
...
INFO:
ICEsoft Technologies, Inc.
ICEfaces 1.7.2 SP1b
Build number: 1
Revision: 18093
... 

>> Where is the 1.7.2.3 ?

then 500 error in browser and glassfish:
SEVERE: StandardWrapperValve[Persistent Faces Servlet]: PWC1406: Servlet.service() for servlet Persistent Faces Servlet threw exception
java.lang.UnsupportedOperationException
at javax.faces.context.FacesContext.setCurrentPhaseId(FacesContext.java:644)
at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:87)
at com.sun.faces.lifecycle.RestoreViewPhase.doPhase(RestoreViewPhase.java:107)
 
ted.goddard

Joined: 26/Oct/2004 00:00:00
Messages: 874
Offline


This is due to the installation of JSF 2.0 (which will not work with ICEfaces 1.7.x). ICEfaces 1.8, however, does have a number of changes specifically for JSF 2.0 compatibility. Note that both JSF 2.0 and ICEfaces 1.8 are under development, so be prepared to take the latest code from the respective repositories.
[Email]
coldylan

Joined: 10/Feb/2009 00:00:00
Messages: 2
Offline


Read this post:

http://www.icefaces.org/JForum/posts/list/11335.page

Now you can run glassfish v3 with JSF 1.2 and ICEfaces.
 
Forum Index -> General Help
Go to:   
Powered by JForum 2.1.7ice © JForum Team