karaf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Anders Kristian Andersen (JIRA)" <j...@apache.org>
Subject [jira] [Comment Edited] (KARAF-2380) Error deploying embedded Karaf web demo
Date Sun, 19 Oct 2014 21:44:34 GMT

    [ https://issues.apache.org/jira/browse/KARAF-2380?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14176434#comment-14176434
] 

Anders Kristian Andersen edited comment on KARAF-2380 at 10/19/14 9:44 PM:
---------------------------------------------------------------------------

I get the same problem in version karaf-3.0.x (3.0.3-SNAPSHOT)
When I check out tag karaf-3.0.0 it works :-)



was (Author: aka3):
I get the same problem in version karaf-3.0.x (3.0.3-SNAPSHOT)
When I check out tag karat-3.0.0 it works :-)


> Error deploying embedded Karaf web demo
> ---------------------------------------
>
>                 Key: KARAF-2380
>                 URL: https://issues.apache.org/jira/browse/KARAF-2380
>             Project: Karaf
>          Issue Type: Bug
>          Components: karaf-demo
>    Affects Versions: 3.0.0.RC1
>            Reporter: Giulio Ruggeri
>            Assignee: Freeman Fang
>             Fix For: 3.0.0
>
>
> The web demo cannot be deployed.
> After executing 
> mvn package jetty:run 
> i got this result:
> 2013-07-09 11:30:47.523:WARN::failed HandlerCollection@6916c054: java.lang.NoClassDefFoundError:
org/osgi/framework/FrameworkListener
> 2013-07-09 11:30:47.523:WARN::Error starting handlers
> java.lang.NoClassDefFoundError: org/osgi/framework/FrameworkListener
> 	at org.apache.karaf.web.WebAppListener.contextInitialized(WebAppListener.java:43)
> 	at org.mortbay.jetty.handler.ContextHandler.startContext(ContextHandler.java:549)
> 	at org.mortbay.jetty.servlet.Context.startContext(Context.java:136)
> 	at org.mortbay.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1282)
> 	at org.mortbay.jetty.handler.ContextHandler.doStart(ContextHandler.java:518)
> 	at org.mortbay.jetty.webapp.WebAppContext.doStart(WebAppContext.java:499)
> 	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:454)
> 	at org.mortbay.jetty.plugin.AbstractJettyMojo.execute(AbstractJettyMojo.java:396)
> 	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:101)
> 	at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:209)
> 	at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
> 	at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
> 	at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84)
> 	at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59)
> 	at org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183)
> 	at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161)
> 	at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:320)
> 	at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156)
> 	at org.apache.maven.cli.MavenCli.execute(MavenCli.java:537)
> 	at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196)
> 	at org.apache.maven.cli.MavenCli.main(MavenCli.java:141)
> 	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)
> i tried to add the dependency to org.apache.karaf.main in pom.xml but
> it does not work as well because org.apache.karaf.main is missing OSGi core classes and
cannot load org.osgi.framework.launch.FrameworkFactory class



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message