• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • Liutauras Vilda
  • Jeanne Boyarsky
  • paul wheaton
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Henry Wong
Saloon Keepers:
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Tim Moores
  • Mikalai Zaikin
Bartenders:
  • Frits Walraven

Glassfish cannot deploy cdi view scope bean ?

 
Bartender
Posts: 2442
13
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi, I am running the cdiviewscope example developed by Michael  Kurz at https://github.com/jsflive/jsf22-examples/tree/master/jsf22-cdi-view-scope
I used JDK 1.8 and Glass fish 4.1.






Glassfish gives me this error when the jsf application is deployed:


cannot Deploy cdiviewscope
deploy is failing=Error occurred during deployment: Exception while loading the app : CDI deployment failure:WELD-001408: Unsatisfied dependencies for type PersonRepository with qualifiers @Default
 at injection point [BackedAnnotatedField] @Inject private at.jsflive.jsf22.cdiviewscope.PersonPage.personRepository
 at at.jsflive.jsf22.cdiviewscope.PersonPage.personRepository(PersonPage.java:0)
. Please see server.log for more details.

 
Rancher
Posts: 517
15
Notepad Java
  • Likes 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
The post on this link has some details and possibly a solution to the deployment  error you are getting:
CDI Inject fails on maven-embedded-glassfish-plugin — org.jboss.weld.exceptions.DeploymentException: WELD-001408 Unsatisfied dependencies for type
 
I can't take it! You are too smart for me! Here is the tiny ad:
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
reply
    Bookmark Topic Watch Topic
  • New Topic