WARNING: This server is unstable and will be retired in the next days. If you want to keep this forum available, please request immediately a migration on the Nabble Support forum. Forums that don't receive any migration request will be deleted forever.

java.lang.ClassCastException @ org.apache.taglibs.standard.tag.common.fmt.BundleSupport

View: New views
5 Messages — Rating Filter:   Alert me  

java.lang.ClassCastException @ org.apache.taglibs.standard.tag.common.fmt.BundleSupport

by konkere :: Rate this Message:

| View Threaded | Show Only this Message

yesterday i got this fancy exception:
java.lang.ClassCastException: javax.servlet.jsp.jstl.fmt.LocalizationContext
        at org.apache.taglibs.standard.tag.common.fmt.BundleSupport.getLocalizationContext(Ljavax.servlet.jsp.PageContext;)Ljavax.servlet.jsp.jstl.fmt.LocalizationContext;(BundleSupport.java:127)
        at org.apache.taglibs.standard.tag.common.fmt.MessageSupport.doEndTag()I(MessageSupport.java:152)
        at jsp_servlet._web_45_inf._jsp._templates.__template._jspService(Ljavax.servlet.http.HttpServletRequest;Ljavax.servlet.http.HttpServletResponse;)V(__template.java:235)
what can cause it? i presume my JSPs to be correct (as they are deployed to our PRO and i haven't changed a single character in them).

Re: java.lang.ClassCastException @ org.apache.taglibs.standard.tag.common.fmt.BundleSupport

by ebsilva :: Rate this Message:

| View Threaded | Show Only this Message

Are you using "fmt" tag to format values?






konkere <emperor@...>
16/12/2008 08:10
Please respond to
"Tag Libraries Users List" <taglibs-user@...>


To
taglibs-user@...
cc

Subject
java.lang.ClassCastException @
org.apache.taglibs.standard.tag.common.fmt.BundleSupport







yesterday i got this fancy exception:

java.lang.ClassCastException:
javax.servlet.jsp.jstl.fmt.LocalizationContext
        at
org.apache.taglibs.standard.tag.common.fmt.BundleSupport.getLocalizationContext(Ljavax.servlet.jsp.PageContext;)Ljavax.servlet.jsp.jstl.fmt.LocalizationContext;(BundleSupport.java:127)
        at
org.apache.taglibs.standard.tag.common.fmt.MessageSupport.doEndTag()I(MessageSupport.java:152)
        at
jsp_servlet._web_45_inf._jsp._templates.__template._jspService(Ljavax.servlet.http.HttpServletRequest;Ljavax.servlet.http.HttpServletResponse;)V(__template.java:235)


what can cause it? i presume my JSPs to be correct (as they are deployed
to
our PRO and i haven't changed a single character in them).
--
View this message in context:
http://www.nabble.com/java.lang.ClassCastException-%40-org.apache.taglibs.standard.tag.common.fmt.BundleSupport-tp21030184p21030184.html

Sent from the Taglibs - User mailing list archive at Nabble.com.


Re: java.lang.ClassCastException @ org.apache.taglibs.standard.tag.common.fmt.BundleSupport

by konkere :: Rate this Message:

| View Threaded | Show Only this Message

nope. we use fmt only for localized messages, so <fmt:message/>

Re: java.lang.ClassCastException @ org.apache.taglibs.standard.tag.common.fmt.BundleSupport

by Kris Schneider :: Rate this Message:

| View Threaded | Show Only this Message

What version of the Standard taglib are you using?

What's a PRO? Are you saying that the same code works in one
environment and not another?

Does your application make use of:

Config.set(..., Config.FMT_LOCALIZATION_CONTEXT, ...)

On Tue, Dec 16, 2008 at 4:57 AM, konkere <emperor@...> wrote:

>
> yesterday i got this fancy exception:
>
> java.lang.ClassCastException: javax.servlet.jsp.jstl.fmt.LocalizationContext
>        at
> org.apache.taglibs.standard.tag.common.fmt.BundleSupport.getLocalizationContext(Ljavax.servlet.jsp.PageContext;)Ljavax.servlet.jsp.jstl.fmt.LocalizationContext;(BundleSupport.java:127)
>        at
> org.apache.taglibs.standard.tag.common.fmt.MessageSupport.doEndTag()I(MessageSupport.java:152)
>        at
> jsp_servlet._web_45_inf._jsp._templates.__template._jspService(Ljavax.servlet.http.HttpServletRequest;Ljavax.servlet.http.HttpServletResponse;)V(__template.java:235)
>
>
> what can cause it? i presume my JSPs to be correct (as they are deployed to
> our PRO and i haven't changed a single character in them).
> --
> View this message in context: http://www.nabble.com/java.lang.ClassCastException-%40-org.apache.taglibs.standard.tag.common.fmt.BundleSupport-tp21030184p21030184.html
> Sent from the Taglibs - User mailing list archive at Nabble.com.
>



--
Kris Schneider <mailto:kris@...>
directThought  <http://www.directThought.com/>

---------------------------------------------------------------------
To unsubscribe, e-mail: taglibs-user-unsubscribe@...
For additional commands, e-mail: taglibs-user-help@...


Re: java.lang.ClassCastException @ org.apache.taglibs.standard.tag.common.fmt.BundleSupport

by konkere :: Rate this Message:

| View Threaded | Show Only this Message

PRO is production. yes, what i say is exactly as you assumed: same JSPs work on our production and fail locally.

anyway, the issue is resolved, it was unrelated to jstl or standard taglib, but to do with classloading.