Re: taglibs

2017-11-07 Thread Ray Holme
OK, so I tried that and found one library needs to be excluded (from the 
exclusion list) - i.e. scanned
# ls jstl*; grep ".tld" jstl-*
jstl-api-1.2.jar  jstl-impl-1.2.jar
Binary file jstl-impl-1.2.jar matches

So if your rule works, I need jstl-impl to be scanned, but jstl-api could be 
excluded.
Nice! Thanks.
Ray
 

On Monday, November 6, 2017 10:54 AM, Mark H. Wood  wrote:
 

 On Mon, Nov 06, 2017 at 10:13:42AM -0500, Christopher Schultz wrote:
> -BEGIN PGP SIGNED MESSAGE-
> Hash: SHA256
> 
> Ray,
> 
> On 11/6/17 9:48 AM, Ray Holme wrote:
> > I am not the primary developer. I do Java and DB development. I
> > leave the JSP for someone else (I am mostly retired but I have
> > been doing this a LONG time).> But I deal with distributions and
> > builds so I was the one who modified the "not to SCAN"
> > libraries.2.5 minutes down to less than 1 second.
> Fast and broken is worse than slow and working. :)
> 
> > But I blew it with the jstl jars so I just wanted to know if there
> > is any way to find out if the jar is a taglib.
> So... generally speaking I would say "you should know your own
> libraries" but it shouldn't be hard to determine which libraries are
> taglibs. Simply look in each JAR file to see if there are any ".tld"
> files.

That's what I thought, too.  I looked, and the jstl-api JAR doesn't
contain any TLDs.  The corresponding jstl-impl JAR does, though.

-- 
Mark H. Wood
Lead Technology Analyst

University Library
Indiana University - Purdue University Indianapolis
755 W. Michigan Street
Indianapolis, IN 46202
317-274-0749
www.ulib.iupui.edu

   

Re: taglibs

2017-11-06 Thread Mark H. Wood
On Mon, Nov 06, 2017 at 10:13:42AM -0500, Christopher Schultz wrote:
> -BEGIN PGP SIGNED MESSAGE-
> Hash: SHA256
> 
> Ray,
> 
> On 11/6/17 9:48 AM, Ray Holme wrote:
> > I am not the primary developer. I do Java and DB development. I
> > leave the JSP for someone else (I am mostly retired but I have
> > been doing this a LONG time).> But I deal with distributions and
> > builds so I was the one who modified the "not to SCAN"
> > libraries.2.5 minutes down to less than 1 second.
> Fast and broken is worse than slow and working. :)
> 
> > But I blew it with the jstl jars so I just wanted to know if there
> > is any way to find out if the jar is a taglib.
> So... generally speaking I would say "you should know your own
> libraries" but it shouldn't be hard to determine which libraries are
> taglibs. Simply look in each JAR file to see if there are any ".tld"
> files.

That's what I thought, too.  I looked, and the jstl-api JAR doesn't
contain any TLDs.  The corresponding jstl-impl JAR does, though.

-- 
Mark H. Wood
Lead Technology Analyst

University Library
Indiana University - Purdue University Indianapolis
755 W. Michigan Street
Indianapolis, IN 46202
317-274-0749
www.ulib.iupui.edu


signature.asc
Description: PGP signature


Re: taglibs

2017-11-06 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA256

Ray,

On 11/6/17 9:48 AM, Ray Holme wrote:
> I am not the primary developer. I do Java and DB development. I
> leave the JSP for someone else (I am mostly retired but I have
> been doing this a LONG time).> But I deal with distributions and
> builds so I was the one who modified the "not to SCAN"
> libraries.2.5 minutes down to less than 1 second.
Fast and broken is worse than slow and working. :)

> But I blew it with the jstl jars so I just wanted to know if there
> is any way to find out if the jar is a taglib.
So... generally speaking I would say "you should know your own
libraries" but it shouldn't be hard to determine which libraries are
taglibs. Simply look in each JAR file to see if there are any ".tld"
files.

Some libraries include tag libraries that your application doesn't
care about, though, and you may be able to skip JAR scanning for those
JARs if you know enough about their use by your application.

- -chris
-BEGIN PGP SIGNATURE-
Comment: GPGTools - http://gpgtools.org
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iQIzBAEBCAAdFiEEMmKgYcQvxMe7tcJcHPApP6U8pFgFAloAfCYACgkQHPApP6U8
pFg/Rw//d7uXPFuCTucg9E9zGbb4mvO9pfvz+s8YLg81Z5l9b+sDvyWGpYsT9lLg
OuOqoX7jJBR2fkwKZ2xaicviuHN+u+GHTHbJjkktf+U7yv6VUNo6ZOnZBeCQOLjV
XFMXsxZl6q5o5Gn5jFBVjykqZUZSxlL98lDFJuzm7ut3wtqB/CD0ttGsHsXXBq+u
fC4jJUYzYltRR0oYw161fwRfWQ/EqFtYObZCohTvVtByO5Vh3aKHyg8s7cRqLV+7
dz/qhwmXGEvWPiQrNjcZcUEBxXymYOSCspXtX/BaWJH5vL/I78CrjgrjzzrHpz9O
w77TlYxgDe5vgRxItrHUv3Omn4QKEYTzxUKrsUpRIghquDg7UL9VqD0bSKi6Njfb
5rX+00Btt4EbRGaqfNFpDNOfbDZat8Ktk6Og6Me/SbZi/AFQrggoc+CFDSjKvHeJ
B3B8OWjexnzvaZiJ3RybO3wuPDF63Z3Sqx1JVL6JVVYi4USFj0Nf8kXGL7PcZjHu
VdxA/spAKEojzDB6vxquO5FL4VwI2T+r+4nzkp5cnFtcPj79L+B30p1Q9HGmvAQD
4i3ez+u1Hh36Wf8oovMj3v3dzesEE459kpM3Yag44vs6y6CGtuHglDArJt7BC08D
4YrQdT9r+c/pnzeV+lOTivD0vfvUdRcklJVNYQ+6jJ/n/UkCjl0=
=NUyW
-END PGP SIGNATURE-

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



Re: taglibs

2017-11-06 Thread Ray Holme
Chris,
I am not the primary developer. I do Java and DB development.
I leave the JSP for someone else (I am mostly retired but I have been doing 
this a LONG time).
But I deal with distributions and builds so I was the one who modified the "not 
to SCAN" libraries.2.5 minutes down to less than 1 second.But I blew it with 
the jstl jars so I just wanted to know if there is any way to find out if the 
jar is a taglib.
I don't think we use Maven.


 

On Monday, November 6, 2017 9:05 AM, Christopher Schultz 
 wrote:
 

 -BEGIN PGP SIGNED MESSAGE-
Hash: SHA256

Ray,

On 11/6/17 8:49 AM, Ray Holme wrote:
> So according to Mark, taglibs must NOT be listed in the
> catalina.properties file under
> tomcat.util.scan.StandardJarScanFilter.jarsToSkip Mark informed us
> that the below jstl... jars are both taglibs:  (jstl-api-1.2.jar &
> jstl-impl-1.2.jar)
> 
> Sooo - how do we determine if a jar we want to add is a taglib?

Umm... if you use a library, don't you know what it does?

Oh, maybe you are in Maven hell where you download the whole internet
in order to build/deploy your application. #sorrynotsorry

- -chris
-BEGIN PGP SIGNATURE-
Comment: GPGTools - http://gpgtools.org
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iQIzBAEBCAAdFiEEMmKgYcQvxMe7tcJcHPApP6U8pFgFAloAbC0ACgkQHPApP6U8
pFgSqBAAyz9yTAKGE2RSyZRUwW7wUcinYV7NwqQ+7E1kC7hy2E9tCyC9E+AGiTr7
GuJHUb+yJ4UP1vKjQ2SO+Cffmxbyz1PsfMOMhO6abDJQVOj3aHbIjUw70GlS5w+7
10l8Pe39fl+5GQQHLAye/XZgGv7dNVmITFmGAfonN+1gHi5L3Kio1VaYfn/7W+vx
KvYK7DbnmcdiANDBPS9g2/pdKlxYj4frA13QOEKnwStjWrSquEuXji4RsC2iYedl
+IyGq5IVVXZ1vGEBItfQverdZrqtbkDYu3UKiJ6rFkJiI6tf56ERE+lLQYbIsDbU
Mg2gV72PlQU/CUdqb5rqDjZLVk6FfKg18DysE0ywvRY0r7dsZugiED7y2438a9kJ
EHzbZdGyNmJbT1hW4p52wyrwR/AHgKriSRsupgw4xaVQfLAFOYEv0revg9fmPr1R
BoZWu2xoqVViUgnTV4TmV/zJsezogOstK6AEL03zTc1No+Jha+yzMTl0TE7efAf9
7ACHZ02XwtidSH33QwxpyoRafxjYMF5/D/3c0GJWlwTL8dc9zlnIFFyZclWv14Vw
DeNavGVyulP5aytl30VIS+wb2N1pUdMbeGCiD1jipomtITnKI9YjUsesj0Lu7c43
C/GRx5OLBCgM5bpTjFn2KR8Yd8D5TgUoE4KYDeONaopu2Tf1rPs=
=I6Qf
-END PGP SIGNATURE-

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



   

Re: taglibs

2017-11-06 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA256

Ray,

On 11/6/17 8:49 AM, Ray Holme wrote:
> So according to Mark, taglibs must NOT be listed in the
> catalina.properties file under
> tomcat.util.scan.StandardJarScanFilter.jarsToSkip Mark informed us
> that the below jstl... jars are both taglibs:   (jstl-api-1.2.jar &
> jstl-impl-1.2.jar)
> 
> Sooo - how do we determine if a jar we want to add is a taglib?

Umm... if you use a library, don't you know what it does?

Oh, maybe you are in Maven hell where you download the whole internet
in order to build/deploy your application. #sorrynotsorry

- -chris
-BEGIN PGP SIGNATURE-
Comment: GPGTools - http://gpgtools.org
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iQIzBAEBCAAdFiEEMmKgYcQvxMe7tcJcHPApP6U8pFgFAloAbC0ACgkQHPApP6U8
pFgSqBAAyz9yTAKGE2RSyZRUwW7wUcinYV7NwqQ+7E1kC7hy2E9tCyC9E+AGiTr7
GuJHUb+yJ4UP1vKjQ2SO+Cffmxbyz1PsfMOMhO6abDJQVOj3aHbIjUw70GlS5w+7
10l8Pe39fl+5GQQHLAye/XZgGv7dNVmITFmGAfonN+1gHi5L3Kio1VaYfn/7W+vx
KvYK7DbnmcdiANDBPS9g2/pdKlxYj4frA13QOEKnwStjWrSquEuXji4RsC2iYedl
+IyGq5IVVXZ1vGEBItfQverdZrqtbkDYu3UKiJ6rFkJiI6tf56ERE+lLQYbIsDbU
Mg2gV72PlQU/CUdqb5rqDjZLVk6FfKg18DysE0ywvRY0r7dsZugiED7y2438a9kJ
EHzbZdGyNmJbT1hW4p52wyrwR/AHgKriSRsupgw4xaVQfLAFOYEv0revg9fmPr1R
BoZWu2xoqVViUgnTV4TmV/zJsezogOstK6AEL03zTc1No+Jha+yzMTl0TE7efAf9
7ACHZ02XwtidSH33QwxpyoRafxjYMF5/D/3c0GJWlwTL8dc9zlnIFFyZclWv14Vw
DeNavGVyulP5aytl30VIS+wb2N1pUdMbeGCiD1jipomtITnKI9YjUsesj0Lu7c43
C/GRx5OLBCgM5bpTjFn2KR8Yd8D5TgUoE4KYDeONaopu2Tf1rPs=
=I6Qf
-END PGP SIGNATURE-

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



Re: Taglibs ; error in a JSP using expression langluage

2006-08-08 Thread Hassan Schroeder

On 8/8/06, Le Nguyen-Thinh <[EMAIL PROTECTED]> wrote:


My JSP contains a piece of code which calls a tag from the taglib above:



What in the world is that supposed  to be referring to?


java.lang.NumberFormatException: For input string: "${0}"


Try:  

(assuming MAX is actually set somewhere to an integer value...)

--
Hassan Schroeder  [EMAIL PROTECTED]

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Taglibs ; error in a JSP using expression langluage

2006-08-08 Thread Le Nguyen-Thinh

Thanks all for your advice.
My web.xml has an entry:

!DOCTYPE web-app
   PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
   "http://java.sun.com/dtd/web-app_2_3.dtd";>

which, I think, caused the error.

I have inserted the line:

<%@ page ... isELIgnored="false" %>

as Pid suggested and the error disappeared.

Thanks a lot.

Thinh


David Smith wrote:

One other possibility -- which servlet spec version do you have 
specified in your web.xml?  If web.xml declares an older version of 
the servlet spec, these ${} expressions may not be available.


--David

Pid wrote:


which version of tomcat are you using?

is Expression Language enabled? as it looks like it's passing the ${0}
variable as a string rather than evaluating it.

Try setting the following attribute in your JSP 'page' directive.

<%@ page ... isELIgnored="false" %>


Le Nguyen-Thinh wrote:
 


Dear friends,

I have a JSP which uses following taglibs:

<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"; %>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"; %>


My JSP contains a piece of code which calls a tag from the taglib 
above:

var="ind">  target="${argBean}" property="name"

value="${paramValues.argName[ind]}" />
   
   
   
   
  
The Tomcat server returns following error:


java.lang.NumberFormatException: For input string: "${0}"
   
java.lang.NumberFormatException.forInputString(NumberFormatException.java:48) 



   java.lang.Integer.parseInt(Integer.java:447)
   java.lang.Integer.valueOf(Integer.java:553)
   org.apache.jasper.compiler.JspUtil.coerceToInt(JspUtil.java:752)

It seems to me that Tomcat could not interpret the JSP. My question is,
do I miss some libraries? Do My application runs on Linux Debian,
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_04-b05)
(j2sdk1.5-sun).
The taglibs jstl.jar and standard.jar stem from
jakarta-taglibs-standard-1.1.2.

Thanks a lot for your help.

Thinh


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



  



-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

 




-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Taglibs ; error in a JSP using expression langluage

2006-08-08 Thread David Smith
One other possibility -- which servlet spec version do you have 
specified in your web.xml?  If web.xml declares an older version of the 
servlet spec, these ${} expressions may not be available.


--David

Pid wrote:


which version of tomcat are you using?

is Expression Language enabled? as it looks like it's passing the ${0}
variable as a string rather than evaluating it.

Try setting the following attribute in your JSP 'page' directive.

<%@ page ... isELIgnored="false" %>


Le Nguyen-Thinh wrote:
 


Dear friends,

I have a JSP which uses following taglibs:

<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"; %>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"; %>


My JSP contains a piece of code which calls a tag from the taglib above:
var="ind">   
   
value="${paramValues.argName[ind]}" />
   
   
   
   
   


The Tomcat server returns following error:

java.lang.NumberFormatException: For input string: "${0}"
   java.lang.NumberFormatException.forInputString(NumberFormatException.java:48)

   java.lang.Integer.parseInt(Integer.java:447)
   java.lang.Integer.valueOf(Integer.java:553)
   org.apache.jasper.compiler.JspUtil.coerceToInt(JspUtil.java:752)

It seems to me that Tomcat could not interpret the JSP. My question is,
do I miss some libraries? Do My application runs on Linux Debian,
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_04-b05)
(j2sdk1.5-sun).
The taglibs jstl.jar and standard.jar stem from
jakarta-taglibs-standard-1.1.2.

Thanks a lot for your help.

Thinh


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



   



-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

 




-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Taglibs ; error in a JSP using expression langluage

2006-08-08 Thread Pid
which version of tomcat are you using?

is Expression Language enabled? as it looks like it's passing the ${0}
variable as a string rather than evaluating it.

Try setting the following attribute in your JSP 'page' directive.

<%@ page ... isELIgnored="false" %>


Le Nguyen-Thinh wrote:
> Dear friends,
> 
> I have a JSP which uses following taglibs:
> 
> <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"; %>
> <%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"; %>
> 
> 
> My JSP contains a piece of code which calls a tag from the taglib above:
>  var="ind">   
>  value="${paramValues.argName[ind]}" />
>  value="${paramValues.argType[ind]}" />
>  value="${paramValues.argMode[ind]}" />
>  value="${paramValues.argState[ind]}" />
>  value="${argBean}" />
>
> 
> The Tomcat server returns following error:
> 
> java.lang.NumberFormatException: For input string: "${0}"
> 
> java.lang.NumberFormatException.forInputString(NumberFormatException.java:48)
> 
> java.lang.Integer.parseInt(Integer.java:447)
> java.lang.Integer.valueOf(Integer.java:553)
> org.apache.jasper.compiler.JspUtil.coerceToInt(JspUtil.java:752)
> 
> It seems to me that Tomcat could not interpret the JSP. My question is,
> do I miss some libraries? Do My application runs on Linux Debian,
> Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_04-b05)
> (j2sdk1.5-sun).
> The taglibs jstl.jar and standard.jar stem from
> jakarta-taglibs-standard-1.1.2.
> 
> Thanks a lot for your help.
> 
> Thinh
> 
> 
> -
> To start a new topic, e-mail: users@tomcat.apache.org
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]