users@glassfish.java.net

Target Unreachable, identifier 'stafSession' resolved to null

From: <forums_at_java.net>
Date: Mon, 21 Nov 2011 08:04:27 -0600 (CST)

I am using GlassFish 3 (Version = GlassFish Server Open Source Edition
3.1.1-b10 (build 10)) and NetBeans 7 (7.0.1 (Build 201107282000)), and trying
out a very simple application:

@Stateful(name="StafSession") @LocalBean public class StafSession { ... }
- and:

<h:form>     User name: <h:inputText value="#{stafSession.Username}" />
<br />     Password: <h:inputText value="#{stafSession.Password}" /> <br
/>     Command: <h:inputText value="#{stafSession.Command}" /> <br />
    Result: <h:inputText value="#{stafSession.Resstr}" /> <br />    
<h:commandButton value="Submit" action="#{stafSession.executeCommand}" />
</h:form>
It deploys beautifully to the server from NetBeans, but when I try to press
the submit button, I get:

/index.xhtml @13,75 value="#{stafSession.Username}": Target Unreachable,
identifier 'stafSession' resolved to null
I have checked everything I can find, more or less, and apparently I did
nothing wrong; it just doesn't work. I even tried to add the
'(name="StafSession") to the @Stateful, but it made no difference. What can
be wrong? Is there any tool that could help me debug this?


--
[Message sent by forum member 'janpla']
View Post: http://forums.java.net/node/866264