Hi Stefan
Yeah my GrandFather Born in Germany , But Now I Live in SouthAmerica
Well about the connector Ssl, Finally i Just Decompiled and change the
Source Of the class
com.google.gwt.dev.shell.jetty.JettyLauncher
Adding this lines of code
SslSocketConnector sslConnector = new SslSocketConnector();
sslConnector.setPort(8443);
sslConnector.setKeyPassword("changeit");
server.setConnectors(new Connector[] { connector,sslConnector });
To the method
@Override
public ServletContainer start(TreeLogger logger, int port, File
appRootDir)
throws Exception {
Regards,
Sergio
On Mon, Apr 5, 2010 at 8:56 AM, Stefan Bachert <[email protected]>wrote:
> Hi Sergio,
>
> "von Knorring" sounds very german?
>
> I find your use case interesting.
>
> I never started Jetty embedded, However, I guess the classes should be
> the same. In my standalong jetty instance with ssl, I used
> SslSelectedChannelConnector (Jetty 6). Maybe you should just put the
> content of jetty-ssl to your jetty.xml. (I am crying when I see
> absolute pathes in code)
>
> After somewhat thinging I come to the conclusion (not tested), that
> SSO muss apply at startup of the GWT App, because it depends on
> redirect URLs which only happens on startup in Ajax-Apps.
> That mean, the host page is no more static! You must add an own
> servlet which controls the load of the host page.
>
> * call without validation key -> redirect to sso login page
> * call with validation key, check and when validation is valid,
> deliver the host page. However, ANY call (GWT-RPC, RequestBuilder)
> needs to get passed the validation key, too. Each time a call comes
> in, you need to check it (At least you have to check, that your
> session has been validated) That might mean a code change in GWT.
>
> When your company were located in germany I would offer your company
> some consulting on that. Maybe my thoughts help somewhat.
>
> Stefan Bachert
>
>
>
> On Apr 4, 1:39 am, sergio vonknorring <[email protected]> wrote:
> > 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]<google-web-toolkit%[email protected]>
> .
> For more options, visit this group at
> http://groups.google.com/group/google-web-toolkit?hl=en.
>
>
--
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.