× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



I was having a problem where the included exception would be thrown,
only to find out it was because an hx:scriptCollector tag was being
added at the after the beginning <body> tag and right before the end of
the </body> tag.  If I take it out my JSF app runs just fine.  Anyone
know why this is causing the error?

Thanks,
Aaron Bartell


<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<%-- jsf:codeBehind language="java"
location="/JavaSource/pagecode/Greeting.java" --%><%-- /jsf:codeBehind
--%>


<%@taglib uri="http://www.ibm.com/jsf/html_extended"; prefix="hx"%>
<HTML>
<HEAD>
<title>Hello</title>
<LINK rel="stylesheet" type="text/css" href="theme/stylesheet.css"
        title="Style">
<SCRIPT type="text/javascript">
function func_1(thisObj, thisEvent) {
//use 'thisObj' to refer directly to this component instead of keyword
'this'
//use 'thissvent' to refer to the event generated instead of keyword
'event'

}</SCRIPT>
</HEAD>
<%@ taglib uri="http://java.sun.com/jsf/html"; prefix="h" %>
<%@ taglib uri="http://java.sun.com/jsf/core"; prefix="f" %>
<body bgcolor="white"><hx:scriptCollector id="scriptCollector1">

<f:view>
        <h:form id="helloForm">
                <H2>Hi. My name is Duke. I'm thinking of a number from
<h:outputText value="#{UserNumberBean.minimum}" /> to <h:outputText
value="#{UserNumberBean.maximum}" />. Can you guess it?</H2>

                <h:graphicImage id="waveImg" url="./wave.med.gif" />
                <h:inputText id="userNo1"
value="#{UserNumberBean.userNumber}"
valueChangeListener="#{Greeting.handleUserNo1ValueChange}">
                        <f:validator validatorId="MyValidator" />
                        </h:inputText>
                <h:commandButton id="submit" action="success"
value="Submit" onblur="return func_1(this, event);"
actionListener="#{MyListener.processAction}" />
                <P><h:message style="color: red; font-family: 'New
Century Schoolbook', serif; font-style: oblique; text-decoration:
overline" id="errors1" for="userNo1" /></P>
                        <H2 align="left"><h:outputText id="result"
value="#{UserNumberBean.response}" /><BR>
                        <hx:fileupload styleClass="fileupload"
id="fileupload1">
                                <hx:fileProp name="fileName" />
                                <hx:fileProp name="contentType" />
                        </hx:fileupload><h:outputText
styleClass="outputText" id="text1"></h:outputText></H2>

                </h:form>
</f:view>

</hx:scriptCollector></body>
</HTML>


[10/26/04 16:26:36:405 CDT] 7eb5dbcf WebGroup      E SRVE0026E: [Servlet
Error]-[javax.faces.component.UIViewRoot]:
javax.servlet.jsp.JspException: javax.faces.component.UIViewRoot
        at
com.ibm.faces.taglib.html_extended.ScriptCollectorTag.doStartTag(ScriptC
ollectorTag.java:119)
        at org.apache.jsp._greeting._jspService(greeting.jsp  :1)
        at
com.ibm.ws.webcontainer.jsp.runtime.HttpJspBase.service(HttpJspBase.java
:89)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
        at
com.ibm.ws.webcontainer.jsp.servlet.JspServlet$JspServletWrapper.service
(JspServlet.java:344)
        at
com.ibm.ws.webcontainer.jsp.servlet.JspServlet.serviceJspFile(JspServlet
.java:669)
        at
com.ibm.ws.webcontainer.jsp.servlet.JspServlet.service(JspServlet.java:7
67)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
        at
com.ibm.ws.webcontainer.servlet.StrictServletInstance.doService(StrictSe
rvletInstance.java:110)
        at
com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet._service(StrictLi
fecycleServlet.java:174)
        at
com.ibm.ws.webcontainer.servlet.IdleServletState.service(StrictLifecycle
Servlet.java:313)
        at
com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet.service(StrictLif
ecycleServlet.java:116)
        at
com.ibm.ws.webcontainer.servlet.ServletInstance.service(ServletInstance.
java:283)
        at
com.ibm.ws.webcontainer.servlet.ValidServletReferenceState.dispatch(Vali
dServletReferenceState.java:42)
        at
com.ibm.ws.webcontainer.servlet.ServletInstanceReference.dispatch(Servle
tInstanceReference.java:40)
        at
com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.handleWebAppDispa
tch(WebAppRequestDispatcher.java:983)
        at
com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.dispatch(WebAppRe
questDispatcher.java:564)
        at
com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.forward(WebAppReq
uestDispatcher.java:200)
        at
com.ibm.faces.context.MultipartExternalContextImpl.dispatch(MultipartExt
ernalContextImpl.java:320)
        at
com.sun.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.jav
a:142)
        at
com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.
java:87)
        at
com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:200)
        at
com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:117)
        at
javax.faces.webapp.FacesServlet.service(FacesServlet.java:198)
        at
com.ibm.ws.webcontainer.servlet.StrictServletInstance.doService(StrictSe
rvletInstance.java:110)
        at
com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet._service(StrictLi
fecycleServlet.java:174)
        at
com.ibm.ws.webcontainer.servlet.IdleServletState.service(StrictLifecycle
Servlet.java:313)
        at
com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet.service(StrictLif
ecycleServlet.java:116)
        at
com.ibm.ws.webcontainer.servlet.ServletInstance.service(ServletInstance.
java:283)
        at
com.ibm.ws.webcontainer.servlet.ValidServletReferenceState.dispatch(Vali
dServletReferenceState.java:42)
        at
com.ibm.ws.webcontainer.servlet.ServletInstanceReference.dispatch(Servle
tInstanceReference.java:40)
        at
com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.handleWebAppDispa
tch(WebAppRequestDispatcher.java:983)
        at
com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.dispatch(WebAppRe
questDispatcher.java:564)
        at
com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.forward(WebAppReq
uestDispatcher.java:200)
        at
com.ibm.ws.webcontainer.srt.WebAppInvoker.doForward(WebAppInvoker.java:1
19)
        at
com.ibm.ws.webcontainer.srt.WebAppInvoker.handleInvocationHook(WebAppInv
oker.java:276)
        at
com.ibm.ws.webcontainer.cache.invocation.CachedInvocation.handleInvocati
on(CachedInvocation.java:71)
        at
com.ibm.ws.webcontainer.srp.ServletRequestProcessor.dispatchByURI(Servle
tRequestProcessor.java:182)
        at
com.ibm.ws.webcontainer.oselistener.OSEListenerDispatcher.service(OSELis
tener.java:334)
        at
com.ibm.ws.webcontainer.http.HttpConnection.handleRequest(HttpConnection
.java:56)
        at
com.ibm.ws.http.HttpConnection.readAndHandleRequest(HttpConnection.java:
618)
        at com.ibm.ws.http.HttpConnection.run(HttpConnection.java:439)
        at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:672)
---- Begin backtrace for Nested Throwables
java.lang.ClassCastException: javax.faces.component.UIViewRoot
        at
com.ibm.faces.taglib.html_extended.ScriptCollectorTag.setProperties(Scri
ptCollectorTag.java:68)
        at
javax.faces.webapp.UIComponentTag.findComponent(UIComponentTag.java:693)
        at
javax.faces.webapp.UIComponentTag.doStartTag(UIComponentTag.java:423)
        at
com.ibm.faces.taglib.html_extended.ScriptCollectorTag.doStartTag(ScriptC
ollectorTag.java:109)
        at org.apache.jsp._greeting._jspService(greeting.jsp  :1)
        at
com.ibm.ws.webcontainer.jsp.runtime.HttpJspBase.service(HttpJspBase.java
:89)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
        at
com.ibm.ws.webcontainer.jsp.servlet.JspServlet$JspServletWrapper.service
(JspServlet.java:344)
        at
com.ibm.ws.webcontainer.jsp.servlet.JspServlet.serviceJspFile(JspServlet
.java:669)
        at
com.ibm.ws.webcontainer.jsp.servlet.JspServlet.service(JspServlet.java:7
67)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
        at
com.ibm.ws.webcontainer.servlet.StrictServletInstance.doService(StrictSe
rvletInstance.java:110)
        at
com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet._service(StrictLi
fecycleServlet.java:174)
        at
com.ibm.ws.webcontainer.servlet.IdleServletState.service(StrictLifecycle
Servlet.java:313)
        at
com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet.service(StrictLif
ecycleServlet.java:116)
        at
com.ibm.ws.webcontainer.servlet.ServletInstance.service(ServletInstance.
java:283)
        at
com.ibm.ws.webcontainer.servlet.ValidServletReferenceState.dispatch(Vali
dServletReferenceState.java:42)
        at
com.ibm.ws.webcontainer.servlet.ServletInstanceReference.dispatch(Servle
tInstanceReference.java:40)
        at
com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.handleWebAppDispa
tch(WebAppRequestDispatcher.java:983)
        at
com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.dispatch(WebAppRe
questDispatcher.java:564)
        at
com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.forward(WebAppReq
uestDispatcher.java:200)
        at
com.ibm.faces.context.MultipartExternalContextImpl.dispatch(MultipartExt
ernalContextImpl.java:320)
        at
com.sun.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.jav
a:142)
        at
com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.
java:87)
        at
com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:200)
        at
com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:117)
        at
javax.faces.webapp.FacesServlet.service(FacesServlet.java:198)
        at
com.ibm.ws.webcontainer.servlet.StrictServletInstance.doService(StrictSe
rvletInstance.java:110)
        at
com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet._service(StrictLi
fecycleServlet.java:174)
        at
com.ibm.ws.webcontainer.servlet.IdleServletState.service(StrictLifecycle
Servlet.java:313)
        at
com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet.service(StrictLif
ecycleServlet.java:116)
        at
com.ibm.ws.webcontainer.servlet.ServletInstance.service(ServletInstance.
java:283)
        at
com.ibm.ws.webcontainer.servlet.ValidServletReferenceState.dispatch(Vali
dServletReferenceState.java:42)
        at
com.ibm.ws.webcontainer.servlet.ServletInstanceReference.dispatch(Servle
tInstanceReference.java:40)
        at
com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.handleWebAppDispa
tch(WebAppRequestDispatcher.java:983)
        at
com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.dispatch(WebAppRe
questDispatcher.java:564)
        at
com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.forward(WebAppReq
uestDispatcher.java:200)
        at
com.ibm.ws.webcontainer.srt.WebAppInvoker.doForward(WebAppInvoker.java:1
19)
        at
com.ibm.ws.webcontainer.srt.WebAppInvoker.handleInvocationHook(WebAppInv
oker.java:276)
        at
com.ibm.ws.webcontainer.cache.invocation.CachedInvocation.handleInvocati
on(CachedInvocation.java:71)
        at
com.ibm.ws.webcontainer.srp.ServletRequestProcessor.dispatchByURI(Servle
tRequestProcessor.java:182)
        at
com.ibm.ws.webcontainer.oselistener.OSEListenerDispatcher.service(OSELis
tener.java:334)
        at
com.ibm.ws.webcontainer.http.HttpConnection.handleRequest(HttpConnection
.java:56)
        at
com.ibm.ws.http.HttpConnection.readAndHandleRequest(HttpConnection.java:
618)
        at com.ibm.ws.http.HttpConnection.run(HttpConnection.java:439)
        at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:672)


As an Amazon Associate we earn from qualifying purchases.

This thread ...


Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.