CloudStore template cannot be created

Description

When creating a Palladio Project with the "CloudStore" template (New -> New Palladio Project - Sirius -> Any Name -> Initiator Architectural Template Selection CloudStore -> Finish), an error is displayed:

The stack trace reads:

Plug-in: org.eclipse.sirius
Message: Unable to load resource \CloudStoreExample\CloudStore.system
Exception Stack Trace: org.eclipse.emf.ecore.resource.impl.ResourceSetImpl$1DiagnosticWrappedException: org.eclipse.emf.ecore.xmi.PackageNotFoundException: Package with uri 'org.palladiosimulator.architecturaltemplates.catalog.profiles.dynamichorizontalscalingresourcecontainer' not found. (platform:/resource/CloudStoreExample/CloudStore.system, 180, 186)
    at org.eclipse.emf.ecore.resource.impl.ResourceSetImpl.handleDemandLoadException(ResourceSetImpl.java:319)
    at org.eclipse.emf.ecore.resource.impl.ResourceSetImpl.demandLoadHelper(ResourceSetImpl.java:278)
    at org.eclipse.xtext.resource.XtextResourceSet.getResource(XtextResourceSet.java:265)
    at org.eclipse.sirius.business.api.resource.LoadEMFResource.run(LoadEMFResource.java:66)
    at org.eclipse.sirius.business.api.resource.strategy.AbstractResourceStrategyImpl.isLoadableModel(AbstractResourceStrategyImpl.java:84)
    at org.eclipse.sirius.business.api.resource.strategy.ResourceStrategyRegistry.isLoadableModel(ResourceStrategyRegistry.java:183)
    at org.eclipse.sirius.ui.tools.internal.views.common.modelingproject.manager.ModelingProjectManagerImpl.getSemanticResourcesAdditionCommand(ModelingProjectManagerImpl.java:456)
    at org.eclipse.sirius.ui.tools.internal.views.common.modelingproject.manager.ModelingProjectManagerImpl.addSemanticResources(ModelingProjectManagerImpl.java:443)
    at org.eclipse.sirius.ui.tools.internal.views.common.modelingproject.manager.ModelingProjectManagerImpl.doAddModelingNature(ModelingProjectManagerImpl.java:397)
    at org.eclipse.sirius.ui.tools.internal.views.common.modelingproject.manager.ModelingProjectManagerImpl.convertToModelingProject(ModelingProjectManagerImpl.java:289)
    at org.palladiosimulator.editors.sirius.ui.wizard.project.NewPalladioProjectWizard.convertToModelingProject(NewPalladioProjectWizard.java:296)
    at org.palladiosimulator.editors.sirius.ui.wizard.project.NewPalladioProjectWizard.createProject(NewPalladioProjectWizard.java:189)
    at org.palladiosimulator.editors.sirius.ui.wizard.project.NewPalladioProjectWizard.access$0(NewPalladioProjectWizard.java:183)
    at org.palladiosimulator.editors.sirius.ui.wizard.project.NewPalladioProjectWizard$1.execute(NewPalladioProjectWizard.java:121)
    at org.eclipse.ui.actions.WorkspaceModifyOperation.lambda$0(WorkspaceModifyOperation.java:107)
    at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:2240)
    at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:2267)
    at org.eclipse.ui.actions.WorkspaceModifyOperation.run(WorkspaceModifyOperation.java:128)
    at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:119)
Caused by: org.eclipse.emf.ecore.xmi.PackageNotFoundException: Package with uri 'org.palladiosimulator.architecturaltemplates.catalog.profiles.dynamichorizontalscalingresourcecontainer' not found. (platform:/resource/CloudStoreExample/CloudStore.system, 180, 186)
    at org.eclipse.emf.ecore.xmi.impl.XMLHandler.getPackageForURI(XMLHandler.java:2625)
    at org.eclipse.emf.ecore.xmi.impl.XMLHandler.getFactoryForPrefix(XMLHandler.java:2458)
    at org.eclipse.emf.ecore.xmi.impl.XMLHandler.createObjectFromTypeName(XMLHandler.java:2108)
    at org.eclipse.emf.ecore.xmi.impl.XMLHandler.createObject(XMLHandler.java:2067)
    at org.eclipse.emf.ecore.xmi.impl.XMIHandler.createObject(XMIHandler.java:151)
    at org.eclipse.emf.ecore.xmi.impl.XMLHandler.handleFeature(XMLHandler.java:1876)
    at org.eclipse.emf.ecore.xmi.impl.XMLHandler.processElement(XMLHandler.java:1030)
    at org.eclipse.emf.ecore.xmi.impl.XMIHandler.processElement(XMIHandler.java:82)
    at org.eclipse.emf.ecore.xmi.impl.XMLHandler.startElement(XMLHandler.java:1008)
    at org.eclipse.emf.ecore.xmi.impl.XMLHandler.startElement(XMLHandler.java:719)
    at org.eclipse.emf.ecore.xmi.impl.XMIHandler.startElement(XMIHandler.java:190)
    at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.startElement(Unknown Source)
    at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanStartElement(Unknown Source)
    at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next(Unknown Source)
    at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(Unknown Source)
    at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
    at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown Source)
    at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown Source)
    at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(Unknown Source)
    at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(Unknown Source)
    at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source)
    at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl.parse(Unknown Source)
    at org.eclipse.emf.ecore.xmi.impl.XMLLoadImpl.load(XMLLoadImpl.java:175)
    at org.eclipse.emf.ecore.xmi.impl.XMLResourceImpl.doLoad(XMLResourceImpl.java:261)
    at org.eclipse.emf.ecore.resource.impl.ResourceImpl.load(ResourceImpl.java:1518)
    at org.eclipse.emf.ecore.resource.impl.ResourceImpl.load(ResourceImpl.java:1297)
    at org.eclipse.emf.ecore.resource.impl.ResourceSetImpl.demandLoad(ResourceSetImpl.java:259)
    at org.eclipse.emf.ecore.resource.impl.ResourceSetImpl.demandLoadHelper(ResourceSetImpl.java:274)
    ... 17 more

Environment

Eclipse Oxygen Release (4.7.0), Build id: 20170620-1800 (Modeling Tools, 64bit)
Windows 10, Java(TM) SE Runtime Environment (build 1.8.0_131-b11)
Java HotSpot(TM) 64-Bit Server VM (build 25.131-b11, mixed mode)

Activity

Show:
Stephan Seifermann
March 13, 2020, 5:20 PM

There are still issues with the examples but the template can be created successfully with nightly and PCM 4.2.
We should open a new bug report regarding issues in the initiator templates.

Martina Rapp
February 3, 2020, 1:28 PM

Check all examples form initiator templates and identify problems with them; fix accordingly

Christian Stier
July 19, 2017, 3:32 PM

I am having a difficult time reconstructing this. Could you reach out to me, and send me

1) The created project folder,

2) The *.catalog plugin from your plugin folder.

Thanks,

Christian

Cannot Reproduce

Assignee

Christian Stier

Reporter

Dominik Werle

Labels

None

Requirement Category

None

External issue URL

None

Priority

Minor