Which is the best application server and the best ide for an absolute beginner for locally hosting servlets
One good solution is Eclipse + Tomcat.
Check this screencast for further information.
Eclipse and netbeans each have a distribution that includes all you need for Servlet development, including a server.
Between the two, eclipse is the more powerful, but for a beginner it could be a bit overwhelming. Netbeans is less configurable, but that also means there's less to distract you from the "normal" way of doing things, which is probably the best for a beginner.
I'd recommend NetBeans + Apache Tomcat/Jetty is you're just looking into servlet development. If you plan to do some EJB3/3.1 development as well have a look at Glassfish or JBoss AS.
NetBeans integrates great with all of these and requires far less configuration than Eclipse to get you started.
You might consider as an IDE option IntelliJ IDEA as well, it's heavier that Eclipse and NetBeans, but it has some compelling features of its own...
I recommend using Eclipse Java EE version, together with JBoss Application Server. You can download Eclipse plugin: JBoss Tools which adds alot of nice plugins to Eclipse.
You can download JBoss AS (Application Server) for free.
All products are free and opensource.
Related
We have a Java EE 6 web application which is fully mavenized, and we use the Maven "war overlay" facility to add customer specific files, and which currently runs in Glassfish 3.1.
We have traditionally used Eclipse for development, but I have found that the combination of Maven processing and War deployments may not be optimal in terms of deployment times, and that the mavenization allows us to use any IDE with good Maven support.
Therefore is Eclipse the best bet for our particular scenario (maven war overlays -> glassfish, and debugging it) or is e.g. Netbeans or IntelliJ better?
Please, back opinions with actual experiences, thanks.
EDIT: Some inital experiments with Netbeans 7.2 bundled with Glassfish 3.1.2.2 under Ubuntu 12.04.1 strongly hints that Netbeans work much faster in this scenario.
Admittedly Netbeans does have some nice features for Java EE Development and can be downloaded pre-packaged with glassfish, making life a bit easier.
BUT frankly as far as I am concerned it comes down to witch IDE you are most comfortable with. As any advantage you may gain from slighly better support, will be wiped out completly by your (teams) not being familiar enough with the new IDE's features and tools.
I guess what you really ought to considering is something like JRebel, witch plugs directly into the JVM, allowing real hot deployment. And has been developed specifically for faster Development by reducing the time spend on rebuiling and republishing entire projects for even the smallest of changes.
All the mentioned IDEs have more or less similar features in regards to maven support and hardly any of then could help you in this particular scenario. You could rather try avoiding maven overlays in development process as it adds time to the build phase. As suggested earlier, you could also benefit of JRebel for faster turnarounds. With that you will not have to run mvn clean install and save plenty of your valuable time.
I'm interested in doing some Java web development but I'm not really interested in using Eclipse. I have used Eclipse in the past and to me it seems to add a layer of abstraction that I'm not really interested in. However, I'm having a bit of upstart problems.
Does anyone have any good references/tutorials in getting up and running with Java web development without using Eclipse (or any other IDE for that matter)?
Create a maven project and use one of the embedded web servers like jetty or Glassfish.
Also, this approach allows you to work with the command line directly or use either Netbeans, Eclipse or IntelliJ as your IDE as they support Maven projects. I do not think that JDeveloper can yet.
(Eclipse may require the m2e plugin from the marketplace, and it handles all the Eclipse configuration transparently and directly. Highly recommended).
You can easily do java web development using notepad only. The extra work is, you have to write some extra code (like in servlet you have to write web.xml http://www.tutorialspoint.com/servlets/servlets-first-example.htm). Same in Struts, Hibernate and Spring framework, you have to write config file in notepad.
I want to build web application that is based on java technology (tomcat )
Can I get please suggestions on how to set up the servers (apache – mod_jk – tomcat ? )
And what are the right frameworks to use or not .
For memory and ease of work from the development side ( to use plain jsp or mvc frame works? )
Although you didn't ask for alternatives to tomcat, if you are starting to look into web development you should have a look at Caucho's Resin. I find it is a better alternative than tomcat and makes it very easy to setup a system for test and development. It is completely built in Java and the open source version is free.
From development point of view always use an IDE such as Eclipse or Netbeans, makes the job easier n much faster. Here's a nice tutorial to get you started on developing web applications on Eclipse with Tomact integration - WTP Tutorials
I love eclipse and java. And i want to code my entire web application using eclipse .. right from designing html files to servlets.. I have zero experience in developing web apps .. So How to to setup eclipse for web apps and How do i get started ???
Google even autocompletes this question so you know it's a popular query!
There is very little information that you are providing, and there are actually tutorials for creating web applications with Eclipse and Java. You will want the JavaEE version of Eclipse as a starting point.
If you want to try using a web framework that works with Java I recommend Struts, although this may be too big if you're wanting to develop small web applications (and it's not exactly the easiest thing to start with).
I also recommend installing Apache Tomcat as your server because it's free and easy to use. Here's a good starting tutorial:
http://www.xwt.org/tutorial/eclipse/
Firstly, make sure you've got the Java EE eclipse binary : http://www.eclipse.org/downloads/
As has been mentioned, there are various google-able tutorials on how to set up, deploy and manage web applications under eclipse.
I am using Ganymede (Eclipse 3.4) to do some Java EE based web development targeting a JBoss 4.2 application server.
I have always liked Eclipse very much for a Java editor. The thing is, for Java EE is not as useful as one might think. It's buggy, deployment and debugging is very slow, and you have to re-deploy your Java EE application every time you make a little change. That makes development unbearable.
My question is: Is there a plugin that will make my life easier by adding HOT DEPLOY to Ganymede when developing JBoss Applications?
Yes, you can use JBoss tools:
http://www.jboss.org/tools
I've used this when developing on JBoss using Eclipse 3.4, it works well although there are still some bugs in the plugin. Overall though it's better.
Update site for 3.4.2 is:
http://download.jboss.org/jbosstools/updates/stable/
EDIT: Also, if you're running on Redhat you can download JBoss Developer Studio which is "guaranteed" to provide a development environment that is stable and deployable. I've not used it, but interested to see whether it lives up to those claims:
http://www.jboss.com/products/devstudio/
You can do this out of the box with remote debugging. Connect the Eclipse debugger to JBoss and when you make a code change it will be hot-patched where possible.
There's a tutorial on doing so here