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

Zend PHP Discussion :

[ZF2] Service Not Found Exception


Sujet :

Zend PHP

  1. #1
    Membre régulier Avatar de kululu
    Homme Profil pro
    Ingénieur développement logiciels
    Inscrit en
    Avril 2009
    Messages
    120
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : France

    Informations professionnelles :
    Activité : Ingénieur développement logiciels
    Secteur : Enseignement

    Informations forums :
    Inscription : Avril 2009
    Messages : 120
    Points : 85
    Points
    85
    Par défaut [ZF2] Service Not Found Exception
    Bonsoir les développeurs

    J'ai un petit soucis avec le tuto de Rob Allen

    C'est au moment de lister les albums j'ai ce soucis

    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
     
    An error occurred
    An error occurred during execution; please try again later.
    Additional information:
    Zend\ServiceManager\Exception\ServiceNotFoundException
    File:
    C:\wamp\www\zf2-tutorial\vendor\zendframework\zendframework\library\Zend\ServiceManager\ServiceManager.php:450
    Message:
    Zend\ServiceManager\ServiceManager::get was unable to fetch or create an instance for db-adapter
    Stack trace:
    #0 C:\wamp\www\zf2-tutorial\module\Album\Module.php(33): Zend\ServiceManager\ServiceManager->get('db-adapter')
    #1 [internal function]: Album\{closure}(Object(Zend\ServiceManager\ServiceManager), 'albumtable', 'album-table')
    #2 C:\wamp\www\zf2-tutorial\vendor\zendframework\zendframework\library\Zend\ServiceManager\ServiceManager.php(726): call_user_func(Object(Closure), Object(Zend\ServiceManager\ServiceManager), 'albumtable', 'album-table')
    #3 C:\wamp\www\zf2-tutorial\vendor\zendframework\zendframework\library\Zend\ServiceManager\ServiceManager.php(843): Zend\ServiceManager\ServiceManager->createServiceViaCallback(Object(Closure), 'albumtable', 'album-table')
    #4 C:\wamp\www\zf2-tutorial\vendor\zendframework\zendframework\library\Zend\ServiceManager\ServiceManager.php(487): Zend\ServiceManager\ServiceManager->createFromFactory('albumtable', 'album-table')
    #5 C:\wamp\www\zf2-tutorial\vendor\zendframework\zendframework\library\Zend\ServiceManager\ServiceManager.php(442): Zend\ServiceManager\ServiceManager->create(Array)
    #6 C:\wamp\www\zf2-tutorial\module\Album\src\Album\Controller\AlbumController.php(29): Zend\ServiceManager\ServiceManager->get('album-table')
    #7 C:\wamp\www\zf2-tutorial\module\Album\src\Album\Controller\AlbumController.php(37): Album\Controller\AlbumController->getAlbumTable()
    #8 C:\wamp\www\zf2-tutorial\vendor\zendframework\zendframework\library\Zend\Mvc\Controller\AbstractActionController.php(87): Album\Controller\AlbumController->indexAction()
    #9 [internal function]: Zend\Mvc\Controller\AbstractActionController->onDispatch(Object(Zend\Mvc\MvcEvent))
    #10 C:\wamp\www\zf2-tutorial\vendor\zendframework\zendframework\library\Zend\EventManager\EventManager.php(468): call_user_func(Array, Object(Zend\Mvc\MvcEvent))
    #11 C:\wamp\www\zf2-tutorial\vendor\zendframework\zendframework\library\Zend\EventManager\EventManager.php(208): Zend\EventManager\EventManager->triggerListeners('dispatch', Object(Zend\Mvc\MvcEvent), Object(Closure))
    #12 C:\wamp\www\zf2-tutorial\vendor\zendframework\zendframework\library\Zend\Mvc\Controller\AbstractController.php(108): Zend\EventManager\EventManager->trigger('dispatch', Object(Zend\Mvc\MvcEvent), Object(Closure))
    #13 C:\wamp\www\zf2-tutorial\vendor\zendframework\zendframework\library\Zend\Mvc\DispatchListener.php(113): Zend\Mvc\Controller\AbstractController->dispatch(Object(Zend\Http\PhpEnvironment\Request), Object(Zend\Http\PhpEnvironment\Response))
    #14 [internal function]: Zend\Mvc\DispatchListener->onDispatch(Object(Zend\Mvc\MvcEvent))
    #15 C:\wamp\www\zf2-tutorial\vendor\zendframework\zendframework\library\Zend\EventManager\EventManager.php(468): call_user_func(Array, Object(Zend\Mvc\MvcEvent))
    #16 C:\wamp\www\zf2-tutorial\vendor\zendframework\zendframework\library\Zend\EventManager\EventManager.php(208): Zend\EventManager\EventManager->triggerListeners('dispatch', Object(Zend\Mvc\MvcEvent), Object(Closure))
    #17 C:\wamp\www\zf2-tutorial\vendor\zendframework\zendframework\library\Zend\Mvc\Application.php(297): Zend\EventManager\EventManager->trigger('dispatch', Object(Zend\Mvc\MvcEvent), Object(Closure))
    #18 C:\wamp\www\zf2-tutorial\public\index.php(12): Zend\Mvc\Application->run()
    #19 {main}
    Quelqu'un a déjà eu ce problème?

    Merci d'avance pour les réponses

  2. #2
    Membre régulier Avatar de kululu
    Homme Profil pro
    Ingénieur développement logiciels
    Inscrit en
    Avril 2009
    Messages
    120
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : France

    Informations professionnelles :
    Activité : Ingénieur développement logiciels
    Secteur : Enseignement

    Informations forums :
    Inscription : Avril 2009
    Messages : 120
    Points : 85
    Points
    85
    Par défaut
    Je suis toujours bloqué je ne trouve pas la solution (je sens que je vais laisser tomber )

    J'ai essayé pas mal de choses et j'ai même trouvé ça mais ça ne marche pas non plus.

Discussions similaires

  1. JNDI sous Tomcat, class not found exception
    Par ChristopheH dans le forum Tomcat et TomEE
    Réponses: 16
    Dernier message: 19/12/2009, 02h24
  2. [2.0] App_Data File Not Found Exception
    Par stephane.net dans le forum ASP.NET
    Réponses: 1
    Dernier message: 17/12/2007, 13h12
  3. Exception: TXMLDocument.LoadXMLFile File not found
    Par powerlog dans le forum XMLRAD
    Réponses: 12
    Dernier message: 09/08/2005, 11h29
  4. [Quartz][Tomcat] Jobs.xml file not found exception
    Par Arnaud Giuliani dans le forum Tomcat et TomEE
    Réponses: 1
    Dernier message: 05/08/2005, 10h20
  5. [EJB Session] class not found exception ?
    Par champion dans le forum Wildfly/JBoss
    Réponses: 4
    Dernier message: 12/02/2005, 00h46

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