This week's giveaway is in the Programmer Certification (OCPJP) forum.
We're giving away four copies of Java Mock Exams (software) and have David Mayer on-line!
See this thread for details.
Win a copy of Java Mock Exams (software) this week in the Programmer Certification (OCPJP) forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

j2sdkee1.4 vs Tomcat

 
shweta mathur
Ranch Hand
Posts: 109
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I have installed j2sdkee1.4 ,which I suppose contain Tomcat5.0
Can anybody tell me where to put the HelloWorldServlet classes (from Manning CD) in this j2sdkee1.4 directory structure.
I tried to put it in "C:\j2sdkee1.4\web\server\webapps" directory, but get the following error.


HTTP Status 404 - /chapter01/servlet/HelloWorldServlet
--------------------------------------------------------------------------------
type Status report
message /chapter01/servlet/HelloWorldServlet
description The requested resource (/chapter01/servlet/HelloWorldServlet) is not available.

--------------------------------------------------------------------------------
Apache Tomcat/5.0

Can't I use j2sdkee1.4 instead of installing Tomcat5.0 ??
 
Engin Okucu
Ranch Hand
Posts: 174
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi Shweta ,
Did you put it in the webapps directory ?
or in the 'classes' directory as follows ? :
C:\j2sdkee1.4\web\server\webapps\MyWebApp\WEB-INF\classes ?
 
shweta mathur
Ranch Hand
Posts: 109
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Engin,
Yes, I had copied the whole chapter01 folder in the webapps folder.
So, my HelloWorldServlet class lies in the following path -
C:\j2sdkee1.4\web\server\webapps\chapter01\WEB-INF\classes
 
Happiness is not a goal ... it's a by-product of a life well lived - Eleanor Roosevelt. Tiny ad:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!