Hi Stefan In My company we must integrate our GWT projects to a king of single sign on (legacy system) to get session data of logged user and atributes to do stuffs on the web site, that Legacy system had 2 restrictions
1. The Client Systems have to be part of the domain of the company 2. The Http protocolo of the Client Systems must be over SSL Example : https://legacySSO.<comapnydomain>.com/soo/login.cgi?https:// <someapplication>.<comapnydomain>.com/appctx/index.html If i don't got that is not posible integrate with the Sso I Try to load my Own Jetty configuration with My Own Java class to start Jetty Over Ssl with success but with this configurations the server it's not loading my war/WEB-INF/web.xml or war/WEB-INF/jetty-web.xml correctly (some servlets are“nt loaded) That is the java class wath i'm using package com.mortbay.jetty.arq.server; import java.io.BufferedReader; import java.io.File; import java.io.InputStreamReader; import java.net.InetAddress; import java.net.ServerSocket; import java.net.Socket; import org.mortbay.jetty.Connector; import org.mortbay.jetty.Server; import org.mortbay.jetty.bio.SocketConnector; import org.mortbay.jetty.security.SslSocketConnector; import org.mortbay.jetty.webapp.WebAppContext; import org.mortbay.xml.XmlConfiguration; import cl.sii.sdi.arq.gwt2poc.web.server.FacadeImpl; public class StartJettyHostedServer { private static Server server; public static void main(String[] args) throws Exception { server = new Server(); SocketConnector connector = new SocketConnector(); SslSocketConnector sslConnector = new SslSocketConnector(); connector.setPort(9999); sslConnector.setPort(8443); sslConnector.setKeyPassword("changeit"); server.setConnectors(new Connector[] { connector,sslConnector }); WebAppContext context = new WebAppContext(); context.setServer(server); context.setContextPath("/Gwt2pocWeb"); context.setWar("./war"); //context.setDefaultsDescriptor("./war/WEB-INF/web.xml"); context.setDescriptor("./war/WEB-INF/web.xml"); context.addServlet(FacadeImpl.class, "/facade"); server.addHandler(context); XmlConfiguration configuration = new XmlConfiguration(new File("J:/gwt/jetty/jetty.xml").toURL()); //or use new XmlConfiguration(new FileInputStream("myJetty.xml")); configuration.configure(server); Thread monitor = new MonitorThread(); monitor.start(); server.start(); server.join(); } private static class MonitorThread extends Thread { private ServerSocket socket; public MonitorThread() { setDaemon(true); setName("StopMonitor"); try { socket = new ServerSocket(8079, 1, InetAddress.getByName("127.0.0.1")); } catch(Exception e) { throw new RuntimeException(e); } } @Override public void run() { System.out.println("*** running jetty 'stop' thread"); Socket accept; try { accept = socket.accept(); BufferedReader reader = new BufferedReader(new InputStreamReader(accept.getInputStream())); reader.readLine(); System.out.println("*** stopping jetty embedded server"); server.stop(); accept.close(); socket.close(); } catch(Exception e) { throw new RuntimeException(e); } } } } Regards Sergio -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
