Note that there are some explanatory texts on larger screens.

plurals
  1. POJSF failing to load when dependant EJB bean is annotated with @EJB
    primarykey
    data
    text
    <p>The original problem was due to mixing CDI with EJB which is kind of resolved now. But the following is the issue after using EJB annotations in place of Inject..</p> <p>======================================EDIT - New Information ============</p> <p>It appears that the JSFServlet is not able to able to find ejb bean, 'tauthenticator' when loading login.xhtml. Also when i look at the jmx beans in Jboss admin console, the name is registered as 'Tauthenticator' instead of 'tauthenticator'. i do not know whether this is an issue as the view requires managed bean 'tauthenticator'</p> <p>Bean being created </p> <pre><code>21:09:42,602 INFO [org.jboss.ejb3.nointerface.impl.jndi.AbstractNoInterfaceViewBinder] Binding the following entry in Global JNDI for bean:Tauthenticator Tauthenticator/no-interface -&gt; EJB3.1 no-interface view [org.jboss.ejb3.nointerface.impl.jndi.AbstractNoInterfaceViewBinder] Binding the following entry in Global JNDI for bean:TusersBean TusersBean/no-interface -&gt; EJB3.1 no-interface view </code></pre> <p>Partial stack trace when accessing <a href="http://localhost:8080/timesheet/login.html" rel="nofollow">http://localhost:8080/timesheet/login.html</a> :</p> <pre><code>javax.servlet.ServletException javax.faces.webapp.FacesServlet.service(FacesServlet.java:321) org.jboss.weld.servlet.ConversationPropagationFilter.doFilter(ConversationPropagationFilter.java:67) root cause java.lang.StackOverflowError java.lang.String.toLowerCase(String.java:2496) javax.naming.NameImpl.toBoolean(NameImpl.java:202) javax.naming.NameImpl.getBoolean(NameImpl.java:198) javax.naming.NameImpl.recordNamingConvention(NameImpl.java:231) javax.naming.NameImpl.&lt;init&gt;(NameImpl.java:254) javax.naming.NameImpl.&lt;init&gt;(NameImpl.java:291) javax.naming.CompoundName.&lt;init&gt;(CompoundName.java:168) javax.naming.CompoundName.clone(CompoundName.java:260) org.jnp.interfaces.NamingContext.composeName(NamingContext.java:1078) org.jnp.interfaces.NamingContext.getAbsoluteName(NamingContext.java:1931) org.jnp.interfaces.NamingContext.lookup(NamingContext.java:719) org.jnp.interfaces.NamingContext.lookup(NamingContext.java:688) sun.reflect.GeneratedMethodAccessor411.invoke(Unknown Source) sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) java.lang.reflect.Method.invoke(Method.java:597) org.jboss.ejb3.EJBContainer$1.invoke(EJBContainer.java:978) $Proxy459.lookup(Unknown Source) org.jboss.ejb3.JndiUtil.lookup(JndiUtil.java:44) </code></pre> <p>Extract of Tauthenticator</p> <pre><code>@StatefulTimeout(unit=TimeUnit.MINUTES, value=500) @Stateful @Named("tauthenticator") public class Tauthenticator { @Getter @Setter private String username; @Getter @Setter private String password; @Getter @Setter boolean loggedIn = false; @Getter @Setter Tusers users = null; @EJB TusersBean usersBean; @Inject private Event&lt;ExceptionToCatch&gt; catchEvent; public String authenticate() { </code></pre> <p>Extract from login.xhtml</p> <pre><code>&lt;h:outputLabel for="username" style="font-weight:bold;"&gt;#{' '}Username&lt;/h:outputLabel&gt; &lt;p:inputText id="username" value="#{tauthenticator.username}"/&gt; &lt;h:outputLabel for="password" style="font-weight:bold;"&gt;#{' '}Password&lt;/h:outputLabel&gt; &lt;p:password id="password" value="#{tauthenticator.password}" feedback="false"/&gt; &lt;h:outputLabel&gt;#{''}&lt;/h:outputLabel&gt; </code></pre>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload