You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by "Suresh Krishna M (RBIN/DBA-JOT)" <Su...@in.bosch.com> on 2001/07/11 06:02:18 UTC

Tomcat/Apache with SSL

Hello all,
             Please let me know how to use SSL in Tomcat and Oracle 9iAS (if
anybody are using) .What are the prerequisites for this and i am using WinNT
box.I want to use the HTTPS protocol for some secured connections and i am
not able to see anything related in apache or tomcat.please help

THANX IN ADVANCE

The greatest thing that you would ever learn is just to Love and to be Loved
in return  --Anonymous             

With best regards,
M.S.Krishna (RBIN/DBA-JOT)
> Phone*: +91-80-508-1416
Fax         : +91-80 571-1865
E-mail     : Suresh.km@in.bosch.com
Robert Bosch India Limited,
123,Industrial Layout,
Koramangala,
Bangalore-95.



RE: Configuring apache/tomcat with mod_jk on different hosts

Posted by Saurabh Shukla <sa...@cysphere.com>.

This probably is a BUG with tomcat. It should not return 404, coz' the
servlet is there.

You will get the same message  even if u call the servlet from normal java
code and not applet.


    URL url = new URL("http://whatever.com/servlet/SomeServlet")

   URLConnection huc = url.openConnection();

   huc.setUseCaches(false);

   huc.setDoInput(true);

//   huc.setDoOutput(true);

//    OutputStream os = huc.getOutputStream();

  InputStream is = huc.getInputStream();


This will work but if u uncomment the 2 lines above , it returns 404 Error.

Perhaps it has something to do with the post method in the servlet, do u
have a doPost method in the servlet ?

Shuklix
-----Original Message-----
From: Deniz Demir [mailto:demir@yfas.com.tr]
Sent: Wednesday, July 11, 2001 2:26 PM
To: tomcat-user@jakarta.apache.org
Subject: URL socket connection to servlet


Hi,

I have replaced my apache-jserv server with apache-tomcat. In this case my
applet cannot open URL socket connection to my servlet that loads the
applet.

The code in the applet is as follows:

      // Get the server URL
      String urlString = "http://" + getDocumentBase().getHost() +
"/servlet/LoginServlet";
      java.net.URL url = new java.net.URL(urlString);
      System.out.println("- url: " + url.toString());


      // Attempt to connect to the host
      java.net.URLConnection con = url.openConnection();
      System.out.println("connection opened...");


And the error message from Java Console of Internet Explorer is as follows:
(  www.yfas.com.tr:80//servlet/LoginServlet this address is shown in
netscape as it is in the address bar, that is:
www.yfas.com.tr/servlet/LoginServlet )

- url: http://www.yfas.com.tr/servlet/LoginServlet
connection opened...
java.io.FileNotFoundException: www.yfas.com.tr:80//servlet/LoginServlet
 at com/ms/net/wininet/http/HttpInputStream.connect
 at com/ms/net/wininet/http/HttpInputStream.<init>
 at com/ms/net/wininet/http/HttpURLConnection.createInputStream
 at com/ms/net/wininet/WininetURLConnection.getInputStream
 at com/ms/net/wininet/http/HttpPostBufferStream.close
 at java/io/FilterOutputStream.close
 at LoginApplet.validateUser
 at LoginApplet.handleEvent
 at java/awt/Component.postEvent
 at java/awt/Component.postEvent
 at java/awt/Component.dispatchEventImpl
 at java/awt/Component.dispatchEvent
 at java/awt/EventDispatchThread.run


is there any solution for this problem?

Deniz...


Configuring apache/tomcat with mod_jk on different hosts

Posted by Raymond <ra...@tradeeasy.com>.
Hello

If apache and tomcat are running on 2 different hosts, how do I perform the
configuration if I'm using mod_jk ? For e.g. should I place the
workers.properties file on apache side or tomcat side ? For mod_jserv I know
that I can use ApJServDefaultHost and ApJServDefaultPort directives.

Thanks & Regards
Raymond