tomee-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tonywestonuk <to...@totspics.com>
Subject JSP named bean bug
Date Mon, 17 Oct 2016 14:05:54 GMT
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
View raw message