2011-03-30 5 views
1

Je suis en train de déployer un simple « bonjour monde » l'application Seam sur JBoss 6, et je reçois ces erreurs dans le journal:problème déploiement application Seam dans JBoss 6

Deployment "jboss.ejb3:application=helloworld,component=TimerServiceDispatcher,module=jboss-seam,service=EjbEncFactory" is in error due to the following reason(s): Described 
Deployment "org.jboss.ejb.bean.instantiator/helloworld/jboss-seam/TimerServiceDispatcher" is in error due to the following reason(s): ** NOT FOUND Depends on 'org.jboss.ejb.bean.instantiator/helloworld/jboss-seam/TimerServiceDispatcher' ** 
Deployment "jboss.naming:application=helloworld,component=TimerServiceDispatcher,module=jboss-seam" is in error due to the following reason(s): ** NOT FOUND Depends on 'jboss.naming:application=helloworld,component=TimerServiceDispatcher,module=jboss-seam' ** 
Deployment "org.jboss.ejb.bean.instantiator/helloworld/jboss-seam/EjbSynchronizations" is in error due to the following reason(s): ** NOT FOUND Depends on 'org.jboss.ejb.bean.instantiator/helloworld/jboss-seam/EjbSynchronizations' ** 
Deployment "jboss.ejb3:application=helloworld,component=EjbSynchronizations,module=jboss-seam,service=EjbEncFactory" is in error due to the following reason(s): Described 
Deployment "jboss.naming:application=helloworld,component=EjbSynchronizations,module=jboss-seam" is in error due to the following reason(s): ** NOT FOUND Depends on 'jboss.naming:application=helloworld,component=EjbSynchronizations,module=jboss-seam' ** 

De toute évidence le processus de déploiement ne peut pas trouver TimerServiceDispatcher et EjbSynchronizations, mais je les inscrit dans web.xml:

<ejb-local-ref> 
    <ejb-ref-name>helloworld/EjbSynchronizations/local</ejb-ref-name> 
    <ejb-ref-type>Session</ejb-ref-type> 
    <local>org.jboss.seam.transaction.LocalEjbSynchronizations</local> 
    <ejb-link>EjbSynchronizations</ejb-link> 
    </ejb-local-ref> 

    <ejb-local-ref> 
    <ejb-ref-name>helloworld/TimerServiceDispatcher/local</ejb-ref-name> 
    <ejb-ref-type>Session</ejb-ref-type> 
    <local>org.jboss.seam.async.LocalTimerServiceDispatcher</local> 
    <ejb-link>TimerServiceDispatcher</ejb-link> 
    </ejb-local-ref> 

Qu'est-ce que je fais mal, ou ce que je manque? et notez que le déployeur recherche les composants dans /helloworld/jboss-seam/TimerServiceDispatcher et non dans /helloworld/TimerServiceDispatcher (même chose avec EjbSynchronizations)

+0

Quelle version de couture utilisez-vous? –

+0

C'est la couture 2.2.1.Final. J'essaie de lancer l'exemple helloworld du livre "Seam Framework: Vivez l'évolution de Java EE, 2e édition", téléchargé à partir du [site web] du livre (http://solutionsfit.com/blog/books) –

Répondre

0

Trouvé la solution, il y avait un problème avec l'emballage. La bibliothèque jboss-seam.jar se trouvait dans le répertoire lib du fichier .ear du projet; ceci ne fonctionne plus dans JBoss 6, car ce fichier doit maintenant se trouver au niveau racine à l'intérieur du .ear. En outre, l'emplacement de jboss-seam.jar dans application.xml doit être ajusté en conséquence.