Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

tomcat 4.0 and ssl

 
saigals singh
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Tomcat 4.0.1 on IBM - AIX 4.3 - SSL Congifuration
Hi Everyone,
I have installed Tomcat 4.0.1 on IBM AIX 4.3. Tomcat as a standalone works fine. I can see the documentation at http://localhost:8443
For SSL configuration, when I uncomment the SSL:
--------------------------------------------------------------------------------------------
<!-- Define an SSL HTTP/1.1 Connector on port 8443 (Uncommented this entry)-->
< Connector className="org.apache.catalina.connector.http.HttpConnector"
port="8443" minProcessors="5" maxProcessors="75"
enableLookups="true"
acceptCount="10" debug="0" scheme="https" secure="true" >
< Factory className="org.apache.catalina.net.SSLServerSocketFactory"
clientAuth="false"
keystoreFile="keys/bbnpacert"
keystorePass="test123"
protocol="TLS" />
< /Connector >
--------------------------------------------------------------------------------------------

I have ibmjsse.jar in the $JAVA_HOME/jre/lib/ext directory. And in the /usr/java130/lib/security/java.security file I have the following entries:
--------------------------------------------------------------------------------------------
security.provider.1=sun.security.provider.Sun
security.provider.2=com.ibm.jsse.JSSEProvider
--------------------------------------------------------------------------------------------

I get the following error in catalina.out for SSL configuration and also cannot view the https://local:8443 - Tomcat crashes:
--------------------------------------------------------------------------------------------
Exception during startup processing
java.lang.reflect.InvocationTargetException: java.lang.NoClassDefFoundError: com/sun/net/ssl/SSLContext
at org.apache.catalina.net.SSLServerSocketFactory.initProxy(SSLServerSocketFactory.java:398)
at org.apache.catalina.net.SSLServerSocketFactory.initialize(SSLServerSocketFactory.java:334)
at org.apache.catalina.net.SSLServerSocketFactory.createSocket(SSLServerSocketFactory.java:287)
at org.apache.catalina.connector.http.HttpConnector.open(HttpConnector.java:946)
at org.apache.catalina.connector.http.HttpConnector.initialize(HttpConnector.java:1114)
at org.apache.catalina.core.StandardService.initialize(StandardService.java:454)
at org.apache.catalina.core.StandardServer.initialize(StandardServer.java:552)
at org.apache.catalina.startup.Catalina.start(Catalina.java:775)
at org.apache.catalina.startup.Catalina.execute(Catalina.java:681)
at org.apache.catalina.startup.Catalina.process(Catalina.java:179)
at java.lang.reflect.Method.invoke(Native Method)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:243)
--------------------------------------------------------------------------------------------

Any pointers/help is appreciated.
 
Regus Patoff
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Try copying jsse.jar to the %tomcat%\common\lib folder. Search for it; it should be in a folder under your local java runtime environment. Mine was at "C:\Program Files\Java\j2re1.4.0-beta3\lib"
The NoClassDefFoundError means that Tomcat can't see the class it is looking for. SSLContext is in the jsse.jar file and all jars need to be in a lib folder under Tomcat. 'common' is the most global of tomcat folders, meaning all apps under Tomcat will have access to the classes and jars stored there.
hope this helps
RP
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic