You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Charles Moulliard (JIRA)" <ji...@apache.org> on 2013/06/07 15:17:20 UTC
[jira] [Resolved] (CAMEL-6432) baseResource of Jetty
ServletContextHandler does not work when project deployed as a bundle
[ 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