JBoss+Eclipse JSF+SPRING+HIBERNATE WELD-001408 Unsatisfied dependencies for type

The issue is :

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
02:10:58,537 ERROR [org.jboss.as.server.deployment.scanner] (DeploymentScanner-threads - 1) {"JBAS014653: Composite operation failed and was rolled back. Steps that
failed:" => {"Operation step-2" => {"JBAS014671: Failed services" => {"jboss.deployment.unit.\"JavaServerFaces.war\".WeldService" => "org.jboss.msc.service.StartExce
ption in service jboss.deployment.unit.\"JavaServerFaces.war\".WeldService: org.jboss.weld.exceptions.DeploymentException: Exception List with 2 exceptions:
Exception 0 :
org.jboss.weld.exceptions.DeploymentException: WELD-001408 Unsatisfied dependencies for type [SessionFactory] with qualifiers [@Named] at injection point [[field] @N
amed @Inject protected info.abnsoft.java.util.ABNHibernateDao.sessionFactory]
    at org.jboss.weld.bootstrap.Validator.validateInjectionPoint(Validator.java:275)
    at org.jboss.weld.bootstrap.Validator.validateInjectionPoint(Validator.java:244)
    at org.jboss.weld.bootstrap.Validator.validateBean(Validator.java:107)
    at org.jboss.weld.bootstrap.Validator.validateRIBean(Validator.java:127)
    at org.jboss.weld.bootstrap.Validator.validateBeans(Validator.java:346)
    at org.jboss.weld.bootstrap.Validator.validateDeployment(Validator.java:331)
    at org.jboss.weld.bootstrap.WeldBootstrap.validateBeans(WeldBootstrap.java:366)
    at org.jboss.as.weld.WeldContainer.start(WeldContainer.java:83)
    at org.jboss.as.weld.services.WeldService.start(WeldService.java:76)
    at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1811)
    at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1746)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
    at java.lang.Thread.run(Thread.java:722)
Exception 0 :
org.jboss.weld.exceptions.DeploymentException: WELD-001408 Unsatisfied dependencies for type [SessionFactory] with qualifiers [@Named] at injection point [[field] @N
amed @Inject protected info.abnsoft.java.util.ABNHibernateDao.sessionFactory]
    at org.jboss.weld.bootstrap.Validator.validateInjectionPoint(Validator.java:275)
    at org.jboss.weld.bootstrap.Validator.validateInjectionPoint(Validator.java:244)
    at org.jboss.weld.bootstrap.Validator.validateBean(Validator.java:107)
    at org.jboss.weld.bootstrap.Validator.validateRIBean(Validator.java:127)
    at org.jboss.weld.bootstrap.Validator.validateBeans(Validator.java:346)
    at org.jboss.weld.bootstrap.Validator.validateDeployment(Validator.java:331)
    at org.jboss.weld.bootstrap.WeldBootstrap.validateBeans(WeldBootstrap.java:366)
    at org.jboss.as.weld.WeldContainer.start(WeldContainer.java:83)
    at org.jboss.as.weld.services.WeldService.start(WeldService.java:76)
    at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1811)
    at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1746)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
    at java.lang.Thread.run(Thread.java:722)
"}}}}

> Update JBoss from AS 7.1.0 to 7.1.1-FINAL does not help.

> Spring and Hibernate’s getCurrentSession()

JBOSS in ECLIPSE, how to bind address, change http port

Here below i will answer to the following questions :

  • How to configure JBoss in Eclipse.
  • How to correct change ip address (bind to other IP then default=127.0.0.1)
  • How to change port http/s

How to correct change ip address (bind to other IP then default=127.0.0.1)
Please open Eclipse. You should have already configued JBoss runtime. For me it looks such :

Continue reading

JBOSS mini howto Bind public managment, …

HOW TO CHANGE MANAGMENT IP AND PUBLIC IP ?

when we start , we should use :

1
2
cd /path/to/jboss/
bin/standalone.sh -b=0.0.0.0 -Djboss.bind.address.management=0.0.0.0
1
2
3
q:
cd Q:\J\RUN\JBOSS\jboss-as-7.1.1.Final\bin
standalone -b=0.0.0.0 -Djboss.bind.address.management=0.0.0.0 -Djboss.www.http.port=9280 -Djboss.wwws.http.port=9243

https://docs.jboss.org/author/display/AS71/Command+line+parameters

JBOSS-7.1 ~ JSF2.0 (CDI1.0) + SPRING 3.1 how to ? using ANNOTATIONS

Hello.
It was not easy for me to start this project!
First, my thanks to mkyong.com, I use his sample for beginig, and after it was not start on my Eclipse (3.7 + JBOSS 7.1) i started to convert it to Annotation version.
Also i found some topics in the Internet (actualy their was only 2) about HOW TO USE CDI+SPRING.
Continue reading