You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Ben Zahler <be...@ch.ibm.com> on 2006/09/13 09:05:28 UTC
Using IBM JSF components on tomcat
hi all,
I have a problem when using IBM-JSF components on tomcat. I know that is
not a very usual configuration, maybe someone has had similar problems.
This is the code which causes the problem:
And this is the Stacktrace displayed by IE:
Unfortunately, the error occurs in proprietary code, so it is difficult to
track the cause of the problem.
Here a few properties of the problem:
- The problem does not occur when using a websphere server
- the problem does not occur when using firefox
- when using tomcat and IE, the problem does not always occur. Depending
on the configuration the problem occurs between 5% and 50% of pages
loaded. With my laptop and a local tomcat I get 5% in our IBM test
environment and 50% at the client's test environment.
- the problem only occurs on large pages
- removing the id from the <selectitems>-tag will lead to "duplicate ids
on this page", the given id is a generated id. I suspect a relationship
between that error and the error I get now, but obviously I cannot confirm
that.
I'd be very grateful for any suggestions!
thanks,
Ben
Re: Using IBM JSF components on tomcat
Posted by Ben Zahler <be...@ch.ibm.com>.
Sorry about this, it seems like my attachments have not worked properly.
The files should be stacktrace.txt and snippet.jsp for the code example.
sorry!
Ben
Ben Zahler/Switzerland/IBM@IBMCH
13.09.2006 09:05
Please respond to
"Tomcat Users List" <us...@tomcat.apache.org>
To
users@tomcat.apache.org
cc
Subject
Using IBM JSF components on tomcat
hi all,
I have a problem when using IBM-JSF components on tomcat. I know that is
not a very usual configuration, maybe someone has had similar problems.
This is the code which causes the problem:
And this is the Stacktrace displayed by IE:
Unfortunately, the error occurs in proprietary code, so it is difficult to
track the cause of the problem.
Here a few properties of the problem:
- The problem does not occur when using a websphere server
- the problem does not occur when using firefox
- when using tomcat and IE, the problem does not always occur. Depending
on the configuration the problem occurs between 5% and 50% of pages
loaded. With my laptop and a local tomcat I get 5% in our IBM test
environment and 50% at the client's test environment.
- the problem only occurs on large pages
- removing the id from the <selectitems>-tag will lead to "duplicate ids
on this page", the given id is a generated id. I suspect a relationship
between that error and the error I get now, but obviously I cannot confirm
that.
I'd be very grateful for any suggestions!
thanks,
Ben[attachment "stacktrace.txt" deleted by Ben Zahler/Switzerland/IBM]
---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
Re: Using IBM JSF components on tomcat
Posted by David Delbecq <de...@oma.be>.
Hi,
considering it's an null pointer exception and the fact the
scriptCollector does not request any special parameter (it just collects
scripts from childs), i'd suggest you address this specific issue the
your websphere customer service :)
Ben Zahler a écrit :
> Hi David,
>
> the code I have copied is placed inside the following tags:
> <hx:scriptCollector id="scriptCollector2">
> <h:form styleClass="form" id="form05">
> <TABLE>
> <TBODY>
> <TR>
>
> of course, the tags are all properly closed at the end, I'm quite sure
> that there is no syntax error on the page.
>
>
>
>
>
>
> David Delbecq <de...@oma.be>
> 13.09.2006 09:36
> Please respond to
> "Tomcat Users List" <us...@tomcat.apache.org>
>
>
> To
> Tomcat Users List <us...@tomcat.apache.org>
> cc
>
> Subject
> Re: Using IBM JSF components on tomcat
>
>
>
>
>
>
> Hi Ben,
>
> according to your stack trace, the error occurs somewhere below the call
> of ScriptCollectorTag.doEndTag(), itself called by
> org.apache.jsp.searchTKS_jsp._jspx_meth_hx_scriptCollector_0, that mean
> during the 'endTag' steps of the first <hx:scriptCollector ...> inside
> your jsp. However, the JSP code you show us has no such tag.
>
> Ben Zahler a écrit :
>
>> I'm really sorry, seems like the mailing list program does not process
>> my attachment properly, so I'll take one more last try.
>>
>> sorry again
>> Ben
>> ------------------------------------------------------------------------
>>
>> <TD valign="top" width="431">
>> <h:inputText styleClass="inputText" id="projectFieldxxx"
>> style="width: 300px" value="#{projectBean.value}"
>> onchange="this.form.submit()" tabindex="8">
>> </h:inputText>
>> <hx:commandExButton type="submit" styleClass="commandExButton"
>> id="projectbuttonxxx" image="images/more.gif"
>> style="height: 23px; width: 23px"
>> action="#{pc_Search.search}"
>>
> onclick="func_searchDB('form05:projectFieldxxx')">
>
>> </hx:commandExButton>
>> <hx:commandExButton type="submit" styleClass="commandExButton"
>> id="adminProjectButtonxxx" image="images/bulletarrow.gif"
>> onclick="return func_4();"
>> rendered="#{pc_Search.sessionBean.adminTks}">
>> </hx:commandExButton>
>> <h:selectOneMenu id="projectBoxxxx" styleClass="selectOneMenu"
>> style="width: 300px"
>>
>>
> onchange="document.getElementById('form05:projectFieldxxx').value=this.value;this.form.submit()"
>
> onkeypress="document.getElementById('form05:projectFieldxxx').value=this.value;this.form.submit()"
> tabindex="9">
>
>> <f:selectItems id="selectProjectxxx"
>> value="#{selectitems.projectBean.valueSet.valueSet.toArray}" />
>> </h:selectOneMenu></TD>
>> ------------------------------------------------------------------------
>>
>> ---------------------------------------------------------------------
>> To start a new topic, e-mail: users@tomcat.apache.org
>> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
>> For additional commands, e-mail: users-help@tomcat.apache.org
>>
>
>
> ---------------------------------------------------------------------
> To start a new topic, e-mail: users@tomcat.apache.org
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>
>
>
>
---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
Re: Using IBM JSF components on tomcat
Posted by Ben Zahler <be...@ch.ibm.com>.
Hi David,
the code I have copied is placed inside the following tags:
<hx:scriptCollector id="scriptCollector2">
<h:form styleClass="form" id="form05">
<TABLE>
<TBODY>
<TR>
of course, the tags are all properly closed at the end, I'm quite sure
that there is no syntax error on the page.
David Delbecq <de...@oma.be>
13.09.2006 09:36
Please respond to
"Tomcat Users List" <us...@tomcat.apache.org>
To
Tomcat Users List <us...@tomcat.apache.org>
cc
Subject
Re: Using IBM JSF components on tomcat
Hi Ben,
according to your stack trace, the error occurs somewhere below the call
of ScriptCollectorTag.doEndTag(), itself called by
org.apache.jsp.searchTKS_jsp._jspx_meth_hx_scriptCollector_0, that mean
during the 'endTag' steps of the first <hx:scriptCollector ...> inside
your jsp. However, the JSP code you show us has no such tag.
Ben Zahler a écrit :
>
> I'm really sorry, seems like the mailing list program does not process
> my attachment properly, so I'll take one more last try.
>
> sorry again
> Ben
> ------------------------------------------------------------------------
>
> <TD valign="top" width="431">
> <h:inputText styleClass="inputText" id="projectFieldxxx"
> style="width: 300px" value="#{projectBean.value}"
> onchange="this.form.submit()" tabindex="8">
> </h:inputText>
> <hx:commandExButton type="submit" styleClass="commandExButton"
> id="projectbuttonxxx" image="images/more.gif"
> style="height: 23px; width: 23px"
> action="#{pc_Search.search}"
onclick="func_searchDB('form05:projectFieldxxx')">
> </hx:commandExButton>
> <hx:commandExButton type="submit" styleClass="commandExButton"
> id="adminProjectButtonxxx" image="images/bulletarrow.gif"
> onclick="return func_4();"
> rendered="#{pc_Search.sessionBean.adminTks}">
> </hx:commandExButton>
> <h:selectOneMenu id="projectBoxxxx" styleClass="selectOneMenu"
> style="width: 300px"
>
onchange="document.getElementById('form05:projectFieldxxx').value=this.value;this.form.submit()"
>
onkeypress="document.getElementById('form05:projectFieldxxx').value=this.value;this.form.submit()"
tabindex="9">
> <f:selectItems id="selectProjectxxx"
> value="#{selectitems.projectBean.valueSet.valueSet.toArray}" />
> </h:selectOneMenu></TD>
> ------------------------------------------------------------------------
>
> ---------------------------------------------------------------------
> To start a new topic, e-mail: users@tomcat.apache.org
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
Re: Using IBM JSF components on tomcat
Posted by David Delbecq <de...@oma.be>.
Hi Ben,
according to your stack trace, the error occurs somewhere below the call
of ScriptCollectorTag.doEndTag(), itself called by
org.apache.jsp.searchTKS_jsp._jspx_meth_hx_scriptCollector_0, that mean
during the 'endTag' steps of the first <hx:scriptCollector ...> inside
your jsp. However, the JSP code you show us has no such tag.
Ben Zahler a écrit :
>
> I'm really sorry, seems like the mailing list program does not process
> my attachment properly, so I'll take one more last try.
>
> sorry again
> Ben
> ------------------------------------------------------------------------
>
> <TD valign="top" width="431">
> <h:inputText styleClass="inputText" id="projectFieldxxx"
> style="width: 300px" value="#{projectBean.value}"
> onchange="this.form.submit()" tabindex="8">
> </h:inputText>
> <hx:commandExButton type="submit" styleClass="commandExButton"
> id="projectbuttonxxx" image="images/more.gif"
> style="height: 23px; width: 23px"
> action="#{pc_Search.search}" onclick="func_searchDB('form05:projectFieldxxx')">
> </hx:commandExButton>
> <hx:commandExButton type="submit" styleClass="commandExButton"
> id="adminProjectButtonxxx" image="images/bulletarrow.gif"
> onclick="return func_4();"
> rendered="#{pc_Search.sessionBean.adminTks}">
> </hx:commandExButton>
> <h:selectOneMenu id="projectBoxxxx" styleClass="selectOneMenu"
> style="width: 300px"
> onchange="document.getElementById('form05:projectFieldxxx').value=this.value;this.form.submit()"
> onkeypress="document.getElementById('form05:projectFieldxxx').value=this.value;this.form.submit()" tabindex="9">
> <f:selectItems id="selectProjectxxx"
> value="#{selectitems.projectBean.valueSet.valueSet.toArray}" />
> </h:selectOneMenu></TD>
> ------------------------------------------------------------------------
>
> ---------------------------------------------------------------------
> To start a new topic, e-mail: users@tomcat.apache.org
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
Re: Using IBM JSF components on tomcat
Posted by Ben Zahler <be...@ch.ibm.com>.
I'm really sorry, seems like the mailing list program does not process my
attachment properly, so I'll take one more last try.
sorry again
Ben