Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Virgo » Virgo IDE error: No value found for placeholder 'project.name'("Spring Tools-> Run the generation of MENIFEST.MF file" can not generate the MNIFEST.MF file correct.)
Virgo IDE error: No value found for placeholder 'project.name' [message #761525] Tue, 06 December 2011 10:37 Go to next message
Will Yao is currently offline Will Yao
Messages: 11
Registered: July 2010
Junior Member
When I use the "Spring Tools-> Run the generation of MENIFEST.MF file" to generate the MENIFEST.MF file, the STS log the error:

java.lang.RuntimeException: No value found for placeholder 'project.name'
	at org.eclipse.virgo.util.common.PropertyPlaceholderResolver.resolve(PropertyPlaceholderResolver.java:117)
	at org.eclipse.virgo.util.common.PropertyPlaceholderResolver.resolve(PropertyPlaceholderResolver.java:129)
	at org.eclipse.virgo.util.common.PropertyPlaceholderResolver.resolveProperty(PropertyPlaceholderResolver.java:109)
	at org.eclipse.virgo.util.common.PropertyPlaceholderResolver.resolve(PropertyPlaceholderResolver.java:102)
	at org.eclipse.virgo.bundlor.support.propertysubstitution.PlaceholderManifestAndTemplateModifier.modify(PlaceholderManifestAndTemplateModifier.java:55)
	at org.eclipse.virgo.bundlor.support.StandardManifestGenerator.generate(StandardManifestGenerator.java:54)
	at org.eclipse.virgo.ide.bundlor.internal.core.BundlorProjectBuilder.generateManifest(BundlorProjectBuilder.java:610)
	at org.eclipse.virgo.ide.bundlor.internal.core.BundlorProjectBuilder.build(BundlorProjectBuilder.java:216)
	at org.eclipse.virgo.ide.bundlor.internal.core.BundlorProjectBuilder.build(BundlorProjectBuilder.java:154)
	at org.eclipse.core.internal.events.BuildManager$2.run(BuildManager.java:728)
	at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
	at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:199)
	at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:321)
	at org.eclipse.core.internal.events.BuildManager.build(BuildManager.java:396)
	at org.eclipse.core.internal.resources.Project$1.run(Project.java:618)
	at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:2344)
	at org.eclipse.core.internal.resources.Project.internalBuild(Project.java:597)
	at org.eclipse.core.internal.resources.Project.build(Project.java:124)
	at org.eclipse.virgo.ide.bundlor.ui.BundlorUiPlugin$RunBundlorJob.run(BundlorUiPlugin.java:100)
	at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)


My project is a maven project with pom.xml and template.mf files. The template.mf file like this:
Manifest-Version: 1.0
Bundle-ManifestVersion: 2
Bundle-Name: ${project.name}
Bundle-SymbolicName: ${project.artifactId}
Bundle-Version: ${project.version}
Import-Template: org.springframework.osgi.*;version="[1.2, 2.0)"
...


I find this error on STS-2.7.2/2.8.1 with virgo-ide-1.0.0.201110312003-SNAPSHOT and STS-2.7.0 with virgo-ide-1.0.0.201106220519-M01.

What's the problem, and who can help me?

thank you!
Re: Virgo IDE error: No value found for placeholder 'project.name' [message #765587 is a reply to message #761525] Wed, 14 December 2011 05:53 Go to previous message
Chris Frost is currently offline Chris Frost
Messages: 230
Registered: January 2010
Location: Southampton, England
Senior Member

Hi,

Look at the project properties, under the 'Spring' item their will be a page for 'Manifest Generation'. This allows you to define properties files that should be used for manifest generation. You should use this to add in the property file that defines the property placeholders used in your template.mf file.

Chris.


------------------------------------------------
Chris Frost, Twitter @cgfrost
Springsource, a divison of VMware.
Previous Topic:userregionfactory failed to start
Next Topic:faild to build org.eclipse.virgo.kernel.userregion
Goto Forum:
  


Current Time: Wed Aug 20 16:45:45 EDT 2014

Powered by FUDForum. Page generated in 0.01491 seconds