users-cn,你好: 还是没有解决,请各位知道的加下:Cloudstack技术俱乐部 215533675 这个QQ群号,到群里聊一下呗。或者单独加我的QQ:346913892
我正好把这个搭建完成了,打算写个文档,让后者来可以按部就班的做就可以,到时在文档里,也会特别 标注感谢各位的。 汤文武 From: 李强 Date: 2015-01-23 09:02 To: users-cn Subject: 回复: 回复:关于Eclipse构建CloudStack4.4.2失败的问题 奇怪哈。。。 我还真没遇这个问题。 你先 install -X 打包下 试试 然后在 -pl :cloud-client-ui jetty:run ------------------ 原始邮件 ------------------ 发件人: "wangyuyang1...@163.com";<wangyuyang1...@163.com>; 发送时间: 2015年1月22日(星期四) 下午4:40 收件人: "users-cn"<users-cn@cloudstack.apache.org>; 主题: 回复: 回复:关于Eclipse构建CloudStack4.4.2失败的问题 hi:李强, 麻烦帮忙看一下! 我的 base directory: ${workspace_loc:/cloudstack} goals: -pl :cloud-client-ui jetty:run 启动之后界面显示503, SERVICE_UNAVAILABLE 启动日志如下: [INFO] Scanning for projects... [INFO] [INFO] ------------------------------------------------------------------------ [INFO] Building Apache CloudStack Client UI 4.4.2 [INFO] ------------------------------------------------------------------------ [INFO] [INFO] >>> maven-jetty-plugin:6.1.26:run (default-cli) > test-compile @ cloud-client-ui >>> [WARNING] The POM for org.libvirt:libvirt:jar:0.5.1 is missing, no dependency information available [INFO] [INFO] --- maven-remote-resources-plugin:1.3:process (default) @ cloud-client-ui --- [WARNING] Missing POM for org.libvirt:libvirt:jar:0.5.1 [WARNING] Missing POM for org.libvirt:libvirt:jar:0.5.1 [INFO] [INFO] --- maven-antrun-plugin:1.7:run (generate-resource) @ cloud-client-ui --- [INFO] Executing tasks main: [copy] Copying 21 files to /root/git/cloudstack/client/target/generated-webapp/WEB-INF/classes [copy] Copying 21 files to /root/git/cloudstack/client/target/generated-webapp/WEB-INF/classes [copy] Copying 7 files to /root/git/cloudstack/client/target/utilities/bin [copy] Copying 2 files to /root/git/cloudstack/client/target/utilities/bin [copy] Copying 77 files to /root/git/cloudstack/client/target/utilities/scripts/db [copy] Copying 21 files to /root/git/cloudstack/client/target/conf [INFO] Executed tasks [INFO] [INFO] --- maven-resources-plugin:2.5:resources (default-resources) @ cloud-client-ui --- [debug] execute contextualize [INFO] Using 'UTF-8' encoding to copy filtered resources. [INFO] Copying 1 resource [INFO] Copying 3 resources [INFO] [INFO] --- maven-antrun-plugin:1.7:run (process-noredist) @ cloud-client-ui --- [INFO] Executing tasks main: [INFO] Executed tasks [INFO] [INFO] --- maven-antrun-plugin:1.7:run (process-noredist-spring-context) @ cloud-client-ui --- [INFO] Executing tasks main: [INFO] Executed tasks [INFO] [INFO] --- maven-compiler-plugin:2.5.1:compile (default-compile) @ cloud-client-ui --- [INFO] No sources to compile [INFO] [INFO] --- maven-resources-plugin:2.5:testResources (default-testResources) @ cloud-client-ui --- [debug] execute contextualize [INFO] Using 'UTF-8' encoding to copy filtered resources. [INFO] skip non existing resourceDirectory /root/git/cloudstack/client/test/resources [INFO] Copying 3 resources [INFO] [INFO] --- maven-compiler-plugin:2.5.1:testCompile (default-testCompile) @ cloud-client-ui --- [INFO] No sources to compile [INFO] [INFO] <<< maven-jetty-plugin:6.1.26:run (default-cli) < test-compile @ cloud-client-ui <<< [INFO] [INFO] --- maven-jetty-plugin:6.1.26:run (default-cli) @ cloud-client-ui --- [INFO] Configuring Jetty for project: Apache CloudStack Client UI [INFO] Webapp source directory = /root/git/cloudstack/client/target/generated-webapp [INFO] Reload Mechanic: automatic [INFO] Classes = /root/git/cloudstack/client/target/classes [INFO] Logging to org.slf4j.impl.SimpleLogger(org.mortbay.log) via org.mortbay.log.Slf4jLog [INFO] Context path = /client [INFO] Tmp directory = determined at runtime [INFO] Web defaults = org/mortbay/jetty/webapp/webdefault.xml [INFO] Web overrides = none [INFO] web.xml file = /root/git/cloudstack/client/target/generated-webapp/WEB-INF/web.xml [INFO] Webapp directory = /root/git/cloudstack/client/target/generated-webapp [INFO] Starting jetty 6.1.26 ... [INFO] jetty-6.1.26 [WARNING] Failed startup of context org.mortbay.jetty.plugin.Jetty6PluginWebAppContext@3702160b{/client,/root/git/cloudstack/client/target/generated-webapp} java.lang.ClassNotFoundException: com.cloud.servlet.CloudStartupServlet at org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy.loadClass(SelfFirstStrategy.java:50) at org.codehaus.plexus.classworlds.realm.ClassRealm.unsynchronizedLoadClass(ClassRealm.java:271) at org.codehaus.plexus.classworlds.realm.ClassRealm.loadClass(ClassRealm.java:247) at org.codehaus.plexus.classworlds.realm.ClassRealm.loadClass(ClassRealm.java:239) at org.mortbay.jetty.webapp.WebAppClassLoader.loadClass(WebAppClassLoader.java:401) at org.mortbay.jetty.webapp.WebAppClassLoader.loadClass(WebAppClassLoader.java:363) at org.mortbay.jetty.handler.ContextHandler.loadClass(ContextHandler.java:1102) at org.mortbay.jetty.plugin.Jetty6MavenConfiguration.parseAnnotations(Jetty6MavenConfiguration.java:141) at org.mortbay.jetty.plus.webapp.AbstractConfiguration.configure(AbstractConfiguration.java:119) at org.mortbay.jetty.webapp.WebXmlConfiguration.configureWebApp(WebXmlConfiguration.java:180) at org.mortbay.jetty.plus.webapp.AbstractConfiguration.configureWebApp(AbstractConfiguration.java:96) at org.mortbay.jetty.plus.webapp.Configuration.configureWebApp(Configuration.java:149) at org.mortbay.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1279) 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:132) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:208) 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:116) at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:80) at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build(SingleThreadedBuilder.java:51) at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:120) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:355) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:155) at org.apache.maven.cli.MavenCli.execute(MavenCli.java:584) at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:216) at org.apache.maven.cli.MavenCli.main(MavenCli.java:160) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:289) at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:229) at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:415) at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356) [INFO] Started SelectChannelConnector@0.0.0.0:8080 [INFO] Started Jetty Server wangyuyang1...@163.com 发件人: 李强 发送时间: 2015-01-22 14:06 收件人: users-cn 主题: 回复: 回复:关于Eclipse构建CloudStack4.4.2失败的问题 我eclipse 也报下面的错误 , 但是不影响运行。 你用运行报什么错 你可以加 -X 参数 把错误发出来的大家讨论一下。 Description Resource Path Location Type Plugin execution not covered by lifecycle configuration: org.apache.maven.plugins:maven-checkstyle-plugin:2.11:check (execution: cloudstack-checkstyle, phase: validate) pom.xml /cloud-agent line 23 Maven Project Build Lifecycle Mapping Problem ------------------ 原始邮件 ------------------ 发件人: "wangyuyang1...@163.com";<wangyuyang1...@163.com>; 发送时间: 2015年1月22日(星期四) 下午2:02 收件人: "users-cn"<users-cn@cloudstack.apache.org>; 主题: 回复: 回复:关于Eclipse构建CloudStack4.4.2失败的问题 能不能截个图给看一下你是怎么配置的eclipse吗?我现在命令行启动没有问题,eclipse启动不行。 或者能不能留下QQ交流一下? wangyuyang1...@163.com 发件人: 李强 发送时间: 2015-01-22 13:54 收件人: users-cn 主题: 回复:关于Eclipse构建CloudStack4.4.2失败的问题 用安装maven插件 然后 -pl :cloud-client-ui jetty:run -Dmaven.test.skip=true -X 我同事i5 固态全固态硬盘 8G 得运行一个半小时能运行起来。 一天最多能运行三次debug ------------------ 原始邮件 ------------------ 发件人: "wangyuyang1...@163.com";<wangyuyang1...@163.com>; 发送时间: 2015年1月20日(星期二) 下午5:15 收件人: "users-cn"<users-cn@cloudstack.apache.org>; 主题: 关于Eclipse构建CloudStack4.4.2失败的问题 请问大家有没有用Eclipse构建过CloudStack,并且能运行的? 我Eclipse用的juon,安装了m2e,pydev。 操作系统用的Ubuntu12.04, 导入cloudstack的项目之后就报错, 请问大家都是怎么构建的? wangyuyang1...@163.com