Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

SSL setup

0 views
Skip to first unread message

小啡

unread,
Dec 7, 2001, 8:36:14 AM12/7/01
to
Dear all,
I have encountered a problem when i am setting the SSL in the tomcat 4.0
I follows the instructions as in JSSE, copy the *.jar files into
<JAVA_HOME>/lib/ext/ and create a .keyStore file.
Then i uncomment the SSL connector, but it throws the following error:

Exception during startup processing
java.lang.reflect.InvocationTargetException: java.lang.NoClassDefFoundError:
javax/net/ServerSocketFactory
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Unknown Source)
at org.apache.catalina.util.xml.ObjectCreate.start(XmlMapper.java:616)
at org.apache.catalina.util.xml.XmlMapper.matchStart(XmlMapper.java:412)
at org.apache.catalina.util.xml.XmlMapper.startElement(XmlMapper.java:91)
at
org.xml.sax.helpers.XMLReaderAdapter.startElement(XMLReaderAdapter.java:329)
at org.apache.xerces.parsers.SAXParser.startElement(SAXParser.java:1376)
at
org.apache.xerces.validators.common.XMLValidator.callStartElement(XMLValidat
or.java:1214)
at
org.apache.xerces.framework.XMLDocumentScanner.scanElement(XMLDocumentScanne
r.java:1806)
at
org.apache.xerces.framework.XMLDocumentScanner$ContentDispatcher.dispatch(XM
LDocumentScanner.java:1182)
at
org.apache.xerces.framework.XMLDocumentScanner.parseSome(XMLDocumentScanner.
java:381)
at org.apache.xerces.framework.XMLParser.parse(XMLParser.java:1081)
at org.xml.sax.helpers.XMLReaderAdapter.parse(XMLReaderAdapter.java:223)
at javax.xml.parsers.SAXParser.parse(SAXParser.java:345)
at javax.xml.parsers.SAXParser.parse(SAXParser.java:290)
at org.apache.catalina.util.xml.XmlMapper.readXml(XmlMapper.java:228)
at org.apache.catalina.startup.Catalina.start(Catalina.java:725)
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)

could anyone help me wat the problem in my setting?
--
karyin~
@^-^@


Randy K. Secrist

unread,
Dec 9, 2001, 11:19:50 PM12/9/01
to
I am having the same problem you described - with the same exception. I
ONLY get that exception when I run Tomcat 4.0 as a service however - not
when I run it from the command line using the startup and shutdown bat
files. I was able to get the SSL connector to work using both JDK 1.3.1_01
and 1.4 Beta 3 - running under command line... - but I find that highly
annoying since i would prefer to run it as a service.

It would be VERY cool if there was a way to fix that...

Another thing I noticed -

The self install for Tomcat 4.0 won't install unless you have JDK 1.3.1 or
less. If all you have is 1.4 - you have to first install 1.3 before it
installs, then you can remove 1.3 and use 1.4's beta. If you do this
however, the service will again fail when started. You have to run it from
the command line as well.

Both of these things need to be addressed by Jakarta. There isn't anything
in the FAQ...

Rand


"小啡" <kyf...@ie.cuhk.edu.hk> wrote in message
news:9uqgeh$gs4$1...@eng-ser1.erg.cuhk.edu.hk...

Paul Thiel

unread,
Dec 20, 2001, 3:46:12 PM12/20/01
to
I've got the same problem. I cannot get it running from either the
batch file or as a service, however. Here is a section of my
server.xml file. What am I doing wrong?

<!-- Define an SSL HTTP/1.1 Connector on port 8443 -->
<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" protocol="TLS"/>
</Connector>

It seems to be the factory class entry that is the problem. I can
remove the factory class entry, and the server starts up fine (but
without SSL). When I put that back in, it doesn't seem able to find
the class needed, and Catalina locks up.

That's just my observations for the moment

"Randy K. Secrist" <ra...@secristfamily.com> wrote in message news:<GJWQ7.3645$dB5.3...@news.uswest.net>...

0 new messages