FacesTrace + icefaces sample application

UI Components for JSF
Post Reply
tibor.kiss
Posts: 1
Joined: 27 Aug 2009, 11:34

02 Sep 2009, 14:27

Hi!

I need some help how to use FacesTrace-1.1.0 with icefaces. I prepared a small downloadable maven project
You may download from here http://www.hegygorgeto.hu/samples/sample2icef.tar.gz
which is a small maven project from timezone-2 icefaces webapplication tutorial just to test how to use FacesTrace-1.1.0.

When I deploy this application into a tomcat6 within Eclipse WTP, the tutorial application it works, but FacesTrace does not get rendered.

Here is my url http://localhost:8080/sample2icef/timez ... trace=true

In the logfile I see
-------------------------------------------------------------------------------
Sep 2, 2009 1:49:11 PM org.apache.tomcat.util.digester.SetPropertiesRule begin
WARNING: [SetPropertiesRule]{Server/Service/Engine/Host/Context} Setting property 'source' to 'org.eclipse.jst.jee.server:sample2icef' did not find a matching property.
Sep 2, 2009 1:49:11 PM org.apache.catalina.core.AprLifecycleListener init
INFO: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: /usr/lib/jvm/java-6-sun-1.6.0.10/jre/lib/i386/server:/usr/lib/jvm/java-6-sun-1.6.0.10/jre/lib/i386:/usr/lib/jvm/java-6-sun-1.6.0.10/jre/../lib/i386:/usr/lib/jvm/java-6-sun-1.6.0.10/jre/lib/i386/client:/usr/lib/jvm/java-6-sun-1.6.0.10/jre/lib/i386:/usr/lib/xulrunner-addons:/usr/lib/xulrunner-addons:/usr/lib/xulrunner-addons:/usr/java/packages/lib/i386:/lib:/usr/lib
Sep 2, 2009 1:49:11 PM org.apache.coyote.http11.Http11Protocol init
INFO: Initializing Coyote HTTP/1.1 on http-8080
Sep 2, 2009 1:49:11 PM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 780 ms
Sep 2, 2009 1:49:11 PM org.apache.catalina.core.StandardService start
INFO: Starting service Catalina
Sep 2, 2009 1:49:11 PM org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/6.0.20
Sep 2, 2009 1:49:13 PM org.apache.catalina.core.StandardContext addApplicationListener
INFO: The listener "com.icesoft.faces.util.event.servlet.ContextEventRepeater" is already configured for this context. The duplicate definition has been ignored.
Sep 2, 2009 1:49:13 PM com.sun.faces.config.ConfigureListener contextInitialized
INFO: Initializing Mojarra (1.2_09-b02-FCS) for context '/sample2icef'
INFO D2DViewHandler -
ICEsoft Technologies, Inc.
ICEfaces 1.8.0
Build number: 12
Revision: 18727

INFO ViewRootStateManagerImpl - ViewRootStateManagerImpl constructed with Delegate: com.sun.faces.application.StateManagerImpl@17dc1cb
INFO D2DViewHandler - ICEfaces JSP parser disabled. This is a Facelets-only configuration.
INFO MyfacesConfig - No context init parameter 'org.apache.myfaces.PRETTY_HTML' found, using default value true
INFO MyfacesConfig - No context init parameter 'org.apache.myfaces.ALLOW_JAVASCRIPT' found, using default value true
INFO MyfacesConfig - No context init parameter 'org.apache.myfaces.RENDER_CLEAR_JAVASCRIPT_FOR_BUTTON' found, using default value false
INFO MyfacesConfig - No context init parameter 'org.apache.myfaces.SAVE_FORM_SUBMIT_LINK_IE' found, using default value false
INFO MyfacesConfig - No context init parameter 'org.apache.myfaces.READONLY_AS_DISABLED_FOR_SELECTS' found, using default value true
INFO MyfacesConfig - No context init parameter 'org.apache.myfaces.RENDER_VIEWSTATE_ID' found, using default value true
INFO MyfacesConfig - No context init parameter 'org.apache.myfaces.STRICT_XHTML_LINKS' found, using default value true
INFO MyfacesConfig - No context init parameter 'org.apache.myfaces.CONFIG_REFRESH_PERIOD' found, using default value 2
INFO MyfacesConfig - No context init parameter 'org.apache.myfaces.VIEWSTATE_JAVASCRIPT' found, using default value false
INFO MyfacesConfig - Tomahawk jar not available. Autoscrolling, DetectJavascript, AddResourceClass and CheckExtensionsFilter are disabled now.
INFO MyfacesConfig - Starting up Tomahawk on the RI-JSF-Implementation.
INFO MyfacesConfig - Starting up Tomahawk on the MyFaces-JSF-Implementation
ERROR MyfacesConfig - Both MyFaces and the RI are on your classpath. Please make sure to use only one of the two JSF-implementations.
WARN AbstractFacesInitializer - No mappings of FacesServlet found. Abort initializing MyFaces.
INFO EnvironmentAdaptingServlet - Adapting to Thread Blocking environment
Sep 2, 2009 1:49:15 PM org.apache.coyote.http11.Http11Protocol start
INFO: Starting Coyote HTTP/1.1 on http-8080
Sep 2, 2009 1:49:15 PM org.apache.jk.common.ChannelSocket init
INFO: JK: ajp13 listening on /0.0.0.0:8019
Sep 2, 2009 1:49:15 PM org.apache.jk.server.JkMain start
INFO: Jk running ID=0 time=0/181 config=null
Sep 2, 2009 1:49:15 PM org.apache.catalina.startup.Catalina start
INFO: Server startup in 3804 ms
DEBUG TraceResourcePhaseListener - View Root :/timezone.jspx
DEBUG TraceResourcePhaseListener - View Root :/timezone.jspx
DEBUG TraceResourcePhaseListener - View Root :/timezone.jspx
-------------------------------------------------------------------------------

Unfortunately <ft:trace> does not get rendered and I see the following at the end of the page source.

<ft:trace></ft:trace>
<script id="x-XaW_Xoftz_4Rz4PWHHuQ:1:dynamic-code" type="text/javascript"></script>
<noscript><meta content="0;url=/sample2icef/xmlhttp/javascript-blocked" http-equiv="refresh" /></noscript></body></html>

src/main/webapp/timezone.jspx contains
----------------------------------------------------------------------
<f:view xmlns:f="http://java.sun.com/jsf/core"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:ft="http://sourceforge.net/projects/facestrace">
<html>
<head><title>ICEfaces: TimeZone Sample Application</title></head>
<body>
<h3>ICEfaces: TimeZone Sample Application</h3>
<h:form>
<h:panelGrid columns="2">
<h:outputText style="font-weight:600" value="Server Time Zone"/>
<h:outputText style="font-weight:600"
value="Time Zone Selected from Map"/>
<h:outputText value="#{timeZoneBean.serverTimeZoneName}"/>
<h:outputText value="#{timeZoneBean.selectedTimeZoneName}"/>
<h:outputText style="font-weight:800"
value="#{timeZoneBean.serverTime}"/>
<h:outputText style="font-weight:800"
value="#{timeZoneBean.selectedTime}"/>
</h:panelGrid>
<h:commandButton id="map" image="images/map.jpg"
actionListener="#{timeZoneBean.listen}"/>
</h:form>
<ft:trace/>
</body>
</html>
</f:view>
----------------------------------------------------------------------
What is missing?


This is my dependency tree.
[INFO] ------------------------------------------------------------------------
[INFO] [dependency:tree]
[INFO] sample2Icef:sample1:war:0.0.1-SNAPSHOT
[INFO] +- org.icefaces:icefaces-comps:jar:1.8.0:compile
[INFO] | \- net.sourceforge.jexcelapi:jxl:jar:2.6.8:compile
[INFO] | \- log4j:log4j:jar:1.2.14:compile
[INFO] +- org.icefaces:icefaces-facelets:jar:1.8.0:compile
[INFO] +- org.icefaces:icefaces:jar:1.8.0:compile
[INFO] | +- commons-beanutils:commons-beanutils:jar:1.7.0:compile
[INFO] | +- commons-collections:commons-collections:jar:3.2:compile
[INFO] | +- commons-digester:commons-digester:jar:1.8:compile
[INFO] | +- commons-fileupload:commons-fileupload:jar:1.2.1:compile
[INFO] | +- commons-logging:commons-logging:jar:1.1:compile
[INFO] | +- commons-logging:commons-logging-api:jar:1.1:compile
[INFO] | \- com.sun.xml.fastinfoset:FastInfoset:jar:1.2.2:compile
[INFO] +- org.primefaces:facestrace:jar:1.1.0:compile
[INFO] +- org.apache.myfaces.core:myfaces-api:jar:1.2.5:compile
[INFO] +- org.apache.myfaces.core:myfaces-impl:jar:1.2.5:compile
[INFO] | +- org.apache.myfaces.shared:myfaces-shared-impl:jar:3.0.5:compile
[INFO] | \- commons-codec:commons-codec:jar:1.3:compile
[INFO] +- backport-util-concurrent:backport-util-concurrent:jar:2.2:compile
[INFO] +- javax.servlet:servlet-api:jar:2.5:provided (scope not updated to compile)
[INFO] +- javax.servlet.jsp:jsp-api:jar:2.1:provided
[INFO] +- javax.faces:jsf-api:jar:1.2_09:compile
[INFO] +- javax.faces:jsf-impl:jar:1.2_09:runtime
[INFO] +- javax.el:el-api:jar:1.0:provided (scope not updated to compile)
[INFO] +- commons-el:commons-el:jar:1.0:runtime
[INFO] +- commons-discovery:commons-discovery:jar:0.4:runtime (scope not updated to compile)
[INFO] \- javax.servlet:jstl:jar:1.1.2:runtime
[INFO] ------------------------------------------------------------------------


If you have maven environment in Eclipse (m2eclipse or iam) just publish to a tomcat6.

Somebody can take a look where I am getting wrong?

Thanks in advance!
Tibor

Post Reply

Return to “PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 55 guests