| Forums.Sureshkumar.net : A Perfect Place to Share Knowledge Blogs Games Magazines |
|
|
#1 (permalink) |
|
Junior Member
Join Date: Apr 2006
Location: India
Posts: 25
Thanks: 3 Thanked 1 Times in 1 Posts Thanks: 3
Thanked 1 Time in 1 Post
Rep Power: 3
|
setting tomcat environment variables
Hi all!
I have Tomcat 5.5.17 and set JAVA_home and path variables. But on testing http://localhost:8080 in url it shows error- ERROR The requested URL could not be retrieved While trying to retrieve the URL: http://localhost:8080/ The following error was encountered:
(111) Connection refused The remote host or network may be down. Please try the request again. Your cache administrator is root. Generated Tue, 31 Oct 2006 10:37:42 GMT by 202.54.99.2 (squid/2.5.STABLE9) Whats wrong???? |
|
|
|
|
|
#2 (permalink) |
|
Junior Member
Join Date: Sep 2006
Posts: 29
Thanks: 0 Thanked 1 Times in 1 Posts Thanks: 0
Thanked 1 Time in 1 Post
Rep Power: 3
|
Re: setting tomcat environment variables
Hello
1.You have to install J2sdk before you install tomcat 2. Then the tomcat will automatically take the jvm and you neednot set the java home for tomcat. But at the time of compilation [If you are not using any IDE(Eclipse or Netbeans) you have to set the classpath and path to jvm] 3. you can download netbeans bundled with tomcat no nead to set anything for that(Not recommended) becasuse once u used this you will not learn about the folder structure of webapplication becos the IDE automaticcaly do all these things ok if you have any doubt reply me |
|
|
|
|
|
#3 (permalink) |
|
Junior Member
Join Date: Apr 2006
Location: India
Posts: 25
Thanks: 3 Thanked 1 Times in 1 Posts Thanks: 3
Thanked 1 Time in 1 Post
Rep Power: 3
|
Re: setting tomcat environment variables
I already have j2sdk and path to its bin directory is set.
I am not using any IDE.Which class path it requires to set? |
|
|
|
|
|
#4 (permalink) |
|
Junior Member
Join Date: Sep 2006
Posts: 29
Thanks: 0 Thanked 1 Times in 1 Posts Thanks: 0
Thanked 1 Time in 1 Post
Rep Power: 3
|
Re: setting tomcat environment variables
which version of j2sdk u are using?
if there is no way you uninstall tomcat, j2sdk and again do it from start if you are doing it just for testing or for studying you install j2sdk and tomcat in c:\ itself. if you install both in different drives with out proper setting some problem may occur. remove all java_home setting ok then try ok |
|
|
|
|
|
#6 (permalink) |
|
Moderator
Join Date: Apr 2006
Location: India
Posts: 636
Thanks: 57 Thanked 78 Times in 63 Posts Thanks: 57
Thanked 78 Times in 63 Posts
Rep Power: 17
|
Re: setting tomcat environment variables
Hi abhijeet,
Pls go to the catalina.out file in ur tomcat logs folder, check the last error it is returning and paste it here, will try to solve ur problem Thank you
__________________
M0h@n |
|
|
|
|
|
#7 (permalink) |
|
Member
Join Date: Nov 2006
Posts: 56
Thanks: 13 Thanked 3 Times in 3 Posts Thanks: 13
Thanked 3 Times in 3 Posts
Rep Power: 3
|
Re: setting tomcat environment variables
Hi abhijeet,
Make sure that JAVA_HOME environment variable just points to the directory where J2SDK is available,not to the bin of J2SDK. Thanks |
|
|
|
|
|
#8 (permalink) |
|
Junior Member
Join Date: Apr 2006
Location: India
Posts: 25
Thanks: 3 Thanked 1 Times in 1 Posts Thanks: 3
Thanked 1 Time in 1 Post
Rep Power: 3
|
Re: setting tomcat environment variables
I got it.
it is working with http://127.0.0.1:8080 and not with http://localhost:8080. But when i am disabling proxy option in IE->Tools -> Internet Options -> Connection tab it works fine with http://localhost:8080 also. can you explain it?? |
|
|
|
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Can we execute EJB's in Tomcat | Unregistered | JAVA Technologies | 6 | 14-07-08 04:09 PM |
| Personality Development : Goal setting strategies | sk_kireeti | Inspire yourself & Others - Leaders Zone | 5 | 20-11-06 05:00 PM |
| accessing ejb's in action class (in tomcat) | D.Guna | JAVA Technologies | 4 | 09-10-06 02:14 PM |
| KNOW SOMETHING ABOUT TOMCAT | wizkid | JAVA Technologies | 0 | 01-08-06 03:31 PM |
| Cgi Technology | source | OTHERS | 1 | 17-07-06 05:43 PM |