You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@shindig.apache.org by "Vincent Demay (JIRA)" <ji...@apache.org> on 2008/02/04 18:41:10 UTC

[jira] Commented: (SHINDIG-20) Add a jettyLauncher to run shindig from Eclipse

    [ https://issues.apache.org/jira/browse/SHINDIG-20?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12565427#action_12565427 ] 

Vincent Demay commented on SHINDIG-20:
--------------------------------------

Actually, the previous patch does *not* work. It seems to be impossible to run java servlet and static resources (out of WEB-INF rep - ../../javascript) in the same context path (gadgets).

WDYT to mount ../../javascript in an other contextpath (I personnaly did it in javascript) ? : 

        WebAppContext web = new WebAppContext();
        String contextPath = System.getProperty("web.context.path", "/gadgets");
        web.setContextPath(contextPath);
        web.setWar("src/main/webapp");
        web.setDistributable(true);
        web.setClassLoader(Launcher.class.getClassLoader());
        server.addHandler(web);
        
        WebAppContext sample = new WebAppContext();
        sample.setResourceBase("../../javascript");
        sample.setContextPath("/javascript");
        server.addHandler(sample);

> Add a jettyLauncher to run shindig from Eclipse
> -----------------------------------------------
>
>                 Key: SHINDIG-20
>                 URL: https://issues.apache.org/jira/browse/SHINDIG-20
>             Project: Shindig
>          Issue Type: Improvement
>          Components: Gadgets Server - Java
>         Environment: All
>            Reporter: Vincent Demay
>         Attachments: jettyLauncher.patch.txt, jettyLauncher.patch.txt
>
>
> I'm going to attach a patch in order to be able to run shindig server directly from eclipse as a simple java application 
> Rigth click on Launcher.java and "run as java application"

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.