Comments (11)
have you previously installed the emf-rest in your Eclipse? The problem you are commenting sounds like you have directly imported the Demo project without updating your Eclipse platform. You can find the installation instructions here.
Note as well that the Demo project was developed in a Mac system so you may have to change the library dependencies to point at your JDK distribution and your server libraries.
from emf-rest.
I installed from the update site, which is all I think the instructions said to do. I'm on a Mac. I have the com.rest.emf.feature installed. I also have the "emf-rest" plugin (doesn't follow plugin naming convention btw :)) but none of the com.mtcflow.* dependencies...
from emf-rest.
This dependencies are not required in the generated projects. I deleted it. After update you should be able to run your Web Project without problems.
from emf-rest.
Well, making progress. It builds now and deploys, and I get the http://localhost:8080/Demo/ page but when I click on Your first call... I get a 404.
btw, I had to make a couple of changes to the classpaths because those seem to be machine specific. e.g.
<classpathentry kind="con" path="org.eclipse.jst.server.core.container/org.eclipse.jst.server.tomcat.runtimeTarget/Apache Tomcat v7.0">
<attributes>
<attribute name="owner.project.facets" value="jst.web"/>
</attributes>
</classpathentry>
<classpathentry kind="con" path="org.eclipse.jst.j2ee.internal.web.container"/>
<classpathentry kind="con" path="org.eclipse.jst.j2ee.internal.module.container"/>
<classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins"/>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.launching.macosx.MacOSXType/Java SE 7 [1.7.0_25]">
from emf-rest.
first of all, thank you a lot for the effort. Your feedback is very valuable for us.
Unfortunately I cannot reproduce your problem. Just in case, try to access to the Demo application using your system browser (not the one integrated in Eclipse). If this does not solve your problem (or you already tried), could you send us your project to check where is the problem?
Regarding the classpath, we'll try to clean up the classpath, thks!
from emf-rest.
Np! I've been running chrome. Please see my fork at: https://github.com/MilesParker/emf-rest
from emf-rest.
I think we have a real problem here because it works in my computer :S. The only things I changed were the JDK and Server libraries in the classpath.
I guess the problem could be the web application server (and the project dependencies). I'm using the Apache Tomee Server, which supports JAX-RS specification (it is available here here).
I've seen the servlet-api.jar
library in the lib
folder. If I'm not wrong, it should not be needed, just include the dependency to the server runtime in your Java Build Path / Libraries
project property. This is what it's shown in my tab:
And the server runtime dependency (the one called Apache Tomcat v7.0) includes the required jars (including the support for JAX-RS), as shown:
Does this solve your problem? is your server triggering some deployment problems?
Again, thanks for your patience.
from emf-rest.
@cadorca has confirmed that the problem appears in Mac. He has pushed a new version of the Demo project, check it out and let us know if it solves your problem.
Edited: I've just realized that @cadorca commited a pull request to your project
from emf-rest.
@MilesParker, could you fix the problem?
from emf-rest.
Hi Javier, I'm really sorry, hadn't had the chance to get back to it and test the build. And yes, it looks like you're right. I didn't have any of the JAX-RS libs in my Tomcat. Thanks for the tip re: the server-api lib, that was a quick and dirty fix as I'm still getting up to speed on tomcat deployment.
from emf-rest.
You're welcome. Thanks for trying the tool. Don't hesitate to contact us for any comment/suggestion/idea. Cheers
from emf-rest.
Related Issues (13)
- NullPointerException when generating code HOT 5
- Compile errors in generated Java code HOT 6
- Error when generatin code HOT 3
- Live demo is down HOT 2
- 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
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.