[jcifs] HTTPS listener won't startup

Eric Swenson eric at reaction-eng.com
Wed Oct 6 01:05:32 GMT 2004


Gentlemen,

I just downloaded davenport an hour ago, and I'm very impressed.  I'm
running into an issue with the HTTPS listener not starting up, however,
and would appreciate any suggestions.

OS=RHEL ES 3.0, JAVA=SUN JDK 1.4.2, davenport=latest version download
10/5/04

[root at deathstar davenport]# which java
/usr/local/java/j2sdk1.4.2_04/bin/java


[root at deathstar davenport]# java -jar start.jar
18:52:59.301 EVENT  Checking Resource aliases
18:53:00.113 EVENT  Starting Jetty/4.2.21
18:53:00.128 EVENT  Started ServletHttpContext[/]
18:53:00.132 EVENT  Started SocketListener on 127.0.0.1:8081
18:53:00.132 EVENT  Started org.mortbay.jetty.Server at 1174b07
18:53:00.368 EVENT  Statistics on = false for
org.mortbay.jetty.Server at 111a3a4
18:53:00.368 EVENT  Starting Jetty/4.2.21
18:53:00.376 EVENT  Started org.mortbay.http.NCSARequestLog at 142a80d
18:53:00.480 EVENT  Started WebApplicationContext[/,Davenport WebDAV-SMB
Gateway - Version 0.9.10]
18:53:00.588 EVENT  Started SocketListener on 0.0.0.0:8010
18:53:00.588 EVENT  jetty.ssl.keystore=/opt/davenport/etc/demokeystore
18:53:00.588 EVENT  jetty.ssl.password=********
18:53:00.588 EVENT  jetty.ssl.keypassword=******
18:53:00.589 EVENT  jetty.ssl.keystore.type=jks
18:53:00.590 EVENT  jetty.ssl.keystore.provider.name=[DEFAULT]
18:53:00.591 WARN!! Failed to start: SunJsseListener at 0.0.0.0:8001
18:53:00.592 EVENT  Started AJP13Listener on 0.0.0.0:8009
18:53:00.592 EVENT  NOTICE: AJP13 is not a secure protocol. Please
protect the port 0.0.0.0:8009
18:53:00.594 WARN!!
org.mortbay.util.MultiException[java.io.EOFException]
        at org.mortbay.http.HttpServer.start(HttpServer.java:640)
        at org.mortbay.jetty.Server.main(Server.java:429)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:324)
        at org.mortbay.start.Main.invokeMain(Main.java:153)
        at org.mortbay.start.Main.start(Main.java:483)
        at org.mortbay.start.Main.main(Main.java:91)
[0]=java.io.EOFException
        at java.io.DataInputStream.readInt(DataInputStream.java:448)
        at
sun.security.provider.JavaKeyStore.engineLoad(JavaKeyStore.java:607)
        at java.security.KeyStore.load(KeyStore.java:652)
        at
org.mortbay.http.SunJsseListener.createFactory(SunJsseListener.java:211)
        at
org.mortbay.http.JsseListener.newServerSocket(JsseListener.java:171)
        at org.mortbay.util.ThreadedServer.open(ThreadedServer.java:380)
        at
org.mortbay.util.ThreadedServer.start(ThreadedServer.java:406)
        at
org.mortbay.http.SocketListener.start(SocketListener.java:154)
        at org.mortbay.http.HttpServer.start(HttpServer.java:671)
        at org.mortbay.jetty.Server.main(Server.java:429)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:324)
        at org.mortbay.start.Main.invokeMain(Main.java:153)
        at org.mortbay.start.Main.start(Main.java:483)
        at org.mortbay.start.Main.main(Main.java:91)


I also had a file i/o exception accessing etc/demokeystore when trying
to use the https listener, but I touched that file and things seem
kosher from the output above.

Here is the uncommented https section in my jetty.xml.  I've tried
changing the port number as you can see, but it didn't help.

  <Call name="addListener">
    <Arg>
      <New class="org.mortbay.http.SunJsseListener">
        <Set name="Port">8001</Set>
        <Set name="PoolName">main</Set>
        <Set name="Keystore"><SystemProperty name="jetty.home"
default="."/>/etc/demokeystore</Set>
        <Set name="Password">OBF:1vny1zlo1x8e1vnw1vn61x8g1zlu1vn4</Set>
        <Set name="KeyPassword">OBF:1u2u1wml1z7s1z7a1wnl1u2g</Set>
        <Set name="NonPersistentUserAgent">MSIE 5</Set>
      </New>
    </Arg>
  </Call>

I appreciate any help.
Thanks!
Eric


------------------------------------
Eric Swenson
IS Administrator
Reaction Engineering INTL
eric at reaction-eng.com
(801) 364-6925 x26
------------------------------------



More information about the jcifs mailing list