tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 4458] New: - StartMenu shortcuts fail to launch Tomcat when SSL enabled - command line launch works
Date Fri, 26 Oct 2001 18:16:39 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=4458>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=4458

StartMenu shortcuts fail to launch Tomcat when SSL enabled - command line launch works

           Summary: StartMenu shortcuts fail to launch Tomcat when SSL
                    enabled - command line launch works
           Product: Tomcat 4
           Version: 4.0 Final
          Platform: PC
        OS/Version: Windows NT/2K
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: Unknown
        AssignedTo: tomcat-dev@jakarta.apache.org
        ReportedBy: ijohnson@sympatico.ca


Win2000 Server
JDK1.3.1_01
JSSE1.0.2

CATALINA_HOME=D:\ApacheTomcat
JSSE_HOME=D:\JSSE1.0.2
JAVA_HOME=D:\JDK1.3.1_01

SSL enabled in server.xml such that:

    <!-- Define a non-SSL HTTP/1.1 Connector on port 8080 -->
    <Connector className="org.apache.catalina.connector.http.HttpConnector"
               port="8080" minProcessors="5" maxProcessors="75"
               enableLookups="true" redirectPort="8443"
               acceptCount="10" debug="0" connectionTimeout="60000"/>
    <!-- Note : To disable connection timeouts, set connectionTimeout value 
     to -1 -->

    <!-- 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"
	       keystoreFile="cert/keystore"
               clientAuth="false" protocol="TLS"/>
    </Connector>

Note:  
keytool -genkey -alias tomcat -keyalg RSA \
-keystore "D:\ApacheTomcat\cert\keystore"

Observation:  

Correct behavior ensues when I launch D:\ApacheTomcat\bin\startup from any 
shell.  I am able to access both http://localhost:8080 and 
https://localhost:8443.

When I attempt to launch from "Start/Run/Programs/Apache Tomcat 4.0/Start 
Tomcat"  I get:

Exception during startup processing
java.lang.reflect.InvocationTargetException: java.lang.NoClassDefFoundError: jav
ax/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.ja
va:329)
        at org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1451)
        at org.apache.crimson.parser.Parser2.content(Parser2.java:1700)
        at org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1468)
        at org.apache.crimson.parser.Parser2.content(Parser2.java:1700)
        at org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1468)
        at org.apache.crimson.parser.Parser2.content(Parser2.java:1700)
        at org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1468)
        at org.apache.crimson.parser.Parser2.parseInternal(Parser2.java:499)
        at org.apache.crimson.parser.Parser2.parse(Parser2.java:304)
        at org.apache.crimson.parser.XMLReaderImpl.parse(XMLReaderImpl.java:433)

        at org.xml.sax.helpers.XMLReaderAdapter.parse(XMLReaderAdapter.java:223)

        at javax.xml.parsers.SAXParser.parse(SAXParser.java:317)
        at javax.xml.parsers.SAXParser.parse(SAXParser.java:260)

Note:  I am unable to capture the whole trace (I thought I did pretty good 
getting this much).

Am I missing something?  Is there something that is set corrrectly from the env 
when shell launched that is set incorrectly when shortcut launched?

Importance is not high - not even sure that this is a bug but the inconsistancy 
seems to confirm.

Kindly

Mime
View raw message