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 <[email protected]>: > 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. >
