Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » MissingResourceException in Maven project
MissingResourceException in Maven project [message #1387490] Wed, 25 June 2014 06:55 Go to next message
Vaibhav Garg is currently offline Vaibhav GargFriend
Messages: 3
Registered: June 2014
Junior Member
Hi all,

Running Diagnostician.validate() I get an exception (see stack trace here)

at org.eclipse.emf.common.util.DelegatingResourceLocator.delegatedGetString(DelegatingResourceLocator.java:487)
at org.eclipse.emf.common.util.DelegatingResourceLocator.getString(DelegatingResourceLocator.java:392)
at org.eclipse.emf.common.util.DelegatingResourceLocator.getString(DelegatingResourceLocator.java:506)
at org.eclipse.emf.common.util.DelegatingResourceLocator.getString(DelegatingResourceLocator.java:498)
at org.eclipse.emf.ecore.util.Diagnostician.createDefaultDiagnostic(Diagnostician.java:94)
at org.eclipse.emf.ecore.util.Diagnostician.validate(Diagnostician.java:113)



I have Included all jars in project and added all dependencies in pom.xml(you see it here)


<dependency>
<groupId>org.eclipse.emf.ecore</groupId>
<artifactId>xmi</artifactId>
<version>2.5.0.v200906151043</version>
</dependency>
<dependency>
<groupId>org.eclipse.emf</groupId>
<artifactId>ecore</artifactId>
<version>2.5.0.v200906151043</version>
</dependency>
<dependency>
<groupId>org.eclipse.ocl</groupId>
<artifactId>ecore</artifactId>
<version>1.3.0.v200905271400</version>
</dependency>
<dependency>
<groupId>org.eclipse</groupId>
<artifactId>ocl</artifactId>
<version>1.3.0.v200905271400</version>
</dependency>
<dependency>
<groupId>org.eclipse.emf</groupId>
<artifactId>common</artifactId>
<version>2.5.0.v200906151043</version>
</dependency>




but i'm not getting any "MissingResourceException" when I run the code in separate java project which just contains main.java


Any help would be greatly appreciated!

Thanks in Advance Smile


Re: MissingResourceException in Maven project [message #1387774 is a reply to message #1387490] Wed, 25 June 2014 15:16 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 30366
Registered: July 2009
Senior Member
These are ancient versions of EMF and I have no idea what's provided by
Maven.

On 25/06/2014 5:08 PM, Vaibhav Garg wrote:
> Hi all,
>
> Running Diagnostician.validate() I get an exception (see stack trace
> here)
> at
> org.eclipse.emf.common.util.DelegatingResourceLocator.delegatedGetString(DelegatingResourceLocator.java:487)
> at
> org.eclipse.emf.common.util.DelegatingResourceLocator.getString(DelegatingResourceLocator.java:392)
> at
> org.eclipse.emf.common.util.DelegatingResourceLocator.getString(DelegatingResourceLocator.java:506)
> at
> org.eclipse.emf.common.util.DelegatingResourceLocator.getString(DelegatingResourceLocator.java:498)
> at
> org.eclipse.emf.ecore.util.Diagnostician.createDefaultDiagnostic(Diagnostician.java:94)
> at
> org.eclipse.emf.ecore.util.Diagnostician.validate(Diagnostician.java:113)
>
>
>
> I have Included all jars in project and added all dependencies in
> pom.xml(you see it here)
>
> <dependency>
> <groupId>org.eclipse.emf.ecore</groupId>
> <artifactId>xmi</artifactId>
> <version>2.5.0.v200906151043</version>
> </dependency>
> <dependency>
> <groupId>org.eclipse.emf</groupId>
> <artifactId>ecore</artifactId>
> <version>2.5.0.v200906151043</version>
> </dependency>
> <dependency>
> <groupId>org.eclipse.ocl</groupId>
> <artifactId>ecore</artifactId>
> <version>1.3.0.v200905271400</version>
> </dependency>
> <dependency>
> <groupId>org.eclipse</groupId>
> <artifactId>ocl</artifactId>
> <version>1.3.0.v200905271400</version>
> </dependency>
> <dependency>
> <groupId>org.eclipse.emf</groupId>
> <artifactId>common</artifactId>
> <version>2.5.0.v200906151043</version>
> </dependency>
>
>
>
>
> but i'm not getting any "MissingResourceException" when I run the code
> in separate java project which just contains main.java
>
>
> Any help would be greatly appreciated!
>
> Thanks in Advance :)
>
>
Re: MissingResourceException in Maven project [message #1388459 is a reply to message #1387774] Thu, 26 June 2014 13:27 Go to previous messageGo to next message
Vaibhav Garg is currently offline Vaibhav GargFriend
Messages: 3
Registered: June 2014
Junior Member
No Message Body
Re: MissingResourceException in Maven project [message #1388464 is a reply to message #1388459] Thu, 26 June 2014 13:32 Go to previous messageGo to next message
Vaibhav Garg is currently offline Vaibhav GargFriend
Messages: 3
Registered: June 2014
Junior Member
Hi Ed Merks,

The Code works well in a java project.Does it has any issues with standalone application running of tomcat server?

Using Newer versions of EMF will solve this issue?

Re: MissingResourceException in Maven project [message #1389292 is a reply to message #1388464] Fri, 27 June 2014 15:41 Go to previous message
Ed Merks is currently offline Ed MerksFriend
Messages: 30366
Registered: July 2009
Senior Member
Maybe is some security issue in the class loader. Maybe
-Dorg.eclipse.emf.ecore.EPackage.Registry.INSTANCE=org.eclipse.emf.ecore.impl.EPackageRegistryImpl
will help.

On 26/06/2014 3:32 PM, Vaibhav Garg wrote:
> Hi Ed Merks,
>
> The Code works well in a java project.Does it has any issues with
> standalone application running of tomcat server?
>
> Using Newer versions of EMF will solve this issue?
>
>
Previous Topic:[CDO] DBStore postresql
Next Topic:[XCore] org.eclipse.emf.ecore.xcore.lib cannot be resolved
Goto Forum:
  


Current Time: Thu Aug 22 20:37:32 GMT 2019

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

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

Back to the top