tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Bill Barker" <>
Subject Re: java.lang.reflect.InvocationTargetException
Date Mon, 16 Jun 2003 05:21:34 GMT
java.lang.reflect.InvocationTargetExceptionThe keystore needs to be the full path to the keystore.
 In your case you need something like keystore="c:\documents and settings\798454\.keystore".

  "Chuk, Jasmine WM" <> wrote in message news:65A7A4A02A881A4C9820CEC161A797E1016395BF@nttsba30.corp.root...

   -----Original Message----- 
  From:   Chuk, Jasmine WM  
  Sent:   Friday, June 13, 2003 3:52 PM 
  To:     '' 
  Subject:        java.lang.reflect.InvocationTargetException 

  Dear all, 

          I am trying to enable SSL Support with JSSE in tomcat, but it fails at the starting
up of tomcat. Following what is guided at,
here are the steps i have taken:

  1) Download and Install JSSE: 
      copy all there JAR files jcert.jar, jnet.jar, jsse.jar into the $JAVA_HOME/lib/ext.

  2) Generate a new Certificate Keystore 
  <!-- command line starts 
  C:\scm\oum\Web-inf>keytool -genkey -alias tomcat -keyalg RSA 
  Enter keystore password:  changeit 
  What is your first and last name? 
  What is the name of your organizational unit? 
  What is the name of your organization? 
  What is the name of your City or Locality? 
  What is the name of your State or Province? 
  What is the two-letter country code for this unit? 
  Is CN=Unknown, OU=Unknown, O=Unknown, L=Unknown, ST=Unknown, C=Unknown correct? 
    [no]:  yes 

  Enter key password for <tomcat> 
          (RETURN if same as keystore password): 

  -- command line ends --> 

  3) Edit the Http10Connector definition in Tomcat Configuration File to 
          <Http10Connector  port="8443" 
                            keystore="C:\Documents and Settings\798454\" 
                            clientAuth="false" /> 

      where the "C:\Documents and Settings\798454\"  is the user home directory and hence
the file .keystore resides. 

  4) Start up Tomcat 
      run $TOMCAT_HOME\bin\startup.bat 
  <!-- command line starts 
  2003-06-13 15:44:39 - Http10Interceptor: Setting ssl socket factory 
  2003-06-13 15:44:39 - ServerXmlReader: Config=$TOMCAT_HOME\conf\server.xml 
  2003-06-13 15:44:39 - PathSetter: home=C:\scm\tomcat\jakarta-tomcat-3.3 
  2003-06-13 15:44:39 - ContextXmlReader: Context config=$TOMCAT_HOME\conf\apps-12 
  2003-06-13 15:44:39 - ContextXmlReader: Context config=$TOMCAT_HOME\conf\apps-ad 
  2003-06-13 15:44:39 - ContextXmlReader: Context config=$TOMCAT_HOME\conf\apps-ex 
  2003-06-13 15:44:39 - ContextXmlReader: Context config=$TOMCAT_HOME\conf\apps-on 
  2003-06-13 15:44:39 - AutoWebApp: Loaded from config: DEFAULT:/admin 
  2003-06-13 15:44:39 - AutoWebApp: Loaded from config: DEFAULT:/examples 
  2003-06-13 15:44:39 - AutoWebApp: Auto-Adding DEFAULT:/ 
  2003-06-13 15:44:39 - ContextManager: Tomcat configured and in stable state 
  2003-06-13 15:44:39 - ContextManager: Adding  DEFAULT:/admin 
  2003-06-13 15:44:39 - ContextManager: Adding  DEFAULT:/examples 
  2003-06-13 15:44:39 - ContextManager: Adding  DEFAULT:/online 
  2003-06-13 15:44:39 - ContextManager: Adding  DEFAULT:/ROOT 
  EmbededTomcat: Init time 875 
  Guessed home=C:\scm\tomcat\jakarta-tomcat-3.3 
  java.lang.reflect.InvocationTargetException: org.apache.tomcat.core.TomcatExcept 
  ion: Root cause - C:\Documents and Settings\798454\ (Access is denied) 
          at org.apache.tomcat.modules.server.PoolTcpConnector.engineStart(Unknown 
          at org.apache.tomcat.core.ContextManager.start(Unknown Source) 
          at org.apache.tomcat.startup.EmbededTomcat.start(Unknown Source) 
          at org.apache.tomcat.startup.EmbededTomcat.execute1(Unknown Source) 
          at org.apache.tomcat.startup.EmbededTomcat$ Source) 
          at org.apache.tomcat.util.compat.Jdk12Support$ 
  n Source) 
          at Method) 
          at org.apache.tomcat.util.compat.Jdk12Support.doPrivileged(Unknown Sourc 
          at org.apache.tomcat.startup.EmbededTomcat.execute(Unknown Source) 
          at java.lang.reflect.Method.invoke(Native Method) 
          at org.apache.tomcat.util.IntrospectionUtils.execute(Unknown Source) 
          at org.apache.tomcat.startup.Main.execute(Unknown Source) 
          at org.apache.tomcat.startup.Main.main(Unknown Source) 
  -- command line ends --> 

          Please advise why is that exception throws. Thanks in advance. 



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

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message