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/01/19 15:48:34 UTC

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

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
         Environment: All
            Reporter: Vincent Demay


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.


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

Posted by "Kevin Brown (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/SHINDIG-20?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12563880#action_12563880 ] 

Kevin Brown commented on SHINDIG-20:
------------------------------------

Any updates on this? If not, I'll apply the patch as is.

> 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
>
>
> 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.


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

Posted by "Vincent Demay (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/SHINDIG-20?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12563913#action_12563913 ] 

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

I attached a new patch including additionnal resources in the classpath (../../javascript)

It seems to work on my side. If there is a pb, just let me know

thx

> 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.


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

Posted by "Vincent Demay (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/SHINDIG-20?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Vincent Demay updated SHINDIG-20:
---------------------------------

    Attachment: jettyLauncher.patch.txt

A patch to make shindig able to be run with exactly the same behavior as jetty:run task

> 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, 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.


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

Posted by "Kevin Brown (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/SHINDIG-20?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12560743#action_12560743 ] 

Kevin Brown commented on SHINDIG-20:
------------------------------------

I like this patch, but it's difficult to use out of the box because it doesn't properly handle static resources (which means that ifpc doesn't work). Is there any way to make this be aware of the static files in ../../javascript/ (not in src/main/webapp)? Alternatively, is there a way to make the eclipse maven plugin invoke the jetty:run-war rule?

> 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
>         Environment: All
>            Reporter: Vincent Demay
>         Attachments: 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.


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

Posted by "Vincent Demay (JIRA)" <ji...@apache.org>.
    [ 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.


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

Posted by "Kevin Brown (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/SHINDIG-20?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Kevin Brown updated SHINDIG-20:
-------------------------------

    Component/s: Gadgets Server - Java

> 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
>
>
> 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.


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

Posted by "Henning Schmiedehausen (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/SHINDIG-20?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12584849#action_12584849 ] 

henning edited comment on SHINDIG-20 at 4/2/08 3:27 PM:
-----------------------------------------------------------------------

I got Shindig to run with Jetty inside Eclipse using MyEclipse web feature and some Eclipse links to put all the required stuff in the right places:

create a variable pointing to your shindig location on the file system: SHINDIG_HOME

- create a folder "src/resources" in the gadgets Eclipse project
- link src/resources/features to SHINDIG_HOME/features
- link src/resources/files to 'SHINDIG_HOME/javascript'
- create src/resources/syndicators
- link 'src/resources/syndicators/default' to 'SHINDIG_HOME/config'
- link 'src/main/webapp/files' to 'SHINDIG_HOME/javascript'

- now add 'src/resources' as a source directory to the project. This ensures that everything in that
  folder gets copied into WEB-INF/classes when deploying with MyEclipse.

- Add a webapp deployment on jetty, deploy and start jetty. I actually used Jetty 5 which worked well.

There are a couple of places where '/gadgets' is still hard coded in the container, so the deployment would want to be on '/gadgets'

I was wondering if it is possible to get this mapped out using a custom launcher and different locations. The problem that I can see here is that you need to have a number of folders mapped into classes for resource availability.


      was (Author: henning):
    I got Shindig to run with Jety inside Eclipse using MyEclipse web feature and some Eclipse links to put all the required stuff in the right places:

create a variable pointing to your shindig location on the file system: SHINDIG_HOME

- create a folder "src/resources" in the gadgets Eclipse project
- link src/resources/features to SHINDIG_HOME/features
- link src/resources/files to 'SHINDIG_HOME/javascript'
- create src/resources/syndicators
- link 'src/resources/syndicators/default' to 'SHINDIG_HOME/config'
- link 'src/main/webapp/files' to 'SHINDIG_HOME/javascript'

- now add 'src/resources' as a source directory to the project. This ensures that everything in that
  folder gets copied into WEB-INF/classes when deploying with MyEclipse.

- Add a webapp deployment on jetty, deploy and start jetty. I actually used Jetty 5 which worked well.

There are a couple of places where '/gadgets' is still hard coded in the container, so the deployment would want to be on '/gadgets'

I was wondering if it is possible to get this mapped out using a custom launcher and different locations. The problem that I can see here is that you need to have a number of folders mapped into classes for resource availability.

  
> 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, 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.


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

Posted by "Vincent Demay (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/SHINDIG-20?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Vincent Demay updated SHINDIG-20:
---------------------------------

    Attachment: jettyLauncher.patch.txt

> 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
>         Environment: All
>            Reporter: Vincent Demay
>         Attachments: 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.


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

Posted by "Vincent Demay (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/SHINDIG-20?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Vincent Demay updated SHINDIG-20:
---------------------------------

    Attachment: jettyLauncher.patch.txt

> 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.


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

Posted by "Henning Schmiedehausen (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/SHINDIG-20?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12584849#action_12584849 ] 

Henning Schmiedehausen commented on SHINDIG-20:
-----------------------------------------------

I got Shindig to run with Jety inside Eclipse using MyEclipse web feature and some Eclipse links to put all the required stuff in the right places:

create a variable pointing to your shindig location on the file system: SHINDIG_HOME

- create a folder "src/resources" in the gadgets Eclipse project
- link src/resources/features to SHINDIG_HOME/features
- link src/resources/files to 'SHINDIG_HOME/javascript'
- create src/resources/syndicators
- link 'src/resources/syndicators/default' to 'SHINDIG_HOME/config'
- link 'src/main/webapp/files' to 'SHINDIG_HOME/javascript'

- now add 'src/resources' as a source directory to the project. This ensures that everything in that
  folder gets copied into WEB-INF/classes when deploying with MyEclipse.

- Add a webapp deployment on jetty, deploy and start jetty. I actually used Jetty 5 which worked well.

There are a couple of places where '/gadgets' is still hard coded in the container, so the deployment would want to be on '/gadgets'

I was wondering if it is possible to get this mapped out using a custom launcher and different locations. The problem that I can see here is that you need to have a number of folders mapped into classes for resource availability.


> 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, 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.