Comments (5)
Hi Reinhold-
Thanks for your report. I acknowledge the problem as I could reproduce it.
We will work to fix this, I'll let you know asap.
from emf-rest.
Hi again,
the problem is in the documentation. It is said that you have to create a folder called model and it should be models. I will change now the documentation.
Please, try to change the name of the folder and then do the generation. Let us know if it works.
In any case, we will change this requirement for future versions.
Thanks again for playing with the tool.
from emf-rest.
Just to be clear, the problem is that the code generator needs a models folder in the WebContent folder of the Web Dynamic project. It does not matter where you put the ecore file, but the WebContent/models folder must be created.
I hope this clarifies the problem.
from emf-rest.
With the updated installation documentation I was able to get the code generation running for your example model. Thanks for that Javier!
Maybe you should also clarify in the documentation that a model instance (e.g. the Simpsons.xmi file) should be placed into the WebContent/models/ folder in order to test the REST service:
"By default the generated code will search for your data (i.e., the instances of the classes in the model) in the WebContent/models folder. So you have to create the folder 'models' in the WebContent folder and copy your model instance files (.xmi files) into it. .."
As next step I will try to generate code for our fairly more complex model (~150 classes).
from emf-rest.
Ok, I've changed the documentation to include the example ecore and xmi files.
Do not hesitate to contact us if you find any other problem.
Thanks!
from emf-rest.
Related Issues (13)
- Example won't build.. HOT 11
- Java classes not generated completely HOT 1
- org.eclipse.e4.core.di.InjectionException: java.lang.NullPointerException HOT 4
- Nullpointer Exception while trying Example HOT 3
- Feature request: swagger docs HOT 1
- NPE HOT 9
- http://emf-rest.com/ does not resolve. HOT 2
- Documentation outdated
- Updatesite offline HOT 1
- Compile errors in generated Java code HOT 6
- Error when generatin code HOT 3
- Live demo is down HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from emf-rest.