[
https://issues.jboss.org/browse/WELD-953?page=com.atlassian.jira.plugin.s...
]
Geoffrey De Smet edited comment on WELD-953 at 10/25/11 2:43 AM:
-----------------------------------------------------------------
Guvnor-webapp in GWT hosted mode fails with this exception because the weld:excludes are
ignored:
{code}
ERROR 24-10 19:21:27,157 (Logger.java:error:1095) Login failed
java.lang.RuntimeException: org.jboss.solder.beanManager.BeanManagerUnavailableException:
Failed to locate BeanManager using any of these providers:
org.jboss.solder.servlet.beanManager.ServletContextAttributeProvider(20),
org.jboss.solder.beanManager.DefaultJndiBeanManagerProvider(11),
org.jboss.solder.beanManager.ServletContainerJndiBeanManagerProvider(10)
at org.jboss.seam.security.IdentityImpl.authenticate(IdentityImpl.java:241)
at org.jboss.seam.security.IdentityImpl.login(IdentityImpl.java:160)
at
org.jboss.seam.security.IdentityImpl$Proxy$_$$_WeldClientProxy.login(IdentityImpl$Proxy$_$$_WeldClientProxy.java)
at
org.drools.guvnor.server.security.SecurityServiceImpl.tryAutoLoginAsGuest(SecurityServiceImpl.java:105)
at
org.drools.guvnor.server.security.SecurityServiceImpl.getCurrentUser(SecurityServiceImpl.java:97)
at
org.drools.guvnor.server.security.SecurityServiceImpl$Proxy$_$$_WeldClientProxy.getCurrentUser(SecurityServiceImpl$Proxy$_$$_WeldClientProxy.java)
at
org.drools.guvnor.server.SecurityServiceServlet.getCurrentUser(SecurityServiceServlet.java:70)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at com.google.gwt.user.server.rpc.RPC.invokeAndEncodeResponse(RPC.java:569)
at
com.google.gwt.user.server.rpc.RemoteServiceServlet.processCall(RemoteServiceServlet.java:208)
at
com.google.gwt.user.server.rpc.RemoteServiceServlet.processPost(RemoteServiceServlet.java:248)
at
com.google.gwt.user.server.rpc.AbstractRemoteServiceServlet.doPost(AbstractRemoteServiceServlet.java:62)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:637)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:487)
at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:362)
at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216)
at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:181)
at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:729)
at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:405)
at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152)
at org.mortbay.jetty.handler.RequestLogHandler.handle(RequestLogHandler.java:49)
at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152)
at org.mortbay.jetty.Server.handle(Server.java:324)
at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:505)
at org.mortbay.jetty.HttpConnection$RequestHandler.content(HttpConnection.java:843)
at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:647)
at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:211)
at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:380)
at org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:395)
at org.mortbay.thread.QueuedThreadPool$PoolThread.run(QueuedThreadPool.java:488)
Caused by: org.jboss.solder.beanManager.BeanManagerUnavailableException: Failed to locate
BeanManager using any of these providers:
org.jboss.solder.servlet.beanManager.ServletContextAttributeProvider(20),
org.jboss.solder.beanManager.DefaultJndiBeanManagerProvider(11),
org.jboss.solder.beanManager.ServletContainerJndiBeanManagerProvider(10)
at
org.jboss.solder.beanManager.BeanManagerLocator.getBeanManager(BeanManagerLocator.java:88)
at org.jboss.seam.security.IdentityImpl.lookupAuthenticator(IdentityImpl.java:350)
at org.jboss.seam.security.IdentityImpl.authenticate(IdentityImpl.java:214)
... 33 more
{code}
was (Author: ge0ffrey):
Guvnor-webapp in GWT hosted mode fails with this exception because the weld:excludes
are ignored:
{code}
java.lang.RuntimeException: org.jboss.solder.beanManager.BeanManagerUnavailableException:
Failed to locate BeanManager using any of these providers:
org.jboss.solder.servlet.beanManager.ServletContextAttributeProvider(20),
org.jboss.solder.beanManager.DefaultJndiBeanManagerProvider(11),
org.jboss.solder.beanManager.ServletContainerJndiBeanManagerProvider(10)
{code}
WEB-INF/beans.xml is ignored on jetty 6 (and GWT hosted mode)
--------------------------------------------------------------
Key: WELD-953
URL:
https://issues.jboss.org/browse/WELD-953
Project: Weld
Issue Type: Bug
Affects Versions: 1.1.2.Final
Reporter: Geoffrey De Smet
Fix For: 1.2.0.Beta1
Using @Inject in a class in a war file does not do nothing if there is only a
WEB-INF/beans.xml and everything is deployed to Jetty 6.
Similar for GWT hosted mode (which uses jetty 6 under the covers).
Workaround: move it to META-INF/beans.xml
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see:
http://www.atlassian.com/software/jira