The Author Online Book Forums are Moving

The Author Online Book Forums will soon redirect to Manning's liveBook and liveVideo. All book forum content will migrate to liveBook's discussion forum and all video forum content will migrate to liveVideo. Log in to liveBook or liveVideo with your Manning credentials to join the discussion!

Thank you for your engagement in the AoF over the years! We look forward to offering you a more enhanced forum experience.

import-bot (20211) [Avatar] Offline
#1
[Originally posted by krumelur]

I cant get the Jdbc driven webstore to work at all, I get all kinds of errors,
for instance: When Im trying to execute categoryList.jsp i get the following
Error:

java.util.MissingResourceException: Can't find resource for bundle
java.util.PropertyResourceBundle, key NULL_ENCLOSING_WITHTAG

and

when Im using the tag <bean:show object="<%=request%>" property="parameter">
index="id"/>
I get the following error:

javax.servlet.jsp.JspTagException: Error: Illegal method access on property
[parameter]

Can anyone please help me?
Thanks

Kim
import-bot (20211) [Avatar] Offline
#2
Re: Problems with Jdbc driven webstore
[Originally posted by m0rph13]

Hi Kim,
what Application Server are you using it on?
Have you had problems with the tags used prior to running the Case study on
this application server?
import-bot (20211) [Avatar] Offline
#3
Re: Problems with Jdbc driven webstore
[Originally posted by krumelur]

Hello,

It works fine in Orion but not in Tomcat 3.2.
Yes, I have had problems with iteration-taglib,conditions-taglib,
beans-taglib, especially when Im using the attribute property.

Many thanks in advance,

Kim


> Hi Kim,
> what Application Server are you using it on?
> Have you had problems with the tags used prior to running the Case study on
> this application server?
import-bot (20211) [Avatar] Offline
#4
Re: Problems with Jdbc driven webstore
[Originally posted by m0rph13]

I will go throgh the sample this weekend on the latest Tomcat version and make
sure to post any extra configuration that needs to be done to this forum.
WR
import-bot (20211) [Avatar] Offline
#5
Re: Problems with Jdbc driven webstore
[Originally posted by shachor]

>
> when Im using the tag <bean:show object="<%=request%>" property="parameter">
> index="id"/>
> I get the following error:
>
> javax.servlet.jsp.JspTagException: Error: Illegal method access on property
> [parameter]
>
> Can anyone please help me?
> Thanks
>
Kim,

Many of the tags developed in the book use introspection. This includes all the
bean tags, condition tags etc. Introspection is good since it allows us to gain
flexibility! Yet, by using it we may fall into traps such as the “Illegal
method access”
encountered by you.

One cannot introspect a protected class or method (and it does not matter
whether it
is package protection or some other protection scope). The bean:show tag uses
introspection to access the method getParameter() in the class that implements
the
request object. In Tomcat3.2 this is a package protected class, so we get an
“Illegal method access” error. In Orion (and Tomcat4.0), this is a public
class,
and the tags (including the JDBC web store) should be OK there.

Hope it helps,

Gal Shachor
import-bot (20211) [Avatar] Offline
#6
Re: Problems with Jdbc driven webstore
[Originally posted by shachor]

>
> when Im using the tag <bean:show object="<%=request%>" property="parameter">
> index="id"/>
> I get the following error:
>
> javax.servlet.jsp.JspTagException: Error: Illegal method access on property
> [parameter]
>
> Can anyone please help me?
> Thanks
>
Kim,

Many of the tags developed in the book use introspection. This includes all the
bean tags, condition tags etc. Introspection is good since it allows us to gain
flexibility! Yet, by using it we may fall into traps such as the “Illegal
method access”
encountered by you.

One cannot introspect a protected class or method (and it does not matter
whether it
is package protection or some other protection scope). The bean:show tag uses
introspection to access the method getParameter() in the class that implements
the
request object. In Tomcat3.2 this is a package protected class, so we get an
“Illegal method access” error. In Orion (and Tomcat4.0), this is a public
class,
and the tags (including the JDBC web store) should be OK there.

Hope it helps,

Gal Shachor