Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » Deploy Xtext as Standalone jar(Error in validation rules)
Deploy Xtext as Standalone jar [message #987925] Wed, 28 November 2012 16:44 Go to next message
Andrea Margheri is currently offline Andrea MargheriFriend
Messages: 20
Registered: July 2012
Junior Member
Hi,

I read Sebastian's guide
http://zarnekow.blogspot.it/2010/06/how-to-deploy-xtext-standalone.html
for deploying Xtext. As someone said in comments I have the same error about _UI_DiagnosticRoot_diagnostic during validation rules.

In comments, it's suggested a "solution" that for me doesn't run (create a new plugin.properties file). Which is the best solution for this?

As follows all exceptions returned:
Quote:


2 [main] ERROR ResourceValidatorImpl - The string resource '_UI_DiagnosticRoot_diagnostic' could not be located
java.util.MissingResourceException: The string resource '_UI_DiagnosticRoot_diagnostic' could not be located
at org.eclipse.emf.common.util.DelegatingResourceLocator.delegatedGetString(DelegatingResourceLocator.java:481)
at org.eclipse.emf.common.util.DelegatingResourceLocator.getString(DelegatingResourceLocator.java:386)
at org.eclipse.emf.common.util.DelegatingResourceLocator.getString(DelegatingResourceLocator.java:500)
at org.eclipse.emf.common.util.DelegatingResourceLocator.getString(DelegatingResourceLocator.java:492)
at org.eclipse.emf.ecore.util.Diagnostician.createDefaultDiagnostic(Diagnostician.java:88)
at org.eclipse.emf.ecore.util.Diagnostician.validate(Diagnostician.java:117)
at org.eclipse.xtext.validation.ResourceValidatorImpl.validate(ResourceValidatorImpl.java:108)
at standaloneXtext.Main.runGenerator(Main.java:53)
at standaloneXtext.Main.main(Main.java:32)


Andrea
Re: Deploy Xtext as Standalone jar [message #988308 is a reply to message #987925] Thu, 29 November 2012 10:55 Go to previous message
Dennis Huebner is currently offline Dennis HuebnerFriend
Messages: 257
Registered: July 2009
Senior Member

Create a plugin.properties file and jar it.
The content should contain this entry:
_UI_DiagnosticRoot_diagnostic=_UI_DiagnosticRoot_diagnostic

Here is an ant task example:

<echo file="${binJarTemp}/plugin.properties">_UI_DiagnosticRoot_diagnostic=_UI_DiagnosticRoot_diagnostic</echo>


Regards,
Dennis.



+Dennis Huebner

Get professional support from the Xtext committers at www.typefox.io
Previous Topic:Integrating Xtext into GMF-based Editor
Next Topic:Two ecore files generated from grammar
Goto Forum:
  


Current Time: Tue Apr 23 11:39:51 GMT 2024

Powered by FUDForum. Page generated in 0.03198 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top