File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Servlets and the fly likes tomcat error, HttpConnectionHandler class not found Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "tomcat error, HttpConnectionHandler class not found" Watch "tomcat error, HttpConnectionHandler class not found" New topic
Author

tomcat error, HttpConnectionHandler class not found

ray bond
Ranch Hand

Joined: Oct 11, 2000
Posts: 111
hello there , I downloded tomcat and set all classpath,autoexec.bat file,java_home,tomacat_home everything that satya explained in previous post but when i type startup.bat
or tomcat start at command prompt one window just flashes and
disappeares and when i type tomcat run at command prompt it
gives me error : org.apache.tomcat......HttpConnectionHandler class not found exception , please can anybody help me with this.
thank you.
Madhav Lakkapragada
Ranch Hand

Joined: Jun 03, 2000
Posts: 5040

how abt c:\jdk1.2.2\lib\tools.jar ?
can i assume you added this to your classpath.
regds.
- satya

Take a Minute, Donate an Hour, Change a Life
http://www.ashanet.org/workanhour/2006/?r=Javaranch_ML&a=81
ray bond
Ranch Hand

Joined: Oct 11, 2000
Posts: 111
yes I have added tools.jar to classpath , and in tomcat.bat file it is set anyway.
please can you tell me what is wrong with this HttpConnectionHandler class not found exception.
thank you
Madhav Lakkapragada
Ranch Hand

Joined: Jun 03, 2000
Posts: 5040

hmm...right now I am at work and can't think of any.
one other thing i can suggest "is your jsdk2.1 set up correct?"
check this out and do you mind posting your autoexec.bat file,
if its okay with you. just can't recollect what else....
regds.
- satya
ray bond
Ranch Hand

Joined: Oct 11, 2000
Posts: 111
hello there,
jsdk ?? do i need jsdk, I have heard that you need jdk1.2 only for
tomcat to develop servlets and jsp.. can you tell me more about this?
thanks
ray bond
Ranch Hand

Joined: Oct 11, 2000
Posts: 111
I also used jar tvf webserver.jar to see content of webserver.jar file
and it has HttpConnectionHandler.class in it , but still when i type
"tomcat run" command it shows HttpConnectionHandler class not found exception , this is very strange. when i type tomcat start or startup.bat one window just flashes. how can i get started with tomcat , do i must install jsdk2.1 ??
thanks
William Brogden
Author and all-around good cowpoke
Rancher

Joined: Mar 22, 2000
Posts: 12769
    
    5
ARG! not again. JSDK is not compatible with Tomcat. I wasted
days on this one. If the JSDK JAR file is on your classpath you get weird class not found errors. You should remove all traces of the older JSDK files - which (as far as I can tell) Sun is not keeping up. Tomcat is the official "Reference Implementation" now.
You must run the startup.bat from a command line in a MSDOS prompt window instead of clicking on the bat file.
I suggest removing the @echo off from the bat files so you can actually see the error messages.
You must set the memory used for the environment higher than the default value because Tomcat sets a LOT of environment variables. This is likely to be the cause of the vanishing window. From the properties dialog of the MSDOS prompt window, pick the memory tab. Set "Initial Environment" to 4096.
Bill
ray bond
Ranch Hand

Joined: Oct 11, 2000
Posts: 111
hello , I am still facing same problem, I have not installed jsdk on my system,I set dos memory environment higher to 4096 for bat files, I start startup.bat and tomcat.bat from command line but still one window flashes for second and disappeares , and again when i try "tomcat run" command same
HttpConnectionHandler class not found exception comes.
can anybody guide me now??
thanks for your tips.
Madhav Lakkapragada
Ranch Hand

Joined: Jun 03, 2000
Posts: 5040

ray:
my gut feeling is that your classpath is not
correct (100 % sure something is missing in
your classpath). Tomcat sets up only what it
needs. It will not setup the jdk stuff.
sorry i couldn't reply earlier! i need more
info on what you are trying to do.
And are you typing startup.bat
or is it startup.
Use either startup from the
C:\jakarta-tomcat\bin dir or use
tomcat start. While I am not
sure of the latter one, I use the former one.
Not startup.bat and not tomcat run.
I will re-post if I find some.
Hope this helps.
regds.
- satya

Madhav Lakkapragada
Ranch Hand

Joined: Jun 03, 2000
Posts: 5040

ray:
Update.......i found two threads which discuss this problem.
there are likely some solutions there...check this out!

From java.sun website
and this from jGurus' website.
HTH.
Regds.
- satya
ray bond
Ranch Hand

Joined: Oct 11, 2000
Posts: 111
hello there,
satya thank you very much for your help and kind tips.
at last I got started at http://localhost/ ,
I just changed the JVM version from 1.2 to 1.2.2 ,I copied JVM
from Oracle jdeveloper and paste it in jdk1.2 and then from
command prompt "tomcat run" got me started , still tomcat start
command not working , more letter.
thank you
Madhav Lakkapragada
Ranch Hand

Joined: Jun 03, 2000
Posts: 5040

in the abv links such probs were discussed and they
said it should be a prob in the jdk. as i said
i generattly use startup script which is nothing
but a batch file which probably does tomcat run or
tomcat start. one of those, i forgot which one.
anyways...i learned one more lesson.
best wishes.
regds.
- satya
ray bond
Ranch Hand

Joined: Oct 11, 2000
Posts: 111
now if anybody encounters HttpConnectionHandler class not found error in tomcat then he or she should change their jdk version, this error comes when your jdk is not able to execute
"class.forName("..")" command for loading HttpConnectionHandler class ,it means improper class loader, thanks for other postings help,
this is the way that we can help each other to trouble shoot problems , so nobody gets frusteted and can go on.
thanks.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: tomcat error, HttpConnectionHandler class not found