I am wondering if I need to download and install Tomcat separately or if it comes with the latest version of Eclipse EE?
You will need to download Apache Tomcat separately, but you are not required to install it. In fact, it's simpler if you don't. The best layout supported for getting the required Java EE runtime libraries from Tomcat as well as launching it from Eclipse is the one from the unpacked tar/zip files.
Apache Tomcat and Eclipse has different types of license, and AFAIK Eclipse is "more free".
Related
I need to develop a presentation layer for an existing Java EE application running on JBoss AS 4.2.1.GA. I have been reading on JSF, Facelets and RichFaces and tried a few examples - some things worked but others didn't because of the limitations of library versions I used, considering the outdated JBoss.
Can someone recommend the direction I need to be heading to get this done as quickly as possible by using the mentioned server? By this I mean the Eclipse tool (WTP, JBoss Tools, ...), type of project, dependencies, ... Also, to shorten development time, maybe also use JRebel?
I know I would be better off using the latest server, but unfortunately it is not an option.
Also, I have installed JBoss Tools for Eclipse Indigo, but for creating RichFaces Project, it requires JBoss EAP 6 or AS 7.1.
I had created applications using JSF 1.2, RichFaces 3.3.3, JBoss Seam 2.0.2 (not required) for JBoss AS 4.2.2.GA. For development was used Eclipse (3.4/3.5) IDE for Java EE Developers. Version of Eclipse is not important. Yes, you need WTP. In my projects seam-gen was used for generating project skeleton. If you don't use Seam you can create Web project.
I'm using Eclipse Juno and Apache Tomcat 7.0.32, but I can't add my Tomcat in Eclipse. I have installed the JST Server Adapter Plug-in Developer Resources, but when I try to add my Tomcat doesn't appear an option for Apache Tomcat v7.0. But appear v6.0 and earlier.
Make sure you have the latest version of WTP (Web Tools Platform) installed. It should bring Tomcat 7 straight away. It will even give you the option of downloading Tomcat directly from Eclipse (in your case you don't seem to need it, though)
I want to develop dynamic web applications.
For this I am using Eclipse Helios and Tomcat 7.0.33. I have the JRE installed on my machine and I have provided the location of the JRE in the JAVA_HOME path.
But when I am running any servlet, I get the error:
" HTTP Status 404 " -- " The requested resource is not available
"
Do I need a JDK in place of the JRE (meaning I have to set the path of the JDK in place of the JRE)? Or could there be another other reason why this error is happening?
Looking for Help!
If your servlets are already compiled then JRE will serve the purpose,
But they are compiled then you will JDK and other libraries( like servlet-api.jar, etc.) to compile you servlets.
In short JDK is for development where you want to develop something using Java.
And JRE is used when you already have compiled classes and you just want to run it.
You might want to refer to this :
What is the difference between JDK and JRE?
In theory, compiling with Eclipse's incremental compiler is sufficient. Running the application server with a JRE should be fine as well. I suppose your error is somewhere else. Anyway, I'd strongly recommend installing a JDK for developing a Java application. It comes with some handy tools and many 3rd party tools (Maven, e.g.) also require a real JDK compiler and can't work with Eclipse's built in compiler.
I had the same problem. The JDK was not the issue. After you compile your servlet you have to restart your tomcat server so it can load your class files before you try to access it through the web browser. No more 404 errors after that, servlets are running fine.
I have checked this question but it seems outdated now. Are there any plugins for Eclipse that supports Facelets/XHTML files and eases the development?
Both the Glassfish Eclipse Plugin and the JBoss Tools Plugin supports Facelets files and autocompletion of JSF tags. The JBoss Tools Plugin also adds EL autocompletion support to this.
The Glassfish Eclipse Plugin only works when your target runtime is set to Glassfish and the JBoss Tools Plugin only works when your target runtime is set to JBoss AS. JBoss AS is deep under the covers the same as Tomcat (which is just a simple Servlet container), but then enriched with a lot of additional Java EE aspects such as JSF, EJB, JAX-WS/RS, JMS, etc.
What's the easiest way for me to get Eclipse running with a Java servlet container on Ubuntu 9.10?
I've tried a number of things, hitting dead ends each time. The best setup would use Ubuntu packages as much as possible, not require running Eclipse as root, and be able to debug running servlets.
Dead ends so far include run-jetty-run, the Sysdeo Tomcat plugin, and Eclipse WTP with tomcat6.
A big part of the problem is that the Ubuntu tomcat6 installation is non-standard, splitting directories such that they're not all in TOMCAT_HOME. Eclipse is also non-standard, and the usual plugin installation methods don't work. I got close by installing the WTP through a PPA, but I stumbled when trying to get it to recognize tomcat.
Ubuntu recently includes a pretty full Eclipse package that you can install via Synaptic or such. But I prefer to download my own.
I download from the Eclipse download site. If I choose Eclipse IDE for Java EE Developers then I have server environments for all Web app containers already built in. If I set up one for Tomcat (in Eclipse), Eclipse will download and install Tomcat for me. It's quite convenient, although I sometimes have trouble finding Tomcat or its files. Eclipse squirrels them away somewhere.
The server setup menus become accessible to you once you create a Web project (not plain Java project).
You should "apt-get install sun-java6-jdk", download and use the Java EE version of Eclipse, and then create a dynamic web project. In the web project create a jsp page, and right click -> "Run -> Run on server" where you may then install a server connector.
Some connectors are included in Java EE, some must be downloaded. Choose the one corresponding to the server you have downloaded and unpacked, and point Eclipse to the directory.
If all succeedes, the JSP page should then show up in a browser served from the started server.