voyent
Problem adding facelets to icefaces 1.8  XML
Forum Index -> General Help
Author Message
cocorossello

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


Hi,

Icefaces 1.8 is working fine in my netbeans. But I have a weird problem adding facelets...

I add icefaces-facelets.jar and declare a view-handler in faces-config with the class com.icesoft.faces.facelets.D2DFaceletViewHandler.

When I start tomcat 6 I get the following exception:
Code:
 com.sun.faces.config.ConfigurationException: CONFIGURATION FAILED! 
   Source Document: jndi:/localhost/rrr/WEB-INF/faces-config.xml
   Cause: Class 'com.icesoft.faces.facelets.D2DFaceletViewHandler' is missing a runtime dependency: java.lang.NoClassDefFoundError: com/sun/facelets/compiler/Compiler
         at com.sun.faces.config.ConfigManager.initialize(ConfigManager.java:213)
         at com.sun.faces.config.ConfigureListener.contextInitialized(ConfigureListener.java:196)
         at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3830)
         at org.apache.catalina.core.StandardContext.start(StandardContext.java:4337)
         at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791)
 
 


even tough com.sun.facelets.compiler.Compiler.class is inside icefaces-facelets.jar

Any thoughts?

Thanks in advance.
mkat

Joined: 16/Oct/2008 00:00:00
Messages: 96
Offline


Hi. Did you add the facelets stuff to web.xml?

something like:

Code:
  <!--FACELETS-->  <context-param>
 <param-name>javax.faces.DEFAULT_SUFFIX</param-name>
 <param-value>.jsp</param-value>
 </context-param>
 <context-param>
 <param-name>facelets.DEVELOPMENT</param-name>
 <param-value>true</param-value>
 </context-param>
 <context-param>
 <param-name>com.sun.faces.validateXml</param-name>
 <param-value>false</param-value>
 </context-param>
 <context-param>
 <param-name>com.sun.faces.verifyObjects</param-name>
 <param-value>false</param-value>
 
 </context-param><!-- END FACELETS-->
cocorossello

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


I did, anyway it seems a dependency problem, I can't figure it out.

I have this jars:

jstl.jar

acegi-security-1.0.1.jar
backport-util-concurrent.jar
catalina-ant.jar
commons-beanutils.jar
commons-collections.jar
commons-digester.jar
commons-discovery.jar
commons-el.jar
commons-fileupload.jar
commons-lang.jar
commons-logging-api.jar
commons-logging.jar
el-api.jar
el-ri.jar
FastInfoset.jar
grizzly-compat.jar
icefaces-comps.jar
icefaces-facelets.jar
icefaces.jar
jasper-compiler.jar
jasper-runtime.jar
jsf-api-1.2.jar
jsf-impl-1.2.jar
jsp-api.jar
just-ice.jar
jxl.jar
krysalis-jCharts-1.0.0-alpha-1.jar
portlet.jar
push-server.jar
servlet-api.jar
spring-security-core-2.0.3.jar
xercesImpl.jar
xml-apis.jar


There might be some extra jars as I put all those for testing.

Thx for the response.


thewolf


Joined: 04/Jan/2008 00:00:00
Messages: 128
Offline


I think at least just-ice.jar is unnecessary and could cause such errors.
IMHO you should review your jar-list according to the docs and not include extra jars...
faber

Joined: 25/Jun/2010 02:55:11
Messages: 14
Offline


Sorry for digging this old thread out of the grave, but I got the same error but I do not have any just-ice.jar. What else can it be?
Configuration is:
JSF 2.0, ICEfaces 1.8.2 within Netbeans 6.9.1

Compiling works, running the webapp from within Netbeans leads me to

com.sun.faces.config.ConfigurationException:
Source Document: jndi:/localhost/Web-Erweiterung/WEB-INF/faces-config.xml
Cause: Class 'com.icesoft.faces.facelets.D2DFaceletViewHandler' is missing a runtime dependency: java.lang.NoClassDefFoundError: com/sun/facelets/compiler/Compiler
at com.sun.faces.config.processor.AbstractConfigProcessor.createInstance(AbstractConfigProcessor.java:281)
... 
ken.fyten

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


ICEfaces 1.8.x doesn't support JSF 2.0 at all. You need to use the included JSF 1.2 libs instead of the JSF 2 ones.

Ken

Ken Fyten
VP Product Development
ICEsoft Technologies, Inc.
faber

Joined: 25/Jun/2010 02:55:11
Messages: 14
Offline


Hi Ken,
thx for your answer. That explains a lot but leaves the question why the project compiles.

We finally got the project start now - by removing the JSF and ICEfaces Netbeans Libraries, but adding manually the

icefaces.jar - 1,225,129 Bytes
icefaces-comps.jar - 2,021,803 Bytes
icefaces-facelets.jar - 606,214 Bytes

jsf-api.jar - 352,740 Bytes
jsf-impl.jar - 821,677 Bytes
jstl.jar - 20,512 Bytes

Does anyone know of which version number the files are, to which ICEfaces and JSF version they belong? It is not ICEfaces 1.8.2 and 2.0.2 as fas I can see.

And next question:
One main problem was the D2DViewHandler. It seems that this ViewHandler (entry in faces-config.xml) has been replaced in later ICEfaces versions - how?
philip.breau


Joined: 08/May/2006 00:00:00
Messages: 2989
Offline


Where did you get the ICEfaces libraries? The version information can be found in the jars in the META-INF/MANIFEST.MF file. If you're trying to build a JSF 1.2 application then you'll need ICEfaces 1.8. If you're trying to build a JSF 2 application you can use the lastest ICEfaces 3.3.0 version. I'd recommend downloading the latest 3.3.0 bundle and checking out the showcase sample, which has the recommended configuration. You can also find information about migrating from 1.8 to 3 here:

http://www.icesoft.org/wiki/display/ICE/ICEfaces+1.x+Compatibility

Thanks,
Philip

.
faber

Joined: 25/Jun/2010 02:55:11
Messages: 14
Offline


philip.breau wrote:
Where did you get the ICEfaces libraries? 

It was all downloaded from icefaces-site, therefore I was a bit puzzled as the file sizes did not fit.

philip.breau wrote:
The version information can be found in the jars in the META-INF/MANIFEST.MF file. 

Ah, now everything gets clear. The entries are:
ICEfaces:
Name: com.icesoft.faces
Implementation-Title: ICEfaces
Implementation-Version: 1.8.2a_2 (2010-01-29 16:05 MST)
Implementation-Vendor: ICEsoft Technologies, Inc.

JSF:
Bundle-Version: 1.2.13
Bundle-Description: Mojarra JSF API (javax.faces/1.2MR2) 1.2_13-b01-FC
S
Bundle-Name: Mojarra JSF API Implementation 1.2_13-b01-FCS
Bundle-ManifestVersion: 2
Implementation-Title: Mojarra
Bundle-SymbolicName: javax.faces.jsf-api
Tool: Bnd-0.0.249
Extension-Name: javax.faces
Implementation-Version: 1.2_13-b01-FCS
Implementation-Vendor: Sun Microsystems, Inc.

philip.breau wrote:
If you're trying to build a JSF 1.2 application then you'll need ICEfaces 1.8. If you're trying to build a JSF 2 application you can use the lastest ICEfaces 3.3.0 version. I'd recommend downloading the latest 3.3.0 bundle and checking out the showcase sample, which has the recommended configuration. You can also find information about migrating from 1.8 to 3 here:

http://www.icesoft.org/wiki/display/ICE/ICEfaces+1.x+Compatibility

Thanks,
Philip 

Thanks a lot, I will take a look at it.
 
Forum Index -> General Help
Go to:   
Powered by JForum 2.1.7ice © JForum Team