• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

taomcat installation help

 
Ranch Hand
Posts: 183
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hi!
I have installed tomcat on my computer.I have set the classpath and i have also set dos-properties to 4095.Still i am unable to open the first page of tomact when i start the server.It gives me error page not found.thanks in advance
 
Ranch Hand
Posts: 59
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hai,
This is a reply that i had sent to another javaranch user who was facing problems with tomcat installation.
Please check out whether these are the steps you followed while installation.(The steps are below)
At the browser,if u type==>http://localhost:8080
u will get homepage if your installation has been proper.
This is the url of the site from which u can download tomcat.Download jakarta-tomcat-3.2.1.zip for win machines. http://jakarta.apache.org/builds/jakarta-tomcat/release/v3.2.1/bin/
The steps are
1)After you download tomcat from the net,U will get a zip file.
2)Extract that zip file to your drive eg D drive.U just need to right click the zip file and select the drive to extract it to.
3)Automatically a folder called jakarta-tomcat will be created in that specific drive.
4)Rename the folder to tomcat.
5)There will be a folder called webapps inside tomcat containing 4 war files.
6) Open up winzip and in this go to first war file and select extract to the same folder ie suppose the first war file is admin.war.create a new folder admin in webapps and extract contents of admin.war to it.similarily for all the other three files.
7)Go to environment variables in NT and 2000.set path as==>
TOMCAT_HOME with value Drivename:\tomcat
8)similarily set JAVA_HOME with value Drivename:\jdkx.x
here x.x being the version.
IF it is a 95 system set the above paths in autoexec.bat.
Now go to bin and run startup.
U will hopefully see a window popping up from which a new one will pop up.
Now u are up and running

Send a reply if u have nay queries.
 
Ranch Hand
Posts: 94
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Just one correction ..u dont need to unzip war files present in the \webapps. When we start tomcat while deploying the apps it unzips them automatically
 
kichu kichu
Ranch Hand
Posts: 59
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Yes joshi u are correct there.
Thanks for pointing it out.
regards,
kichu

[This message has been edited by kichu kichu (edited July 06, 2001).]
 
shabbir zakir
Ranch Hand
Posts: 183
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hi!
thanks for ur reply.But still the same problem.It is giving the error page not found when i type http://localhost:8080 . Now what to do
 
shabbir zakir
Ranch Hand
Posts: 183
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hi!
thanks for ur reply.But still the same problem.It is giving the error page not found when i type http://localhost:8080 . Now what to do
 
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi
if u start tomcat server using startup is tomcat is opening in other window. Otherwise just see the log file logs/tomcat.log
or go to server.xml and see where exactly your listener started, change to some other port and try.
regards
Rajakumar.
 
kichu kichu
Ranch Hand
Posts: 59
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hai,
Do you have any other webserver installed on your system?If yes,check whether that webserver is also using port 8080.
If this is the case thenchange the port settings for your tpmcat server in server.xml and try again.
regards,
kichu
 
shabbir zakir
Ranch Hand
Posts: 183
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hi!
Thanks for ur reply.But i don't understand where to change the port.My tomcat server is openining in the different window.Now what to do.pls help
 
kichu kichu
Ranch Hand
Posts: 59
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hai,
Got to tomcat/conf folder.Inside it you will find server.xml file.Open it and you will find a line==>

<Connector className="org.apache.tomcat.service.SimpleTcpConnector">
<Parameter name="handler" value="org.apache.tomcat.service.http.HttpConnectionHandler"/>
<Parameter name="port" value="8080"/>
</Connector>

Change the port value 8080.Then try again.
Still if you are facing any problem,i will recommend you to install tomcat again using the steps that i have given to you before.
In the steps just ignore the step involving extraction of the war files.(U need not do that,they will be automatically done
)
Get back to me if u have any problems.

kichu
 
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
i follow the instruction given, and i identified that original port in server.xml is 8007 not 8080. i already changed it to 8080 and run it. the windows command display and show tomcat is running in new window. i try to access http://localhost:8080 or http://localhost:8007 but the problem still same, error page. before this i running ZOPE for windows in 8080 platform. but it only cause a problem if i running ZOPE and TOMCAT at same time . am i right .? give a suggestion
 
kichu kichu
Ranch Hand
Posts: 59
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hai,
See in the folder tomcat\webapps\ROOT.Look if index.html file is there.This is the page which gets displayed when we type==>hhtp://localhost:8080.
If this page is not there ,then you will get page not found.
Additionaly put a simple html page inside webapps\ROOT ,for example 1.html.
Then access it by typing==>http://localhost:8080/1.html
See if it is getting displayed.If yes,your tomcat is running properly.
try it and reply to me
kichu
 
Ahmad Kamal Ramli
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
file index.html is at webapps\root .. i alredy copy one html file and try method which you already suggested. but the problem is still same.. any other method you can help me ?
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic