I think you will have real problems with this.  I have just hit the same
problem on an Intel platform, but the problem is global.

Tomcat looks to be runnable on both 1.3 and 1.4 Java, and looks (wrongly)
for a class called com.sun.net.SSLContext.  In 1.3 you had no choice, and
that is what JSSE provided, in 1.4 you are supposed to use
javax.net.SSLContext but that does not exist in 1.3.  In the Sun SDKs
com.sun.net.SSLContext does exist, so it works, but in the IBM SDKs it does
not.

Given that the Sun SDK is not available for S390 you have a real problem
and until Tomcat starts to look for javax.net.SSLContext if it does not
find the com.sun one (or rather the other way round, it should look for the
javax one and try the old one if that fails) your only real solution is to
use Apache, get it to do the SSL bits, and not use Tomcat as the HTTP
server.

David




                    John Sroka
                    <John.Sroka@sjs        To:     [EMAIL PROTECTED]
                    u.edu>                 cc:
                    Sent by: Linux         Subject:     SSL on Standalone Tomcat 4.1.18
                    on 390 Port
                    <[EMAIL PROTECTED]
                    ARIST.EDU>


                    08/01/2003
                    14:57
                    Please respond
                    to Linux on 390
                    Port






I've downloaded   IBM Java 1.4.0  and Tomcat 4.1.18 on my Redhat kernel,
and am able to start Tomcat standalone and access apps on cleartext port
8080 with no problem.  However, I'm baffled thus far with setting up SSL
support in the same environment, I've genned a keystore and enabled a
secure connector per the Tomcat instructions, but am getting an error
which follows.    Have noted in the tech lists that JSSE support is
required, though JSSE support supposedly is included with Java 1.4.
Downloading and setting up the Sun JSSE product has not helped.    Can
someone point me in the right direction?

Thanks!

John Sroka
San Jose State


>> catalina.log startup with SSL

Jan 8, 2003 6:51:38 AM org.apache.commons.modeler.Registry loadRegistry
INFO: Loading registry information
Jan 8, 2003 6:51:39 AM org.apache.commons.modeler.Registry getRegistry
INFO: Creating new Registry instance
Jan 8, 2003 6:52:04 AM org.apache.commons.modeler.Registry getServer
INFO: Creating MBeanServer
Jan 8, 2003 6:52:17 AM org.apache.coyote.http11.Http11Protocol init
INFO: Initializing Coyote HTTP/1.1 on port 8080
Exception during startup processing
java.lang.reflect.InvocationTargetException
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:61)

        at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:40)

        at java.lang.reflect.Method.invoke(Method.java:335)
        at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203)
Caused by: java.lang.NoClassDefFoundError:
com/sun/net/ssl/internal/ssl/Provider
        at
org.apache.tomcat.util.net.jsse.JSSEImplementation.getServerSocketFactory(JSSEImplementation.java:90)

        at
org.apache.coyote.http11.Http11Protocol.checkSocketFactory(Http11Protocol.java:452)

        at
org.apache.coyote.http11.Http11Protocol.init(Http11Protocol.java:133)
        at
org.apache.coyote.tomcat4.CoyoteConnector.initialize(CoyoteConnector.java:1032)

        at
org.apache.catalina.core.StandardService.initialize(StandardService.java:579)

        at
org.apache.catalina.core.StandardServer.initialize(StandardServer.java:2245)

        at org.apache.catalina.startup.Catalina.start(Catalina.java:511)
        at org.apache.catalina.startup.Catalina.execute(Catalina.java:400)
        at org.apache.catalina.startup.Catalina.process(Catalina.java:180)
        ... 5 more
[jsroka@lnxnet01 bin]$


>> catalina.log startup without SSL

Jan 7, 2003 5:02:48 PM org.apache.commons.modeler.Registry loadRegistry
INFO: Loading registry information
Jan 7, 2003 5:02:50 PM org.apache.commons.modeler.Registry getRegistry
INFO: Creating new Registry instance
Jan 7, 2003 5:03:21 PM org.apache.commons.modeler.Registry getServer
INFO: Creating MBeanServer
Jan 7, 2003 5:03:35 PM org.apache.coyote.http11.Http11Protocol init
INFO: Initializing Coyote HTTP/1.1 on port 8080
Starting service Tomcat-Standalone
Apache Tomcat/4.1.18
0 [main] INFO freehost3270.SessionServer  - Initializing freehost3270
96 [main] INFO freehost.Configuration  - Configuring FreeHost 3270 with:
/projects/sroka/jakarta-tomcat-4.1.18/webapps/freehost3270/WEB-INF/freehost.properties

100 [main] INFO freehost.Configuration  - Loading:
/projects/sroka/jakarta-tomcat-4.1.18/webapps/freehost3270/WEB-INF/freehost.properties

133 [main] DEBUG freehost3270.SessionServer  - Creating new Proxy on port:
6870
170 [Thread-2] DEBUG freehost3270.Proxy  - Waiting for new connections...
Jan 7, 2003 5:06:26 PM org.apache.coyote.http11.Http11Protocol start
INFO: Starting Coyote HTTP/1.1 on port 8080
Jan 7, 2003 5:06:26 PM org.apache.jk.common.ChannelSocket init
INFO: JK2: ajp13 listening on /0.0.0.0:8009
Jan 7, 2003 5:06:27 PM org.apache.jk.server.JkMain start
INFO: Jk running ID=0 time=93/637
config=/projects/sroka/jakarta-tomcat-4.1.18/conf/jk2.properties
Stopping service Tomcat-Standalone
[jsroka@lnxnet01 bin]$

Reply via email to