Git Product home page Git Product logo

Comments (11)

jlcanovas avatar jlcanovas commented on July 24, 2024

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.

MilesParker avatar MilesParker commented on July 24, 2024

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.

cadorca avatar cadorca commented on July 24, 2024

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.

MilesParker avatar MilesParker commented on July 24, 2024

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.

jlcanovas avatar jlcanovas commented on July 24, 2024

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.

MilesParker avatar MilesParker commented on July 24, 2024

Np! I've been running chrome. Please see my fork at: https://github.com/MilesParker/emf-rest

from emf-rest.

jlcanovas avatar jlcanovas commented on July 24, 2024

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:

image

And the server runtime dependency (the one called Apache Tomcat v7.0) includes the required jars (including the support for JAX-RS), as shown:

image

Does this solve your problem? is your server triggering some deployment problems?

Again, thanks for your patience.

from emf-rest.

jlcanovas avatar jlcanovas commented on July 24, 2024

@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.

jlcanovas avatar jlcanovas commented on July 24, 2024

@MilesParker, could you fix the problem?

from emf-rest.

MilesParker avatar MilesParker commented on July 24, 2024

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.

jlcanovas avatar jlcanovas commented on July 24, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.