Skip to main content

GF4 + Hibernate4.2.2 => WELD-001408 problem

1 reply [Last post]
edilmar
Offline
Joined: 2003-11-13
Points: 0

Hi,

I have an webapp that runs fine in GF3.1.1 using Weld1.1 + JPA2 + Hibernate4.2.2 + JSF2 + RichFaces4.3.3.
Then, when I try to deploy in GF4, server.log arises this error:

<br />
[2013-07-29T10:44:42.206-0400] [glassfish 4.0] [SEVERE] [NCLS-CORE-00026] [javax.enterprise.system.core] [tid: _ThreadID=36 _ThreadName=admin-listener(5)] [timeMillis: 1375109082206] [levelValue: 1000] [[<br />
  Exception during lifecycle processing<br />
org.glassfish.deployment.common.DeploymentException: CDI deployment failure:WELD-001408 Unsatisfied dependencies for type [Validator] with qualifiers [@Default] at injection point [[UnbackedAnnotatedField] @Inject private org.hibernate.validator.internal.cdi.interceptor.ValidationInterceptor.validator]<br />
	at org.glassfish.weld.WeldDeployer.event(WeldDeployer.java:225)<br />
	at org.glassfish.kernel.event.EventsImpl.send(EventsImpl.java:131)<br />
	at org.glassfish.internal.data.ApplicationInfo.load(ApplicationInfo.java:328)<br />
	at com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:493)<br />
	at com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:219)<br />
	at org.glassfish.deployment.admin.DeployCommand.execute(DeployCommand.java:491)<br />
	at com.sun.enterprise.v3.admin.CommandRunnerImpl$2$1.run(CommandRunnerImpl.java:527)<br />
	at com.sun.enterprise.v3.admin.CommandRunnerImpl$2$1.run(CommandRunnerImpl.java:523)<br />
	at java.security.AccessController.doPrivileged(Native Method)<br />
	at javax.security.auth.Subject.doAs(Subject.java:356)<br />
	at com.sun.enterprise.v3.admin.CommandRunnerImpl$2.execute(CommandRunnerImpl.java:522)<br />
	at com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:546)<br />
	at com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:1423)<br />
	at com.sun.enterprise.v3.admin.CommandRunnerImpl.access$1500(CommandRunnerImpl.java:108)<br />
	at com.sun.enterprise.v3.admin.CommandRunnerImpl$ExecutionContext.execute(CommandRunnerImpl.java:1762)<br />
	at com.sun.enterprise.v3.admin.CommandRunnerImpl$ExecutionContext.execute(CommandRunnerImpl.java:1674)<br />
	at org.glassfish.admin.rest.resources.admin.CommandResource.executeCommand(CommandResource.java:396)<br />
	at org.glassfish.admin.rest.resources.admin.CommandResource.execCommandSimpInMultOut(CommandResource.java:234)<br />
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)<br />
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)<br />
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)<br />
	at java.lang.reflect.Method.invoke(Method.java:601)<br />
	at org.glassfish.jersey.server.model.internal.ResourceMethodInvocationHandlerFactory$1.invoke(ResourceMethodInvocationHandlerFactory.java:81)<br />
	at org.glassfish.jersey.server.model.internal.AbstractJavaResourceMethodDispatcher.invoke(AbstractJavaResourceMethodDispatcher.java:125)<br />
	at org.glassfish.jersey.server.model.internal.JavaResourceMethodDispatcherProvider$ResponseOutInvoker.doDispatch(JavaResourceMethodDispatcherProvider.java:152)<br />
	at org.glassfish.jersey.server.model.internal.AbstractJavaResourceMethodDispatcher.dispatch(AbstractJavaResourceMethodDispatcher.java:91)<br />
	at org.glassfish.jersey.server.model.ResourceMethodInvoker.invoke(ResourceMethodInvoker.java:346)<br />
	at org.glassfish.jersey.server.model.ResourceMethodInvoker.apply(ResourceMethodInvoker.java:341)<br />
	at org.glassfish.jersey.server.model.ResourceMethodInvoker.apply(ResourceMethodInvoker.java:101)<br />
	at org.glassfish.jersey.server.ServerRuntime$1.run(ServerRuntime.java:224)<br />
	at org.glassfish.jersey.internal.Errors$1.call(Errors.java:271)<br />
	at org.glassfish.jersey.internal.Errors$1.call(Errors.java:267)<br />
	at org.glassfish.jersey.internal.Errors.process(Errors.java:315)<br />
	at org.glassfish.jersey.internal.Errors.process(Errors.java:297)<br />
	at org.glassfish.jersey.internal.Errors.process(Errors.java:267)<br />
	at org.glassfish.jersey.process.internal.RequestScope.runInScope(RequestScope.java:317)<br />
	at org.glassfish.jersey.server.ServerRuntime.process(ServerRuntime.java:198)<br />
	at org.glassfish.jersey.server.ApplicationHandler.handle(ApplicationHandler.java:946)<br />
	at org.glassfish.jersey.grizzly2.httpserver.GrizzlyHttpContainer.service(GrizzlyHttpContainer.java:331)<br />
	at org.glassfish.admin.rest.adapter.JerseyContainerCommandService$3.service(JerseyContainerCommandService.java:165)<br />
	at org.glassfish.admin.rest.adapter.RestAdapter.service(RestAdapter.java:181)<br />
	at com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:246)<br />
	at org.glassfish.grizzly.http.server.HttpHandler.runService(HttpHandler.java:191)<br />
	at org.glassfish.grizzly.http.server.HttpHandler.doHandle(HttpHandler.java:168)<br />
	at org.glassfish.grizzly.http.server.HttpServerFilter.handleRead(HttpServerFilter.java:189)<br />
	at org.glassfish.grizzly.filterchain.ExecutorResolver$9.execute(ExecutorResolver.java:119)<br />
	at org.glassfish.grizzly.filterchain.DefaultFilterChain.executeFilter(DefaultFilterChain.java:288)<br />
	at org.glassfish.grizzly.filterchain.DefaultFilterChain.executeChainPart(DefaultFilterChain.java:206)<br />
	at org.glassfish.grizzly.filterchain.DefaultFilterChain.execute(DefaultFilterChain.java:136)<br />
	at org.glassfish.grizzly.filterchain.DefaultFilterChain.process(DefaultFilterChain.java:114)<br />
	at org.glassfish.grizzly.ProcessorExecutor.execute(ProcessorExecutor.java:77)<br />
	at org.glassfish.grizzly.nio.transport.TCPNIOTransport.fireIOEvent(TCPNIOTransport.java:838)<br />
	at org.glassfish.grizzly.strategies.AbstractIOStrategy.fireIOEvent(AbstractIOStrategy.java:113)<br />
	at org.glassfish.grizzly.strategies.WorkerThreadIOStrategy.run0(WorkerThreadIOStrategy.java:115)<br />
	at org.glassfish.grizzly.strategies.WorkerThreadIOStrategy.access$100(WorkerThreadIOStrategy.java:55)<br />
	at org.glassfish.grizzly.strategies.WorkerThreadIOStrategy$WorkerThreadRunnable.run(WorkerThreadIOStrategy.java:135)<br />
	at org.glassfish.grizzly.threadpool.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:564)<br />
	at org.glassfish.grizzly.threadpool.AbstractThreadPool$Worker.run(AbstractThreadPool.java:544)<br />
	at java.lang.Thread.run(Thread.java:722)<br />
Caused by: org.jboss.weld.exceptions.DeploymentException: WELD-001408 Unsatisfied dependencies for type [Validator] with qualifiers [@Default] at injection point [[UnbackedAnnotatedField] @Inject private org.hibernate.validator.internal.cdi.interceptor.ValidationInterceptor.validator]<br />
	at org.jboss.weld.bootstrap.Validator.validateInjectionPointForDeploymentProblems(Validator.java:403)<br />
	at org.jboss.weld.bootstrap.Validator.validateInjectionPoint(Validator.java:325)<br />
	at org.jboss.weld.bootstrap.Validator.validateInterceptor(Validator.java:554)<br />
	at org.jboss.weld.bootstrap.Validator.validateInterceptors(Validator.java:530)<br />
	at org.jboss.weld.bootstrap.Validator.validateDeployment(Validator.java:479)<br />
	at org.jboss.weld.bootstrap.WeldBootstrap.validateBeans(WeldBootstrap.java:536)<br />
	at org.glassfish.weld.WeldDeployer.event(WeldDeployer.java:216)<br />
	... 58 more<br />
]]</p>
<p>[2013-07-29T10:44:42.208-0400] [glassfish 4.0] [SEVERE] [] [javax.enterprise.system.core] [tid: _ThreadID=36 _ThreadName=admin-listener(5)] [timeMillis: 1375109082208] [levelValue: 1000] [[<br />
  Exception while loading the app]]<br />

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
edilmar
Offline
Joined: 2003-11-13
Points: 0

The same problem now with the last Hibernate4.2.6.