users@glassfish.java.net

GF 3.1.2.2 and WELD = ClassNotFoundException: BoundRequestContext

From: <forums_at_java.net>
Date: Tue, 12 Feb 2013 10:29:59 -0600 (CST)

Hi, I'm trying to figure out if this is a GF bug, WELD issue, or just
something I'm misunderstanding. We have some existing CDI beans that deploy
just fine on JBoss AS7 and when I try to deploy the same classes on GF
3.1.2.2 I'm getting the error below. The example taken is from the WELD
downloads version 1.1.10-final. http://seamframework.org/Weld/Downloads I
modified the JSF sample application to just try to inject a
BoundRequestContext to try to narrow down the issue we are having with our
code. We are trying to use the BoundRequestContext class via @Inject
according to the documentation at:
http://docs.jboss.org/weld/reference/latest/en-US/html_single/#first-bean
There are also times when we get a ClassNotFoundException for
BoundRequestContext which is strange. I've looked around the net and didn't
find anything related to this issue. Is there a module I need to turn on in
GF to allow access to the specific WELD libs? I can't attach the war because
it's too big.. Here's the steps: 1. Download the weld-1.1.10-final file 2.
unzip and build and deploy the JSF NumberGuess example 3. Modify the
GAME.java file and just add a @Inject BoundContextRequest request and try to
deploy Glassfish will not deploy the app and give you the error below. I hope
this made sense..please let me know if there is more information you need.
Thanks, - Tim ERROR: SEVERE: Exception while loading the app : WELD-001408
Unsatisfied dependencies for type [BoundRequestContext] with qualifiers
[@Default] at injection point [[field] @Inject private
org.jboss.weld.examples.numberguess.Game.context]
org.jboss.weld.exceptions.DeploymentException: WELD-001408 Unsatisfied
dependencies for type [BoundRequestContext] with qualifiers [@Default] at
injection point [[field] @Inject private
org.jboss.weld.examples.numberguess.Game.context] at
org.jboss.weld.bootstrap.Validator.validateInjectionPoint(Validator.java:311)
at
org.jboss.weld.bootstrap.Validator.validateInjectionPoint(Validator.java:280)
at org.jboss.weld.bootstrap.Validator.validateBean(Validator.java:143) at
org.jboss.weld.bootstrap.Validator.validateRIBean(Validator.java:163) at
org.jboss.weld.bootstrap.Validator.validateBeans(Validator.java:382) at
org.jboss.weld.bootstrap.Validator.validateDeployment(Validator.java:367) at
org.jboss.weld.bootstrap.WeldBootstrap.validateBeans(WeldBootstrap.java:380)
at org.glassfish.weld.WeldDeployer.event(WeldDeployer.java:199) at
org.glassfish.kernel.event.EventsImpl.send(EventsImpl.java:128) at
org.glassfish.internal.data.ApplicationInfo.start(ApplicationInfo.java:313)
at
com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:461)
at
com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:240)
at
org.glassfish.deployment.admin.DeployCommand.execute(DeployCommand.java:389)
at
com.sun.enterprise.v3.admin.CommandRunnerImpl$1.execute(CommandRunnerImpl.java:348)
at
com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:363)
at
com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:1085)
at
com.sun.enterprise.v3.admin.CommandRunnerImpl.access$1200(CommandRunnerImpl.java:95)
at
com.sun.enterprise.v3.admin.CommandRunnerImpl$ExecutionContext.execute(CommandRunnerImpl.java:1291)
at
com.sun.enterprise.v3.admin.CommandRunnerImpl$ExecutionContext.execute(CommandRunnerImpl.java:1259)
at com.sun.enterprise.v3.admin.AdminAdapter.doCommand(AdminAdapter.java:461)
at com.sun.enterprise.v3.admin.AdminAdapter.service(AdminAdapter.java:212) at
com.sun.grizzly.tcp.http11.GrizzlyAdapter.service(GrizzlyAdapter.java:179) at
com.sun.enterprise.v3.server.HK2Dispatcher.dispath(HK2Dispatcher.java:117) at
com.sun.enterprise.v3.services.impl.ContainerMapper$Hk2DispatcherCallable.call(ContainerMapper.java:354)
at
com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:195)
at com.sun.grizzly.http.ProcessorTask.invokeAdapter(ProcessorTask.java:860)
at com.sun.grizzly.http.ProcessorTask.doProcess(ProcessorTask.java:757) at
com.sun.grizzly.http.ProcessorTask.process(ProcessorTask.java:1056) at
com.sun.grizzly.http.DefaultProtocolFilter.execute(DefaultProtocolFilter.java:229)
at
com.sun.grizzly.DefaultProtocolChain.executeProtocolFilter(DefaultProtocolChain.java:137)
at
com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:104)
at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:90)
at com.sun.grizzly.http.HttpProtocolChain.execute(HttpProtocolChain.java:79)
at
com.sun.grizzly.ProtocolChainContextTask.doCall(ProtocolChainContextTask.java:54)
at
com.sun.grizzly.SelectionKeyContextTask.call(SelectionKeyContextTask.java:59)
at com.sun.grizzly.ContextTask.run(ContextTask.java:71) at
com.sun.grizzly.util.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:532)
at
com.sun.grizzly.util.AbstractThreadPool$Worker.run(AbstractThreadPool.java:513)
at java.lang.Thread.run(Unknown Source)

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