Solved

J2EE & Tomcat ?

Posted on 2004-04-07
11
502 Views
Last Modified: 2013-11-24
Hi Experts,

   If I already installed J2EE 1.4 , do I still need to get the Tomcat ? Thanks !

 meow.
0
Comment
Question by:meow00
11 Comments
 
LVL 14

Expert Comment

by:Tommy Braas
ID: 10776167
No,it is included.
0
 
LVL 14

Expert Comment

by:Tommy Braas
ID: 10776194
If you plan to deploy on Tomcat you would want to download and install it separately from the J2EE SDK.
0
 
LVL 86

Expert Comment

by:CEHJ
ID: 10776335
Wow! - so Sun are shipping Tomcat with it then o?
0
 
LVL 14

Expert Comment

by:Tommy Braas
ID: 10776379
Yup, it is the embedded version of Tomcat.
0
 
LVL 86

Expert Comment

by:CEHJ
ID: 10776525
Ah thanks.
0
DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

 
LVL 14

Expert Comment

by:Tommy Braas
ID: 10776663
My pleasure! :-)
0
 
LVL 1

Author Comment

by:meow00
ID: 10776678
err ..... so it's me again .. in order to run the following code, do I need Tomcat if I already have J2EE 1.4 ?

import java.io.* ;
import javax.servlet.* ;
import javax.servlet.http.* ;

public class ServletTemplate extends HttpServlet{
   public void doGet(HttpServletRequest request,
                     HttpServletResponse response)
               throws ServletException, IOException{
           PrintWriter out = response.getWriter() ;
          }
}

thanks a lot !!!

meow.
0
 

Expert Comment

by:hyaku
ID: 10780627
not sure whether i right or wrong.. base on what i have learn is that in order to run a servlet, u need to use Tomcat to run it..cos inside Tomcat lib got a servlet.jar, without that jar file, u cannot run ur code..

if i'm wrong, pls correct me, i still learning.. hehe
0
 
LVL 14

Expert Comment

by:Tommy Braas
ID: 10780674
>>  err ..... so it's me again .. in order to run the following code, do I need Tomcat if I already have J2EE 1.4 ?
No, you already have everything that you need in order to develop and deploy JSPs/Servlets and EJBs
0
 
LVL 30

Expert Comment

by:Mayank S
ID: 10780852
The question is - were you able to run that code or not? If not, then there might be some problems (like classpath, putting your class-files in /classes, etc)
0
 
LVL 14

Accepted Solution

by:
Tommy Braas earned 150 total points
ID: 10780962
Of course you will have to make sure that the appropriate jars are on the classpath of your development environment in order to compile whatever classes you create.  But like stated before, you have everything you need to develop and deploy JSPs/Servlets and EJBs with the J2EE 1.4.1 SDK. If you have questions regarding how to set things up in your IDE, you should open a new question as I think this question has been answered.
0

Featured Post

3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Systems talking to each other 5 126
PDFBox - convert image to PDF, PDF resolution 3 118
Java Timer (static) 9 36
eclipse shortcuts 9 45
An old method to applying the Singleton pattern in your Java code is to check if a static instance, defined in the same class that needs to be instantiated once and only once, is null and then create a new instance; otherwise, the pre-existing insta…
Java had always been an easily readable and understandable language.  Some relatively recent changes in the language seem to be changing this pretty fast, and anyone that had not seen any Java code for the last 5 years will possibly have issues unde…
Viewers will learn about the different types of variables in Java and how to declare them. Decide the type of variable desired: Put the keyword corresponding to the type of variable in front of the variable name: Use the equal sign to assign a v…
Viewers will learn one way to get user input in Java. Introduce the Scanner object: Declare the variable that stores the user input: An example prompting the user for input: Methods you need to invoke in order to properly get  user input:

895 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now