IdentifiantMot de passe
Loading...
Mot de passe oublié ?Je m'inscris ! (gratuit)
Navigation

Inscrivez-vous gratuitement
pour pouvoir participer, suivre les réponses en temps réel, voter pour les messages, poser vos propres questions et recevoir la newsletter

Java EE Discussion :

[Weblogic] problème de déploiement [EJB3]


Sujet :

Java EE

  1. #1
    Membre habitué Avatar de pmartin8
    Inscrit en
    Novembre 2003
    Messages
    306
    Détails du profil
    Informations forums :
    Inscription : Novembre 2003
    Messages : 306
    Points : 126
    Points
    126
    Par défaut [Weblogic] problème de déploiement
    Bonjour

    J'ai un EJB tout simple que je veux deployer sur weblogic et j'ai toujours la même erreur.

    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    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
    39
    40
     
    weblogic.ejb.container.compliance.ComplianceException: No business interface, component interface or web service endpoint interface found for Session Bean KnowledgeInjectingStatelessSessionBean
    	at weblogic.ejb.container.compliance.SessionBeanClassChecker.checkInterfacesExist(SessionBeanClassChecker.java:176)
    	at sun.reflect.GeneratedMethodAccessor35.invoke(Unknown Source)
    	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    	at java.lang.reflect.Method.invoke(Method.java:585)
    	at weblogic.ejb.container.compliance.EJBComplianceChecker.check(EJBComplianceChecker.java:338)
    	at weblogic.ejb.container.compliance.EJBComplianceChecker.checkDeploymentInfo(EJBComplianceChecker.java:287)
    	at weblogic.ejb.container.ejbc.EJBCompiler.complianceCheckJar(EJBCompiler.java:911)
    	at weblogic.ejb.container.ejbc.EJBCompiler.checkCompliance(EJBCompiler.java:879)
    	at weblogic.ejb.container.ejbc.EJBCompiler.doCompile(EJBCompiler.java:236)
    	at weblogic.ejb.container.ejbc.EJBCompiler.compileEJB(EJBCompiler.java:533)
    	at weblogic.ejb.container.ejbc.EJBCompiler.compileEJB(EJBCompiler.java:500)
    	at weblogic.ejb.container.deployer.EJBDeployer.runEJBC(EJBDeployer.java:476)
    	at weblogic.ejb.container.deployer.EJBDeployer.compileJar(EJBDeployer.java:798)
    	at weblogic.ejb.container.deployer.EJBDeployer.compileIfNecessary(EJBDeployer.java:701)
    	at weblogic.ejb.container.deployer.EJBDeployer.prepare(EJBDeployer.java:1234)
    	at weblogic.ejb.container.deployer.EJBModule.prepare(EJBModule.java:372)
    	at weblogic.application.internal.flow.ModuleListenerInvoker.prepare(ModuleListenerInvoker.java:93)
    	at weblogic.application.internal.flow.DeploymentCallbackFlow$1.next(DeploymentCallbackFlow.java:360)
    	at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:26)
    	at weblogic.application.internal.flow.DeploymentCallbackFlow.prepare(DeploymentCallbackFlow.java:56)
    	at weblogic.application.internal.flow.DeploymentCallbackFlow.prepare(DeploymentCallbackFlow.java:46)
    	at weblogic.application.internal.BaseDeployment$1.next(BaseDeployment.java:615)
    	at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:26)
    	at weblogic.application.internal.BaseDeployment.prepare(BaseDeployment.java:191)
    	at weblogic.application.internal.DeploymentStateChecker.prepare(DeploymentStateChecker.java:147)
    	at weblogic.deploy.internal.targetserver.AppContainerInvoker.prepare(AppContainerInvoker.java:61)
    	at weblogic.deploy.internal.targetserver.AppDeployment.prepare(AppDeployment.java:137)
    	at weblogic.management.deploy.internal.DeploymentAdapter$1.doPrepare(DeploymentAdapter.java:39)
    	at weblogic.management.deploy.internal.DeploymentAdapter.prepare(DeploymentAdapter.java:187)
    	at weblogic.management.deploy.internal.AppTransition$1.transitionApp(AppTransition.java:21)
    	at weblogic.management.deploy.internal.ConfiguredDeployments.transitionApps(ConfiguredDeployments.java:233)
    	at weblogic.management.deploy.internal.ConfiguredDeployments.prepare(ConfiguredDeployments.java:165)
    	at weblogic.management.deploy.internal.ConfiguredDeployments.deploy(ConfiguredDeployments.java:122)
    	at weblogic.management.deploy.internal.DeploymentServerService.resume(DeploymentServerService.java:173)
    	at weblogic.management.deploy.internal.DeploymentServerService.start(DeploymentServerService.java:89)
    	at weblogic.t3.srvr.SubsystemRequest.run(SubsystemRequest.java:64)
    	at weblogic.work.ExecuteThread.execute(ExecuteThread.java:200)
    	at weblogic.work.ExecuteThread.run(ExecuteThread.java:172)



    Voici mon interface locale
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    package ca.rddc.kmapper.ejb3.session.knowledge.extracting;
     
    import javax.ejb.Local;
     
    @Local
    public interface ExtractionServiceLocal {
     
    }



    CA me semble assez simple comme probleme mais je ne vois pas le probleme!!


    Et mon bean
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    package ca.rddc.kmapper.ejb3.session.knowledge.extracting;
     
    import javax.ejb.Stateless;
     
    @Stateless
    public class ExtractionService implements ExtractionServiceLocal {
     
    }

  2. #2
    Membre confirmé
    Profil pro
    Inscrit en
    Janvier 2006
    Messages
    365
    Détails du profil
    Informations personnelles :
    Localisation : Maroc

    Informations forums :
    Inscription : Janvier 2006
    Messages : 365
    Points : 495
    Points
    495
    Par défaut
    Salut,
    Tu devrais, je pense, déclarer l'interface locale de l'ejb dans le code de la classe et non dans celui de l'interface.
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    package ca.rddc.kmapper.ejb3.session.knowledge.extracting;
     
    import javax.ejb.Stateless;
    import javax.ejb.Local;
     
    @Stateless
    @Local(ExtractionServiceLocal.class)
    public class ExtractionService implements ExtractionServiceLocal {
     
    }
    Cela parce que ta classe peut implémenter plusieurs interfaces, mais n'en utiliser qu'une comme interface locale (ou remote).
    SCJP 5 / SCBCD 1.3 Certified

  3. #3
    Membre habitué Avatar de pmartin8
    Inscrit en
    Novembre 2003
    Messages
    306
    Détails du profil
    Informations forums :
    Inscription : Novembre 2003
    Messages : 306
    Points : 126
    Points
    126
    Par défaut
    ok, je vais essayer, mais selon la spec,

    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    When used on the bean class, declares the local business interface(s) for a session bean. When used on an interface, designates that interface as a local business interface. In this case, no value() is provided.

    JE pourrais donc mettre @local sur min interface ....

  4. #4
    Membre habitué Avatar de pmartin8
    Inscrit en
    Novembre 2003
    Messages
    306
    Détails du profil
    Informations forums :
    Inscription : Novembre 2003
    Messages : 306
    Points : 126
    Points
    126
    Par défaut
    Non, malheureusement j'ai toujours la même erreur!

  5. #5
    Membre confirmé
    Profil pro
    Inscrit en
    Janvier 2006
    Messages
    365
    Détails du profil
    Informations personnelles :
    Localisation : Maroc

    Informations forums :
    Inscription : Janvier 2006
    Messages : 365
    Points : 495
    Points
    495
    Par défaut
    OK, on peut donc aussi mettre @Local sur l'interface. Mais en lisant bien l'erreur, il me semble que ça parle d'un autre bean.
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    weblogic.ejb.container.compliance.ComplianceException: No business interface, component interface or web service endpoint interface found for Session Bean KnowledgeInjectingStatelessSessionBean
    Ce "KnowledgeInjectingStatelessSessionBean" n'est pas la même chose que "ExtractionService", si ?
    SCJP 5 / SCBCD 1.3 Certified

  6. #6
    Membre habitué Avatar de pmartin8
    Inscrit en
    Novembre 2003
    Messages
    306
    Détails du profil
    Informations forums :
    Inscription : Novembre 2003
    Messages : 306
    Points : 126
    Points
    126
    Par défaut


    Désolé j'étais tellement fixé sur la mauvaise classe!!!

    Merci merci merci!

+ Répondre à la discussion
Cette discussion est résolue.

Discussions similaires

  1. Problème de déploiement avec Maven et Weblogic
    Par imed0083 dans le forum Maven
    Réponses: 0
    Dernier message: 30/03/2009, 17h42
  2. [JOPE] Problème de déploiement
    Par Nuncyco dans le forum Eclipse Java
    Réponses: 2
    Dernier message: 27/09/2004, 20h57
  3. [EJB] Problème de déploiement
    Par Aurore M dans le forum Java EE
    Réponses: 5
    Dernier message: 04/06/2004, 15h37
  4. [TOMCAT] SOAP - Problème de déploiement
    Par seawolfm dans le forum Tomcat et TomEE
    Réponses: 6
    Dernier message: 21/10/2003, 12h36
  5. [CR][VB]Problème de déploiement
    Par pvil dans le forum SDK
    Réponses: 3
    Dernier message: 16/08/2002, 07h39

Partager

Partager
  • Envoyer la discussion sur Viadeo
  • Envoyer la discussion sur Twitter
  • Envoyer la discussion sur Google
  • Envoyer la discussion sur Facebook
  • Envoyer la discussion sur Digg
  • Envoyer la discussion sur Delicious
  • Envoyer la discussion sur MySpace
  • Envoyer la discussion sur Yahoo