Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF "Technology" (Ecore Tools, EMFatic, etc)  » Export code generator to Runnable-JAR file(string resource 'cvc-pattern-valid' could not be located)
Export code generator to Runnable-JAR file [message #657281] Wed, 02 March 2011 05:29 Go to next message
Frank Wiedemann is currently offline Frank Wiedemann
Messages: 5
Registered: July 2009
Junior Member
Hello,

I tried to export a code generator as a Runnable-JAR-File. When running the JAR-file I get following error:

157  INFO  XSDMetaModel       - Loading XSDSchema from 'x:/tools/my.generator.project/src/model/ds.xsd'
672  ERROR VisitorCreator     - java.util.MissingResourceException: The string resource 'cvc-pattern-valid' could not be located
java.lang.RuntimeException: java.util.MissingResourceException: The string resource 'cvc-pattern-valid' could not be located
        at org.eclipse.emf.mwe.internal.core.ast.util.InjectorSimple.setValue(InjectorSimple.java:35)
        at org.eclipse.emf.mwe.internal.core.ast.util.VisitorCreator.visitSimpleParamAST(VisitorCreator.java:203)
        at org.eclipse.emf.mwe.internal.core.ast.util.VisitorBase.visit(VisitorBase.java:49)
        at org.eclipse.emf.mwe.internal.core.ast.AbstractASTBase.accept(AbstractASTBase.java:44)
        at org.eclipse.emf.mwe.internal.core.ast.util.VisitorCreator.createBean(VisitorCreator.java:157)
        at org.eclipse.emf.mwe.internal.core.ast.util.VisitorCreator.visitComponentAST(VisitorCreator.java:118)
        at org.eclipse.emf.mwe.internal.core.ast.util.VisitorBase.visit(VisitorBase.java:37)
        at org.eclipse.emf.mwe.internal.core.ast.AbstractASTBase.accept(AbstractASTBase.java:44)
        at org.eclipse.emf.mwe.internal.core.ast.util.VisitorCreator.createBean(VisitorCreator.java:157)
        at org.eclipse.emf.mwe.internal.core.ast.util.VisitorCreator.visitComponentAST(VisitorCreator.java:118)
        at org.eclipse.emf.mwe.internal.core.ast.util.VisitorBase.visit(VisitorBase.java:37)
        at org.eclipse.emf.mwe.internal.core.ast.AbstractASTBase.accept(AbstractASTBase.java:44)
        at org.eclipse.emf.mwe.internal.core.ast.util.VisitorCreator.createBean(VisitorCreator.java:157)
        at org.eclipse.emf.mwe.internal.core.ast.util.VisitorCreator.visitComponentAST(VisitorCreator.java:118)
        at org.eclipse.emf.mwe.internal.core.ast.util.VisitorBase.visit(VisitorBase.java:37)
        at org.eclipse.emf.mwe.internal.core.ast.AbstractASTBase.accept(AbstractASTBase.java:44)
        at org.eclipse.emf.mwe.internal.core.ast.util.WorkflowFactory.parseInitAndCreate(WorkflowFactory.java:74)
        at org.eclipse.emf.mwe.internal.core.ast.util.WorkflowFactory.parseInitAndCreate(WorkflowFactory.java:52)
...


I use following Workflow component:
	<component class="org.eclipse.xtend.typesystem.xsd.XMLReader">
		<modelSlot value="model"/>
		<uri value="${XMLModel}"/>
		<metaModel id="ds" class="org.eclipse.xtend.typesystem.xsd.XSDMetaModel">
			<schemaFile value="${XSDMetaModel}"/>
		</metaModel>
	</component>


I think I forgot some important package to add. Can anybody see which package is needed? In which package can I find the "cvc-pattern-valid" string?

Regards,

Frank
Re: Export code generator to Runnable-JAR file [message #657381 is a reply to message #657281] Wed, 02 March 2011 10:53 Go to previous message
Ed Merks is currently offline Ed Merks
Messages: 25949
Registered: July 2009
Senior Member
Frank,

The XSD model defines this property, i.e., in the org.eclipse.xsd
bundle's plugin.properties.


Frank Wiedemann wrote:
> Hello,
>
> I tried to export a code generator as a Runnable-JAR-File. When
> running the JAR-file I get following error:
>
> 157 INFO XSDMetaModel - Loading XSDSchema from
> 'x:/tools/my.generator.project/src/model/ds.xsd'
> 672 ERROR VisitorCreator - java.util.MissingResourceException:
> The string resource 'cvc-pattern-valid' could not be located
> java.lang.RuntimeException: java.util.MissingResourceException: The
> string resource 'cvc-pattern-valid' could not be located
> at
> org.eclipse.emf.mwe.internal.core.ast.util.InjectorSimple.se tValue(InjectorSimple.java:35)
>
> at
> org.eclipse.emf.mwe.internal.core.ast.util.VisitorCreator.vi sitSimpleParamAST(VisitorCreator.java:203)
>
> at
> org.eclipse.emf.mwe.internal.core.ast.util.VisitorBase.visit (VisitorBase.java:49)
>
> at
> org.eclipse.emf.mwe.internal.core.ast.AbstractASTBase.accept (AbstractASTBase.java:44)
>
> at
> org.eclipse.emf.mwe.internal.core.ast.util.VisitorCreator.cr eateBean(VisitorCreator.java:157)
>
> at
> org.eclipse.emf.mwe.internal.core.ast.util.VisitorCreator.vi sitComponentAST(VisitorCreator.java:118)
>
> at
> org.eclipse.emf.mwe.internal.core.ast.util.VisitorBase.visit (VisitorBase.java:37)
>
> at
> org.eclipse.emf.mwe.internal.core.ast.AbstractASTBase.accept (AbstractASTBase.java:44)
>
> at
> org.eclipse.emf.mwe.internal.core.ast.util.VisitorCreator.cr eateBean(VisitorCreator.java:157)
>
> at
> org.eclipse.emf.mwe.internal.core.ast.util.VisitorCreator.vi sitComponentAST(VisitorCreator.java:118)
>
> at
> org.eclipse.emf.mwe.internal.core.ast.util.VisitorBase.visit (VisitorBase.java:37)
>
> at
> org.eclipse.emf.mwe.internal.core.ast.AbstractASTBase.accept (AbstractASTBase.java:44)
>
> at
> org.eclipse.emf.mwe.internal.core.ast.util.VisitorCreator.cr eateBean(VisitorCreator.java:157)
>
> at
> org.eclipse.emf.mwe.internal.core.ast.util.VisitorCreator.vi sitComponentAST(VisitorCreator.java:118)
>
> at
> org.eclipse.emf.mwe.internal.core.ast.util.VisitorBase.visit (VisitorBase.java:37)
>
> at
> org.eclipse.emf.mwe.internal.core.ast.AbstractASTBase.accept (AbstractASTBase.java:44)
>
> at
> org.eclipse.emf.mwe.internal.core.ast.util.WorkflowFactory.p arseInitAndCreate(WorkflowFactory.java:74)
>
> at
> org.eclipse.emf.mwe.internal.core.ast.util.WorkflowFactory.p arseInitAndCreate(WorkflowFactory.java:52)
>
> ..
>
> I use following Workflow component:
> <component class="org.eclipse.xtend.typesystem.xsd.XMLReader">
> <modelSlot value="model"/>
> <uri value="${XMLModel}"/>
> <metaModel id="ds"
> class="org.eclipse.xtend.typesystem.xsd.XSDMetaModel">
> <schemaFile value="${XSDMetaModel}"/>
> </metaModel>
> </component>
>
>
> I think I forgot some important package to add. Can anybody see which
> package is needed? In which package can I find the "cvc-pattern-valid"
> string?
>
> Regards,
>
> Frank
>
Previous Topic:[EMF Compare] Problem when mergin non-containment references without proxies
Next Topic:[EEF] NPE when selecting to add a relation
Goto Forum:
  


Current Time: Fri Aug 01 11:59:23 EDT 2014

Powered by FUDForum. Page generated in 0.01534 seconds