-
1. Re: Problem with session bean on JSF
amsmota Nov 14, 2005 11:22 AM (in response to amsmota)Here's some more info: In faces-context.xml i have
<managed-bean>
<managed-bean-name>ordens</managed-bean-name>
<managed-bean-class>pt.md.transe.OrdensBean</managed-bean-class>
<managed-bean-scope>session</managed-bean-scope>
</managed-bean>
I create the bean with various ways:
ordens = (OrdensBean) getFacesContext().getApplication() .createValueBinding("#{ordens}").getValue(getFacesContext());
FacesContext.getCurrentInstance()..getApplication()
.createValueBinding("#{ordens}")
.getValue(FacesContext.getCurrentInstance());
OrdensBean ordens = (OrdensBean)this.getFacesContext()
.getApplication()
.getVariableResolver()
.resolveVariable(this.getFacesContext(), "ordens");
and i'm retrieving the bean in the second page like this:
OrdensBean bean = (OrdensBean)sessionScope.get("ordens");
OrdensBean bean = (OrdensBean) FacesContext
.getCurrentInstance()
.getApplication()
.createValueBinding("#{ordens}")
.getValue(FacesContext.getCurrentInstance());
FacesContext context = FacesContext.getCurrentInstance();
Map sessionMap = context.getExternalContext().getSessionMap();
OrdensBean bean = (OrdensBean) sessionMap.get("ordens");
All of then work in my dev machine, using RAD/Websphere. None of then works in the production machine, JBoss.
I don't know what to do next, please help.
Thanks. -
2. Re: Problem with session bean on JSF
amsmota Nov 15, 2005 7:06 AM (in response to amsmota)I'm getting desesperated here... Now it goes like this:
I've instaled JBoss 4.0.3 both on my local dev machine and on the production machine, and aftyer some initial problems i deployed my war file on both machines.
It's working on my machine BUT NOT on th eproduction machine.
The only diferences i can see is that one (dev) is a Windows2000 and the other is Linux...
Can someone PLEASE PLEASE give me any advice, or at least some pointer where to look, before i0ll go insane? PLEASE!
Thanks a lot.