tomee-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Romain Manni-Bucau <rmannibu...@gmail.com>
Subject Re: JSP named bean bug
Date Mon, 17 Oct 2016 14:19:40 GMT
Hi

does it work in a standalone tomee (= not using WTP or eclipse at all)?


Romain Manni-Bucau
@rmannibucau <https://twitter.com/rmannibucau> |  Blog
<https://blog-rmannibucau.rhcloud.com> | Old Wordpress Blog
<http://rmannibucau.wordpress.com> | Github <https://github.com/rmannibucau> |
LinkedIn <https://www.linkedin.com/in/rmannibucau> | Tomitriber
<http://www.tomitribe.com> | JavaEE Factory
<https://javaeefactory-rmannibucau.rhcloud.com>

2016-10-17 16:05 GMT+02:00 tonywestonuk <tonyw@totspics.com>:

> Hi.
>
> I think i've fallen fowl of a bug.... Let me outline the steps to
> reproduce.
>
> 1) Create an application scoped bean
>
> @ApplicationScoped
> @Named("bugbean")
> public class BugBean {
>         public String getBugVal(){
>                 return "bugval";
>         }
> }
>
> 2) Create a JSP to show it.
> <%@ page language="java" contentType="text/html; charset=ISO-8859-1"
> pageEncoding="ISO-8859-1"%>
> <html>
>         ${bugbean.bugVal}
> </html>
>
>
> 3) Start Tomee.....Load the page.  It doesn't work, bugbean is not
> resolved.
>
>
> however. If you hot deploy a new version, (or make a code change within
> Eclipse and allow TomEE to restart),  then it works!
>
>
> The same problem regardless if you use @Singleton or @ApplicationScoped
>
>
> .... OR, am I doing something wrong?
>
>
> Thanks.
>
>
>
>
> --
> View this message in context: http://tomee-openejb.979440.
> n4.nabble.com/JSP-named-bean-bug-tp4680338.html
> Sent from the TomEE Users mailing list archive at Nabble.com.
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message