I am a newbie w.r.t. jetty and RESTful API's.
I want to create REST services using Jetty and wants to use embedded jetty with eclipse.
Can anyone suggest me any HowTo for installing Jetty/ Jetty plugins with Eclipse in Mac OS.
Regards,
If you're looking for an Eclipse plugin that will allow you to start your web app in Jetty via the Debug/Run menus, you may want to take a look at the run-jetty-run plugin.
If you happen to be using Maven, there's a Maven plugin you can use to start your app in Jetty as well. This can be configured to run via a launcher in Eclipse or can be launched via the command line.
Edit - Added more info about the jetty-maven-plugin:
If you're just talking about local development, then you don't have to download Jetty separately for use with the Maven plugin. The Maven plugin handles the download of the dependencies that you need by simply running mvn jetty:run. This will start your web app in Jetty (by default) at http://localhost:8080. If you use this, then there's really no need for the Eclipse plugin, either. As far as versions go, these are the available versions. I'd recommend sticking with a fairly recent version unless you have a need to use an older version of Jetty (it looks like the most recent version is a release candidate--8.0.0.RC0).
There's also an example of usage in a project on Github that I just found, but you may want to update the plugin version used.
Related
I am working on an old jsp project. I have to modify it so that I can use it to meet my needs. I was facing issue while using any newer version of tomcat or java sdk. Therefore, I am using Tomcat 5.5.7 and java SDK 1.5. I have updated java class files of this project using eclipse helios (2012). But the implementation don't show up in my project. Like when I change the database name and run the project it still wants to use the old database name. I have tried to upgrade the whole project to a new version of tomcat and java sdk but it doesn't work. Can anyone help me with this?
Steps you need to take -
Import the project into eclipse - Create a new project, import using existing source files.
You need to setup the Java Facet of "Dynamic Web Application" along with some other Facets to make this application run successfully on the tomcat container inside of eclipse.
You need to install the server tools in eclipse. Using the Java EE perspective is very helpful.
When making changes to the JDK or the server runtime, as you mentioned, you will need to update the projects build path. Right click on the root of your project and go to the build path. Change the SDK version, change the runtime version of tomcat that is included with it. You will need to create a new Java Server runtime for any other versions of Tomcat you want to add to the project.
This is a complicated issue, and there is no specific answer, as your question is very broad. I would recommend watching some tutorials on "How to setup Web application projects in Eclipse." Maybe add Java 5 or 6 to the search to get older results.
So, I'm trying to set up a project using GWT with Eclipse Mars.2, I'm following the intructions in the GWT Eclipse config page, but when it comes time to run in development mode, my browser says it doesn't have the GWT Developer Plugin. Problem arises when I try to install it, as Firefox only has support for this plugin until FF26(and I'm on 47), and Chrome has no support for NPAPI plugins anymore, and so I can't download this plugin from the google store.
I don't really know how to go on from here, is there another way to install the GWT plugin, or is there an alternative for it? Thanks.
devmode has been deprecated for quite a while now, and GWT 2.7's DevMode defaults to using superdevmode. devmode will actually be removed entirely after GWT 2.8.
SuperDevMode can be used starting with GWT 2.5 but is really usable only from GWT 2.7, where it's also easier to use (just refresh the page, like in legacy devmode).
So, you should upgrade to GWT 2.7 if you haven't already, and use SuperDevMode from now on.
I have created an Java app on openshift platform with JBoss Application Server 7 and MySQL 5.5 using eclipse and Jboss Openshift Tools. Now I wannt to run this application on localhost but I am unable to find any option to do so.
I googled and followed some links and was able to create jboss-as-7.1.1 server but cannot figure out how to run the application using this server as there is not option to select a server in Run As window of eclipse. Do i need to modify anything in project settings?
Did you create a server adapter for your jboss-as-7.1.1 in Eclipse? I assume you did so it looks like your project is missing the required Eclipse WTP nature. Maven project (like any OpenShift Java app) get those for free if you have m2e-wtp installed. To me it looks like you're missing that one (and eventually possibly Eclipse m2e) and need to install it.
Either use the Eclipse marketplace or point Eclipse to the following update site:
http://download.eclipse.org/m2e-wtp/releases/luna/
I have created a dynamic web application in eclipse helios i have install sysdeo tomcat plugin how to run my application using sysdeo plugin what are the setting needed please help me
BalusC: Just a note about why you might want to use Sysdeo. To the best of my knowledge, Sysdeo is still the only free way to hot-swap Java classes (not just JSPs) while using Tomcat inside Eclipse. There is JRebel and myEclipse, but neither of these are free.
I would try the steps listed in the article: Setting up the Sysdeo Tomcat Plug-in. They worked for me when I was figuring out how to configure things.
Is there a way to control the Maven embedded Tomcat version?
mvn tomcat:run
This command will run a Tomcat 6.0.16 instance. I'd like to run a 5.5 version of Tomcat. Is there a way to configure this? Searching the plugin docs didn't help...
Thanks!
No, there is no real way to configure the Tomcat version with the tomcat-maven-plugin. Actually, Tomcat 6 support is due to MOJO-1106 and was added in the version 1.0-alpha-2 of the plugin (see revision r7348), in previous versions and revisions, the plugin was using Tomcat 5.5.15. The version 1.0-alpha-1 is available in the repo so you could give it a try. But I didn't check and can't say if it could be impacted by any major issue.
If this option doesn't work and if you really want finer control, then it would be better to use Cargo as pointed out by romaintaz.
Maybe it would be easier for you to use the Cargo plugin. You will then be able to change the Tomcat you want to run.
These answers appear out of date. You can control the version.
http://mojo.codehaus.org/tomcat-maven-plugin/examples/adjust-embedded-tomcat-version.html