2017-08-04 1 views
1

Je suis nouveau dans Opendaylight et je suivais un tutoriel pour construire un projet simple Bonjour tout le monde (this tutorial) mais quand je lance le projet avec ./karaf et vérifier si le module est initialisé avec log:display | grep hello J'obtiens cette erreur:Impossible de démarrer conteneur plan - Bonjour tout le monde

2017-08-04 12:43:57,159 | INFO | Event Dispatcher | YangTextSchemaContextResolver | 55 - org.opendaylight.yangtools.yang-parser-impl - 1.0.2.Boron-SR2 | Provided module name /META-INF/yang/[email protected] does not match actual text [email protected], corrected 
2017-08-04 12:44:01,928 | INFO | Event Dispatcher | YangTextSchemaContextResolver | 55 - org.opendaylight.yangtools.yang-parser-impl - 1.0.2.Boron-SR2 | Provided module name /META-INF/yang/[email protected] does not match actual text [email protected], corrected 
2017-08-04 12:44:08,295 | INFO | Event Dispatcher | BlueprintBundleTracker   | 148 - org.opendaylight.controller.blueprint - 0.5.2.Boron-SR2 | Creating blueprint container for bundle org.opendaylight.hello.impl_0.1.0.SNAPSHOT [174] with paths [bundleentry://174.fwk592688102/org/opendaylight/blueprint/impl-blueprint.xml] 
2017-08-04 12:44:08,318 | ERROR | Event Dispatcher | BlueprintContainerImpl   | 15 - org.apache.aries.blueprint.core - 1.6.1 | Unable to start blueprint container for bundle org.opendaylight.hello.impl/0.1.0.SNAPSHOT 

Avec la commande diag je reçois cette sortie:

[email protected]>diag 
hello-impl (174) 
---------------- 
Status: Failure 
Blueprint 
4/08/17 14:12 
Exception: 
Unable to validate xml 
org.osgi.service.blueprint.container.ComponentDefinitionException: Unable to validate xml 
    at org.apache.aries.blueprint.parser.Parser.validate(Parser.java:349) 
    at org.apache.aries.blueprint.parser.Parser.validate(Parser.java:336) 
    at org.apache.aries.blueprint.container.BlueprintContainerImpl.doRun(BlueprintContainerImpl.java:343) 
    at org.apache.aries.blueprint.container.BlueprintContainerImpl.run(BlueprintContainerImpl.java:276) 
    at org.apache.aries.blueprint.container.BlueprintExtender.createContainer(BlueprintExtender.java:300) 
    at org.apache.aries.blueprint.container.BlueprintExtender.createContainer(BlueprintExtender.java:269) 
    at org.apache.aries.blueprint.container.BlueprintExtender.access$900(BlueprintExtender.java:68) 
    at org.apache.aries.blueprint.container.BlueprintExtender$BlueprintContainerServiceImpl.createContainer(BlueprintExtender.java:602) 
    at org.opendaylight.controller.blueprint.BlueprintBundleTracker.modifiedBundle(BlueprintBundleTracker.java:178) 
    at org.opendaylight.controller.blueprint.BlueprintBundleTracker.addingBundle(BlueprintBundleTracker.java:159) 
    at org.opendaylight.controller.blueprint.BlueprintBundleTracker.addingBundle(BlueprintBundleTracker.java:51) 
    at org.osgi.util.tracker.BundleTracker$Tracked.customizerAdding(BundleTracker.java:467) 
    at org.osgi.util.tracker.BundleTracker$Tracked.customizerAdding(BundleTracker.java:414) 
    at org.osgi.util.tracker.AbstractTracked.trackAdding(AbstractTracked.java:256) 
    at org.osgi.util.tracker.AbstractTracked.track(AbstractTracked.java:229) 
    at org.osgi.util.tracker.BundleTracker$Tracked.bundleChanged(BundleTracker.java:443) 
    at org.eclipse.osgi.framework.internal.core.BundleContextImpl.dispatchEvent(BundleContextImpl.java:847) 
    at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:230) 
    at org.eclipse.osgi.framework.eventmgr.ListenerQueue.dispatchEventSynchronous(ListenerQueue.java:148) 
    at org.eclipse.osgi.framework.internal.core.Framework.publishBundleEventPrivileged(Framework.java:1568) 
    at org.eclipse.osgi.framework.internal.core.Framework.publishBundleEvent(Framework.java:1504) 
    at org.eclipse.osgi.framework.internal.core.Framework.publishBundleEvent(Framework.java:1499) 
    at org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.java:391) 
    at org.eclipse.osgi.framework.internal.core.AbstractBundle.resume(AbstractBundle.java:390) 
    at org.eclipse.osgi.framework.internal.core.Framework.resumeBundle(Framework.java:1176) 
    at org.eclipse.osgi.framework.internal.core.StartLevelManager.resumeBundles(StartLevelManager.java:559) 
    at org.eclipse.osgi.framework.internal.core.StartLevelManager.resumeBundles(StartLevelManager.java:544) 
    at org.eclipse.osgi.framework.internal.core.StartLevelManager.incFWSL(StartLevelManager.java:457) 
    at org.eclipse.osgi.framework.internal.core.StartLevelManager.doSetStartLevel(StartLevelManager.java:243) 
    at org.eclipse.osgi.framework.internal.core.StartLevelManager.dispatchEvent(StartLevelManager.java:438) 
    at org.eclipse.osgi.framework.internal.core.StartLevelManager.dispatchEvent(StartLevelManager.java:1) 
    at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:230) 
    at org.eclipse.osgi.framework.eventmgr.EventManager$EventThread.run(EventManager.java:340) 
Caused by: org.xml.sax.SAXParseException: cvc-complex-type.2.3: Element 'blueprint' cannot have character [children], because the type's content type is element-only. 
    at org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(Unknown Source) 
    at org.apache.xerces.util.ErrorHandlerWrapper.error(Unknown Source) 
    at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source) 
    at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source) 
    at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source) 
    at org.apache.xerces.impl.xs.XMLSchemaValidator$XSIErrorReporter.reportError(Unknown Source) 
    at org.apache.xerces.impl.xs.XMLSchemaValidator.reportSchemaError(Unknown Source) 
    at org.apache.xerces.impl.xs.XMLSchemaValidator.elementLocallyValidComplexType(Unknown Source) 
    at org.apache.xerces.impl.xs.XMLSchemaValidator.elementLocallyValidType(Unknown Source) 
    at org.apache.xerces.impl.xs.XMLSchemaValidator.processElementContent(Unknown Source) 
    at org.apache.xerces.impl.xs.XMLSchemaValidator.handleEndElement(Unknown Source) 
    at org.apache.xerces.impl.xs.XMLSchemaValidator.endElement(Unknown Source) 
    at org.apache.xerces.jaxp.validation.DOMValidatorHelper.finishNode(Unknown Source) 
    at org.apache.xerces.jaxp.validation.DOMValidatorHelper.validate(Unknown Source) 
    at org.apache.xerces.jaxp.validation.DOMValidatorHelper.validate(Unknown Source) 
    at org.apache.xerces.jaxp.validation.ValidatorImpl.validate(Unknown Source) 
    at javax.xml.validation.Validator.validate(Unknown Source) 
    at org.apache.aries.blueprint.parser.Parser.validate(Parser.java:346) 
    ... 32 more 

Comme je l'ai dit, je suivais le tutoriel pour que mes fichiers sont exactement les mêmes à la lien opendaylight (c'est le référentiel que j'ai créé GitHub).

Je pense qu'il est important de dire comment j'ai généré. Ceci est de code:

mvn archetype:generate -DarchetypeGroupId=org.opendaylight.controller -DarchetypeArtifactId=opendaylight-startup-archetype -DarchetypeRepository=https://nexus.opendaylight.org/content/repositories/public/ -DarchetypeCatalog=remote -DarchetypeVersion=1.2.2-Boron-SR2 

Merci à tous,

Daniel Romero Morcillo

+0

Est-ce que tous les détails d'erreur que vous avez? Essayez la commande diag. Peut-être que vous obtenez plus de détails. Vous pouvez également essayer de mettre des instructions de journalisation dans votre code pour voir où cela échoue. –

+0

J'ai ajouté de nouvelles informations sur les erreurs. Je suis désolé, mais je n'ai pas une connaissance approfondie d'Opendaylight, donc j'aurais besoin d'aide. –

Répondre

1

Dans les journaux que vous avez fourni:

Element 'blueprint' cannot have character [children], because the type's content type is element-only. 

Je pense qu'il ya simplement des erreurs (non valides XML) dans votre fichier blueprint.

Si elle est exactement comme celle du lien fourni [here] il y a des caractères supplémentaires dans la ligne 19

+0

Mec, je suis un idiot. J'ai passé beaucoup de temps à vérifier ce genre d'erreurs. J'avais besoin d'une autre paire d'yeux. Merci! –