Standalone error when validating [message #1058823] |
Wed, 15 May 2013 09:26 |
|
Hello all,
I was wondering if you could help me with an error I have when I generate a standalone generator for my XText project.
I am working on a XText Eugenia project that in the end turns my dsl code into xml code, so I wanted a runnable jar that only did the xml part but when I run that jar I get the following error:
------------------------ERROR MESSAGE---------------------------------------------
1 [main] ERROR xt.validation.ResourceValidatorImpl - The string resource '_UI_DiagnosticRoot_diagnostic' could n
ot 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:4
80)
at org.eclipse.emf.common.util.DelegatingResourceLocator.getString(DelegatingResourceLocator.java:385)
at org.eclipse.emf.common.util.DelegatingResourceLocator.getString(DelegatingResourceLocator.java:499)
at org.eclipse.emf.common.util.DelegatingResourceLocator.getString(DelegatingResourceLocator.java:491)
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:140)
at org.eclipse.xtext.validation.ResourceValidatorImpl.validate(ResourceValidatorImpl.java:118)
at org.eclipse.xtext.validation.ResourceValidatorImpl.validate(ResourceValidatorImpl.java:98)
at idainfront.iipax.dsl.main.Generator.runGenerator(Generator.java:42)
at idainfront.iipax.dsl.main.Main.main(Main.java:32)
Code generation finished.
------------------------ERROR MESSAGE---------------------------------------------
The thing is my XML is generated correctly and the validation notices if something is wrong its just that the error message can be annoying to watch. So I was wondering if there is something I can do in my project to solve this? I have seen some solutions meddling with the jar after it is generated but I am supposed to hand over the project I am working on to others and I wanted to make it as self-going (and clean ) as possible.
Thanks for any help
Write you later / Mårten
|
|
|
|
Re: Standalone error when validating [message #1058826 is a reply to message #1058824] |
Wed, 15 May 2013 09:51 |
|
Hmm... just asking... but how do I do that?
I tried a few things but the closes I think I did was I added a file "plugin.properties" with the line you posted in the project, right-clicked the main file and took Run As -> Run Configurations, went to class path, user entries and added the file.
Did I miss something or do I just don't know what I am doing?
Don't know if it is important but when I got many warnings when generating the jar file and one of them where "duplicate entry: plugin.properties".
Write you later / Mårten
|
|
|
Re: Standalone error when validating [message #1058828 is a reply to message #1058826] |
Wed, 15 May 2013 10:03 |
|
How is your "runnable jar" created?
However, the story is the following:
emf.common needs a plugin.properties file which contains a following entry:
_UI_DiagnosticRoot_diagnostic=_UI_DiagnosticRoot_diagnostic
> Don't know if it is important but when I got many warnings when generating the jar file and one of them where "duplicate entry: plugin.properties".
if you start mix contents of some bundles you overwrite same named files like e.g. plugin.properties or plugin.xml
+Dennis Huebner
Get professional support from the Xtext committers at www.typefox.io
|
|
|
Re: Standalone error when validating [message #1058830 is a reply to message #1058828] |
Wed, 15 May 2013 10:09 |
|
I create it with the export function in eclipse with the "Extract required libraries into generated JAR" option selected and I get tons of duplicate entries warnings.
Entire list
JAR export finished with warnings. See details for additional information.
duplicate entry: about.html
duplicate entry: about.html
duplicate entry: about_files/LICENSE.txt
duplicate entry: about_files/LICENSE.txt
duplicate entry: about_files/NOTICE.txt
duplicate entry: about_files/NOTICE.txt
duplicate entry: about.html
duplicate entry: about.html
duplicate entry: plugin.properties
duplicate entry: plugin.properties
duplicate entry: about.mappings
duplicate entry: about.mappings
duplicate entry: about.html
duplicate entry: about.html
duplicate entry: about.ini
duplicate entry: about.ini
duplicate entry: about.properties
duplicate entry: about.properties
duplicate entry: plugin.properties
duplicate entry: plugin.properties
duplicate entry: plugin.xml
duplicate entry: plugin.xml
duplicate entry: about.html
duplicate entry: about.html
duplicate entry: about_files/LICENSE.txt
duplicate entry: about_files/LICENSE.txt
duplicate entry: plugin.properties
duplicate entry: plugin.properties
duplicate entry: log4j.properties
duplicate entry: log4j.properties
duplicate entry: about.html
duplicate entry: about.html
duplicate entry: plugin.properties
duplicate entry: plugin.properties
duplicate entry: plugin.xml
duplicate entry: plugin.xml
duplicate entry: about.html
duplicate entry: about.html
duplicate entry: plugin.properties
duplicate entry: plugin.properties
duplicate entry: log4j.properties
duplicate entry: log4j.properties
duplicate entry: about.mappings
duplicate entry: about.mappings
duplicate entry: about.html
duplicate entry: about.html
duplicate entry: about.ini
duplicate entry: about.ini
duplicate entry: about.properties
duplicate entry: about.properties
duplicate entry: modeling32.png
duplicate entry: modeling32.png
duplicate entry: plugin.properties
duplicate entry: plugin.properties
duplicate entry: plugin.xml
duplicate entry: plugin.xml
duplicate entry: about.html
duplicate entry: about.html
duplicate entry: plugin.properties
duplicate entry: plugin.properties
duplicate entry: plugin.xml
duplicate entry: plugin.xml
duplicate entry: about.html
duplicate entry: about.html
duplicate entry: about.html
duplicate entry: about.html
duplicate entry: about.html
duplicate entry: about.html
duplicate entry: eclipse32.png
duplicate entry: eclipse32.png
duplicate entry: plugin.properties
duplicate entry: plugin.properties
duplicate entry: plugin.xml
duplicate entry: plugin.xml
duplicate entry: about.html
duplicate entry: about.html
duplicate entry: about.ini
duplicate entry: about.ini
duplicate entry: about.properties
duplicate entry: about.properties
duplicate entry: modeling32.png
duplicate entry: modeling32.png
duplicate entry: plugin.properties
duplicate entry: plugin.properties
duplicate entry: plugin.xml
duplicate entry: plugin.xml
duplicate entry: about.mappings
duplicate entry: about.mappings
duplicate entry: about.html
duplicate entry: about.html
duplicate entry: plugin.properties
duplicate entry: plugin.properties
duplicate entry: about.html
duplicate entry: about.html
duplicate entry: about_files/LICENSE.txt
duplicate entry: about_files/LICENSE.txt
duplicate entry: about_files/NOTICE.txt
duplicate entry: about_files/NOTICE.txt
duplicate entry: plugin.properties
duplicate entry: plugin.properties
duplicate entry: about.html
duplicate entry: about.html
duplicate entry: plugin.properties
duplicate entry: plugin.properties
duplicate entry: about.html
duplicate entry: about.html
duplicate entry: plugin.properties
duplicate entry: plugin.properties
duplicate entry: plugin.xml
duplicate entry: plugin.xml
duplicate entry: about.html
duplicate entry: about.html
duplicate entry: plugin.properties
duplicate entry: plugin.properties
duplicate entry: about.html
duplicate entry: about.html
duplicate entry: about.html
duplicate entry: about.html
duplicate entry: plugin.properties
duplicate entry: plugin.properties
duplicate entry: plugin.xml
duplicate entry: plugin.xml
duplicate entry: about.mappings
duplicate entry: about.mappings
duplicate entry: about.html
duplicate entry: about.html
duplicate entry: about.ini
duplicate entry: about.ini
duplicate entry: about.properties
duplicate entry: about.properties
duplicate entry: modeling32.png
duplicate entry: modeling32.png
duplicate entry: plugin.properties
duplicate entry: plugin.properties
duplicate entry: about.html
duplicate entry: about.html
duplicate entry: about_files/LICENSE.txt
duplicate entry: about_files/LICENSE.txt
duplicate entry: about_files/NOTICE.txt
duplicate entry: about_files/NOTICE.txt
duplicate entry: plugin.properties
duplicate entry: plugin.properties
duplicate entry: about.html
duplicate entry: about.html
duplicate entry: plugin.xml
duplicate entry: plugin.xml
duplicate entry: about.html
duplicate entry: about.html
duplicate entry: plugin.properties
duplicate entry: plugin.properties
duplicate entry: about.html
duplicate entry: about.html
duplicate entry: plugin.properties
duplicate entry: plugin.properties
duplicate entry: plugin.xml
duplicate entry: plugin.xml
duplicate entry: about.html
duplicate entry: about.html
duplicate entry: plugin.properties
duplicate entry: plugin.properties
duplicate entry: about.mappings
duplicate entry: about.mappings
duplicate entry: about.html
duplicate entry: about.html
duplicate entry: about.ini
duplicate entry: about.ini
duplicate entry: about.properties
duplicate entry: about.properties
duplicate entry: modeling32.png
duplicate entry: modeling32.png
duplicate entry: plugin.properties
duplicate entry: plugin.properties
duplicate entry: plugin.xml
duplicate entry: plugin.xml
duplicate entry: about.mappings
duplicate entry: about.mappings
duplicate entry: about.html
duplicate entry: about.html
duplicate entry: about.ini
duplicate entry: about.ini
duplicate entry: about.properties
duplicate entry: about.properties
duplicate entry: eclipse32.png
duplicate entry: eclipse32.png
duplicate entry: modeling32.png
duplicate entry: modeling32.png
duplicate entry: plugin.properties
duplicate entry: plugin.properties
Jar export finished with problems. See details for additional information.
Fat Jar Export: Could not find class-path entry for 'C:eclipse-epsilon/Examensarbete_plugin_main/idainfront.iipax.dsl.main/plugin.properties'
I have placed the main file in a different project which is dependent on my XText dsl project, maybe that is the cause for the duplication issues and I should just throw it right into the same project?
Hmm, feels strange to have a library that requires a file with only one line that seems to me to say that blue=blue
[Updated on: Wed, 15 May 2013 10:11] Report message to a moderator
|
|
|
|
Re: Standalone error when validating [message #1058836 is a reply to message #1058832] |
Wed, 15 May 2013 10:55 |
|
>You will probably need something more flexible e.g. ant?
Ok, I havent used ant before, been meddling a bit with maven which I think do similar things
But I will look around and see if I can learn how this script works.
As long as I don't run the worflow file I am happy since it will remove my Eugenia code which made me try to step away from the maven script I had found .
But thanks for all the feedback, now to learn and understand it.
Have a nice day.
Write you later / Mårten
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.02340 seconds