You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by "Elagin, Egor" <Eg...@umusic.com> on 2006/03/14 19:45:22 UTC
Tomcat Native library (RedHat 4) produces an endless loop in ValidatorForm
Hello,
I'm using struts 1.2.8 with Tomcat 5.5.15 and just installed libtcnative
(Linux Red Hat 4) to fix the warning I was getting:
INFO AprLifecycleListener:86 - The Apache Tomcat Native library which
allows optimal performance in production environments was not found on
the java.library.path:
/usr/java/jdk1.5.0/jre/lib/i386/client:/usr/java/jdk1.5.0/jre/lib/i386:/
usr/java/jdk1.5.0/jre/../lib/i386
Now that I have installed that library, tomcat works faster and I do not
get the warning anymore, BUT I can't use any forms derived from
ValidatorForm. When I use Netscape, it delivers an incomplete page,
ending with
/*$RCSfile: validateCreditCard.js,v $ $Revision: 1.8 $ $Date: 2004/03/28
16:53:21 $ */
/**
* Check to see if fields are a valid creditcard number based on Luhn
checksum.
* Fields are not checked if they are disabled.
* <p>
* @param form The form validatio
However, there is nothing in the log, even with org.apache.struts set to
debug.
This renders on Netscape as " * @param form The form validation is
taking place on. */..."
On Internet Explorer, I get an endless loop trying to render the page,
and the following log:
19:27:48,261 DEBUG PropertyMessageResources:132 -
getMessage(en_US,labels.phone)
19:27:48,262 DEBUG PropertyMessageResources:224 - loadLocale(en_US)
19:27:48,270 DEBUG PropertyMessageResources:132 -
getMessage(en_US,labels.phone)
19:27:48,271 DEBUG PropertyMessageResources:224 - loadLocale(en_US)
19:27:48,349 DEBUG RequestUtils:200 - Looking for ActionForm bean
instance in scope 'request' under attribute key 'checkForm'
19:27:48,350 DEBUG RequestUtils:294 - Creating new ActionForm instance
of type 'com.umusic.ecrm.web.mobileGateway.CheckForm'
19:27:48,351 DEBUG RequestUtils:300 - -->
com.umusic.ecrm.web.mobileGateway.CheckForm@15f4a7f
19:28:04,643 DEBUG PropertyMessageResources:132 -
getMessage(en_US,labels.phone)
19:28:04,644 DEBUG PropertyMessageResources:224 - loadLocale(en_US)
19:28:04,644 DEBUG PropertyMessageResources:132 -
getMessage(en_US,labels.phone)
19:28:04,644 DEBUG PropertyMessageResources:224 - loadLocale(en_US)
19:28:04,810 DEBUG RequestUtils:200 - Looking for ActionForm bean
instance in scope 'request' under attribute key 'checkForm'
19:28:04,813 DEBUG RequestUtils:294 - Creating new ActionForm instance
of type 'com.umusic.ecrm.web.mobileGateway.CheckForm'
19:28:04,813 DEBUG RequestUtils:300 - -->
com.umusic.ecrm.web.mobileGateway.CheckForm@1972e3a
...
and so on.
All regular ActionForms render normally.
If I remove the native library, I get the warning back, and the page
renders normally on both browsers.
Does anyone have any clue how to debug this? I really want to use the
native library and the only problem is the struts pages that use
ValidatorForms.
Thanks in advance!
Egor
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
Re: Tomcat Native library (RedHat 4) produces an endless loop in ValidatorForm
Posted by Niall Pemberton <ni...@blueyonder.co.uk>.
If you take out the client side validation does that have any impact?
Also, have you tried asking on the Tomcat User list? I had a quick look at
Tomcat bugs - don't know if its the same, but I found these:
http://issues.apache.org/bugzilla/show_bug.cgi?id=37627
http://issues.apache.org/bugzilla/show_bug.cgi?id=38372
Niall
----- Original Message -----
From: "Elagin, Egor" <Eg...@umusic.com>
Sent: Tuesday, March 14, 2006 6:45 PM
Hello,
I'm using struts 1.2.8 with Tomcat 5.5.15 and just installed libtcnative
(Linux Red Hat 4) to fix the warning I was getting:
INFO AprLifecycleListener:86 - The Apache Tomcat Native library which
allows optimal performance in production environments was not found on
the java.library.path:
/usr/java/jdk1.5.0/jre/lib/i386/client:/usr/java/jdk1.5.0/jre/lib/i386:/
usr/java/jdk1.5.0/jre/../lib/i386
Now that I have installed that library, tomcat works faster and I do not
get the warning anymore, BUT I can't use any forms derived from
ValidatorForm. When I use Netscape, it delivers an incomplete page,
ending with
/*$RCSfile: validateCreditCard.js,v $ $Revision: 1.8 $ $Date: 2004/03/28
16:53:21 $ */
/**
* Check to see if fields are a valid creditcard number based on Luhn
checksum.
* Fields are not checked if they are disabled.
* <p>
* @param form The form validatio
However, there is nothing in the log, even with org.apache.struts set to
debug.
This renders on Netscape as " * @param form The form validation is
taking place on. */..."
On Internet Explorer, I get an endless loop trying to render the page,
and the following log:
19:27:48,261 DEBUG PropertyMessageResources:132 -
getMessage(en_US,labels.phone)
19:27:48,262 DEBUG PropertyMessageResources:224 - loadLocale(en_US)
19:27:48,270 DEBUG PropertyMessageResources:132 -
getMessage(en_US,labels.phone)
19:27:48,271 DEBUG PropertyMessageResources:224 - loadLocale(en_US)
19:27:48,349 DEBUG RequestUtils:200 - Looking for ActionForm bean
instance in scope 'request' under attribute key 'checkForm'
19:27:48,350 DEBUG RequestUtils:294 - Creating new ActionForm instance
of type 'com.umusic.ecrm.web.mobileGateway.CheckForm'
19:27:48,351 DEBUG RequestUtils:300 - -->
com.umusic.ecrm.web.mobileGateway.CheckForm@15f4a7f
19:28:04,643 DEBUG PropertyMessageResources:132 -
getMessage(en_US,labels.phone)
19:28:04,644 DEBUG PropertyMessageResources:224 - loadLocale(en_US)
19:28:04,644 DEBUG PropertyMessageResources:132 -
getMessage(en_US,labels.phone)
19:28:04,644 DEBUG PropertyMessageResources:224 - loadLocale(en_US)
19:28:04,810 DEBUG RequestUtils:200 - Looking for ActionForm bean
instance in scope 'request' under attribute key 'checkForm'
19:28:04,813 DEBUG RequestUtils:294 - Creating new ActionForm instance
of type 'com.umusic.ecrm.web.mobileGateway.CheckForm'
19:28:04,813 DEBUG RequestUtils:300 - -->
com.umusic.ecrm.web.mobileGateway.CheckForm@1972e3a
...
and so on.
All regular ActionForms render normally.
If I remove the native library, I get the warning back, and the page
renders normally on both browsers.
Does anyone have any clue how to debug this? I really want to use the
native library and the only problem is the struts pages that use
ValidatorForms.
Thanks in advance!
Egor
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org