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/06 07:17:19 UTC

[jira] [Created] (CAMEL-6432) baseResource of Jetty ServletContextHandler does not work when project deployed as a bundle

Charles Moulliard created CAMEL-6432:
----------------------------------------

             Summary: 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.10.4
            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