camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Willem Jiang <willem.ji...@gmail.com>
Subject Re: Embedded web console
Date Tue, 30 Mar 2010 01:26:02 GMT
I recalled Charles add the CamelResourceConfig few month ago,
it looks like regression, please feel free to log a JIRA[1] for it.

[1]http://issues.apache.org/activemq/browse/CAMEL

Willem

greenstar wrote:
> 
> 
> James.Strachan wrote:
>> There's an example in the sandbox
>> https://svn.apache.org/repos/asf/camel/sandbox/components/camel-activemq-web/
>>
>> which creates an extension of camel-web, adding new dependencies and
>> changing the spring configuration.
>>
>> if you look at the pom
>> https://svn.apache.org/repos/asf/camel/sandbox/components/camel-activemq-web/pom.xml
>>
>> the trick is just depending on the camel-web war in your war's pom.xml.
>>
>>     <dependency>
>>       <groupId>org.apache.camel</groupId>
>>       <artifactId>camel-web</artifactId>
>>       <version>2.0</version>
>>       <type>war</type>
>>       <scope>runtime</scope>
>>     </dependency>
>>
>> You can then override any file locally; whether its parts of the
>> default views or the spring XML or adding new views or your own
>> servlets and whatnot.
>>
> 
> This example does not currently deploy (with jetty:run) with camel-web
> 2.2.0.  It results in the stacktrace below:
> 
> It appears that org.apache.camel.web.util.CamelResourceConfig is trying to
> load "classpath:/application-doc.xml", which resolves to a resource that
> looks like the following:
>   
>  
> jar:file:{...}.m2/repository/org/apache/camel/camel-web/2.2.0/camel-web-2.2.0.war!/WEB-INF/classes/application-doc.xml
> 
> Is this a regression, or is there something else wrong?
> 
> SEVERE: Exception occurred when intialization
> java.lang.RuntimeException: Could not load WadlGeneratorConfiguration, check
> the configuration of com.sun.jersey.config.property.WadlGeneratorConfig
> 	at
> com.sun.jersey.api.wadl.config.WadlGeneratorConfigLoader.loadWadlGeneratorsFromConfig(WadlGeneratorConfigLoader.java:109)
> 	at com.sun.jersey.server.impl.wadl.WadlFactory.<init>(WadlFactory.java:74)
> 	at
> com.sun.jersey.server.impl.application.WebApplicationImpl.initiate(WebApplicationImpl.java:909)
> 	at
> com.sun.jersey.spi.spring.container.servlet.SpringServlet.initiate(SpringServlet.java:99)
> 	at
> com.sun.jersey.spi.container.servlet.ServletContainer$InternalWebComponent.initiate(ServletContainer.java:252)
> 	at
> com.sun.jersey.spi.container.servlet.WebComponent.load(WebComponent.java:550)
> 	at
> com.sun.jersey.spi.container.servlet.WebComponent.init(WebComponent.java:201)
> 	at
> com.sun.jersey.spi.container.servlet.ServletContainer.init(ServletContainer.java:307)
> 	at
> com.sun.jersey.spi.container.servlet.ServletContainer.init(ServletContainer.java:641)
> 	at org.mortbay.jetty.servlet.FilterHolder.doStart(FilterHolder.java:97)
> 	at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
> 	at
> org.mortbay.jetty.servlet.ServletHandler.initialize(ServletHandler.java:662)
> 	at org.mortbay.jetty.servlet.Context.startContext(Context.java:140)
> 	at
> org.mortbay.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1250)
> 	at
> org.mortbay.jetty.handler.ContextHandler.doStart(ContextHandler.java:517)
> 	at org.mortbay.jetty.webapp.WebAppContext.doStart(WebAppContext.java:467)
> 	at
> org.mortbay.jetty.plugin.Jetty6PluginWebAppContext.doStart(Jetty6PluginWebAppContext.java:115)
> 	at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
> 	at
> org.mortbay.jetty.handler.HandlerCollection.doStart(HandlerCollection.java:152)
> 	at
> org.mortbay.jetty.handler.ContextHandlerCollection.doStart(ContextHandlerCollection.java:156)
> 	at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
> 	at
> org.mortbay.jetty.handler.HandlerCollection.doStart(HandlerCollection.java:152)
> 	at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
> 	at
> org.mortbay.jetty.handler.HandlerWrapper.doStart(HandlerWrapper.java:130)
> 	at org.mortbay.jetty.Server.doStart(Server.java:224)
> 	at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
> 	at
> org.mortbay.jetty.plugin.Jetty6PluginServer.start(Jetty6PluginServer.java:132)
> 	at
> org.mortbay.jetty.plugin.AbstractJettyMojo.startJetty(AbstractJettyMojo.java:441)
> 	at
> org.mortbay.jetty.plugin.AbstractJettyMojo.execute(AbstractJettyMojo.java:383)
> 	at
> org.mortbay.jetty.plugin.AbstractJettyRunMojo.execute(AbstractJettyRunMojo.java:210)
> 	at org.mortbay.jetty.plugin.Jetty6RunMojo.execute(Jetty6RunMojo.java:184)
> 	at
> org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:105)
> 	at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:576)
> 	at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:323)
> 	at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:247)
> 	at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:104)
> 	at org.apache.maven.cli.MavenCli.execute(MavenCli.java:427)
> 	at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:157)
> 	at org.apache.maven.cli.MavenCli.main(MavenCli.java:121)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> 	at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> 	at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> 	at java.lang.reflect.Method.invoke(Method.java:597)
> 	at
> org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:290)
> 	at
> org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230)
> 	at
> org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:409)
> 	at
> org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:352)
> Caused by: java.lang.RuntimeException: Could not load wadl generators from
> wadlGeneratorDescriptions.
> 	at
> com.sun.jersey.api.wadl.config.WadlGeneratorConfig.getWadlGenerator(WadlGeneratorConfig.java:188)
> 	at
> com.sun.jersey.api.wadl.config.WadlGeneratorConfigLoader.loadWadlGeneratorsFromConfig(WadlGeneratorConfigLoader.java:85)
> 	... 46 more
> Caused by: java.lang.IllegalArgumentException: URI is not hierarchical
> 	at java.io.File.<init>(File.java:363)
> 	at
> com.sun.jersey.api.wadl.config.WadlGeneratorLoader.setProperty(WadlGeneratorLoader.java:187)
> 	at
> com.sun.jersey.api.wadl.config.WadlGeneratorLoader.loadWadlGenerator(WadlGeneratorLoader.java:136)
> 	at
> com.sun.jersey.api.wadl.config.WadlGeneratorLoader.loadWadlGeneratorDescriptions(WadlGeneratorLoader.java:111)
> 	at
> com.sun.jersey.api.wadl.config.WadlGeneratorConfig.getWadlGenerator(WadlGeneratorConfig.java:186)
> 	... 47 more
> 


Mime
View raw message