maven项目,通过jetty解决,添加一个service层之后,报错 5C

[INFO] No Transaction manager found - if your webapp requires one, please configure one.
[INFO] Set web app root system property: 'product.root' = [C:\Users\Administrator\Desktop\01 code\E-commerce-old\product\product\src\main\webapp]
[INFO] Initializing log4j from [classpath:/config/log4j.properties]
[INFO] Initializing Spring root WebApplicationContext
2018-11-03 23:36:11 [com.guohualife.ebiz.product.base.props.PropertyConfigurer]-[INFO|] - Loading properties file from class path resource [config/config.properties]
2018-11-03 23:36:11 [com.guohualife.ebiz.product.base.props.PropertyConfigurer]-[INFO|] - Loading properties file from class path resource [config/db.properties]
2018-11-03 23:36:12 [org.springframework.web.context.ContextLoader]-[ERROR|] - Context initialization failed
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.apache.cxf.binding.BindingFactoryManager' defined in class path resource [META-INF/cxf/cxf.xml]: Cannot create inner bean 'org.apache.cxf.configuration.spring.SpringBeanMap#662cb76' of type [org.apache.cxf.configuration.spring.SpringBeanMap] while setting bean property 'mapProvider'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.apache.cxf.configuration.spring.SpringBeanMap#662cb76' defined in class path resource [META-INF/cxf/cxf.xml]: Invocation of init method failed; nested exception is org.springframework.beans.factory.CannotLoadBeanClassException: Error loading class [com.guohualife.ebiz.product.define.service.impl.ElementDefineServiceImpl] for bean with name 'elementDefineServiceImpl' defined in file [C:\Users\Administrator\Desktop\01 code\E-commerce-old\product\product\target\classes\com\guohualife\ebiz\product\define\service\impl\ElementDefineServiceImpl.class]: problem with class file or dependent class; nested exception is java.lang.NoClassDefFoundError: com/guohualife/ebiz/product/define/service/ElementDefineService
at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveInnerBean(BeanDefinitionValueResolver.java:230)
at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:117)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1245)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1010)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:472)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:409)
at java.security.AccessController.doPrivileged(Native Method)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:380)
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:264)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:261)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:185)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:164)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:429)
at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:728)
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:380)
at org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:255)
at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:199)
at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:45)
at org.mortbay.jetty.handler.ContextHandler.startContext(ContextHandler.java:540)
at org.mortbay.jetty.servlet.Context.startContext(Context.java:135)
at org.mortbay.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1220)
at org.mortbay.jetty.handler.ContextHandler.doStart(ContextHandler.java:510)
at org.mortbay.jetty.webapp.WebAppContext.doStart(WebAppContext.java:448)
at org.mortbay.jetty.plugin.Jetty6PluginWebAppContext.doStart(Jetty6PluginWebAppContext.java:110)
at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:39)
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:39)
at org.mortbay.jetty.handler.HandlerCollection.doStart(HandlerCollection.java:152)
at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:39)
at org.mortbay.jetty.handler.HandlerWrapper.doStart(HandlerWrapper.java:130)
at org.mortbay.jetty.Server.doStart(Server.java:222)
at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:39)
at org.mortbay.jetty.plugin.Jetty6PluginServer.start(Jetty6PluginServer.java:132)
at org.mortbay.jetty.plugin.AbstractJettyMojo.startJetty(AbstractJettyMojo.java:371)
at org.mortbay.jetty.plugin.AbstractJettyMojo.execute(AbstractJettyMojo.java:307)
at org.mortbay.jetty.plugin.AbstractJettyRunMojo.execute(AbstractJettyRunMojo.java:203)
at org.mortbay.jetty.plugin.Jetty6RunMojo.execute(Jetty6RunMojo.java:184)
at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:137)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:208)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:154)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:146)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:117)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:81)
at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build(SingleThreadedBuilder.java:56)
at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:128)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:305)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:192)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:105)
at org.apache.maven.cli.MavenCli.execute(MavenCli.java:954)
at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:288)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:192)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
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)
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.apache.cxf.configuration.spring.SpringBeanMap#662cb76' defined in class path resource [META-INF/cxf/cxf.xml]: Invocation of init method failed; nested exception is org.springframework.beans.factory.CannotLoadBeanClassException: Error loading class [com.guohualife.ebiz.product.define.service.impl.ElementDefineServiceImpl] for bean with name 'elementDefineServiceImpl' defined in file [C:\Users\Administrator\Desktop\01 code\E-commerce-old\product\product\target\classes\com\guohualife\ebiz\product\define\service\impl\ElementDefineServiceImpl.class]: problem with class file or dependent class; nested exception is java.lang.NoClassDefFoundError: com/guohualife/ebiz/product/define/service/ElementDefineService
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1338)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:473)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:409)
at java.security.AccessController.doPrivileged(Native Method)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:380)
at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveInnerBean(BeanDefinitionValueResolver.java:219)
... 60 more
Caused by: org.springframework.beans.factory.CannotLoadBeanClassException: Error loading class [com.guohualife.ebiz.product.define.service.impl.ElementDefineServiceImpl] for bean with name 'elementDefineServiceImpl' defined in file [C:\Users\Administrator\Desktop\01 code\E-commerce-old\product\product\target\classes\com\guohualife\ebiz\product\define\service\impl\ElementDefineServiceImpl.class]: problem with class file or dependent class; nested exception is java.lang.NoClassDefFoundError: com/guohualife/ebiz/product/define/service/ElementDefineService
at org.springframework.beans.factory.support.AbstractBeanFactory.resolveBeanClass(AbstractBeanFactory.java:1144)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.predictBeanType(AbstractAutowireCapableBeanFactory.java:524)
at org.springframework.beans.factory.support.AbstractBeanFactory.isFactoryBean(AbstractBeanFactory.java:1177)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeanNamesForType(DefaultListableBeanFactory.java:222)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeanNamesForType(DefaultListableBeanFactory.java:202)
at org.springframework.context.support.AbstractApplicationContext.getBeanNamesForType(AbstractApplicationContext.java:933)
at org.apache.cxf.configuration.spring.SpringBeanMap.processBeans(SpringBeanMap.java:45)
at org.apache.cxf.configuration.spring.AbstractSpringBeanMap.afterPropertiesSet(AbstractSpringBeanMap.java:55)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1369)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1335)
... 65 more
Caused by: java.lang.NoClassDefFoundError: com/guohualife/ebiz/product/define/service/ElementDefineService
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(Unknown Source)
at java.security.SecureClassLoader.defineClass(Unknown Source)
at java.net.URLClassLoader.defineClass(Unknown Source)
at java.net.URLClassLoader.access$100(Unknown Source)
at java.net.URLClassLoader$1.run(Unknown Source)
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at org.mortbay.jetty.webapp.WebAppClassLoader.loadClass(WebAppClassLoader.java:366)
at org.mortbay.jetty.webapp.WebAppClassLoader.loadClass(WebAppClassLoader.java:337)
at org.springframework.util.ClassUtils.forName(ClassUtils.java:211)
at org.springframework.beans.factory.support.AbstractBeanDefinition.resolveBeanClass(AbstractBeanDefinition.java:385)
at org.springframework.beans.factory.support.AbstractBeanFactory.resolveBeanClass(AbstractBeanFactory.java:1138)
... 74 more
Caused by: java.lang.ClassNotFoundException: com.guohualife.ebiz.product.define.service.ElementDefineService
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:375)
at org.mortbay.jetty.webapp.WebAppClassLoader.loadClass(WebAppClassLoader.java:337)
... 88 more
[ERROR] Failed startup of context org.mortbay.jetty.plugin.Jetty6PluginWebAppContext@5f3a09b7{/product,C:\Users\Administrator\Desktop\01 code\E-commerce-old\product\product\src\main\webapp}
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.apache.cxf.binding.BindingFactoryManager' defined in class path resource [META-INF/cxf/cxf.xml]: Cannot create inner bean 'org.apache.cxf.configuration.spring.SpringBeanMap#662cb76' of type [org.apache.cxf.configuration.spring.SpringBeanMap] while setting bean property 'mapProvider'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.apache.cxf.configuration.spring.SpringBeanMap#662cb76' defined in class path resource [META-INF/cxf/cxf.xml]: Invocation of init method failed; nested exception is org.springframework.beans.factory.CannotLoadBeanClassException: Error loading class [com.guohualife.ebiz.product.define.service.impl.ElementDefineServiceImpl] for bean with name 'elementDefineServiceImpl' defined in file [C:\Users\Administrator\Desktop\01 code\E-commerce-old\product\product\target\classes\com\guohualife\ebiz\product\define\service\impl\ElementDefineServiceImpl.class]: problem with class file or dependent class; nested exception is java.lang.NoClassDefFoundError: com/guohualife/ebiz/product/define/service/ElementDefineService
at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveInnerBean (BeanDefinitionValueResolver.java:230)
at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary (BeanDefinitionValueResolver.java:117)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues (AbstractAutowireCapableBeanFactory.java:1245)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean (AbstractAutowireCapableBeanFactory.java:1010)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean (AbstractAutowireCapableBeanFactory.java:472)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run (AbstractAutowireCapableBeanFactory.java:409)
at java.security.AccessController.doPrivileged (Native Method)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean (AbstractAutowireCapableBeanFactory.java:380)
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject (AbstractBeanFactory.java:264)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton (DefaultSingletonBeanRegistry.java:222)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean (AbstractBeanFactory.java:261)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean (AbstractBeanFactory.java:185)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean (AbstractBeanFactory.java:164)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons (DefaultListableBeanFactory.java:429)
at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization (AbstractApplicationContext.java:728)
at org.springframework.context.support.AbstractApplicationContext.refresh (AbstractApplicationContext.java:380)
at org.springframework.web.context.ContextLoader.createWebApplicationContext (ContextLoader.java:255)
at org.springframework.web.context.ContextLoader.initWebApplicationContext (ContextLoader.java:199)
at org.springframework.web.context.ContextLoaderListener.contextInitialized (ContextLoaderListener.java:45)
at org.mortbay.jetty.handler.ContextHandler.startContext (ContextHandler.java:540)
at org.mortbay.jetty.servlet.Context.startContext (Context.java:135)
at org.mortbay.jetty.webapp.WebAppContext.startContext (WebAppContext.java:1220)
at org.mortbay.jetty.handler.ContextHandler.doStart (ContextHandler.java:510)
at org.mortbay.jetty.webapp.WebAppContext.doStart (WebAppContext.java:448)
at org.mortbay.jetty.plugin.Jetty6PluginWebAppContext.doStart (Jetty6PluginWebAppContext.java:110)
at org.mortbay.component.AbstractLifeCycle.start (AbstractLifeCycle.java:39)
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:39)
at org.mortbay.jetty.handler.HandlerCollection.doStart (HandlerCollection.java:152)
at org.mortbay.component.AbstractLifeCycle.start (AbstractLifeCycle.java:39)
at org.mortbay.jetty.handler.HandlerWrapper.doStart (HandlerWrapper.java:130)
at org.mortbay.jetty.Server.doStart (Server.java:222)
at org.mortbay.component.AbstractLifeCycle.start (AbstractLifeCycle.java:39)
at org.mortbay.jetty.plugin.Jetty6PluginServer.start (Jetty6PluginServer.java:132)
at org.mortbay.jetty.plugin.AbstractJettyMojo.startJetty (AbstractJettyMojo.java:371)
at org.mortbay.jetty.plugin.AbstractJettyMojo.execute (AbstractJettyMojo.java:307)
at org.mortbay.jetty.plugin.AbstractJettyRunMojo.execute (AbstractJettyRunMojo.java:203)
at org.mortbay.jetty.plugin.Jetty6RunMojo.execute (Jetty6RunMojo.java:184)
at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo (DefaultBuildPluginManager.java:137)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:208)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:154)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:146)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:117)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:81)
at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build (SingleThreadedBuilder.java:56)
at org.apache.maven.lifecycle.internal.LifecycleStarter.execute (LifecycleStarter.java:128)
at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:305)
at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:192)
at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:105)
at org.apache.maven.cli.MavenCli.execute (MavenCli.java:954)
at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:288)
at org.apache.maven.cli.MavenCli.main (MavenCli.java:192)
at sun.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke (Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke (Unknown Source)
at java.lang.reflect.Method.invoke (Unknown Source)
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)
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.apache.cxf.configuration.spring.SpringBeanMap#662cb76' defined in class path resource [META-INF/cxf/cxf.xml]: Invocation of init method failed; nested exception is org.springframework.beans.factory.CannotLoadBeanClassException: Error loading class [com.guohualife.ebiz.product.define.service.impl.ElementDefineServiceImpl] for bean with name 'elementDefineServiceImpl' defined in file [C:\Users\Administrator\Desktop\01 code\E-commerce-old\product\product\target\classes\com\guohualife\ebiz\product\define\service\impl\ElementDefineServiceImpl.class]: problem with class file or dependent class; nested exception is java.lang.NoClassDefFoundError: com/guohualife/ebiz/product/define/service/ElementDefineService
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean (AbstractAutowireCapableBeanFactory.java:1338)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean (AbstractAutowireCapableBeanFactory.java:473)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run (AbstractAutowireCapableBeanFactory.java:409)
at java.security.AccessController.doPrivileged (Native Method)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean (AbstractAutowireCapableBeanFactory.java:380)
at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveInnerBean (BeanDefinitionValueResolver.java:219)
at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary (BeanDefinitionValueResolver.java:117)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues (AbstractAutowireCapableBeanFactory.java:1245)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean (AbstractAutowireCapableBeanFactory.java:1010)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean (AbstractAutowireCapableBeanFactory.java:472)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run (AbstractAutowireCapableBeanFactory.java:409)
at java.security.AccessController.doPrivileged (Native Method)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean (AbstractAutowireCapableBeanFactory.java:380)
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject (AbstractBeanFactory.java:264)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton (DefaultSingletonBeanRegistry.java:222)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean (AbstractBeanFactory.java:261)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean (AbstractBeanFactory.java:185)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean (AbstractBeanFactory.java:164)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons (DefaultListableBeanFactory.java:429)
at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization (AbstractApplicationContext.java:728)
at org.springframework.context.support.AbstractApplicationContext.refresh (AbstractApplicationContext.java:380)
at org.springframework.web.context.ContextLoader.createWebApplicationContext (ContextLoader.java:255)
at org.springframework.web.context.ContextLoader.initWebApplicationContext (ContextLoader.java:199)
at org.springframework.web.context.ContextLoaderListener.contextInitialized (ContextLoaderListener.java:45)
at org.mortbay.jetty.handler.ContextHandler.startContext (ContextHandler.java:540)
at org.mortbay.jetty.servlet.Context.startContext (Context.java:135)
at org.mortbay.jetty.webapp.WebAppContext.startContext (WebAppContext.java:1220)
at org.mortbay.jetty.handler.ContextHandler.doStart (ContextHandler.java:510)
at org.mortbay.jetty.webapp.WebAppContext.doStart (WebAppContext.java:448)
at org.mortbay.jetty.plugin.Jetty6PluginWebAppContext.doStart (Jetty6PluginWebAppContext.java:110)
at org.mortbay.component.AbstractLifeCycle.start (AbstractLifeCycle.java:39)
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:39)
at org.mortbay.jetty.handler.HandlerCollection.doStart (HandlerCollection.java:152)
at org.mortbay.component.AbstractLifeCycle.start (AbstractLifeCycle.java:39)
at org.mortbay.jetty.handler.HandlerWrapper.doStart (HandlerWrapper.java:130)
at org.mortbay.jetty.Server.doStart (Server.java:222)
at org.mortbay.component.AbstractLifeCycle.start (AbstractLifeCycle.java:39)
at org.mortbay.jetty.plugin.Jetty6PluginServer.start (Jetty6PluginServer.java:132)
at org.mortbay.jetty.plugin.AbstractJettyMojo.startJetty (AbstractJettyMojo.java:371)
at org.mortbay.jetty.plugin.AbstractJettyMojo.execute (AbstractJettyMojo.java:307)
at org.mortbay.jetty.plugin.AbstractJettyRunMojo.execute (AbstractJettyRunMojo.java:203)
at org.mortbay.jetty.plugin.Jetty6RunMojo.execute (Jetty6RunMojo.java:184)
at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo (DefaultBuildPluginManager.java:137)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:208)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:154)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:146)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:117)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:81)
at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build (SingleThreadedBuilder.java:56)
at org.apache.maven.lifecycle.internal.LifecycleStarter.execute (LifecycleStarter.java:128)
at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:305)
at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:192)
at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:105)
at org.apache.maven.cli.MavenCli.execute (MavenCli.java:954)
at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:288)
at org.apache.maven.cli.MavenCli.main (MavenCli.java:192)
at sun.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke (Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke (Unknown Source)
at java.lang.reflect.Method.invoke (Unknown Source)
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)
Caused by: org.springframework.beans.factory.CannotLoadBeanClassException: Error loading class [com.guohualife.ebiz.product.define.service.impl.ElementDefineServiceImpl] for bean with name 'elementDefineServiceImpl' defined in file [C:\Users\Administrator\Desktop\01 code\E-commerce-old\product\product\target\classes\com\guohualife\ebiz\product\define\service\impl\ElementDefineServiceImpl.class]: problem with class file or dependent class; nested exception is java.lang.NoClassDefFoundError: com/guohualife/ebiz/product/define/service/ElementDefineService
at org.springframework.beans.factory.support.AbstractBeanFactory.resolveBeanClass (AbstractBeanFactory.java:1144)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.predictBeanType (AbstractAutowireCapableBeanFactory.java:524)
at org.springframework.beans.factory.support.AbstractBeanFactory.isFactoryBean (AbstractBeanFactory.java:1177)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeanNamesForType (DefaultListableBeanFactory.java:222)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeanNamesForType (DefaultListableBeanFactory.java:202)
at org.springframework.context.support.AbstractApplicationContext.getBeanNamesForType (AbstractApplicationContext.java:933)
at org.apache.cxf.configuration.spring.SpringBeanMap.processBeans (SpringBeanMap.java:45)
at org.apache.cxf.configuration.spring.AbstractSpringBeanMap.afterPropertiesSet (AbstractSpringBeanMap.java:55)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods (AbstractAutowireCapableBeanFactory.java:1369)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean (AbstractAutowireCapableBeanFactory.java:1335)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean (AbstractAutowireCapableBeanFactory.java:473)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run (AbstractAutowireCapableBeanFactory.java:409)
at java.security.AccessController.doPrivileged (Native Method)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean (AbstractAutowireCapableBeanFactory.java:380)
at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveInnerBean (BeanDefinitionValueResolver.java:219)
at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary (BeanDefinitionValueResolver.java:117)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues (AbstractAutowireCapableBeanFactory.java:1245)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean (AbstractAutowireCapableBeanFactory.java:1010)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean (AbstractAutowireCapableBeanFactory.java:472)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run (AbstractAutowireCapableBeanFactory.java:409)
at java.security.AccessController.doPrivileged (Native Method)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean (AbstractAutowireCapableBeanFactory.java:380)
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject (AbstractBeanFactory.java:264)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton (DefaultSingletonBeanRegistry.java:222)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean (AbstractBeanFactory.java:261)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean (AbstractBeanFactory.java:185)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean (AbstractBeanFactory.java:164)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons (DefaultListableBeanFactory.java:429)
at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization (AbstractApplicationContext.java:728)
at org.springframework.context.support.AbstractApplicationContext.refresh (AbstractApplicationContext.java:380)
at org.springframework.web.context.ContextLoader.createWebApplicationContext (ContextLoader.java:255)
at org.springframework.web.context.ContextLoader.initWebApplicationContext (ContextLoader.java:199)
at org.springframework.web.context.ContextLoaderListener.contextInitialized (ContextLoaderListener.java:45)
at org.mortbay.jetty.handler.ContextHandler.startContext (ContextHandler.java:540)
at org.mortbay.jetty.servlet.Context.startContext (Context.java:135)
at org.mortbay.jetty.webapp.WebAppContext.startContext (WebAppContext.java:1220)
at org.mortbay.jetty.handler.ContextHandler.doStart (ContextHandler.java:510)
at org.mortbay.jetty.webapp.WebAppContext.doStart (WebAppContext.java:448)
at org.mortbay.jetty.plugin.Jetty6PluginWebAppContext.doStart (Jetty6PluginWebAppContext.java:110)
at org.mortbay.component.AbstractLifeCycle.start (AbstractLifeCycle.java:39)
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:39)
at org.mortbay.jetty.handler.HandlerCollection.doStart (HandlerCollection.java:152)
at org.mortbay.component.AbstractLifeCycle.start (AbstractLifeCycle.java:39)
at org.mortbay.jetty.handler.HandlerWrapper.doStart (HandlerWrapper.java:130)
at org.mortbay.jetty.Server.doStart (Server.java:222)
at org.mortbay.component.AbstractLifeCycle.start (AbstractLifeCycle.java:39)
at org.mortbay.jetty.plugin.Jetty6PluginServer.start (Jetty6PluginServer.java:132)
at org.mortbay.jetty.plugin.AbstractJettyMojo.startJetty (AbstractJettyMojo.java:371)
at org.mortbay.jetty.plugin.AbstractJettyMojo.execute (AbstractJettyMojo.java:307)
at org.mortbay.jetty.plugin.AbstractJettyRunMojo.execute (AbstractJettyRunMojo.java:203)
at org.mortbay.jetty.plugin.Jetty6RunMojo.execute (Jetty6RunMojo.java:184)
at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo (DefaultBuildPluginManager.java:137)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:208)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:154)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:146)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:117)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:81)
at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build (SingleThreadedBuilder.java:56)
at org.apache.maven.lifecycle.internal.LifecycleStarter.execute (LifecycleStarter.java:128)
at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:305)
at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:192)
at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:105)
at org.apache.maven.cli.MavenCli.execute (MavenCli.java:954)
at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:288)
at org.apache.maven.cli.MavenCli.main (MavenCli.java:192)
at sun.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke (Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke (Unknown Source)
at java.lang.reflect.Method.invoke (Unknown Source)
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)
Caused by: java.lang.NoClassDefFoundError: com/guohualife/ebiz/product/define/service/ElementDefineService
at java.lang.ClassLoader.defineClass1 (Native Method)
at java.lang.ClassLoader.defineClass (Unknown Source)
at java.security.SecureClassLoader.defineClass (Unknown Source)
at java.net.URLClassLoader.defineClass (Unknown Source)
at java.net.URLClassLoader.access$100 (Unknown Source)
at java.net.URLClassLoader$1.run (Unknown Source)
at java.net.URLClassLoader$1.run (Unknown Source)
at java.security.AccessController.doPrivileged (Native Method)
at java.net.URLClassLoader.findClass (Unknown Source)
at org.mortbay.jetty.webapp.WebAppClassLoader.loadClass (WebAppClassLoader.java:366)
at org.mortbay.jetty.webapp.WebAppClassLoader.loadClass (WebAppClassLoader.java:337)
at org.springframework.util.ClassUtils.forName (ClassUtils.java:211)
at org.springframework.beans.factory.support.AbstractBeanDefinition.resolveBeanClass (AbstractBeanDefinition.java:385)
at org.springframework.beans.factory.support.AbstractBeanFactory.resolveBeanClass (AbstractBeanFactory.java:1138)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.predictBeanType (AbstractAutowireCapableBeanFactory.java:524)
at org.springframework.beans.factory.support.AbstractBeanFactory.isFactoryBean (AbstractBeanFactory.java:1177)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeanNamesForType (DefaultListableBeanFactory.java:222)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeanNamesForType (DefaultListableBeanFactory.java:202)
at org.springframework.context.support.AbstractApplicationContext.getBeanNamesForType (AbstractApplicationContext.java:933)
at org.apache.cxf.configuration.spring.SpringBeanMap.processBeans (SpringBeanMap.java:45)
at org.apache.cxf.configuration.spring.AbstractSpringBeanMap.afterPropertiesSet (AbstractSpringBeanMap.java:55)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods (AbstractAutowireCapableBeanFactory.java:1369)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean (AbstractAutowireCapableBeanFactory.java:1335)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean (AbstractAutowireCapableBeanFactory.java:473)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run (AbstractAutowireCapableBeanFactory.java:409)
at java.security.AccessController.doPrivileged (Native Method)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean (AbstractAutowireCapableBeanFactory.java:380)
at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveInnerBean (BeanDefinitionValueResolver.java:219)
at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary (BeanDefinitionValueResolver.java:117)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues (AbstractAutowireCapableBeanFactory.java:1245)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean (AbstractAutowireCapableBeanFactory.java:1010)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean (AbstractAutowireCapableBeanFactory.java:472)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run (AbstractAutowireCapableBeanFactory.java:409)
at java.security.AccessController.doPrivileged (Native Method)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean (AbstractAutowireCapableBeanFactory.java:380)
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject (AbstractBeanFactory.java:264)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton (DefaultSingletonBeanRegistry.java:222)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean (AbstractBeanFactory.java:261)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean (AbstractBeanFactory.java:185)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean (AbstractBeanFactory.java:164)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons (DefaultListableBeanFactory.java:429)
at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization (AbstractApplicationContext.java:728)
at org.springframework.context.support.AbstractApplicationContext.refresh (AbstractApplicationContext.java:380)
at org.springframework.web.context.ContextLoader.createWebApplicationContext (ContextLoader.java:255)
at org.springframework.web.context.ContextLoader.initWebApplicationContext (ContextLoader.java:199)
at org.springframework.web.context.ContextLoaderListener.contextInitialized (ContextLoaderListener.java:45)
at org.mortbay.jetty.handler.ContextHandler.startContext (ContextHandler.java:540)
at org.mortbay.jetty.servlet.Context.startContext (Context.java:135)
at org.mortbay.jetty.webapp.WebAppContext.startContext (WebAppContext.java:1220)
at org.mortbay.jetty.handler.ContextHandler.doStart (ContextHandler.java:510)
at org.mortbay.jetty.webapp.WebAppContext.doStart (WebAppContext.java:448)
at org.mortbay.jetty.plugin.Jetty6PluginWebAppContext.doStart (Jetty6PluginWebAppContext.java:110)
at org.mortbay.component.AbstractLifeCycle.start (AbstractLifeCycle.java:39)
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:39)
at org.mortbay.jetty.handler.HandlerCollection.doStart (HandlerCollection.java:152)
at org.mortbay.component.AbstractLifeCycle.start (AbstractLifeCycle.java:39)
at org.mortbay.jetty.handler.HandlerWrapper.doStart (HandlerWrapper.java:130)
at org.mortbay.jetty.Server.doStart (Server.java:222)
at org.mortbay.component.AbstractLifeCycle.start (AbstractLifeCycle.java:39)
at org.mortbay.jetty.plugin.Jetty6PluginServer.start (Jetty6PluginServer.java:132)
at org.mortbay.jetty.plugin.AbstractJettyMojo.startJetty (AbstractJettyMojo.java:371)
at org.mortbay.jetty.plugin.AbstractJettyMojo.execute (AbstractJettyMojo.java:307)
at org.mortbay.jetty.plugin.AbstractJettyRunMojo.execute (AbstractJettyRunMojo.java:203)
at org.mortbay.jetty.plugin.Jetty6RunMojo.execute (Jetty6RunMojo.java:184)
at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo (DefaultBuildPluginManager.java:137)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:208)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:154)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:146)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:117)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:81)
at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build (SingleThreadedBuilder.java:56)
at org.apache.maven.lifecycle.internal.LifecycleStarter.execute (LifecycleStarter.java:128)
at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:305)
at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:192)
at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:105)
at org.apache.maven.cli.MavenCli.execute (MavenCli.java:954)
at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:288)
at org.apache.maven.cli.MavenCli.main (MavenCli.java:192)
at sun.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke (Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke (Unknown Source)
at java.lang.reflect.Method.invoke (Unknown Source)
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)
Caused by: java.lang.ClassNotFoundException: com.guohualife.ebiz.product.define.service.ElementDefineService
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:375)
at org.mortbay.jetty.webapp.WebAppClassLoader.loadClass (WebAppClassLoader.java:337)
at java.lang.ClassLoader.defineClass1 (Native Method)
at java.lang.ClassLoader.defineClass (Unknown Source)
at java.security.SecureClassLoader.defineClass (Unknown Source)
at java.net.URLClassLoader.defineClass (Unknown Source)
at java.net.URLClassLoader.access$100 (Unknown Source)
at java.net.URLClassLoader$1.run (Unknown Source)
at java.net.URLClassLoader$1.run (Unknown Source)
at java.security.AccessController.doPrivileged (Native Method)
at java.net.URLClassLoader.findClass (Unknown Source)
at org.mortbay.jetty.webapp.WebAppClassLoader.loadClass (WebAppClassLoader.java:366)
at org.mortbay.jetty.webapp.WebAppClassLoader.loadClass (WebAppClassLoader.java:337)
at org.springframework.util.ClassUtils.forName (ClassUtils.java:211)
at org.springframework.beans.factory.support.AbstractBeanDefinition.resolveBeanClass (AbstractBeanDefinition.java:385)
at org.springframework.beans.factory.support.AbstractBeanFactory.resolveBeanClass (AbstractBeanFactory.java:1138)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.predictBeanType (AbstractAutowireCapableBeanFactory.java:524)
at org.springframework.beans.factory.support.AbstractBeanFactory.isFactoryBean (AbstractBeanFactory.java:1177)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeanNamesForType (DefaultListableBeanFactory.java:222)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeanNamesForType (DefaultListableBeanFactory.java:202)
at org.springframework.context.support.AbstractApplicationContext.getBeanNamesForType (AbstractApplicationContext.java:933)
at org.apache.cxf.configuration.spring.SpringBeanMap.processBeans (SpringBeanMap.java:45)
at org.apache.cxf.configuration.spring.AbstractSpringBeanMap.afterPropertiesSet (AbstractSpringBeanMap.java:55)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods (AbstractAutowireCapableBeanFactory.java:1369)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean (AbstractAutowireCapableBeanFactory.java:1335)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean (AbstractAutowireCapableBeanFactory.java:473)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run (AbstractAutowireCapableBeanFactory.java:409)
at java.security.AccessController.doPrivileged (Native Method)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean (AbstractAutowireCapableBeanFactory.java:380)
at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveInnerBean (BeanDefinitionValueResolver.java:219)
at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary (BeanDefinitionValueResolver.java:117)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues (AbstractAutowireCapableBeanFactory.java:1245)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean (AbstractAutowireCapableBeanFactory.java:1010)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean (AbstractAutowireCapableBeanFactory.java:472)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run (AbstractAutowireCapableBeanFactory.java:409)
at java.security.AccessController.doPrivileged (Native Method)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean (AbstractAutowireCapableBeanFactory.java:380)
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject (AbstractBeanFactory.java:264)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton (DefaultSingletonBeanRegistry.java:222)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean (AbstractBeanFactory.java:261)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean (AbstractBeanFactory.java:185)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean (AbstractBeanFactory.java:164)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons (DefaultListableBeanFactory.java:429)
at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization (AbstractApplicationContext.java:728)
at org.springframework.context.support.AbstractApplicationContext.refresh (AbstractApplicationContext.java:380)
at org.springframework.web.context.ContextLoader.createWebApplicationContext (ContextLoader.java:255)
at org.springframework.web.context.ContextLoader.initWebApplicationContext (ContextLoader.java:199)
at org.springframework.web.context.ContextLoaderListener.contextInitialized (ContextLoaderListener.java:45)
at org.mortbay.jetty.handler.ContextHandler.startContext (ContextHandler.java:540)
at org.mortbay.jetty.servlet.Context.startContext (Context.java:135)
at org.mortbay.jetty.webapp.WebAppContext.startContext (WebAppContext.java:1220)
at org.mortbay.jetty.handler.ContextHandler.doStart (ContextHandler.java:510)
at org.mortbay.jetty.webapp.WebAppContext.doStart (WebAppContext.java:448)
at org.mortbay.jetty.plugin.Jetty6PluginWebAppContext.doStart (Jetty6PluginWebAppContext.java:110)
at org.mortbay.component.AbstractLifeCycle.start (AbstractLifeCycle.java:39)
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:39)
at org.mortbay.jetty.handler.HandlerCollection.doStart (HandlerCollection.java:152)
at org.mortbay.component.AbstractLifeCycle.start (AbstractLifeCycle.java:39)
at org.mortbay.jetty.handler.HandlerWrapper.doStart (HandlerWrapper.java:130)
at org.mortbay.jetty.Server.doStart (Server.java:222)
at org.mortbay.component.AbstractLifeCycle.start (AbstractLifeCycle.java:39)
at org.mortbay.jetty.plugin.Jetty6PluginServer.start (Jetty6PluginServer.java:132)
at org.mortbay.jetty.plugin.AbstractJettyMojo.startJetty (AbstractJettyMojo.java:371)
at org.mortbay.jetty.plugin.AbstractJettyMojo.execute (AbstractJettyMojo.java:307)
at org.mortbay.jetty.plugin.AbstractJettyRunMojo.execute (AbstractJettyRunMojo.java:203)
at org.mortbay.jetty.plugin.Jetty6RunMojo.execute (Jetty6RunMojo.java:184)
at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo (DefaultBuildPluginManager.java:137)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:208)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:154)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:146)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:117)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:81)
at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build (SingleThreadedBuilder.java:56)
at org.apache.maven.lifecycle.internal.LifecycleStarter.execute (LifecycleStarter.java:128)
at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:305)
at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:192)
at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:105)
at org.apache.maven.cli.MavenCli.execute (MavenCli.java:954)
at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:288)
at org.apache.maven.cli.MavenCli.main (MavenCli.java:192)
at sun.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke (Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke (Unknown Source)
at java.lang.reflect.Method.invoke (Unknown Source)
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)
[WARNING] Nested in org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.apache.cxf.binding.BindingFactoryManager' defined in class path resource [META-INF/cxf/cxf.xml]: Cannot create inner bean 'org.apache.cxf.configuration.spring.SpringBeanMap#662cb76' of type [org.apache.cxf.configuration.spring.SpringBeanMap] while setting bean property 'mapProvider'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.apache.cxf.configuration.spring.SpringBeanMap#662cb76' defined in class path resource [META-INF/cxf/cxf.xml]: Invocation of init method failed; nested exception is org.springframework.beans.factory.CannotLoadBeanClassException: Error loading class [com.guohualife.ebiz.product.define.service.impl.ElementDefineServiceImpl] for bean with name 'elementDefineServiceImpl' defined in file [C:\Users\Administrator\Desktop\01 code\E-commerce-old\product\product\target\classes\com\guohualife\ebiz\product\define\service\impl\ElementDefineServiceImpl.class]: problem with class file or dependent class; nested exception is java.lang.NoClassDefFoundError: com/guohualife/ebiz/product/define/service/ElementDefineService:
java.lang.ClassNotFoundException: com.guohualife.ebiz.product.define.service.ElementDefineService
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:375)
at org.mortbay.jetty.webapp.WebAppClassLoader.loadClass (WebAppClassLoader.java:337)
at java.lang.ClassLoader.defineClass1 (Native Method)
at java.lang.ClassLoader.defineClass (Unknown Source)
at java.security.SecureClassLoader.defineClass (Unknown Source)
at java.net.URLClassLoader.defineClass (Unknown Source)
at java.net.URLClassLoader.access$100 (Unknown Source)
at java.net.URLClassLoader$1.run (Unknown Source)
at java.net.URLClassLoader$1.run (Unknown Source)
at java.security.AccessController.doPrivileged (Native Method)
at java.net.URLClassLoader.findClass (Unknown Source)
at org.mortbay.jetty.webapp.WebAppClassLoader.loadClass (WebAppClassLoader.java:366)
at org.mortbay.jetty.webapp.WebAppClassLoader.loadClass (WebAppClassLoader.java:337)
at org.springframework.util.ClassUtils.forName (ClassUtils.java:211)
at org.springframework.beans.factory.support.AbstractBeanDefinition.resolveBeanClass (AbstractBeanDefinition.java:385)
at org.springframework.beans.factory.support.AbstractBeanFactory.resolveBeanClass (AbstractBeanFactory.java:1138)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.predictBeanType (AbstractAutowireCapableBeanFactory.java:524)
at org.springframework.beans.factory.support.AbstractBeanFactory.isFactoryBean (AbstractBeanFactory.java:1177)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeanNamesForType (DefaultListableBeanFactory.java:222)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeanNamesForType (DefaultListableBeanFactory.java:202)
at org.springframework.context.support.AbstractApplicationContext.getBeanNamesForType (AbstractApplicationContext.java:933)
at org.apache.cxf.configuration.spring.SpringBeanMap.processBeans (SpringBeanMap.java:45)
at org.apache.cxf.configuration.spring.AbstractSpringBeanMap.afterPropertiesSet (AbstractSpringBeanMap.java:55)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods (AbstractAutowireCapableBeanFactory.java:1369)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean (AbstractAutowireCapableBeanFactory.java:1335)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean (AbstractAutowireCapableBeanFactory.java:473)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run (AbstractAutowireCapableBeanFactory.java:409)
at java.security.AccessController.doPrivileged (Native Method)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean (AbstractAutowireCapableBeanFactory.java:380)
at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveInnerBean (BeanDefinitionValueResolver.java:219)
at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary (BeanDefinitionValueResolver.java:117)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues (AbstractAutowireCapableBeanFactory.java:1245)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean (AbstractAutowireCapableBeanFactory.java:1010)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean (AbstractAutowireCapableBeanFactory.java:472)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run (AbstractAutowireCapableBeanFactory.java:409)
at java.security.AccessController.doPrivileged (Native Method)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean (AbstractAutowireCapableBeanFactory.java:380)
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject (AbstractBeanFactory.java:264)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton (DefaultSingletonBeanRegistry.java:222)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean (AbstractBeanFactory.java:261)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean (AbstractBeanFactory.java:185)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean (AbstractBeanFactory.java:164)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons (DefaultListableBeanFactory.java:429)
at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization (AbstractApplicationContext.java:728)
at org.springframework.context.support.AbstractApplicationContext.refresh (AbstractApplicationContext.java:380)
at org.springframework.web.context.ContextLoader.createWebApplicationContext (ContextLoader.java:255)
at org.springframework.web.context.ContextLoader.initWebApplicationContext (ContextLoader.java:199)
at org.springframework.web.context.ContextLoaderListener.contextInitialized (ContextLoaderListener.java:45)
at org.mortbay.jetty.handler.ContextHandler.startContext (ContextHandler.java:540)
at org.mortbay.jetty.servlet.Context.startContext (Context.java:135)
at org.mortbay.jetty.webapp.WebAppContext.startContext (WebAppContext.java:1220)
at org.mortbay.jetty.handler.ContextHandler.doStart (ContextHandler.java:510)
at org.mortbay.jetty.webapp.WebAppContext.doStart (WebAppContext.java:448)
at org.mortbay.jetty.plugin.Jetty6PluginWebAppContext.doStart (Jetty6PluginWebAppContext.java:110)
at org.mortbay.component.AbstractLifeCycle.start (AbstractLifeCycle.java:39)
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:39)
at org.mortbay.jetty.handler.HandlerCollection.doStart (HandlerCollection.java:152)
at org.mortbay.component.AbstractLifeCycle.start (AbstractLifeCycle.java:39)
at org.mortbay.jetty.handler.HandlerWrapper.doStart (HandlerWrapper.java:130)
at org.mortbay.jetty.Server.doStart (Server.java:222)
at org.mortbay.component.AbstractLifeCycle.start (AbstractLifeCycle.java:39)
at org.mortbay.jetty.plugin.Jetty6PluginServer.start (Jetty6PluginServer.java:132)
at org.mortbay.jetty.plugin.AbstractJettyMojo.startJetty (AbstractJettyMojo.java:371)
at org.mortbay.jetty.plugin.AbstractJettyMojo.execute (AbstractJettyMojo.java:307)
at org.mortbay.jetty.plugin.AbstractJettyRunMojo.execute (AbstractJettyRunMojo.java:203)
at org.mortbay.jetty.plugin.Jetty6RunMojo.execute (Jetty6RunMojo.java:184)
at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo (DefaultBuildPluginManager.java:137)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:208)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:154)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:146)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:117)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:81)
at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build (SingleThreadedBuilder.java:56)
at org.apache.maven.lifecycle.internal.LifecycleStarter.execute (LifecycleStarter.java:128)
at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:305)
at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:192)
at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:105)
at org.apache.maven.cli.MavenCli.execute (MavenCli.java:954)
at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:288)
at org.apache.maven.cli.MavenCli.main (MavenCli.java:192)
at sun.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke (Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke (Unknown Source)
at java.lang.reflect.Method.invoke (Unknown Source)
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:8888
[INFO] Started Jetty Server
[INFO] Starting scanner at interval of 2 seconds.

1个回答

Csdn user default icon
上传中...
上传图片
插入图片
抄袭、复制答案,以达到刷声望分或其他目的的行为,在CSDN问答是严格禁止的,一经发现立刻封号。是时候展现真正的技术了!
其他相关推荐
maven项目启动jetty-maven-plugin报错

刚接触maven项目,按照maven实战的说明,使用jetty plugin进行部署,运行jetty:run命令的时候,控制台出现如下异常信息: 2015-05-06 13:42:08.082:WARN:oejw.WebAppContext:Failed startup of context o.m.j.p.JettyWebAppContext{/web,file:/E:/mycode/web_advancement/src/main/webapp/},file:/E:/mycode/web_advancement/src/main/webapp/ org.apache.commons.logging.LogConfigurationException: java.lang.IllegalAccessError: class sun.reflect.GeneratedConstructorAccessor 32 cannot access its superclass sun.reflect.ConstructorAccessorImpl (Caused by java.lang.IllegalAccessError: class sun.reflect.Gen eratedConstructorAccessor32 cannot access its superclass sun.reflect.ConstructorAccessorImpl) at org.apache.commons.logging.impl.LogFactoryImpl.newInstance(LogFactoryImpl.java:571) at org.apache.commons.logging.impl.LogFactoryImpl.getInstance(LogFactoryImpl.java:292) at org.apache.commons.logging.impl.LogFactoryImpl.getInstance(LogFactoryImpl.java:269) at org.apache.commons.logging.LogFactory.getLog(LogFactory.java:657) at org.springframework.core.env.PropertySource.<init>(PropertySource.java:58) at org.springframework.core.env.PropertySource$StubPropertySource.<init>(PropertySource.java:220) at org.springframework.core.env.PropertySource$ComparisonPropertySource.<init>(PropertySource.java:243) at org.springframework.core.env.PropertySource.named(PropertySource.java:200) 不知道哪位以前解决过类似的问题,请不吝赐教

使用jenkins发布maven项目到远程的jetty容器中

如题(就这点币了) 使用jenkins发布maven项目到远程的jetty容器中

maven 项目 启动 jetty:run 报错

第一次使用,毫无头绪 log4j:WARN No appenders could be found for logger (org.springframework.web.context.ContextLoader). log4j:WARN Please initialize the log4j system properly. log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig for more info. SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder". SLF4J: Defaulting to no-operation (NOP) logger implementation SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details. [WARNING] Failed startup of context o.m.j.p.JettyWebAppContext{/home,file:/E:/workspace/maven.1463123350245/WHT/WHT-Main/src/main/webapp/},file:/E:/workspace/maven.1463123350245/WHT/WHT-Main/src/main/webapp/ org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'shiroFilter' defined in class path resource [spring/spring-config-shiro.xml]: Cannot resolve reference to bean 'securityManager' while setting bean property 'securityManager'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'securityManager' defined in class path resource [spring/spring-config-shiro.xml]: Cannot resolve reference to bean 'userRealm' while setting bean property 'realm'; nested exception is org.springframework.beans.factory.CannotLoadBeanClassException: Cannot find class [cn.whtedu.apache.shiro.realm.UserRealm] for bean with name 'userRealm' defined in class path resource [spring/spring-config-shiro.xml]; nested exception is java.lang.ClassNotFoundException: cn.whtedu.apache.shiro.realm.UserRealm Related cause: org.springframework.beans.factory.CannotLoadBeanClassException: Cannot find class [cn.whtedu.apache.shiro.credentials.RetryLimitCredentialsMatcher] for bean with name 'credentialsMatcher' defined in class path resource [spring/spring-config-shiro.xml]; nested exception is java.lang.ClassNotFoundException: cn.whtedu.apache.shiro.credentials.RetryLimitCredentialsMatcher Related cause: org.springframework.beans.factory.CannotLoadBeanClassException: Cannot find class [cn.whtedu.apache.shiro.realm.UserRealm] for bean with name 'userRealm' defined in class path resource [spring/spring-config-shiro.xml]; nested exception is java.lang.ClassNotFoundException: cn.whtedu.apache.shiro.realm.UserRealm Related cause: org.springframework.beans.factory.CannotLoadBeanClassException: Cannot find class [cn.whtedu.apache.shiro.credentials.RetryLimitCredentialsMatcher] for bean with name 'credentialsMatcher' defined in class path resource [spring/spring-config-shiro.xml]; nested exception is java.lang.ClassNotFoundException: cn.whtedu.apache.shiro.credentials.RetryLimitCredentialsMatcher Related cause: org.springframework.beans.factory.CannotLoadBeanClassException: Cannot find class [cn.whtedu.apache.shiro.realm.UserRealm] for bean with name 'userRealm' defined in class path resource [spring/spring-config-shiro.xml]; nested exception is java.lang.ClassNotFoundException: cn.whtedu.apache.shiro.realm.UserRealm

关于maven项目使用jetty:run指令启动时出错的问题

错误log: [INFO] Initializing Spring root WebApplicationContext [WARNING] failed ContextHandler@d117580{/DMC-IDX-WEB,file:/D:/JavaProject/HB_ODSA_IDEA/DMC-IDX-WEB/src/main/webapp/} [WARNING] failed ContextHandlerCollection@571e723b [WARNING] failed HandlerCollection@fddac2c [INFO] Started SelectChannelConnector @ 0.0.0.0:9999 [WARNING] failed Server@4350acdc [INFO] Jetty server exiting. [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 7.456 s [INFO] Finished at: 2016-08-15T16:01:00+08:00 [INFO] Final Memory: 22M/348M [INFO] ------------------------------------------------------------------------ [ERROR] Failed to execute goal org.mortbay.jetty:maven-jetty-plugin:6.0.0:run (default-cli) on project DMC-IDX-WEB: Failure: Error creating bean with name 'loginAction' defined in class path resource [spring/spring-action.xml]: Cannot resolve reference to bean 'controlService' while setting bean property 'controlService'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'controlService' defined in class path resource [spring/spring-services.xml]: Cannot resolve reference to bean 'dmcControlService' while setting bean property 'dmcControlService'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'dmcControlService': FactoryBean threw exception on object creation; nested exception is com.alibaba.dubbo.rpc.RpcException: Fail to create remoting client for service(dubbo://localhost:9902/com.ai.frame.IControlService?application=consumer-of-dmcIndexCore&codec=dubbo&dubbo=2.5.4-SNAPSHOT&group=dmcIndexCoreGroup&heartbeat=60000&interface=com.ai.frame.IControlService&methods=execute&pid=11860&revision=2.5&side=consumer&timeout=20000&timestamp=1471248056840): client(url: dubbo://localhost:9902/com.ai.frame.IControlService?application=consumer-of-dmcIndexCore&codec=dubbo&dubbo=2.5.4-SNAPSHOT&group=dmcIndexCoreGroup&heartbeat=60000&interface=com.ai.frame.IControlService&methods=execute&pid=11860&revision=2.5&side=consumer&timeout=20000&timestamp=1471248056840) failed to connect to server localhost/127.0.0.1:9902 client-side timeout 3000ms (elapsed: 3025ms) from netty client 192.168.23.1 using dubbo version 2.5.4-SNAPSHOT -> [Help 1] [ERROR] [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch. [ERROR] Re-run Maven using the -X switch to enable full debug logging. [ERROR] [ERROR] For more information about the errors and possible solutions, please read the following articles: [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException [INFO] Shutdown hook executing [INFO] Shutdown hook complete Process finished with exit code 1

Maven问题, 多个web项目如何用jetty插件让他们在同一个端口运行?

Maven + jetty插件开发的便利就不说了,现在项目中有多个project,并且要运行在同一个端口下。 请问各位有没有好办法?使用jetty插件。 或有其他变通的办法,需要支持热修改,同时debug多个项目。 先行谢过啊。

maven项目使用jetty启动,启动失败,请大神帮忙看看

14:50:16.256 [main] DEBUG o.s.b.f.s.DefaultListableBeanFactory - Finished creating instance of bean 'webMapperScannerConfigurer' 2015-07-08 14:50:16.535:WARN::Failed startup of context org.mortbay.jetty.webapp.WebAppContext@a87f8ec{/admin4zhitu,D:\GitHub\admin4zhitu\src\main\webapp} java.lang.IllegalArgumentException at org.springframework.asm.ClassReader.<init>(Unknown Source) at org.springframework.asm.ClassReader.<init>(Unknown Source) at org.springframework.asm.ClassReader.<init>(Unknown Source) at org.springframework.core.type.classreading.SimpleMetadataReader.<init>(SimpleMetadataReader.java:52) at org.springframework.core.type.classreading.SimpleMetadataReaderFactory.getMetadataReader(SimpleMetadataReaderFactory.java:80) at org.springframework.core.type.classreading.CachingMetadataReaderFactory.getMetadataReader(CachingMetadataReaderFactory.java:101) at org.springframework.core.type.classreading.SimpleMetadataReaderFactory.getMetadataReader(SimpleMetadataReaderFactory.java:76) at org.springframework.context.annotation.ConfigurationClassParser.getImports(ConfigurationClassParser.java:298) at org.springframework.context.annotation.ConfigurationClassParser.getImports(ConfigurationClassParser.java:300) at org.springframework.context.annotation.ConfigurationClassParser.getImports(ConfigurationClassParser.java:300) at org.springframework.context.annotation.ConfigurationClassParser.doProcessConfigurationClass(ConfigurationClassParser.java:230) at org.springframework.context.annotation.ConfigurationClassParser.processConfigurationClass(ConfigurationClassParser.java:153) at org.springframework.context.annotation.ConfigurationClassParser.parse(ConfigurationClassParser.java:130) at org.springframework.context.annotation.ConfigurationClassPostProcessor.processConfigBeanDefinitions(ConfigurationClassPostProcessor.java:285) at org.springframework.context.annotation.ConfigurationClassPostProcessor.postProcessBeanDefinitionRegistry(ConfigurationClassPostProcessor.java:223) at org.springframework.context.support.AbstractApplicationContext.invokeBeanFactoryPostProcessors(AbstractApplicationContext.java:630) at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:461) at org.springframework.web.context.ContextLoader.configureAndRefreshWebApplicationContext(ContextLoader.java:383) at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:283) at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:112) 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.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 runjettyrun.Bootstrap.main(Bootstrap.java:97) 14:50:16.535 [main] ERROR o.s.web.context.ContextLoader - Context initialization failed java.lang.IllegalArgumentException: null at org.springframework.asm.ClassReader.<init>(Unknown Source) ~[spring-core-3.2.0.RELEASE.jar:3.2.0.RELEASE] at org.springframework.asm.ClassReader.<init>(Unknown Source) ~[spring-core-3.2.0.RELEASE.jar:3.2.0.RELEASE] at org.springframework.asm.ClassReader.<init>(Unknown Source) ~[spring-core-3.2.0.RELEASE.jar:3.2.0.RELEASE] at org.springframework.core.type.classreading.SimpleMetadataReader.<init>(SimpleMetadataReader.java:52) ~[spring-core-3.2.0.RELEASE.jar:3.2.0.RELEASE] at org.springframework.core.type.classreading.SimpleMetadataReaderFactory.getMetadataReader(SimpleMetadataReaderFactory.java:80) ~[spring-core-3.2.0.RELEASE.jar:3.2.0.RELEASE] at org.springframework.core.type.classreading.CachingMetadataReaderFactory.getMetadataReader(CachingMetadataReaderFactory.java:101) ~[spring-core-3.2.0.RELEASE.jar:3.2.0.RELEASE] at org.springframework.core.type.classreading.SimpleMetadataReaderFactory.getMetadataReader(SimpleMetadataReaderFactory.java:76) ~[spring-core-3.2.0.RELEASE.jar:3.2.0.RELEASE] at org.springframework.context.annotation.ConfigurationClassParser.getImports(ConfigurationClassParser.java:298) ~[spring-context-3.2.0.RELEASE.jar:3.2.0.RELEASE] at org.springframework.context.annotation.ConfigurationClassParser.getImports(ConfigurationClassParser.java:300) ~[spring-context-3.2.0.RELEASE.jar:3.2.0.RELEASE] at org.springframework.context.annotation.ConfigurationClassParser.getImports(ConfigurationClassParser.java:300) ~[spring-context-3.2.0.RELEASE.jar:3.2.0.RELEASE] at org.springframework.context.annotation.ConfigurationClassParser.doProcessConfigurationClass(ConfigurationClassParser.java:230) ~[spring-context-3.2.0.RELEASE.jar:3.2.0.RELEASE] at org.springframework.context.annotation.ConfigurationClassParser.processConfigurationClass(ConfigurationClassParser.java:153) ~[spring-context-3.2.0.RELEASE.jar:3.2.0.RELEASE] at org.springframework.context.annotation.ConfigurationClassParser.parse(ConfigurationClassParser.java:130) ~[spring-context-3.2.0.RELEASE.jar:3.2.0.RELEASE] at org.springframework.context.annotation.ConfigurationClassPostProcessor.processConfigBeanDefinitions(ConfigurationClassPostProcessor.java:285) ~[spring-context-3.2.0.RELEASE.jar:3.2.0.RELEASE] at org.springframework.context.annotation.ConfigurationClassPostProcessor.postProcessBeanDefinitionRegistry(ConfigurationClassPostProcessor.java:223) ~[spring-context-3.2.0.RELEASE.jar:3.2.0.RELEASE] at org.springframework.context.support.AbstractApplicationContext.invokeBeanFactoryPostProcessors(AbstractApplicationContext.java:630) ~[spring-context-3.2.0.RELEASE.jar:3.2.0.RELEASE] at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:461) ~[spring-context-3.2.0.RELEASE.jar:3.2.0.RELEASE] at org.springframework.web.context.ContextLoader.configureAndRefreshWebApplicationContext(ContextLoader.java:383) ~[spring-web-3.2.0.RELEASE.jar:3.2.0.RELEASE] at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:283) ~[spring-web-3.2.0.RELEASE.jar:3.2.0.RELEASE] at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:112) [spring-web-3.2.0.RELEASE.jar:3.2.0.RELEASE] at org.mortbay.jetty.handler.ContextHandler.startContext(ContextHandler.java:549) [jetty-6.1.26.jar:6.1.26] at org.mortbay.jetty.servlet.Context.startContext(Context.java:136) [jetty-6.1.26.jar:6.1.26] at org.mortbay.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1282) [jetty-6.1.26.jar:6.1.26] at org.mortbay.jetty.handler.ContextHandler.doStart(ContextHandler.java:518) [jetty-6.1.26.jar:6.1.26] at org.mortbay.jetty.webapp.WebAppContext.doStart(WebAppContext.java:499) [jetty-6.1.26.jar:6.1.26] at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50) [jetty-util-6.1.26.jar:6.1.26] at org.mortbay.jetty.handler.HandlerWrapper.doStart(HandlerWrapper.java:130) [jetty-6.1.26.jar:6.1.26] at org.mortbay.jetty.Server.doStart(Server.java:224) [jetty-6.1.26.jar:6.1.26] at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50) [jetty-util-6.1.26.jar:6.1.26] at runjettyrun.Bootstrap.main(Bootstrap.java:97) [run-jetty-run-bootstrap.jar:na] 2015-07-08 14:50:16.743:INFO::Started SelectChannelConnector@0.0.0.0:8080

maven插件jetty:run运行项目一直失败显示

在idea中maven依赖jetty:run运行一个项目一直报这个错误 ``` [INFO] [INFO] ------------------------------------------------------------------------ [INFO] Building Xiaomi Finance LC OSS Web Project 1.0.1-SNAPSHOT [INFO] ------------------------------------------------------------------------ [INFO] [INFO] >>> jetty-maven-plugin:8.1.3.v20120416:run (default-cli) > test-compile @ lc-oss-web >>> [INFO] [INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ lc-oss-web --- [INFO] Using 'UTF-8' encoding to copy filtered resources. [INFO] Copying 14 resources [INFO] Copying 3 resources to /Users/Stefan/xiaomi/cashpay-lc-oss/lc-oss/lc-oss-web/target/classes/config [INFO] [INFO] --- maven-compiler-plugin:3.1:compile (default-compile) @ lc-oss-web --- [INFO] Nothing to compile - all classes are up to date [INFO] [INFO] --- maven-resources-plugin:2.6:testResources (default-testResources) @ lc-oss-web --- [INFO] Not copying test resources [INFO] [INFO] --- maven-compiler-plugin:3.1:testCompile (default-testCompile) @ lc-oss-web --- [INFO] Not compiling test sources [INFO] [INFO] <<< jetty-maven-plugin:8.1.3.v20120416:run (default-cli) < test-compile @ lc-oss-web <<< [INFO] [INFO] --- jetty-maven-plugin:8.1.3.v20120416:run (default-cli) @ lc-oss-web --- [INFO] Configuring Jetty for project: Xiaomi Finance LC OSS Web Project [INFO] webAppSourceDirectory /Users/Stefan/xiaomi/cashpay-lc-oss/lc-oss/lc-oss-web/src/main/webapp does not exist. Defaulting to /Users/Stefan/xiaomi/cashpay-lc-oss/lc-oss/lc-oss-web/src/main/webapp [INFO] Reload Mechanic: manual [INFO] Classes = /Users/Stefan/xiaomi/cashpay-lc-oss/lc-oss/lc-oss-web/target/classes [INFO] Applying context xml file src/main/resources/jetty-context.xml [INFO] Context path = / [INFO] Tmp directory = /Users/Stefan/xiaomi/cashpay-lc-oss/lc-oss/lc-oss-web/target/tmp [INFO] Web defaults = org/eclipse/jetty/webapp/webdefault.xml [INFO] Web overrides = none [INFO] web.xml file = file:/Users/Stefan/xiaomi/cashpay-lc-oss/lc-oss/lc-oss-web/src/main/webapp/WEB-INF/web.xml [INFO] Webapp directory = /Users/Stefan/xiaomi/cashpay-lc-oss/lc-oss/lc-oss-web/src/main/webapp [INFO] jetty-8.1.3.v20120416 [INFO] No Transaction manager found - if your webapp requires one, please configure one. [INFO] No Spring WebApplicationInitializer types detected on classpath [INFO] started o.m.j.p.JettyWebAppContext{/,file:/Users/Stefan/xiaomi/cashpay-lc-oss/lc-oss/lc-oss-web/src/main/webapp/},file:/Users/Stefan/xiaomi/cashpay-lc-oss/lc-oss/lc-oss-web/src/main/webapp/ [INFO] started o.m.j.p.JettyWebAppContext{/,file:/Users/Stefan/xiaomi/cashpay-lc-oss/lc-oss/lc-oss-web/src/main/webapp/},file:/Users/Stefan/xiaomi/cashpay-lc-oss/lc-oss/lc-oss-web/src/main/webapp/ [INFO] started o.m.j.p.JettyWebAppContext{/,file:/Users/Stefan/xiaomi/cashpay-lc-oss/lc-oss/lc-oss-web/src/main/webapp/},file:/Users/Stefan/xiaomi/cashpay-lc-oss/lc-oss/lc-oss-web/src/main/webapp/ [INFO] Set web app root system property: 'webapp.root' = [/Users/Stefan/xiaomi/cashpay-lc-oss/lc-oss/lc-oss-web/src/main/webapp] [INFO] Initializing log4j from [classpath:/config/log4j.xml] [WARNING] FAILED o.m.j.p.JettyWebAppContext{/,file:/Users/Stefan/xiaomi/cashpay-lc-oss/lc-oss/lc-oss-web/src/main/webapp/},file:/Users/Stefan/xiaomi/cashpay-lc-oss/lc-oss/lc-oss-web/src/main/webapp/: java.lang.NoSuchMethodError: org.apache.log4j.LogManager.getLoggerRepository()Lorg/apache/log4j/spi/LoggerRepository; java.lang.NoSuchMethodError: org.apache.log4j.LogManager.getLoggerRepository()Lorg/apache/log4j/spi/LoggerRepository; at org.apache.log4j.xml.DOMConfigurator.configure(DOMConfigurator.java:901) at org.springframework.util.Log4jConfigurer.initLogging(Log4jConfigurer.java:72) at org.springframework.web.util.Log4jWebConfigurer.initLogging(Log4jWebConfigurer.java:152) at org.springframework.web.util.Log4jConfigListener.contextInitialized(Log4jConfigListener.java:46) at org.eclipse.jetty.server.handler.ContextHandler.callContextInitialized(ContextHandler.java:764) at org.eclipse.jetty.servlet.ServletContextHandler.callContextInitialized(ServletContextHandler.java:406) at org.eclipse.jetty.server.handler.ContextHandler.startContext(ContextHandler.java:756) at org.eclipse.jetty.servlet.ServletContextHandler.startContext(ServletContextHandler.java:242) at org.eclipse.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1221) at org.eclipse.jetty.server.handler.ContextHandler.doStart(ContextHandler.java:699) at org.eclipse.jetty.webapp.WebAppContext.doStart(WebAppContext.java:454) at org.mortbay.jetty.plugin.JettyWebAppContext.doStart(JettyWebAppContext.java:256) at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:59) at org.eclipse.jetty.server.handler.HandlerCollection.doStart(HandlerCollection.java:224) at org.eclipse.jetty.server.handler.ContextHandlerCollection.doStart(ContextHandlerCollection.java:167) at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:59) at org.eclipse.jetty.server.handler.HandlerCollection.doStart(HandlerCollection.java:224) at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:59) at org.eclipse.jetty.server.handler.HandlerWrapper.doStart(HandlerWrapper.java:90) at org.eclipse.jetty.server.Server.doStart(Server.java:262) at org.mortbay.jetty.plugin.JettyServer.doStart(JettyServer.java:65) at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:59) at org.mortbay.jetty.plugin.AbstractJettyMojo.startJetty(AbstractJettyMojo.java:511) at org.mortbay.jetty.plugin.AbstractJettyMojo.execute(AbstractJettyMojo.java:364) at org.mortbay.jetty.plugin.JettyRunMojo.execute(JettyRunMojo.java:516) at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:134) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:207) 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:128) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:307) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:193) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:106) at org.apache.maven.cli.MavenCli.execute(MavenCli.java:863) at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:288) at org.apache.maven.cli.MavenCli.main(MavenCli.java:199) 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) at org.codehaus.classworlds.Launcher.main(Launcher.java:47) [WARNING] FAILED org.eclipse.jetty.server.handler.ContextHandlerCollection@4a2047ce: java.lang.NoSuchMethodError: org.apache.log4j.LogManager.getLoggerRepository()Lorg/apache/log4j/spi/LoggerRepository; java.lang.NoSuchMethodError: org.apache.log4j.LogManager.getLoggerRepository()Lorg/apache/log4j/spi/LoggerRepository; at org.apache.log4j.xml.DOMConfigurator.configure(DOMConfigurator.java:901) at org.springframework.util.Log4jConfigurer.initLogging(Log4jConfigurer.java:72) at org.springframework.web.util.Log4jWebConfigurer.initLogging(Log4jWebConfigurer.java:152) at org.springframework.web.util.Log4jConfigListener.contextInitialized(Log4jConfigListener.java:46) at org.eclipse.jetty.server.handler.ContextHandler.callContextInitialized(ContextHandler.java:764) at org.eclipse.jetty.servlet.ServletContextHandler.callContextInitialized(ServletContextHandler.java:406) at org.eclipse.jetty.server.handler.ContextHandler.startContext(ContextHandler.java:756) at org.eclipse.jetty.servlet.ServletContextHandler.startContext(ServletContextHandler.java:242) at org.eclipse.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1221) at org.eclipse.jetty.server.handler.ContextHandler.doStart(ContextHandler.java:699) at org.eclipse.jetty.webapp.WebAppContext.doStart(WebAppContext.java:454) at org.mortbay.jetty.plugin.JettyWebAppContext.doStart(JettyWebAppContext.java:256) at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:59) at org.eclipse.jetty.server.handler.HandlerCollection.doStart(HandlerCollection.java:224) at org.eclipse.jetty.server.handler.ContextHandlerCollection.doStart(ContextHandlerCollection.java:167) at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:59) at org.eclipse.jetty.server.handler.HandlerCollection.doStart(HandlerCollection.java:224) at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:59) at org.eclipse.jetty.server.handler.HandlerWrapper.doStart(HandlerWrapper.java:90) at org.eclipse.jetty.server.Server.doStart(Server.java:262) at org.mortbay.jetty.plugin.JettyServer.doStart(JettyServer.java:65) at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:59) at org.mortbay.jetty.plugin.AbstractJettyMojo.startJetty(AbstractJettyMojo.java:511) at org.mortbay.jetty.plugin.AbstractJettyMojo.execute(AbstractJettyMojo.java:364) at org.mortbay.jetty.plugin.JettyRunMojo.execute(JettyRunMojo.java:516) at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:134) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:207) 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:128) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:307) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:193) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:106) at org.apache.maven.cli.MavenCli.execute(MavenCli.java:863) at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:288) at org.apache.maven.cli.MavenCli.main(MavenCli.java:199) 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) at org.codehaus.classworlds.Launcher.main(Launcher.java:47) [WARNING] FAILED org.eclipse.jetty.server.handler.HandlerCollection@d4a4b67: java.lang.NoSuchMethodError: org.apache.log4j.LogManager.getLoggerRepository()Lorg/apache/log4j/spi/LoggerRepository; java.lang.NoSuchMethodError: org.apache.log4j.LogManager.getLoggerRepository()Lorg/apache/log4j/spi/LoggerRepository; at org.apache.log4j.xml.DOMConfigurator.configure(DOMConfigurator.java:901) at org.springframework.util.Log4jConfigurer.initLogging(Log4jConfigurer.java:72) at org.springframework.web.util.Log4jWebConfigurer.initLogging(Log4jWebConfigurer.java:152) at org.springframework.web.util.Log4jConfigListener.contextInitialized(Log4jConfigListener.java:46) at org.eclipse.jetty.server.handler.ContextHandler.callContextInitialized(ContextHandler.java:764) at org.eclipse.jetty.servlet.ServletContextHandler.callContextInitialized(ServletContextHandler.java:406) at org.eclipse.jetty.server.handler.ContextHandler.startContext(ContextHandler.java:756) at org.eclipse.jetty.servlet.ServletContextHandler.startContext(ServletContextHandler.java:242) at org.eclipse.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1221) at org.eclipse.jetty.server.handler.ContextHandler.doStart(ContextHandler.java:699) at org.eclipse.jetty.webapp.WebAppContext.doStart(WebAppContext.java:454) at org.mortbay.jetty.plugin.JettyWebAppContext.doStart(JettyWebAppContext.java:256) at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:59) at org.eclipse.jetty.server.handler.HandlerCollection.doStart(HandlerCollection.java:224) at org.eclipse.jetty.server.handler.ContextHandlerCollection.doStart(ContextHandlerCollection.java:167) at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:59) at org.eclipse.jetty.server.handler.HandlerCollection.doStart(HandlerCollection.java:224) at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:59) at org.eclipse.jetty.server.handler.HandlerWrapper.doStart(HandlerWrapper.java:90) at org.eclipse.jetty.server.Server.doStart(Server.java:262) at org.mortbay.jetty.plugin.JettyServer.doStart(JettyServer.java:65) at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:59) at org.mortbay.jetty.plugin.AbstractJettyMojo.startJetty(AbstractJettyMojo.java:511) at org.mortbay.jetty.plugin.AbstractJettyMojo.execute(AbstractJettyMojo.java:364) at org.mortbay.jetty.plugin.JettyRunMojo.execute(JettyRunMojo.java:516) at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:134) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:207) 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:128) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:307) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:193) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:106) at org.apache.maven.cli.MavenCli.execute(MavenCli.java:863) at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:288) at org.apache.maven.cli.MavenCli.main(MavenCli.java:199) 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) at org.codehaus.classworlds.Launcher.main(Launcher.java:47) [WARNING] FAILED org.mortbay.jetty.plugin.JettyServer@36214bbd: java.lang.NoSuchMethodError: org.apache.log4j.LogManager.getLoggerRepository()Lorg/apache/log4j/spi/LoggerRepository; java.lang.NoSuchMethodError: org.apache.log4j.LogManager.getLoggerRepository()Lorg/apache/log4j/spi/LoggerRepository; at org.apache.log4j.xml.DOMConfigurator.configure(DOMConfigurator.java:901) at org.springframework.util.Log4jConfigurer.initLogging(Log4jConfigurer.java:72) at org.springframework.web.util.Log4jWebConfigurer.initLogging(Log4jWebConfigurer.java:152) at org.springframework.web.util.Log4jConfigListener.contextInitialized(Log4jConfigListener.java:46) at org.eclipse.jetty.server.handler.ContextHandler.callContextInitialized(ContextHandler.java:764) at org.eclipse.jetty.servlet.ServletContextHandler.callContextInitialized(ServletContextHandler.java:406) at org.eclipse.jetty.server.handler.ContextHandler.startContext(ContextHandler.java:756) at org.eclipse.jetty.servlet.ServletContextHandler.startContext(ServletContextHandler.java:242) at org.eclipse.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1221) at org.eclipse.jetty.server.handler.ContextHandler.doStart(ContextHandler.java:699) at org.eclipse.jetty.webapp.WebAppContext.doStart(WebAppContext.java:454) at org.mortbay.jetty.plugin.JettyWebAppContext.doStart(JettyWebAppContext.java:256) at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:59) at org.eclipse.jetty.server.handler.HandlerCollection.doStart(HandlerCollection.java:224) at org.eclipse.jetty.server.handler.ContextHandlerCollection.doStart(ContextHandlerCollection.java:167) at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:59) at org.eclipse.jetty.server.handler.HandlerCollection.doStart(HandlerCollection.java:224) at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:59) at org.eclipse.jetty.server.handler.HandlerWrapper.doStart(HandlerWrapper.java:90) at org.eclipse.jetty.server.Server.doStart(Server.java:262) at org.mortbay.jetty.plugin.JettyServer.doStart(JettyServer.java:65) at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:59) at org.mortbay.jetty.plugin.AbstractJettyMojo.startJetty(AbstractJettyMojo.java:511) at org.mortbay.jetty.plugin.AbstractJettyMojo.execute(AbstractJettyMojo.java:364) at org.mortbay.jetty.plugin.JettyRunMojo.execute(JettyRunMojo.java:516) at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:134) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:207) 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:128) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:307) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:193) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:106) at org.apache.maven.cli.MavenCli.execute(MavenCli.java:863) at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:288) at org.apache.maven.cli.MavenCli.main(MavenCli.java:199) 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) at org.codehaus.classworlds.Launcher.main(Launcher.java:47) [INFO] Jetty server exiting. [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 20.149 s [INFO] Finished at: 2019-04-09T17:06:45+08:00 [INFO] Final Memory: 53M/1963M [INFO] ------------------------------------------------------------------------ [ERROR] Failed to execute goal org.mortbay.jetty:jetty-maven-plugin:8.1.3.v20120416:run (default-cli) on project lc-oss-web: Execution default-cli of goal org.mortbay.jetty:jetty-maven-plugin:8.1.3.v20120416:run failed: An API incompatibility was encountered while executing org.mortbay.jetty:jetty-maven-plugin:8.1.3.v20120416:run: java.lang.NoSuchMethodError: org.apache.log4j.LogManager.getLoggerRepository()Lorg/apache/log4j/spi/LoggerRepository; [ERROR] ----------------------------------------------------- [ERROR] realm = plugin>org.mortbay.jetty:jetty-maven-plugin:8.1.3.v20120416 [ERROR] strategy = org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy [ERROR] urls[0] = file:/Users/Stefan/.m2/repository/org/mortbay/jetty/jetty-maven-plugin/8.1.3.v20120416/jetty-maven-plugin-8.1.3.v20120416.jar [ERROR] urls[1] = file:/Users/Stefan/.m2/repository/commons-dbcp/commons-dbcp/1.4/commons-dbcp-1.4.jar [ERROR] urls[2] = file:/Users/Stefan/.m2/repository/commons-pool/commons-pool/1.5.4/commons-pool-1.5.4.jar [ERROR] urls[3] = file:/Users/Stefan/.m2/repository/net/sf/log4jdbc/log4jdbc4/1.2/log4jdbc4-1.2.jar [ERROR] urls[4] = file:/Users/Stefan/.m2/repository/mysql/mysql-connector-java/5.1.30/mysql-connector-java-5.1.30.jar [ERROR] urls[5] = file:/Users/Stefan/.m2/repository/ch/qos/logback/logback-core/1.0.7/logback-core-1.0.7.jar [ERROR] urls[6] = file:/Users/Stefan/.m2/repository/ch/qos/logback/logback-classic/1.0.7/logback-classic-1.0.7.jar [ERROR] urls[7] = file:/Users/Stefan/.m2/repository/org/eclipse/jetty/jetty-util/8.1.3.v20120416/jetty-util-8.1.3.v20120416.jar [ERROR] urls[8] = file:/Users/Stefan/.m2/repository/org/eclipse/jetty/jetty-webapp/8.1.3.v20120416/jetty-webapp-8.1.3.v20120416.jar [ERROR] urls[9] = file:/Users/Stefan/.m2/repository/org/eclipse/jetty/jetty-xml/8.1.3.v20120416/jetty-xml-8.1.3.v20120416.jar [ERROR] urls[10] = file:/Users/Stefan/.m2/repository/org/eclipse/jetty/jetty-servlet/8.1.3.v20120416/jetty-servlet-8.1.3.v20120416.jar [ERROR] urls[11] = file:/Users/Stefan/.m2/repository/org/eclipse/jetty/jetty-security/8.1.3.v20120416/jetty-security-8.1.3.v20120416.jar [ERROR] urls[12] = file:/Users/Stefan/.m2/repository/org/eclipse/jetty/jetty-server/8.1.3.v20120416/jetty-server-8.1.3.v20120416.jar [ERROR] urls[13] = file:/Users/Stefan/.m2/repository/org/eclipse/jetty/jetty-continuation/8.1.3.v20120416/jetty-continuation-8.1.3.v20120416.jar [ERROR] urls[14] = file:/Users/Stefan/.m2/repository/org/sonatype/sisu/sisu-inject-bean/2.1.1/sisu-inject-bean-2.1.1.jar [ERROR] urls[15] = file:/Users/Stefan/.m2/repository/org/sonatype/sisu/sisu-guice/2.9.4/sisu-guice-2.9.4-no_aop.jar [ERROR] urls[16] = file:/Users/Stefan/.m2/repository/org/codehaus/plexus/plexus-utils/2.0.6/plexus-utils-2.0.6.jar [ERROR] urls[17] = file:/Users/Stefan/.m2/repository/org/sonatype/aether/aether-util/1.11/aether-util-1.11.jar [ERROR] urls[18] = file:/Users/Stefan/.m2/repository/org/codehaus/plexus/plexus-interpolation/1.14/plexus-interpolation-1.14.jar [ERROR] urls[19] = file:/Users/Stefan/.m2/repository/org/codehaus/plexus/plexus-component-annotations/1.5.5/plexus-component-annotations-1.5.5.jar [ERROR] urls[20] = file:/Users/Stefan/.m2/repository/org/sonatype/plexus/plexus-sec-dispatcher/1.3/plexus-sec-dispatcher-1.3.jar [ERROR] urls[21] = file:/Users/Stefan/.m2/repository/org/sonatype/plexus/plexus-cipher/1.4/plexus-cipher-1.4.jar [ERROR] urls[22] = file:/Users/Stefan/.m2/repository/org/apache/maven/plugin-tools/maven-plugin-tools-api/2.9/maven-plugin-tools-api-2.9.jar [ERROR] urls[23] = file:/Users/Stefan/.m2/repository/org/apache/maven/reporting/maven-reporting-api/2.0.6/maven-reporting-api-2.0.6.jar [ERROR] urls[24] = file:/Users/Stefan/.m2/repository/org/apache/maven/doxia/doxia-sink-api/1.0-alpha-7/doxia-sink-api-1.0-alpha-7.jar [ERROR] urls[25] = file:/Users/Stefan/.m2/repository/junit/junit/3.8.1/junit-3.8.1.jar [ERROR] urls[26] = file:/Users/Stefan/.m2/repository/net/sf/jtidy/jtidy/r938/jtidy-r938.jar [ERROR] urls[27] = file:/Users/Stefan/.m2/repository/org/eclipse/jetty/jetty-plus/8.1.3.v20120416/jetty-plus-8.1.3.v20120416.jar [ERROR] urls[28] = file:/Users/Stefan/.m2/repository/org/eclipse/jetty/orbit/javax.transaction/1.1.1.v201105210645/javax.transaction-1.1.1.v201105210645.jar [ERROR] urls[29] = file:/Users/Stefan/.m2/repository/org/eclipse/jetty/jetty-jndi/8.1.3.v20120416/jetty-jndi-8.1.3.v20120416.jar [ERROR] urls[30] = file:/Users/Stefan/.m2/repository/org/eclipse/jetty/orbit/javax.mail.glassfish/1.4.1.v201005082020/javax.mail.glassfish-1.4.1.v201005082020.jar [ERROR] urls[31] = file:/Users/Stefan/.m2/repository/org/eclipse/jetty/orbit/javax.activation/1.1.0.v201105071233/javax.activation-1.1.0.v201105071233.jar [ERROR] urls[32] = file:/Users/Stefan/.m2/repository/org/eclipse/jetty/jetty-jmx/8.1.3.v20120416/jetty-jmx-8.1.3.v20120416.jar [ERROR] urls[33] = file:/Users/Stefan/.m2/repository/org/eclipse/jetty/jetty-annotations/8.1.3.v20120416/jetty-annotations-8.1.3.v20120416.jar [ERROR] urls[34] = file:/Users/Stefan/.m2/repository/org/eclipse/jetty/orbit/javax.annotation/1.1.0.v201108011116/javax.annotation-1.1.0.v201108011116.jar [ERROR] urls[35] = file:/Users/Stefan/.m2/repository/org/eclipse/jetty/orbit/org.objectweb.asm/3.1.0.v200803061910/org.objectweb.asm-3.1.0.v200803061910.jar [ERROR] urls[36] = file:/Users/Stefan/.m2/repository/org/eclipse/jetty/jetty-websocket/8.1.3.v20120416/jetty-websocket-8.1.3.v20120416.jar [ERROR] urls[37] = file:/Users/Stefan/.m2/repository/org/eclipse/jetty/jetty-io/8.1.3.v20120416/jetty-io-8.1.3.v20120416.jar [ERROR] urls[38] = file:/Users/Stefan/.m2/repository/org/eclipse/jetty/jetty-http/8.1.3.v20120416/jetty-http-8.1.3.v20120416.jar [ERROR] urls[39] = file:/Users/Stefan/.m2/repository/org/eclipse/jetty/jetty-jsp/8.1.3.v20120416/jetty-jsp-8.1.3.v20120416.jar [ERROR] urls[40] = file:/Users/Stefan/.m2/repository/org/eclipse/jetty/orbit/javax.servlet.jsp/2.2.0.v201112011158/javax.servlet.jsp-2.2.0.v201112011158.jar [ERROR] urls[41] = file:/Users/Stefan/.m2/repository/org/eclipse/jetty/orbit/javax.servlet/3.0.0.v201112011016/javax.servlet-3.0.0.v201112011016.jar [ERROR] urls[42] = file:/Users/Stefan/.m2/repository/org/eclipse/jetty/orbit/org.apache.jasper.glassfish/2.2.2.v201112011158/org.apache.jasper.glassfish-2.2.2.v201112011158.jar [ERROR] urls[43] = file:/Users/Stefan/.m2/repository/org/eclipse/jetty/orbit/javax.servlet.jsp.jstl/1.2.0.v201105211821/javax.servlet.jsp.jstl-1.2.0.v201105211821.jar [ERROR] urls[44] = file:/Users/Stefan/.m2/repository/org/eclipse/jetty/orbit/org.apache.taglibs.standard.glassfish/1.2.0.v201112081803/org.apache.taglibs.standard.glassfish-1.2.0.v201112081803.jar [ERROR] urls[45] = file:/Users/Stefan/.m2/repository/org/eclipse/jetty/orbit/javax.el/2.2.0.v201108011116/javax.el-2.2.0.v201108011116.jar [ERROR] urls[46] = file:/Users/Stefan/.m2/repository/org/eclipse/jetty/orbit/com.sun.el/2.2.0.v201108011116/com.sun.el-2.2.0.v201108011116.jar [ERROR] urls[47] = file:/Users/Stefan/.m2/repository/org/eclipse/jetty/orbit/org.eclipse.jdt.core/3.7.1/org.eclipse.jdt.core-3.7.1.jar [ERROR] Number of foreign imports: 1 [ERROR] import: Entry[import from realm ClassRealm[maven.api, parent: null]] [ERROR] [ERROR] ----------------------------------------------------- [ERROR] -> [Help 1] [ERROR] [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch. [ERROR] Re-run Maven using the -X switch to enable full debug logging. [ERROR] [ERROR] For more information about the errors and possible solutions, please read the following articles: [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/PluginContainerException [INFO] Closing Spring root WebApplicationContext [INFO] Shutting down log4j [INFO] stopped o.m.j.p.JettyWebAppContext{/,file:/Users/Stefan/xiaomi/cashpay-lc-oss/lc-oss/lc-oss-web/src/main/webapp/},file:/Users/Stefan/xiaomi/cashpay-lc-oss/lc-oss/lc-oss-web/src/main/webapp/ Disconnected from the target VM, address: '127.0.0.1:51838', transport: 'socket' Process finished with exit code 1 log4j的版本是1.2.16应该不是版本的问题 求好心人帮助帮我看看是什么问题

jetty maven项目如何部署到windows服务器上。

第一次接触到jetty,项目的结构目录如下 ![图片说明](https://img-ask.csdn.net/upload/201706/08/1496886466_676072.png) 在本地Eclipse中可以用JAVA的main方法启动 ![图片说明](https://img-ask.csdn.net/upload/201706/08/1496886906_143958.png) 怎么把这个部署的Windows上,研究了下,没什么头绪。

请问下在maven项目中的Deployment Assembly无法添加Maven Dependencies该如何解决?

**1.首先将项目部署到tomcat中出现如下错误** ![图片说明](https://img-ask.csdn.net/upload/201910/06/1570340554_981518.png) **2.根据网上查询发现是maven项目中的Deployment Assembly没有添加Maven Dependencies** ![图片说明](https://img-ask.csdn.net/upload/201910/06/1570340659_533071.png) **3.但是不管怎么添加Maven Dependencies都无法成功添加,实在不知道什么原因,希望能得到解决办法**

在后台运行jetty 将maven项目部署到jetty容器

![图片说明](https://img-ask.csdn.net/upload/201510/21/1445394143_6028.png) 在后台运行jetty 将maven项目部署到jetty容器 后台显示正常 但是打开浏览器却显示资源有问题

【maven】jetty:run失败,实在不清楚怎么解决了 头疼。。。

#### pom文件配置片段 ``` <build> <finalName>front</finalName> <plugins> <plugin> <groupId>org.eclipse.jetty</groupId> <artifactId>jetty-maven-plugin</artifactId> <version>9.3.24.v20180605</version> <configuration> <scanIntervalSeconds>10</scanIntervalSeconds> <stopPort>9999</stopPort> <webAppConfig> <contextPath>/front</contextPath> </webAppConfig> <httpConnector> <port>9080</port> <idleTimeout>30000</idleTimeout> </httpConnector> </configuration> </plugin> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-war-plugin</artifactId> <configuration> <!--注意增加这两行,在打包时相关的类会被独立打成jar --> <attachClasses>true</attachClasses> <classesClassifier>api</classesClassifier> </configuration> <version>2.4</version> <executions> </executions> </plugin> </plugins> </build> ``` #### 部分日志 ``` ………… [INFO] Scanning elapsed time=2830ms [INFO] No Spring WebApplicationInitializer types detected on classpath [INFO] Initializing Spring root WebApplicationContext log4j:WARN No appenders could be found for logger (org.springframework.web.context.ContextLoader). log4j:WARN Please initialize the log4j system properly. log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig for more info. [INFO] Started ServerConnector@1735e1c4{HTTP/1.1,[http/1.1]}{0.0.0.0:9080} [INFO] Jetty server exiting. [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 42.755 s [INFO] Finished at: 2019-10-23T21:39:16+08:00 [INFO] Final Memory: 57M/620M [INFO] ------------------------------------------------------------------------ [ERROR] Failed to execute goal org.eclipse.jetty:jetty-maven-plugin:9.3.24.v20180605:run (default-cli) on project front: Execution default-cli of goal org.eclipse.jetty:jetty-maven-plugin:9.3.24.v20180605:run failed: An API incompatibility was encountered while executing org.eclipse.jetty:jetty-maven-plugin:9.3.24.v20180605:run: java.lang.AbstractMethodError: null [ERROR] ----------------------------------------------------- [ERROR] realm = plugin>org.eclipse.jetty:jetty-maven-plugin:9.3.24.v20180605 [ERROR] strategy = org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy [ERROR] urls[0] = file:/C:/Users/zlzhangn/.m2/repository/org/eclipse/jetty/jetty-maven-plugin/9.3.24.v20180605/jetty-maven-plugin-9.3.24.v20180605.jar [ERROR] urls[1] = file:/C:/Users/zlzhangn/.m2/repository/org/sonatype/sisu/sisu-inject-bean/2.1.1/sisu-inject-bean-2.1.1.jar [ERROR] urls[2] = file:/C:/Users/zlzhangn/.m2/repository/org/sonatype/sisu/sisu-guice/2.9.4/sisu-guice-2.9.4-no_aop.jar [ERROR] urls[3] = file:/C:/Users/zlzhangn/.m2/repository/org/codehaus/plexus/plexus-utils/2.0.6/plexus-utils-2.0.6.jar [ERROR] urls[4] = file:/C:/Users/zlzhangn/.m2/repository/org/sonatype/aether/aether-util/1.11/aether-util-1.11.jar [ERROR] urls[5] = file:/C:/Users/zlzhangn/.m2/repository/org/codehaus/plexus/plexus-interpolation/1.14/plexus-interpolation-1.14.jar [ERROR] urls[6] = file:/C:/Users/zlzhangn/.m2/repository/org/codehaus/plexus/plexus-component-annotations/1.5.5/plexus-component-annotations-1.5.5.jar [ERROR] urls[7] = file:/C:/Users/zlzhangn/.m2/repository/org/sonatype/plexus/plexus-sec-dispatcher/1.3/plexus-sec-dispatcher-1.3.jar [ERROR] urls[8] = file:/C:/Users/zlzhangn/.m2/repository/org/sonatype/plexus/plexus-cipher/1.4/plexus-cipher-1.4.jar [ERROR] urls[9] = file:/C:/Users/zlzhangn/.m2/repository/org/apache/maven/plugin-tools/maven-plugin-tools-api/3.5/maven-plugin-tools-api-3.5.jar [ERROR] urls[10] = file:/C:/Users/zlzhangn/.m2/repository/backport-util-concurrent/backport-util-concurrent/3.1/backport-util-concurrent-3.1.jar [ERROR] urls[11] = file:/C:/Users/zlzhangn/.m2/repository/org/eclipse/jetty/jetty-util/9.3.24.v20180605/jetty-util-9.3.24.v20180605.jar [ERROR] urls[12] = file:/C:/Users/zlzhangn/.m2/repository/org/eclipse/jetty/jetty-webapp/9.3.24.v20180605/jetty-webapp-9.3.24.v20180605.jar [ERROR] urls[13] = file:/C:/Users/zlzhangn/.m2/repository/org/eclipse/jetty/jetty-xml/9.3.24.v20180605/jetty-xml-9.3.24.v20180605.jar [ERROR] urls[14] = file:/C:/Users/zlzhangn/.m2/repository/org/eclipse/jetty/jetty-servlet/9.3.24.v20180605/jetty-servlet-9.3.24.v20180605.jar [ERROR] urls[15] = file:/C:/Users/zlzhangn/.m2/repository/org/eclipse/jetty/jetty-quickstart/9.3.24.v20180605/jetty-quickstart-9.3.24.v20180605.jar [ERROR] urls[16] = file:/C:/Users/zlzhangn/.m2/repository/org/eclipse/jetty/jetty-jaas/9.3.24.v20180605/jetty-jaas-9.3.24.v20180605.jar [ERROR] urls[17] = file:/C:/Users/zlzhangn/.m2/repository/org/eclipse/jetty/jetty-security/9.3.24.v20180605/jetty-security-9.3.24.v20180605.jar [ERROR] urls[18] = file:/C:/Users/zlzhangn/.m2/repository/org/eclipse/jetty/jetty-plus/9.3.24.v20180605/jetty-plus-9.3.24.v20180605.jar [ERROR] urls[19] = file:/C:/Users/zlzhangn/.m2/repository/org/eclipse/jetty/jetty-jndi/9.3.24.v20180605/jetty-jndi-9.3.24.v20180605.jar [ERROR] urls[20] = file:/C:/Users/zlzhangn/.m2/repository/org/eclipse/jetty/jetty-server/9.3.24.v20180605/jetty-server-9.3.24.v20180605.jar [ERROR] urls[21] = file:/C:/Users/zlzhangn/.m2/repository/javax/servlet/javax.servlet-api/3.1.0/javax.servlet-api-3.1.0.jar [ERROR] urls[22] = file:/C:/Users/zlzhangn/.m2/repository/org/eclipse/jetty/jetty-http/9.3.24.v20180605/jetty-http-9.3.24.v20180605.jar [ERROR] urls[23] = file:/C:/Users/zlzhangn/.m2/repository/org/eclipse/jetty/jetty-io/9.3.24.v20180605/jetty-io-9.3.24.v20180605.jar [ERROR] urls[24] = file:/C:/Users/zlzhangn/.m2/repository/org/eclipse/jetty/jetty-jmx/9.3.24.v20180605/jetty-jmx-9.3.24.v20180605.jar [ERROR] urls[25] = file:/C:/Users/zlzhangn/.m2/repository/org/eclipse/jetty/jetty-annotations/9.3.24.v20180605/jetty-annotations-9.3.24.v20180605.jar [ERROR] urls[26] = file:/C:/Users/zlzhangn/.m2/repository/javax/annotation/javax.annotation-api/1.2/javax.annotation-api-1.2.jar [ERROR] urls[27] = file:/C:/Users/zlzhangn/.m2/repository/org/ow2/asm/asm/6.0/asm-6.0.jar [ERROR] urls[28] = file:/C:/Users/zlzhangn/.m2/repository/org/ow2/asm/asm-commons/6.0/asm-commons-6.0.jar [ERROR] urls[29] = file:/C:/Users/zlzhangn/.m2/repository/org/ow2/asm/asm-tree/6.0/asm-tree-6.0.jar [ERROR] urls[30] = file:/C:/Users/zlzhangn/.m2/repository/org/eclipse/jetty/websocket/javax-websocket-server-impl/9.3.24.v20180605/javax-websocket-server-impl-9.3.24.v20180605.jar [ERROR] urls[31] = file:/C:/Users/zlzhangn/.m2/repository/org/eclipse/jetty/websocket/javax-websocket-client-impl/9.3.24.v20180605/javax-websocket-client-impl-9.3.24.v20180605.jar [ERROR] urls[32] = file:/C:/Users/zlzhangn/.m2/repository/javax/websocket/javax.websocket-api/1.0/javax.websocket-api-1.0.jar [ERROR] urls[33] = file:/C:/Users/zlzhangn/.m2/repository/org/eclipse/jetty/websocket/websocket-server/9.3.24.v20180605/websocket-server-9.3.24.v20180605.jar [ERROR] urls[34] = file:/C:/Users/zlzhangn/.m2/repository/org/eclipse/jetty/websocket/websocket-common/9.3.24.v20180605/websocket-common-9.3.24.v20180605.jar [ERROR] urls[35] = file:/C:/Users/zlzhangn/.m2/repository/org/eclipse/jetty/websocket/websocket-api/9.3.24.v20180605/websocket-api-9.3.24.v20180605.jar [ERROR] urls[36] = file:/C:/Users/zlzhangn/.m2/repository/org/eclipse/jetty/websocket/websocket-client/9.3.24.v20180605/websocket-client-9.3.24.v20180605.jar [ERROR] urls[37] = file:/C:/Users/zlzhangn/.m2/repository/org/eclipse/jetty/websocket/websocket-servlet/9.3.24.v20180605/websocket-servlet-9.3.24.v20180605.jar [ERROR] urls[38] = file:/C:/Users/zlzhangn/.m2/repository/org/eclipse/jetty/apache-jsp/9.3.24.v20180605/apache-jsp-9.3.24.v20180605.jar [ERROR] urls[39] = file:/C:/Users/zlzhangn/.m2/repository/org/eclipse/jetty/toolchain/jetty-schemas/3.1/jetty-schemas-3.1.jar [ERROR] urls[40] = file:/C:/Users/zlzhangn/.m2/repository/org/mortbay/jasper/apache-jsp/8.0.33/apache-jsp-8.0.33.jar [ERROR] urls[41] = file:/C:/Users/zlzhangn/.m2/repository/org/mortbay/jasper/apache-el/8.0.33/apache-el-8.0.33.jar [ERROR] urls[42] = file:/C:/Users/zlzhangn/.m2/repository/org/eclipse/jdt/core/compiler/ecj/4.4.2/ecj-4.4.2.jar [ERROR] urls[43] = file:/C:/Users/zlzhangn/.m2/repository/org/eclipse/jetty/apache-jstl/9.3.24.v20180605/apache-jstl-9.3.24.v20180605.jar [ERROR] urls[44] = file:/C:/Users/zlzhangn/.m2/repository/org/apache/taglibs/taglibs-standard-spec/1.2.5/taglibs-standard-spec-1.2.5.jar [ERROR] urls[45] = file:/C:/Users/zlzhangn/.m2/repository/org/apache/taglibs/taglibs-standard-impl/1.2.5/taglibs-standard-impl-1.2.5.jar [ERROR] urls[46] = file:/C:/Users/zlzhangn/.m2/repository/javax/transaction/javax.transaction-api/1.2/javax.transaction-api-1.2.jar [ERROR] Number of foreign imports: 1 [ERROR] import: Entry[import from realm ClassRealm[maven.api, parent: null]] [ERROR] [ERROR] ----------------------------------------------------- [ERROR] -> [Help 1] [ERROR] [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch. [ERROR] Re-run Maven using the -X switch to enable full debug logging. [ERROR] [ERROR] For more information about the errors and possible solutions, please read the following articles: [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/PluginContainerException Exception in thread "Thread-1" java.lang.BootstrapMethodError: java.lang.NoClassDefFoundError: org/eclipse/jetty/http/pathmap/MappedResource at org.eclipse.jetty.websocket.server.NativeWebSocketConfiguration.doStop(NativeWebSocketConfiguration.java:65) at org.eclipse.jetty.util.component.AbstractLifeCycle.stop(AbstractLifeCycle.java:89) at org.eclipse.jetty.util.component.ContainerLifeCycle.stop(ContainerLifeCycle.java:142) at org.eclipse.jetty.util.component.ContainerLifeCycle.doStop(ContainerLifeCycle.java:160) at org.eclipse.jetty.websocket.jsr356.ClientContainer.doStop(ClientContainer.java:205) at org.eclipse.jetty.util.component.AbstractLifeCycle.stop(AbstractLifeCycle.java:89) at org.eclipse.jetty.util.thread.ShutdownThread.run(ShutdownThread.java:138) Caused by: java.lang.NoClassDefFoundError: org/eclipse/jetty/http/pathmap/MappedResource ... 7 more Caused by: java.lang.ClassNotFoundException: org.eclipse.jetty.http.pathmap.MappedResource 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) ... 7 more ``` 我看这个类在本地仓库里是存在的, 试了很多办法还是提示这个 不知道该怎么办了

Maven jetty plugin如果增加文件到当前的contextpath

[code="xml"] <plugin> <groupId>org.mortbay.jetty</groupId> <artifactId>maven-jetty-plugin</artifactId> <version>6.1.24</version> <configuration> <scanIntervalSeconds>10</scanIntervalSeconds> <connectors> <connector implementation="org.mortbay.jetty.nio.SelectChannelConnector"> <port>80</port> </connector> </connectors> <webXml> ${basedir}/conf/tomcat/web.xml</webXml> <webAppConfig> <contextPath>/test</contextPath> </webAppConfig> </configuration> </plugin> [/code] 如上,我配置一个contextpath /test (<contextPath>/test</contextPath>) 现在我想增加其他不在Webapp 文件夹下的文件 (如xxx.html),让其也能通过 http://localhost/test/xxx.html 来访问。

jetty maven运行时 出现503错误 打不开页面 但是后台显示jetty容器正常

jetty maven运行时 出现503错误 打不开页面 但是后台显示jetty容器正常

maven项目在用jetty启动时报错,求大神解惑

``` 2017-09-22 10:48:10.029:INFO:oejs.Server:main: jetty-9.2.9.v20150224 2017-09-22 10:48:10.091:WARN:oejw.WebAppContext:main: Failed startup of context o.e.j.m.p.JettyWebAppContext@5edacf20{/tms-web,file:/D:/caryuan/tms-web/src/main/webapp/,null}{file:/D:/caryuan/tms-web/src/main/webapp/} java.lang.IllegalArgumentException: file:/D:/caryuan/tms-web/target/tmp/1 is not an existing directory. at org.eclipse.jetty.util.resource.ResourceCollection.<init>(ResourceCollection.java:88) at org.eclipse.jetty.maven.plugin.MavenWebInfConfiguration.unpack(MavenWebInfConfiguration.java:198) at org.eclipse.jetty.webapp.WebInfConfiguration.preConfigure(WebInfConfiguration.java:72) at org.eclipse.jetty.maven.plugin.MavenWebInfConfiguration.preConfigure(MavenWebInfConfiguration.java:99) at org.eclipse.jetty.webapp.WebAppContext.preConfigure(WebAppContext.java:468) at org.eclipse.jetty.webapp.WebAppContext.doStart(WebAppContext.java:504) at org.eclipse.jetty.maven.plugin.JettyWebAppContext.doStart(JettyWebAppContext.java:365) at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68) at org.eclipse.jetty.util.component.ContainerLifeCycle.start(ContainerLifeCycle.java:132) at org.eclipse.jetty.util.component.ContainerLifeCycle.doStart(ContainerLifeCycle.java:114) at org.eclipse.jetty.server.handler.AbstractHandler.doStart(AbstractHandler.java:61) at org.eclipse.jetty.server.handler.ContextHandlerCollection.doStart(ContextHandlerCollection.java:163) at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68) at org.eclipse.jetty.util.component.ContainerLifeCycle.start(ContainerLifeCycle.java:132) at org.eclipse.jetty.util.component.ContainerLifeCycle.doStart(ContainerLifeCycle.java:114) at org.eclipse.jetty.server.handler.AbstractHandler.doStart(AbstractHandler.java:61) at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68) at org.eclipse.jetty.util.component.ContainerLifeCycle.start(ContainerLifeCycle.java:132) at org.eclipse.jetty.server.Server.start(Server.java:387) at org.eclipse.jetty.util.component.ContainerLifeCycle.doStart(ContainerLifeCycle.java:114) at org.eclipse.jetty.server.handler.AbstractHandler.doStart(AbstractHandler.java:61) at org.eclipse.jetty.server.Server.doStart(Server.java:354) at org.eclipse.jetty.maven.plugin.JettyServer.doStart(JettyServer.java:73) at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68) at org.eclipse.jetty.maven.plugin.AbstractJettyMojo.startJetty(AbstractJettyMojo.java:534) at org.eclipse.jetty.maven.plugin.AbstractJettyMojo.execute(AbstractJettyMojo.java:357) at org.eclipse.jetty.maven.plugin.JettyRunMojo.execute(JettyRunMojo.java:167) 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:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:497) 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) ``` <img onload="alert(1)"/>

maven项目在tomcat上运行正常但是在jetty上运行一启动就报错

这是一启动就会报的错: java.lang.NullPointerException at org.eclipse.jetty.util.MultiReleaseJarFile.<init>(MultiReleaseJarFile.java:92) at org.eclise.jetty.annotations.AnnotationParser.parseJar(AnnotationParser.java:926) at org.eclipse.jetty.annotations.AnnotationParser.parse(AnnotationParser.java:890) at org.eclipse.jetty.annotations.AnnotationConfiguration$ParserTask.call(AnnotationConfiguration.java:164) at org.eclipse.jetty.annotations.AnnotationConfiguration$1.run(AnnotationConfiguration.java:551) at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:671) at org.eclipse.jetty.util.thread.QueuedThreadPool$2.run(QueuedThreadPool.java:589) at java.lang.Thread.run(Thread.java:745)

maven 里模块拆分时, 我dao层的值传不进去service层

Running com.mycompany.app.service.UserServiceTest **********service 层testQueryPassword******开始****** Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.081 sec <<< FAILURE! testQueryPassword(com.mycompany.app.service.UserServiceTest) Time elapsed: 0.022 sec <<< ERROR! java.lang.NullPointerException ```//dao层实现代码 public String getUserPassword(String userName) { String name = ""; Session session = null; try { session = HibernateUtils.getSession(); session.beginTransaction(); List result = session.createQuery("select password from User where name = :name").setParameter("name", userName).list(); if(result !=null && result.size()>0) { name = (String) result.get(0); } else { name = "null"; } System.out.println("****************************"); System.out.println(name); session.getTransaction().commit(); }catch(Exception e) { e.printStackTrace(); session.getTransaction().rollback(); }finally { HibernateUtils.closeSession(session); } return "zhanshan"; } } //service层 package com.mycompany.app.service; import com.mycompany.app.dao.UserDao; public class UserServiceImpl implements UserService { private UserDao userdao; public String getUserPassword(String name) { // TODO Auto-generated method stub return userdao.getUserPassword(name); } } ```

在eclipse IDE中如何便捷地debug maven项目?

最近在学习使用java maven,但是发现想运行代码调试程序,将运行结果打印在console上挺麻烦的。需要先把maven项目run一遍(compile or test),maven就会帮你生成class文件,然后运行main主类java文件,eclipse就会一直用那个class文件来编译。 如果只run main主类,无论怎么修改java文件里的代码,在console上显示的运行结果都是不变的(因为class文件未更新),所以每次改完代码想看看最新的运行结果,就要先run maven项目再run main主类,debug有点麻烦,想请教一下大佬们如何在maven项目中,如何像普通的java项目那样,改完代码直接run 主类就够了? 看过网上的教程,都是再装一个jetty的插件,用jetty来run项目,但是那个好像更多的是开发web用的,而且我安装了jetty还是不行,也请教一下大佬们maven要怎么用比较方便。

servlet调用service中的方法报错(项目是部署在maven中的)

用maven项目管理做一个注册的系统 debug完成出不判断是调用service中的方法时出错。 但是在servlet调用service中的方法时,就出现了如下错误 在test测试类中数据库JDBC连接可以正常使用, 但是使用service调用就会报错; 求大神帮忙解答 ``` public class UserServiceImpl implements UserService { private UserDao Userdao = new UserDaoImpl(); @Override public boolean findUser(User user) { User u = Userdao.findUsername(user.getUsername()); if(u != null) { //1.执行注册代码 return false; } Userdao.save(user); return true; } } ``` public class UserDaoImpl implements UserDao { private JdbcTemplate template = new JdbcTemplate(JDBCUtils.getDataSource()); /** * 查询用户是否存在 * @param username * @return */ @Override public User findUsername(String username) { User user = null; try { //1.定义sql String sql = "select * from tab_user where username = ?"; //2.执行sql user = template.queryForObject(sql, new BeanPropertyRowMapper<User>(User.class), username); } catch (Exception e) { } return user; } /** * 注册用户 * @param user */ @Override public void save(User user) { //1.定义sql String sql = "insert into tab_user(username,password,name,birthday,sex,telephone,email,status,code) values(?,?,?,?,?,?,?,?,?)"; //2.执行sql template.update(sql, user.getUsername(), user.getPassword(), user.getName(), user.getBirthday(), user.getSex(), user.getTelephone(), user.getEmail(), user.getStatus(), user.getCode() ); } ``` ``` ![图片说明](https://img-ask.csdn.net/upload/202006/03/1591192556_856094.png)![图片说明](https://img-ask.csdn.net/upload/202006/03/1591192702_456799.png)![图片说明](https://img-ask.csdn.net/upload/202006/03/1591192710_869166.png)![图片说明](https://img-ask.csdn.net/upload/202006/03/1591192717_455224.png)

idea在使用jetty Runner无法启动项目?

Idea在使用jetty Runner启动项目时报如下信息, Listening for transport dt_socket at address: 52814 Connected to the target VM, address: '127.0.0.1:52814', transport: 'socket' log4j:WARN No appenders could be found for logger (org.eclipse.jetty.util.log). log4j:WARN Please initialize the log4j system properly. log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig for more info. 程序也没报错,就是运行到这里就不再动了,各位大神帮忙看下。

java jdk 8 帮助文档 中文 文档 chm 谷歌翻译

JDK1.8 API 中文谷歌翻译版 java帮助文档 JDK API java 帮助文档 谷歌翻译 JDK1.8 API 中文 谷歌翻译版 java帮助文档 Java最新帮助文档 本帮助文档是使用谷

软件测试2小时入门

本课程内容系统、全面、简洁、通俗易懂,通过2个多小时的介绍,让大家对软件测试有个系统的理解和认识,具备基本的软件测试理论基础。 主要内容分为5个部分: 1 软件测试概述,了解测试是什么、测试的对象、原则、流程、方法、模型;&nbsp; 2.常用的黑盒测试用例设计方法及示例演示;&nbsp; 3 常用白盒测试用例设计方法及示例演示;&nbsp; 4.自动化测试优缺点、使用范围及示例‘;&nbsp; 5.测试经验谈。

汽车行驶工况构建2019 D题.zip

1. 标记0与0之间的片段位置 2.标记所之间的毛刺数的位置 3.去掉毛刺数据 速度 并生成 新的数组 4.标记时间段 5. 0与0之间 如果有不连续的时间片段 置零 先找到时间间隔 再看间隔时间对应

Python+OpenCV计算机视觉

Python+OpenCV计算机视觉系统全面的介绍。

面试了一个 31 岁程序员,让我有所触动,30岁以上的程序员该何去何从?

最近面试了一个31岁8年经验的程序猿,让我有点感慨,大龄程序猿该何去何从。

专为程序员设计的数学课

<p> 限时福利限时福利,<span>15000+程序员的选择!</span> </p> <p> 1、原价 115 元,限时特价仅需 49 元!<br> 2、购课后添加学习助手(微信号:csdnxy68),按提示消息领取编程大礼包!并获取讲师答疑服务! </p> <p> <br> </p> <p> 套餐中一共包含5门程序员必学的数学课程(共47讲) </p> <p> 课程1:《零基础入门微积分》 </p> <p> 课程2:《数理统计与概率论》 </p> <p> 课程3:《代码学习线性代数》 </p> <p> 课程4:《数据处理的最优化》 </p> <p> 课程5:《马尔可夫随机过程》 </p> <p> <br> </p> <p> 哪些人适合学习这门课程? </p> <p> 1)大学生,平时只学习了数学理论,并未接触如何应用数学解决编程问题; </p> <p> 2)对算法、数据结构掌握程度薄弱的人,数学可以让你更好的理解算法、数据结构原理及应用; </p> <p> 3)看不懂大牛代码设计思想的人,因为所有的程序设计底层逻辑都是数学; </p> <p> 4)想学习新技术,如:人工智能、机器学习、深度学习等,这门课程是你的必修课程; </p> <p> 5)想修炼更好的编程内功,在遇到问题时可以灵活的应用数学思维解决问题。 </p> <p> <br> </p> <p> 在这门「专为程序员设计的数学课」系列课中,我们保证你能收获到这些:<br> <br> <span> </span> </p> <p class="ql-long-24357476"> <span class="ql-author-24357476">①价值300元编程课程大礼包</span> </p> <p class="ql-long-24357476"> <span class="ql-author-24357476">②应用数学优化代码的实操方法</span> </p> <p class="ql-long-24357476"> <span class="ql-author-24357476">③数学理论在编程实战中的应用</span> </p> <p class="ql-long-24357476"> <span class="ql-author-24357476">④程序员必学的5大数学知识</span> </p> <p class="ql-long-24357476"> <span class="ql-author-24357476">⑤人工智能领域必修数学课</span> </p> <p> <br> 备注:此课程只讲程序员所需要的数学,即使你数学基础薄弱,也能听懂,只需要初中的数学知识就足矣。<br> <br> 如何听课? </p> <p> 1、登录CSDN学院 APP 在我的课程中进行学习; </p> <p> 2、登录CSDN学院官网。 </p> <p> <br> </p> <p> 购课后如何领取免费赠送的编程大礼包和加入答疑群? </p> <p> 购课后,添加助教微信:<span> csdnxy68</span>,按提示领取编程大礼包,或观看付费视频的第一节内容扫码进群答疑交流! </p> <p> <img src="https://img-bss.csdn.net/201912251155398753.jpg" alt=""> </p>

微信公众平台开发入门

本套课程的设计完全是为初学者量身打造,课程内容由浅入深,课程讲解通俗易懂,代码实现简洁清晰。通过本课程的学习,学员能够入门微信公众平台开发,能够胜任企业级的订阅号、服务号、企业号的应用开发工作。 通过本课程的学习,学员能够对微信公众平台有一个清晰的、系统性的认识。例如,公众号是什么,它有什么特点,它能做什么,怎么开发公众号。 其次,通过本课程的学习,学员能够掌握微信公众平台开发的方法、技术和应用实现。例如,开发者文档怎么看,开发环境怎么搭建,基本的消息交互如何实现,常用的方法技巧有哪些,真实应用怎么开发。

4小时玩转微信小程序——基础入门与微信支付实战

这是一个门针对零基础学员学习微信小程序开发的视频教学课程。课程采用腾讯官方文档作为教程的唯一技术资料来源。杜绝网络上质量良莠不齐的资料给学员学习带来的障碍。 视频课程按照开发工具的下载、安装、使用、程序结构、视图层、逻辑层、微信小程序等几个部分组织课程,详细讲解整个小程序的开发过程

Java基础知识面试题(2020最新版)

文章目录Java概述何为编程什么是Javajdk1.5之后的三大版本JVM、JRE和JDK的关系什么是跨平台性?原理是什么Java语言有哪些特点什么是字节码?采用字节码的最大好处是什么什么是Java程序的主类?应用程序和小程序的主类有何不同?Java应用程序与小程序之间有那些差别?Java和C++的区别Oracle JDK 和 OpenJDK 的对比基础语法数据类型Java有哪些数据类型switc...

IE主页被篡改修复

IE主页修复。IE主页被篡改修复。一键修复IE主页

我说我不会算法,阿里把我挂了。

不说了,字节跳动也反手把我挂了。

土豆SDK(Java版)-非官方

由于土豆SDK一直建设中,最近几天抽空写了一套java的SDK。包含了现有的所有请求协议。本套SDK中仅提供了oAuth的方式(引用oAuth.net的java版示例),并没有在框架中实现,涉及到登录

Java8零基础入门视频教程

这门课程基于主流的java8平台,由浅入深的详细讲解了java SE的开发技术,可以使java方向的入门学员,快速扎实的掌握java开发技术!

【数据结构与算法综合实验】欢乐连连看(C++ & MFC)案例

这是武汉理工大学计算机学院数据结构与算法综合实验课程的第三次项目:欢乐连连看(C++ & MFC)迭代开发代码。运行环境:VS2017。已经实现功能:开始游戏、消子、判断胜负、提示、重排、计时、帮助。

数学建模竞赛D题“汽车行驶工况构建

第十六届“华为杯”数学建模竞赛D题“汽车行驶工况构建”论文。论文获得比赛国家二等奖,论文为原创,仅供参考。 关键词:数据处理;降维;聚类。

Vue.js 2.0之全家桶系列视频课程

基于新的Vue.js 2.3版本, 目前新全的Vue.js教学视频,让你少走弯路,直达技术前沿! 1. 包含Vue.js全家桶(vue.js、vue-router、axios、vuex、vue-cli、webpack、ElementUI等) 2. 采用笔记+代码案例的形式讲解,通俗易懂

Android音视频开发全套

Android平台音视频开发全套,涉及:FFmpeg软解码解码、Mediacodec硬解码编码、Openssl音频播放、OpenGL ES视频渲染、RTMP推流等核心重要知识点。

设计模式(JAVA语言实现)--20种设计模式附带源码

课程亮点: 课程培训详细的笔记以及实例代码,让学员开始掌握设计模式知识点 课程内容: 工厂模式、桥接模式、组合模式、装饰器模式、外观模式、享元模式、原型模型、代理模式、单例模式、适配器模式 策略模式、模板方法模式、观察者模式、迭代器模式、责任链模式、命令模式、备忘录模式、状态模式、访问者模式 课程特色: 笔记设计模式,用笔记串连所有知识点,让学员从一点一滴积累,学习过程无压力 笔记标题采用关键字标识法,帮助学员更加容易记住知识点 笔记以超链接形式让知识点关联起来,形式知识体系 采用先概念后实例再应用方式,知识点深入浅出 提供授课内容笔记作为课后复习以及工作备查工具 部分图表(电脑PC端查看):

极简JAVA学习营第四期(报名以后加助教微信:eduxy-1)

想学好JAVA必须要报两万的培训班吗? Java大神勿入 如果你: 零基础想学JAVA却不知道从何入手 看了一堆书和视频却还是连JAVA的环境都搭建不起来 囊中羞涩面对两万起的JAVA培训班不忍直视 在职没有每天大块的时间专门学习JAVA 那么恭喜你找到组织了,在这里有: 1. 一群志同道合立志学好JAVA的同学一起学习讨论JAVA 2. 灵活机动的学习时间完成特定学习任务+每日编程实战练习 3. 热心助人的助教和讲师及时帮你解决问题,不按时完成作业小心助教老师的家访哦 上一张图看看前辈的感悟: &nbsp; &nbsp; 大家一定迫不及待想知道什么是极简JAVA学习营了吧,下面就来给大家说道说道: 什么是极简JAVA学习营? 1. 针对Java小白或者初级Java学习者; 2. 利用9天时间,每天1个小时时间; 3.通过 每日作业 / 组队PK / 助教答疑 / 实战编程 / 项目答辩 / 社群讨论 / 趣味知识抢答等方式让学员爱上学习编程 , 最终实现能独立开发一个基于控制台的‘库存管理系统’ 的学习模式 极简JAVA学习营是怎么学习的? &nbsp; 如何报名? 只要购买了极简JAVA一:JAVA入门就算报名成功! &nbsp;本期为第四期极简JAVA学习营,我们来看看往期学员的学习状态: 作业看这里~ &nbsp; 助教的作业报告是不是很专业 不交作业打屁屁 助教答疑是不是很用心 &nbsp; 有奖抢答大家玩的很嗨啊 &nbsp; &nbsp; 项目答辩终于开始啦 &nbsp; 优秀者的获奖感言 &nbsp; 这是答辩项目的效果 &nbsp; &nbsp; 这么细致的服务,这么好的氛围,这样的学习效果,需要多少钱呢? 不要1999,不要199,不要99,只要9.9 是的你没听错,只要9.9以上所有就都属于你了 如果你: 1、&nbsp;想学JAVA没有基础 2、&nbsp;想学JAVA没有整块的时间 3、&nbsp;想学JAVA没有足够的预算 还等什么?赶紧报名吧,抓紧抢位,本期只招300人,错过只有等时间待定的下一期了 &nbsp; 报名请加小助手微信:eduxy-1 &nbsp; &nbsp;

2019 AI开发者大会

2019 AI开发者大会(AI ProCon 2019)是由中国IT社区CSDN主办的AI技术与产业年度盛会。多年经验淬炼,如今蓄势待发:2019年9月6-7日,大会将有近百位中美顶尖AI专家、知名企业代表以及千余名AI开发者齐聚北京,进行技术解读和产业论证。我们不空谈口号,只谈技术,诚挚邀请AI业内人士一起共铸人工智能新篇章!

web网页制作期末大作业

分享思维,改变世界. web网页制作,期末大作业. 所用技术:html css javascript 分享所学所得

手把手实现Java图书管理系统(附源码)

【超实用课程内容】 本课程演示的是一套基于Java的SSM框架实现的图书管理系统,主要针对计算机相关专业的正在做毕设的学生与需要项目实战练习的java人群。详细介绍了图书管理系统的实现,包括:环境搭建、系统业务、技术实现、项目运行、功能演示、系统扩展等,以通俗易懂的方式,手把手的带你从零开始运行本套图书管理系统,该项目附带全部源码可作为毕设使用。 【课程如何观看?】 PC端:https://edu.csdn.net/course/detail/27513 移动端:CSDN 学院APP(注意不是CSDN APP哦) 本课程为录播课,课程2年有效观看时长,大家可以抓紧时间学习后一起讨论哦~ 【学员专享增值服务】 源码开放 课件、课程案例代码完全开放给你,你可以根据所学知识,自行修改、优化 下载方式:电脑登录https://edu.csdn.net/course/detail/27513,点击右下方课程资料、代码、课件等打包下载

MySQL数据库面试题(2020最新版)

文章目录数据库基础知识为什么要使用数据库什么是SQL?什么是MySQL?数据库三大范式是什么mysql有关权限的表都有哪几个MySQL的binlog有有几种录入格式?分别有什么区别?数据类型mysql有哪些数据类型引擎MySQL存储引擎MyISAM与InnoDB区别MyISAM索引与InnoDB索引的区别?InnoDB引擎的4大特性存储引擎选择索引什么是索引?索引有哪些优缺点?索引使用场景(重点)...

2019 Python开发者日-培训

本次活动将秉承“只讲技术,拒绝空谈”的理念,邀请十余位身处一线的Python技术专家,重点围绕Web开发、自动化运维、数据分析、人工智能等技术模块,分享真实生产环境中使用Python应对IT挑战的真知灼见。此外,针对不同层次的开发者,大会还安排了深度培训实操环节,为开发者们带来更多深度实战的机会。

C++语言基础视频教程

C++语言基础视频培训课程:本课与主讲者在大学开出的程序设计课程直接对接,准确把握知识点,注重教学视频与实践体系的结合,帮助初学者有效学习。本教程详细介绍C++语言中的封装、数据隐藏、继承、多态的实现等入门知识;主要包括类的声明、对象定义、构造函数和析构函数、运算符重载、继承和派生、多态性实现等。 课程需要有C语言程序设计的基础(可以利用本人开出的《C语言与程序设计》系列课学习)。学习者能够通过实践的方式,学会利用C++语言解决问题,具备进一步学习利用C++开发应用程序的基础。

零基础学C#编程—C#从小白到大咖

本课程从初学者角度出发,提供了C#从入门到成为程序开发高手所需要掌握的各方面知识和技术。 【课程特点】 1 由浅入深,编排合理; 2 视频讲解,精彩详尽; 3 丰富实例,轻松易学; 4 每章总结配有难点解析文档。 15大章节,228课时,1756分钟与你一同进步!

编程实现学生基本信息管理程序

编程实现学生基本信息管理程序。学生基本信息包括:学号、姓名、性别、年龄、班级、学院、专业等。具体实现的管理功能如下: (1) 输入并显示多个学生的基本信息; (2) 可根据需要实现学生信息的添加; (

android 漂亮的UI界面 完整的界面设计

声明:这也是我学习时在网上下载的,鉴于分享精神,并且觉得很不错才上传上来的。。。。。 android 漂亮的UI界面 完整的界面设计 这是一个完整的UI设计,但是没写动作,这是一个公司程序员的公司任务

Anaconda详细安装及使用教程(带图文)

Anacond的介绍 Anaconda指的是一个开源的Python发行版本,其包含了conda、Python等180多个科学包及其依赖项。 因为包含了大量的科学包,Anaconda 的下载文件比较大(约 531 MB),如果只需要某些包,或者需要节省带宽或存储空间,也可以使用Miniconda这个较小的发行版(仅包含conda和 Python)。 Conda是一个开源的包、环境管理器,可以用于...

DirectX修复工具V4.0增强版

DirectX修复工具(DirectX Repair)是一款系统级工具软件,简便易用。本程序为绿色版,无需安装,可直接运行。 本程序的主要功能是检测当前系统的DirectX状态,如果发现异常则进行修复

相关热词 c# 局部 截图 页面 c#实现简单的文件管理器 c# where c# 取文件夹路径 c# 对比 当天 c# fir 滤波器 c# 和站 队列 c# txt 去空格 c#移除其他类事件 c# 自动截屏
立即提问