SSL Failure on Tomcat 5.5.12
I just installed Tomcat 5.5.12 on Windows XP (from the .exe install). I created and have a working webapp with servlets on the http port (80). I carefully followed the instructions on the apache tomcat website for setting up a SSL https connection. I followed it in every detail, creating my own certificate using keytool (as explained both on the apache site and right there in the server.xml file). In server.xml I set the http connector to port 80 and the https connector to port 443. All normal http requests work fine. But when I try to connect to https://localhost, the browser (Firefox) just displays "Loading" and ultimately I get a popup alert of "The connection to localhost has terminated unexpectedly. Some data may have been transferred." While the browser is "loading" I can bring up a Command Window and issue a netstat -a -n command and I can see that there is an established socket connection on port 443. But nothing happens. Any help is surely appreciated. By the way, o n a different PC (also Windows XP) I used netbeans (4.1) to develop a webapp, and on that I did the same SSL procedure and it worked perfectly. --thanks --Tony C. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: SSL Failure on Tomcat 5.5.12
Iosev, Thank you so much! That was exactly the problem. I had no idea, it was driving me crazy. I hope this helps others as well, --thanks again, --Tony C. -- Original message -- From: "Iosev Perez Rivero" <[EMAIL PROTECTED]> > So, I feed that u must check into /TOMCAT_HOME/bin and delete tcnative-1.dll > if > u using SSL without openSSL or without CA. > > Iósev Pérez Rivero > Estudiante 4to. Año > Universidad de las Ciencias Informáticas > > -Original Message- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] > Sent: Thursday, January 19, 2006 6:00 PM > To: users@tomcat.apache.org > Subject: SSL Failure on Tomcat 5.5.12 > > I just installed Tomcat 5.5.12 on Windows XP (from the .exe install). I > created > and have a working webapp with servlets on the http port (80). I carefully > followed the instructions on the apache tomcat website for setting up a SSL > https connection. I followed it in every detail, creating my own certificate > using keytool (as explained both on the apache site and right there in the > server.xml file). In server.xml I set the http connector to port 80 and the > https connector to port 443. All normal http requests work fine. But when I > try > to connect to https://localhost, the browser (Firefox) just displays > "Loading" > and ultimately I get a popup alert of "The connection to localhost has > terminated unexpectedly. Some data may have been transferred." While the > browser > is "loading" I can bring up a Command Window and issue a netstat -a -n > command > and I can see that there is an established socket connection on port 443. But > nothing happens. Any help is surely appreciated. By the way, o > n a different PC (also Windows XP) I used netbeans (4.1) to develop a > webapp, > and on that I did the same SSL procedure and it worked perfectly. > --thanks > --Tony C. > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Sending a lot of info the a jsp page
Hi Dola yes you can use POST for an unlimited amount of data but of course you'll need to set your http headers correctly, specifically the Content-Length header. -- Original message -- From: Dola Woolfe <[EMAIL PROTECTED]> > Hi, > > This question will reveal how little I know about > networking or http or something else. > > Basically I wrote an applet that sends data to a > servlet. I do it by forming a url with a query string > (GET). But this doesn't work when there's too much > data. > > What are my options? > Is it possible to use POST? > Or, better yet, is it possible to send a java object > by creating a socket connection with the servlet? > > Very many thanks in advance! > > Dola > > __ > Do You Yahoo!? > Tired of spam? Yahoo! Mail has the best spam protection around > http://mail.yahoo.com > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Are servlet name and class name required in web.xml for tomcat 5.5?
-- Original message -- From: "Alla Winter" <[EMAIL PROTECTED]> > For Tomcat 4.x I didn't have to set up anything in web.xml. But it seems > that I have to define each servlet name and corresponding class name in > web.xml in order to make it to work for Tomcat 5.5. Is that right > statement? > I have a lot of servlets, it seems like it is a lot of work. > Can not find what info is required in web.xml and what is optional? Can you > please refer me to that info? > Thanks > > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > Yes, that is correct. Within the element you must have the element, which can be any unique name you want, and the element which has the real class name. Then within the element you must have a which is the same as one of the names from the section, and you must have a element which tells Tomcat the url pattern that it will map to the identified servlet. Here is an example for a servlet called "Login": Login net.homeip.coconets.sessionpkg.Logout Login /Login - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: https difficulties w/ Tomcat5
I had the same problem with Tomcat 5.5.12. Finally someone told me to check the Tomcat 5.5\bin directory for a file called tcnative-1.dll (or something like that, I don't remember exactly). After I deleted that file, my SSL connections worked fine. -- Original message -- From: "Stevie G. Messervey" <[EMAIL PROTECTED]> > Hello, > Please let me preface that I have actually tried > to run down various > threads,tutorials,FAQS, and the Tomcat docs (both > shipped & online). > > dist: Crux Evolution 2.0.x kernel: 2.6.8.1 gcc:3.3.4 > java:jdk1.5.0_06 > kde:3.3(incl/konqueror) firefox:1.5 Tomcat:5.5.15 > (binary tar.gz) > APR:1.2.2 > > Basically, I cannot get the SSL connector to work. I > uncomment the > appropriate entry in server.xml, and when I try to > access > https://localhost:8443,the session times out. > Oddly (to me), accessing via http://localhost:8080 > works. > > I do have the keystore properly configured, as I > recently installed 4.1.31 > to test it. Tomcat4.1.31 w/ https works flawlessly. > > I chased this thing round and round- I downloaded > firefox, thinking maybe > it was a browser issue, as I built KDE myself(i.e. > it's not the bundle from the distro). Same issue. I > don't really suspect gcc or associated > problems,as jsvc and libtcnative both compiled (and > installed, for > libtcnative) w/o complaint. > > I have even tried copying a modified from > 4.1.31, which > (unmodified) works under 4.1.31 . > I have tried explicitly setting the address, i.e. > address="127.0.0.1"; no > luck. I created some scripts to monitor the tomcat > sessions, the most > useful fragment being 'neststat -p | grep localhost:', > which, during my > tests, shows tomcat talking to itself, from which I > can conclude that the > sessions are being started. > > The only thing I haven't tried is building from > source. > > In short, has anyone else been able to: > * get https working, 'out of the box', from the 5.5.15 > binary .tar.gz? > * ditto above, with Crux? Crux-Evolution? > > > Thank you for your time and interest, > Tarkin > > __ > Do You Yahoo!? > Tired of spam? Yahoo! Mail has the best spam protection around > http://mail.yahoo.com > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Port 8443 won't become active
Hi Jeff, when I had this problem it was caused by the presence of a file named "tcnative-1.dll" in the ~/Tomcat 5.5/bin directory. When I removed that .dll file, everything worked as described in the Tomcat documentation for SSL. --Tony C. -- Original message -- From: "Jeffery G. Summers" <[EMAIL PROTECTED]> > Hello! I'm brand-new to Tomcat and am under the gun to learn it quickly. > The short story: My University hired our Software Vendor to upgrade our > administrative web software. We also hired them to move us from iPlanet to > Jakarta Tomcat 5.0.28. Currently we can access our web software on port 80. > The problem is enabling SSL on port 8443. We're stuck and the software > vendor hasn't been helpful (yet). I don't know if the problem was caused by > something the consultant did not do upon setup or something we are missing > elsewhere. > > Our webserver is an IBM P615C AIX 5.2 box. I have attempted the following > to enable port 8443: > > 1) keytool -genkey -alias tomcat -keyalg RSA > 2) Edited server.xml and uncommented the port 8443 connector > 3) Stopped/Started Tomcat > > When I run telnet localhost 80 I get a connection. When I try telnet > localhost 8443 I get a denied connection message. I have re-commented the > port 8443 connector and then changed my port 80 (formerly 8080) to 8443 and > restarted Tomcat. > > After doing this I was able to go to http://localhost:8443 with no problems. > Of course, it is http and not https. Since the port activates I'm led to > believe it's either a Tomcat setup issue or perhaps something to do with > AIX. I changed things back so port 80 was active again and I uncommented > port 8443 and restarted Tomcat again. The catalina.out log file shows some > errors which may have something to do with the problem but I don't know what > to do at this point. Please help this novice! Thanks! > > > Jeffery G. Summers > System Administrator > Transylvania University > Colleague R17/Ben 5.1/AIX 5.3.3 > WebAdvisor 3.0/AIX 5.2/Tomcat 5.0.28 > = > > The errors: > > Feb 2, 2006 10:20:20 AM org.apache.coyote.http11.Http11Protocol pause > INFO: Pausing Coyote HTTP/1.1 on http-8443 > > Feb 2, 2006 10:20:20 AM org.apache.coyote.tomcat5.CoyoteConnector pause > > SEVERE: Protocol handler pause failed > > java.lang.NullPointerException > Feb 2, 2006 10:20:22 AM org.apache.coyote.http11.Http11Protocol destroy > > INFO: Stopping Coyote HTTP/1.1 on http-8443 > > Feb 2, 2006 10:20:22 AM org.apache.coyote.tomcat5.CoyoteConnector stop > > SEVERE: Coyote connector has not been started > Feb 2, 2006 10:20:40 AM org.apache.coyote.http11.Http11Protocol start > SEVERE: Error initializing endpoint > > java.io.IOException: Algorithm SunX509 not available > > > > > Successfully Scanned by the McAfee SIG 3200 Appliance. > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]