tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sean LeBlanc <>
Subject Re: SSL and Tomcat as a service
Date Thu, 08 Aug 2002 15:58:28 GMT
On 08-08 07:13, Tathagat (London) wrote:
> Could you please provide more details, like:
> are you using server certificates. What do you mean by crashes. When you run
> manually and as service what's the difference you get.

I'm using a self-signed one per the instructions on the Tomcat page. This works
in standalone(well, with the expected warnings from the browser since it's a
bogus cert). The main difference between standalone and service is that the
standalone sucessfully starts up with SSL and the service doesn't. :)

I've tried setting JSSE_HOME since, I see the bat file has some check for that,
but it doesn't seem to work either. I'm not sure if the service even uses the
.bat file to start Tomcat, though.

Here's what stdout.log has:
Create Catalina server
Exception during startup processing
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(
	at java.lang.reflect.Method.invoke(
	at org.apache.catalina.startup.BootstrapService.main(
Caused by: java.lang.NoClassDefFoundError: javax/net/ServerSocketFactory
	at java.lang.ClassLoader.findBootstrapClass(Native Method)
	at java.lang.ClassLoader.findBootstrapClass0(
	at java.lang.ClassLoader.loadClass(
	at java.lang.ClassLoader.loadClass(
	at sun.misc.Launcher$AppClassLoader.loadClass(
	at java.lang.ClassLoader.loadClass(
	at org.apache.catalina.loader.StandardClassLoader.loadClass(
	at org.apache.catalina.loader.StandardClassLoader.loadClass(
	at org.apache.catalina.loader.StandardClassLoader.loadClass(
	at org.apache.catalina.loader.StandardClassLoader.loadClass(
	at java.lang.ClassLoader.loadClassInternal(
	at java.lang.Class.forName0(Native Method)
	at java.lang.Class.forName(
	at org.apache.catalina.util.xml.ObjectCreate.start(
	at org.apache.catalina.util.xml.XmlMapper.matchStart(
	at org.apache.catalina.util.xml.XmlMapper.startElement(
	at org.xml.sax.helpers.XMLReaderAdapter.startElement(
	at org.apache.xerces.parsers.SAXParser.startElement(
	at org.apache.xerces.validators.common.XMLValidator.callStartElement(
	at org.apache.xerces.framework.XMLDocumentScanner.scanElement(
	at org.apache.xerces.framework.XMLDocumentScanner$ContentDispatcher.dispatch(
	at org.apache.xerces.framework.XMLDocumentScanner.parseSome(
	at org.apache.xerces.framework.XMLParser.parse(
	at org.xml.sax.helpers.XMLReaderAdapter.parse(
	at javax.xml.parsers.SAXParser.parse(
	at javax.xml.parsers.SAXParser.parse(
	at org.apache.catalina.util.xml.XmlMapper.readXml(
	at org.apache.catalina.startup.CatalinaService.load(
	at org.apache.catalina.startup.CatalinaService.execute(
	at org.apache.catalina.startup.Catalina.process(
	... 5 more

And since the other followup asked if this was Windows, yes, it is. I made the
(wrong) assumption that people would know that "service" vs. "daemon" would
mean Windows. Sorry about that. More specifically, this is a W2K Professional
machine.  Tomcat is 4.0.4. Also, I'm trying to start this as a service AND use
this with IIS. The redirection from IIS is working fine, as long as I don't
need SSL. But I do, and can't get Tomcat to start up with SSL support.

Event Viewer shows this after trying to start the Tomcat service:

  The Java Virtual Machine has exited with a code of 2, the service is being stopped. 


> -----Original Message-----
> From: Sean LeBlanc []
> Sent: Wednesday, August 07, 2002 22:51
> To:
> Subject: SSL and Tomcat as a service
> Has anyone else been able to make this work? I could run with SSL when I ran
> Tomcat manually, but the service crashes because it can't find the JSSE
> jars,
> presumably. I tried putting all the JARS in the classpath (besides just
> being
> in JAVA_HOME's \jre\lib\ext dir), but that's a non-starter.
> TIA,
> Sean LeBlanc -
> --
> To unsubscribe, e-mail:
> <>
> For additional commands, e-mail:
> <>
> ----------------------------------------------------------------------
> If you have received this e-mail in error or wish to read our e-mail 
> disclaimer statement and monitoring policy, please refer to 
> or contact the sender.
> ----------------------------------------------------------------------
> --
> To unsubscribe, e-mail:   <>
> For additional commands, e-mail: <>

To unsubscribe, e-mail:   <>
For additional commands, e-mail: <>

View raw message