java - Jetty maven plugin and spring 4.1.6 - class not found exception -
i have lib-conflict problem cannot find solution. hope can find :)
i'm using jetty-maven-plugin. here snippet of pom:
<plugin> <groupid>org.eclipse.jetty</groupid> <artifactid>jetty-maven-plugin</artifactid> <version>9.3.0.m2</version> <configuration> <stopport>9966</stopport> <stopkey>foo</stopkey> <stopwait>10</stopwait> </configuration> </plugin>
my libs:
here exception:
java.lang.reflect.invocationtargetexception @ sun.reflect.nativemethodaccessorimpl.invoke0(native method) @ sun.reflect.nativemethodaccessorimpl.invoke(nativemethodaccessorimpl.java:62) @ sun.reflect.delegatingmethodaccessorimpl.invoke(delegatingmethodaccessorimpl.java:43) @ java.lang.reflect.method.invoke(method.java:483) @ org.eclipse.jetty.webapp.iterativedescriptorprocessor.visit(iterativedescriptorprocessor.java:85) @ org.eclipse.jetty.webapp.iterativedescriptorprocessor.process(iterativedescriptorprocessor.java:72) @ org.eclipse.jetty.webapp.metadata.resolve(metadata.java:394) @ org.eclipse.jetty.webapp.webappcontext.startcontext(webappcontext.java:1332) @ org.eclipse.jetty.server.handler.contexthandler.dostart(contexthandler.java:742) @ org.eclipse.jetty.webapp.webappcontext.dostart(webappcontext.java:497) @ org.eclipse.jetty.maven.plugin.jettywebappcontext.dostart(jettywebappcontext.java:365) @ org.eclipse.jetty.util.component.abstractlifecycle.start(abstractlifecycle.java:68) @ org.eclipse.jetty.util.component.containerlifecycle.start(containerlifecycle.java:132) @ org.eclipse.jetty.util.component.containerlifecycle.dostart(containerlifecycle.java:114) @ org.eclipse.jetty.server.handler.abstracthandler.dostart(abstracthandler.java:61) @ org.eclipse.jetty.server.handler.contexthandlercollection.dostart(contexthandlercollection.java:163) @ org.eclipse.jetty.util.component.abstractlifecycle.start(abstractlifecycle.java:68) @ org.eclipse.jetty.util.component.containerlifecycle.start(containerlifecycle.java:132) @ org.eclipse.jetty.util.component.containerlifecycle.dostart(containerlifecycle.java:114) @ org.eclipse.jetty.server.handler.abstracthandler.dostart(abstracthandler.java:61) @ org.eclipse.jetty.util.component.abstractlifecycle.start(abstractlifecycle.java:68) @ org.eclipse.jetty.util.component.containerlifecycle.start(containerlifecycle.java:132) @ org.eclipse.jetty.server.server.start(server.java:388) @ org.eclipse.jetty.util.component.containerlifecycle.dostart(containerlifecycle.java:114) @ org.eclipse.jetty.server.handler.abstracthandler.dostart(abstracthandler.java:61) @ org.eclipse.jetty.server.server.dostart(server.java:355) @ org.eclipse.jetty.maven.plugin.jettyserver.dostart(jettyserver.java:73) @ org.eclipse.jetty.util.component.abstractlifecycle.start(abstractlifecycle.java:68) @ org.eclipse.jetty.maven.plugin.abstractjettymojo.startjetty(abstractjettymojo.java:534) @ org.eclipse.jetty.maven.plugin.abstractjettymojo.execute(abstractjettymojo.java:357) @ org.eclipse.jetty.maven.plugin.jettyrunmojo.execute(jettyrunmojo.java:167) @ org.apache.maven.plugin.defaultbuildpluginmanager.executemojo(defaultbuildpluginmanager.java:133) @ org.apache.maven.lifecycle.internal.mojoexecutor.execute(mojoexecutor.java:208) @ org.apache.maven.lifecycle.internal.mojoexecutor.execute(mojoexecutor.java:153) @ org.apache.maven.lifecycle.internal.mojoexecutor.execute(mojoexecutor.java:145) @ org.apache.maven.lifecycle.internal.lifecyclemodulebuilder.buildproject(lifecyclemodulebuilder.java:108) @ org.apache.maven.lifecycle.internal.lifecyclemodulebuilder.buildproject(lifecyclemodulebuilder.java:76) @ org.apache.maven.lifecycle.internal.builder.singlethreaded.singlethreadedbuilder.build(singlethreadedbuilder.java:51) @ org.apache.maven.lifecycle.internal.lifecyclestarter.execute(lifecyclestarter.java:116) @ org.apache.maven.defaultmaven.doexecute(defaultmaven.java:361) @ org.apache.maven.defaultmaven.execute(defaultmaven.java:155) @ org.apache.maven.cli.mavencli.execute(mavencli.java:584) @ org.apache.maven.cli.mavencli.domain(mavencli.java:213) @ org.apache.maven.cli.mavencli.main(mavencli.java:157) @ sun.reflect.nativemethodaccessorimpl.invoke0(native method) @ sun.reflect.nativemethodaccessorimpl.invoke(nativemethodaccessorimpl.java:62) @ sun.reflect.delegatingmethodaccessorimpl.invoke(delegatingmethodaccessorimpl.java:43) @ java.lang.reflect.method.invoke(method.java:483) @ org.codehaus.plexus.classworlds.launcher.launcher.launchenhanced(launcher.java:289) @ org.codehaus.plexus.classworlds.launcher.launcher.launch(launcher.java:229) @ org.codehaus.plexus.classworlds.launcher.launcher.mainwithexitcode(launcher.java:415) @ org.codehaus.plexus.classworlds.launcher.launcher.main(launcher.java:356) caused by: java.lang.noclassdeffounderror: org/springframework/context/applicationcontextexception @ java.lang.class.getdeclaredconstructors0(native method) @ java.lang.class.privategetdeclaredconstructors(class.java:2663) @ java.lang.class.getconstructor0(class.java:3067) @ java.lang.class.newinstance(class.java:408) @ org.eclipse.jetty.server.handler.contexthandler$context.createinstance(contexthandler.java:2377) @ org.eclipse.jetty.webapp.standarddescriptorprocessor.newlistenerinstance(standarddescriptorprocessor.java:1984) @ org.eclipse.jetty.webapp.standarddescriptorprocessor.visitlistener(standarddescriptorprocessor.java:1927) @ sun.reflect.nativemethodaccessorimpl.invoke0(native method) @ sun.reflect.nativemethodaccessorimpl.invoke(nativemethodaccessorimpl.java:62) @ sun.reflect.delegatingmethodaccessorimpl.invoke(delegatingmethodaccessorimpl.java:43) @ java.lang.reflect.method.invoke(method.java:483) @ org.eclipse.jetty.webapp.iterativedescriptorprocessor.visit(iterativedescriptorprocessor.java:85) @ org.eclipse.jetty.webapp.iterativedescriptorprocessor.process(iterativedescriptorprocessor.java:72) @ org.eclipse.jetty.webapp.metadata.resolve(metadata.java:394) @ org.eclipse.jetty.webapp.webappcontext.startcontext(webappcontext.java:1332) @ org.eclipse.jetty.server.handler.contexthandler.dostart(contexthandler.java:742) @ org.eclipse.jetty.webapp.webappcontext.dostart(webappcontext.java:497) @ org.eclipse.jetty.maven.plugin.jettywebappcontext.dostart(jettywebappcontext.java:365) @ org.eclipse.jetty.util.component.abstractlifecycle.start(abstractlifecycle.java:68) @ org.eclipse.jetty.util.component.containerlifecycle.start(containerlifecycle.java:132) @ org.eclipse.jetty.util.component.containerlifecycle.dostart(containerlifecycle.java:114) @ org.eclipse.jetty.server.handler.abstracthandler.dostart(abstracthandler.java:61) @ org.eclipse.jetty.server.handler.contexthandlercollection.dostart(contexthandlercollection.java:163) @ org.eclipse.jetty.util.component.abstractlifecycle.start(abstractlifecycle.java:68) @ org.eclipse.jetty.util.component.containerlifecycle.start(containerlifecycle.java:132) @ org.eclipse.jetty.util.component.containerlifecycle.dostart(containerlifecycle.java:114) @ org.eclipse.jetty.server.handler.abstracthandler.dostart(abstracthandler.java:61) @ org.eclipse.jetty.util.component.abstractlifecycle.start(abstractlifecycle.java:68) @ org.eclipse.jetty.util.component.containerlifecycle.start(containerlifecycle.java:132) @ org.eclipse.jetty.server.server.start(server.java:388) @ org.eclipse.jetty.util.component.containerlifecycle.dostart(containerlifecycle.java:114) @ org.eclipse.jetty.server.handler.abstracthandler.dostart(abstracthandler.java:61) @ org.eclipse.jetty.server.server.dostart(server.java:355) @ org.eclipse.jetty.maven.plugin.jettyserver.dostart(jettyserver.java:73) @ org.eclipse.jetty.util.component.abstractlifecycle.start(abstractlifecycle.java:68) @ org.eclipse.jetty.maven.plugin.abstractjettymojo.startjetty(abstractjettymojo.java:534) @ org.eclipse.jetty.maven.plugin.abstractjettymojo.execute(abstractjettymojo.java:357) @ org.eclipse.jetty.maven.plugin.jettyrunmojo.execute(jettyrunmojo.java:167) @ org.apache.maven.plugin.defaultbuildpluginmanager.executemojo(defaultbuildpluginmanager.java:133) @ org.apache.maven.lifecycle.internal.mojoexecutor.execute(mojoexecutor.java:208) @ org.apache.maven.lifecycle.internal.mojoexecutor.execute(mojoexecutor.java:153) @ org.apache.maven.lifecycle.internal.mojoexecutor.execute(mojoexecutor.java:145) @ org.apache.maven.lifecycle.internal.lifecyclemodulebuilder.buildproject(lifecyclemodulebuilder.java:108) @ org.apache.maven.lifecycle.internal.lifecyclemodulebuilder.buildproject(lifecyclemodulebuilder.java:76) @ org.apache.maven.lifecycle.internal.builder.singlethreaded.singlethreadedbuilder.build(singlethreadedbuilder.java:51) @ org.apache.maven.lifecycle.internal.lifecyclestarter.execute(lifecyclestarter.java:116) @ org.apache.maven.defaultmaven.doexecute(defaultmaven.java:361) @ org.apache.maven.defaultmaven.execute(defaultmaven.java:155) @ org.apache.maven.cli.mavencli.execute(mavencli.java:584) @ org.apache.maven.cli.mavencli.domain(mavencli.java:213) @ org.apache.maven.cli.mavencli.main(mavencli.java:157) @ sun.reflect.nativemethodaccessorimpl.invoke0(native method) @ sun.reflect.nativemethodaccessorimpl.invoke(nativemethodaccessorimpl.java:62) @ sun.reflect.delegatingmethodaccessorimpl.invoke(delegatingmethodaccessorimpl.java:43) @ java.lang.reflect.method.invoke(method.java:483) @ org.codehaus.plexus.classworlds.launcher.launcher.launchenhanced(launcher.java:289) @ org.codehaus.plexus.classworlds.launcher.launcher.launch(launcher.java:229) @ org.codehaus.plexus.classworlds.launcher.launcher.mainwithexitcode(launcher.java:415) @ org.codehaus.plexus.classworlds.launcher.launcher.main(launcher.java:356) caused by: java.lang.classnotfoundexception: org.springframework.context.applicationcontextexception @ org.codehaus.plexus.classworlds.strategy.selffirststrategy.loadclass(selffirststrategy.java:50) @ org.codehaus.plexus.classworlds.realm.classrealm.unsynchronizedloadclass(classrealm.java:259) @ org.codehaus.plexus.classworlds.realm.classrealm.loadclass(classrealm.java:235) @ org.codehaus.plexus.classworlds.realm.classrealm.loadclass(classrealm.java:227) @ org.eclipse.jetty.webapp.webappclassloader.loadclass(webappclassloader.java:450) @ org.eclipse.jetty.webapp.webappclassloader.loadclass(webappclassloader.java:403) @ java.lang.class.getdeclaredconstructors0(native method) @ java.lang.class.privategetdeclaredconstructors(class.java:2663) @ java.lang.class.getconstructor0(class.java:3067) @ java.lang.class.newinstance(class.java:408) @ org.eclipse.jetty.server.handler.contexthandler$context.createinstance(contexthandler.java:2377) @ org.eclipse.jetty.webapp.standarddescriptorprocessor.newlistenerinstance(standarddescriptorprocessor.java:1984) @ org.eclipse.jetty.webapp.standarddescriptorprocessor.visitlistener(standarddescriptorprocessor.java:1927) @ sun.reflect.nativemethodaccessorimpl.invoke0(native method) @ sun.reflect.nativemethodaccessorimpl.invoke(nativemethodaccessorimpl.java:62) @ sun.reflect.delegatingmethodaccessorimpl.invoke(delegatingmethodaccessorimpl.java:43) @ java.lang.reflect.method.invoke(method.java:483) @ org.eclipse.jetty.webapp.iterativedescriptorprocessor.visit(iterativedescriptorprocessor.java:85) @ org.eclipse.jetty.webapp.iterativedescriptorprocessor.process(iterativedescriptorprocessor.java:72) @ org.eclipse.jetty.webapp.metadata.resolve(metadata.java:394) @ org.eclipse.jetty.webapp.webappcontext.startcontext(webappcontext.java:1332) @ org.eclipse.jetty.server.handler.contexthandler.dostart(contexthandler.java:742) @ org.eclipse.jetty.webapp.webappcontext.dostart(webappcontext.java:497) @ org.eclipse.jetty.maven.plugin.jettywebappcontext.dostart(jettywebappcontext.java:365) @ org.eclipse.jetty.util.component.abstractlifecycle.start(abstractlifecycle.java:68) @ org.eclipse.jetty.util.component.containerlifecycle.start(containerlifecycle.java:132) @ org.eclipse.jetty.util.component.containerlifecycle.dostart(containerlifecycle.java:114) @ org.eclipse.jetty.server.handler.abstracthandler.dostart(abstracthandler.java:61) @ org.eclipse.jetty.server.handler.contexthandlercollection.dostart(contexthandlercollection.java:163) @ org.eclipse.jetty.util.component.abstractlifecycle.start(abstractlifecycle.java:68) @ org.eclipse.jetty.util.component.containerlifecycle.start(containerlifecycle.java:132) @ org.eclipse.jetty.util.component.containerlifecycle.dostart(containerlifecycle.java:114) @ org.eclipse.jetty.server.handler.abstracthandler.dostart(abstracthandler.java:61) @ org.eclipse.jetty.util.component.abstractlifecycle.start(abstractlifecycle.java:68) @ org.eclipse.jetty.util.component.containerlifecycle.start(containerlifecycle.java:132) @ org.eclipse.jetty.server.server.start(server.java:388) @ org.eclipse.jetty.util.component.containerlifecycle.dostart(containerlifecycle.java:114) @ org.eclipse.jetty.server.handler.abstracthandler.dostart(abstracthandler.java:61) @ org.eclipse.jetty.server.server.dostart(server.java:355) @ org.eclipse.jetty.maven.plugin.jettyserver.dostart(jettyserver.java:73) @ org.eclipse.jetty.util.component.abstractlifecycle.start(abstractlifecycle.java:68) @ org.eclipse.jetty.maven.plugin.abstractjettymojo.startjetty(abstractjettymojo.java:534) @ org.eclipse.jetty.maven.plugin.abstractjettymojo.execute(abstractjettymojo.java:357) @ org.eclipse.jetty.maven.plugin.jettyrunmojo.execute(jettyrunmojo.java:167) @ org.apache.maven.plugin.defaultbuildpluginmanager.executemojo(defaultbuildpluginmanager.java:133) @ org.apache.maven.lifecycle.internal.mojoexecutor.execute(mojoexecutor.java:208) @ org.apache.maven.lifecycle.internal.mojoexecutor.execute(mojoexecutor.java:153) @ org.apache.maven.lifecycle.internal.mojoexecutor.execute(mojoexecutor.java:145) @ org.apache.maven.lifecycle.internal.lifecyclemodulebuilder.buildproject(lifecyclemodulebuilder.java:108) @ org.apache.maven.lifecycle.internal.lifecyclemodulebuilder.buildproject(lifecyclemodulebuilder.java:76) @ org.apache.maven.lifecycle.internal.builder.singlethreaded.singlethreadedbuilder.build(singlethreadedbuilder.java:51) @ org.apache.maven.lifecycle.internal.lifecyclestarter.execute(lifecyclestarter.java:116) @ org.apache.maven.defaultmaven.doexecute(defaultmaven.java:361) @ org.apache.maven.defaultmaven.execute(defaultmaven.java:155) @ org.apache.maven.cli.mavencli.execute(mavencli.java:584) @ org.apache.maven.cli.mavencli.domain(mavencli.java:213) @ org.apache.maven.cli.mavencli.main(mavencli.java:157) @ sun.reflect.nativemethodaccessorimpl.invoke0(native method) @ sun.reflect.nativemethodaccessorimpl.invoke(nativemethodaccessorimpl.java:62) @ sun.reflect.delegatingmethodaccessorimpl.invoke(delegatingmethodaccessorimpl.java:43) @ java.lang.reflect.method.invoke(method.java:483) @ org.codehaus.plexus.classworlds.launcher.launcher.launchenhanced(launcher.java:289) @ org.codehaus.plexus.classworlds.launcher.launcher.launch(launcher.java:229) @ org.codehaus.plexus.classworlds.launcher.launcher.mainwithexitcode(launcher.java:415) @ org.codehaus.plexus.classworlds.launcher.launcher.main(launcher.java:356) 2015-05-11 22:54:08.291:warn:oejsh.requestloghandler:main: !requestlog 2015-05-11 22:54:08.546:info:oejs.serverconnector:main: started serverconnector@20749d9{http/1.1}{0.0.0.0:8080} 2015-05-11 22:54:08.551:info:oejs.server:main: started @27103ms [info] started jetty server
the exception shows codehaus... codehaus-lib find in source plugin:
<plugin> <groupid>org.codehaus.mojo</groupid> <artifactid>build-helper-maven-plugin</artifactid> <version>1.9.1</version> <executions> <execution> <phase>generate-sources</phase> <goals> <goal>add-source</goal> </goals> <configuration> <sources> <source>src/main/generated</source> </sources> </configuration> </execution> </executions> </plugin>
all unit- , integrationtests run fine (using testng, running in spring-context). believe there problem jetty-plugin or codehaus plugin couldn't solve it. idea?
where's spring-context-4.1.6.release.jar
?
the org.springframework.context.applicationcontextexception
class found in jar.
Comments
Post a Comment