camel-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Charles Moulliard (JIRA)" <j...@apache.org>
Subject [jira] [Resolved] (CAMEL-6432) baseResource of Jetty ServletContextHandler does not work when project deployed as a bundle
Date Fri, 07 Jun 2013 13:17:20 GMT

     [ https://issues.apache.org/jira/browse/CAMEL-6432?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Charles Moulliard resolved CAMEL-6432.
--------------------------------------

    Resolution: Fixed

Code committed for 2.12-SNAPSHOT, 2.11.1-SNAPSHOT
                
> baseResource of Jetty ServletContextHandler does not work when project deployed as a
bundle
> -------------------------------------------------------------------------------------------
>
>                 Key: CAMEL-6432
>                 URL: https://issues.apache.org/jira/browse/CAMEL-6432
>             Project: Camel
>          Issue Type: Bug
>          Components: camel-websocket
>    Affects Versions: 2.11.0, 2.12.0
>            Reporter: Charles Moulliard
>            Assignee: Charles Moulliard
>
> If we package a camel websocket route ("websocket://0.0.0.0:9090/newsTopic?sendToAll=true&staticResources=classpath:webapp")
as a bundle and set the staticResources as parameter (classpath:webapp), then the pages cannot
be accessed from the browser
> Code should be 
> {code}
>             if (resources[0].equals("classpath")) {
>                 URL url = this.getCamelContext().getClassResolver().loadResourceAsURL(resources[1]);
>                 context.setBaseResource(Resource.newResource(url));
>             } else if (resources[0].equals("file")) {
>                 context.setBaseResource(Resource.newResource(resources[1]));
>             }
> {code}

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message