You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by "Elagin, Egor" <Eg...@umusic.com> on 2006/03/14 20:40:34 UTC

Tomcat Native library (RedHat 4) produces an endless loop or incomplete page with struts validation

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. Also, when I take out the
<html:javascript formName="..."/> from my jsp it renders (but doesn't
validate, of course).
If I remove the native library, 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: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: Tomcat Native library (RedHat 4) produces an endless loop or incomplete page with struts validation

Posted by Mladen Turk <ml...@jboss.com>.
Elagin, Egor wrote:
> 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:
> 
> 
> 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
>

You will need to upgrade to Tomcat 5.5.16
There was a bug in AJP APR connector.
See:
(Fix invalid length used by some AJP packets for the AJP APR connector, 
which could cause corruption, submitted by Rudiger Plum (jim))
In http://tomcat.apache.org/tomcat-5.5-doc/changelog.html

Regards,
Mladen.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org