Solved

J2EE & Tomcat ?

Posted on 2004-04-07
11
505 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
How Do You Stack Up Against Your Peers?

With today’s modern enterprise so dependent on digital infrastructures, the impact of major incidents has increased dramatically. Grab the report now to gain insight into how your organization ranks against your peers and learn best-in-class strategies to resolve incidents.

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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Java Flight Recorder and Java Mission Control together create a complete tool chain to continuously collect low level and detailed runtime information enabling after-the-fact incident analysis. Java Flight Recorder is a profiling and event collectio…
Basic understanding on "OO- Object Orientation" is needed for designing a logical solution to solve a problem. Basic OOAD is a prerequisite for a coder to ensure that they follow the basic design of OO. This would help developers to understand the b…
Viewers learn about the third conditional statement “else if” and use it in an example program. Then additional information about conditional statements is provided, covering the topic thoroughly. Viewers learn about the third conditional statement …
Video by: Michael
Viewers learn about how to reduce the potential repetitiveness of coding in main by developing methods to perform specific tasks for their program. Additionally, objects are introduced for the purpose of learning how to call methods in Java. Define …

679 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