[jetty-user] Embedded Jetty 7 works with IE, but not Firefox?

John English <[email protected]>
Newsgroups gmane.comp.java.jetty.support
Organization University of Brighton
Message-ID <[email protected]>
Hi folks,
I decided to play around with building an embedded Jetty server. This
has a standard connector on port 8080 and an SSL connector on 8443.
Using IE, it works fine when I try to connect to either port, and with
Firefox it works for 8080 but not 8443 -- when I point Firefox at
https://127.0.0.1:8443, it just comes up with "Problem loading page".
It doesn't even moan about the self-signed certificate or ask me to add
an exception. The code is very simple, copied from the tutorial:

       Server server = new Server(8080);
       SslSelectChannelConnector ssl_connector =
          new SslSelectChannelConnector();
       File f = new File("bin");
       String jetty_home =
          System.getProperty("jetty.home",f.getAbsolutePath());
       System.setProperty("jetty.home",jetty_home);
       ssl_connector.setPort(8443);
       ssl_connector.setKeystore(jetty_home + "/keystore");
       ssl_connector.setPassword("foo");
       ssl_connector.setKeyPassword("bar");
       server.addConnector(ssl_connector);
       WebAppContext context = new WebAppContext();
       context.setDescriptor(jetty_home+"/webapps/test/WEB-INF/web.xml");
       context.setResourceBase(jetty_home+"/webapps/test/");
       context.setContextPath("/");
       context.setParentLoaderPriority(true);
       server.setHandler(context);
       server.start();
       server.join();

Can anyone suggest what might be causing this?

TIA,

----------------------------------------------------------------------
  John English              | mailto:[email protected]
  Senior Lecturer           | http://www.it.bton.ac.uk/staff/je
  School of Computing & MIS | "Those who don't know their history
  University of Brighton    |  are condemned to relive it" (Santayana)
----------------------------------------------------------------------

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.