It's possible to use Grape to download a dependency from Maven central:
#Grab(group='org.apache.commons', module='commons-lang3', version='3.4')
Specifying a type of jar within the Grab annotation does the same thing:
#Grab(group='org.apache.commons', module='commons-lang3', version='3.4', type='jar')
and according to the javadoc, the value of type can also be javadoc and sources, however trying the following in IntelliJ:
#Grab(group='org.apache.commons', module='commons-lang3', version='3.4', type = 'sources')
results in:
org.codehaus.groovy.control.MultipleCompilationErrorsException: startup failed:
General error during conversion: Error grabbing Grapes -- [download failed: org.apache.commons#commons-lang3;3.4!commons-lang3.sources]
java.lang.RuntimeException: Error grabbing Grapes -- [download failed: org.apache.commons#commons-lang3;3.4!commons-lang3.sources]
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
at org.codehaus.groovy.reflection.CachedConstructor.invoke(CachedConstructor.java:83)
at org.codehaus.groovy.reflection.CachedConstructor.doConstructorInvoke(CachedConstructor.java:77)
at org.codehaus.groovy.runtime.callsite.ConstructorSite$ConstructorSiteNoUnwrap.callConstructor(ConstructorSite.java:84)
at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCallConstructor(CallSiteArray.java:60)
at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callConstructor(AbstractCallSite.java:235)
at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callConstructor(AbstractCallSite.java:247)
at groovy.grape.GrapeIvy.getDependencies(GrapeIvy.groovy:426)
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:498)
at org.codehaus.groovy.runtime.callsite.PogoMetaMethodSite$PogoCachedMethodSite.invoke(PogoMetaMethodSite.java:169)
at org.codehaus.groovy.runtime.callsite.PogoMetaMethodSite.callCurrent(PogoMetaMethodSite.java:59)
at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCallCurrent(CallSiteArray.java:52)
at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callCurrent(AbstractCallSite.java:154)
at groovy.grape.GrapeIvy.resolve(GrapeIvy.groovy:573)
at groovy.grape.GrapeIvy$resolve$1.callCurrent(Unknown Source)
at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCallCurrent(CallSiteArray.java:52)
at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callCurrent(AbstractCallSite.java:154)
at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callCurrent(AbstractCallSite.java:190)
at groovy.grape.GrapeIvy.resolve(GrapeIvy.groovy:540)
at groovy.grape.GrapeIvy$resolve$0.callCurrent(Unknown Source)
at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCallCurrent(CallSiteArray.java:52)
at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callCurrent(AbstractCallSite.java:154)
at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callCurrent(AbstractCallSite.java:182)
at groovy.grape.GrapeIvy.grab(GrapeIvy.groovy:258)
at groovy.grape.Grape.grab(Grape.java:167)
at groovy.grape.GrabAnnotationTransformation.visit(GrabAnnotationTransformation.java:378)
at org.codehaus.groovy.transform.ASTTransformationVisitor$3.call(ASTTransformationVisitor.java:321)
at org.codehaus.groovy.control.CompilationUnit.applyToSourceUnits(CompilationUnit.java:931)
at org.codehaus.groovy.control.CompilationUnit.doPhaseOperation(CompilationUnit.java:593)
at org.codehaus.groovy.control.CompilationUnit.processPhaseOperations(CompilationUnit.java:569)
at org.codehaus.groovy.control.CompilationUnit.compile(CompilationUnit.java:546)
at groovy.lang.GroovyClassLoader.doParseClass(GroovyClassLoader.java:298)
at groovy.lang.GroovyClassLoader.parseClass(GroovyClassLoader.java:268)
at groovy.lang.GroovyShell.parseClass(GroovyShell.java:688)
at groovy.lang.GroovyShell.run(GroovyShell.java:517)
at groovy.lang.GroovyShell.run(GroovyShell.java:507)
at groovy.ui.GroovyMain.processOnce(GroovyMain.java:653)
at groovy.ui.GroovyMain.run(GroovyMain.java:384)
at groovy.ui.GroovyMain.process(GroovyMain.java:370)
at groovy.ui.GroovyMain.processArgs(GroovyMain.java:129)
at groovy.ui.GroovyMain.main(GroovyMain.java:109)
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:498)
at org.codehaus.groovy.tools.GroovyStarter.rootLoader(GroovyStarter.java:109)
at org.codehaus.groovy.tools.GroovyStarter.main(GroovyStarter.java:131)
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:498)
at com.intellij.rt.execution.application.AppMain.main(AppMain.java:147)
Eclipse gives a similar error. So is there a a way to use Grape to download sources/javadoc when editing a groovy script in an IDE?
The doc you link to also mentions the possibility of using the classifier attribute, which seems to work better (Grape will indeed grab the corresponding jars):
#Grab(group='org.apache.commons', module='commons-lang3', version='3.4', classifier='sources')
However, it looks like Grape support in Idea is incomplete. In order for Idea to use the grabbed packages, you need to place your cursor on the #Grab annotation, press alt-enter and grab the artifacts manually. You could then copy them to module libraries from the projet structure's settings. That seems to do it for me, although I also feel it defies the whole point of using Grape...
My java-application is currently connected to oracle DB, deployed on Windows. But when I am trying to connect the same to dB2 database it is giving me error as mentioned below:
Exception in thread "Timer-6" java.lang.SecurityException: Invalid signature file digest for Manifest main attributes
at sun.security.util.SignatureFileVerifier.processImpl(SignatureFileVerifier.java:240)
at sun.security.util.SignatureFileVerifier.process(SignatureFileVerifier.java:193)
at java.util.jar.JarVerifier.processEntry(JarVerifier.java:305)
at java.util.jar.JarVerifier.update(JarVerifier.java:216)
at java.util.jar.JarFile.initializeVerifier(JarFile.java:341)
at java.util.jar.JarFile.getInputStream(JarFile.java:406)
at sun.misc.URLClassPath$JarLoader$2.getInputStream(URLClassPath.java:752)
at sun.misc.Resource.cachedInputStream(Resource.java:77)
at sun.misc.Resource.getByteBuffer(Resource.java:160)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:436)
at java.net.URLClassLoader.access$100(URLClassLoader.java:71)
at java.net.URLClassLoader$1.run(URLClassLoader.java:361)
at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
at java.lang.ClassLoader.loadClass(ClassLoader.java:423)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
at java.lang.ClassLoader.loadClass(ClassLoader.java:410)
at com.pramati.util.loader.ProtonURLClassLoader.loadClass(ProtonURLClassLoader.java:404)
at java.lang.ClassLoader.loadClass(ClassLoader.java:410)
at com.pramati.util.loader.ProtonURLClassLoader.loadClass(ProtonURLClassLoader.java:404)
at java.lang.ClassLoader.loadClass(ClassLoader.java:410)
at com.pramati.util.loader.ProtonURLClassLoader.loadClass(ProtonURLClassLoader.java:404)
at java.lang.ClassLoader.loadClass(ClassLoader.java:356)
at com.infy.cis.license.LicenseTimer$RemindTask.run(LicenseTimer.java:95)
at java.util.TimerThread.mainLoop(Timer.java:555)
at java.util.TimerThread.run(Timer.java:505)
I have used following db2 jars after signing them:
db2jcc.jar,
db2jcc_license_cisuz.jar,
db2jcc_license_cu.jar.
Please help me in this issue.
I am running an application that uses classes generated from a WSDL using wsimport. As I've encountered NoClassDefFoundError I've added the appropriate jar files to the Eclipse build.
However I'm stymied now with a missing interface:
Exception in thread "main" java.lang.NoClassDefFoundError: org/netsnmp/NetSNMPAction
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:791)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:449)
at java.net.URLClassLoader.access$100(URLClassLoader.java:71)
at java.net.URLClassLoader$1.run(URLClassLoader.java:361)
at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
at java.lang.ClassLoader.loadClass(ClassLoader.java:423)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
at java.lang.ClassLoader.loadClass(ClassLoader.java:356)
at java.lang.Class.getDeclaredConstructors0(Native Method)
at java.lang.Class.privateGetDeclaredConstructors(Class.java:2404)
at java.lang.Class.getConstructor0(Class.java:2714)
at java.lang.Class.getDeclaredConstructor(Class.java:2002)
at com.sun.xml.bind.v2.model.nav.ReflectionNavigator.hasDefaultConstructor(ReflectionNavigator.java:464)
at com.sun.xml.bind.v2.model.nav.ReflectionNavigator.hasDefaultConstructor(ReflectionNavigator.java:58)
at com.sun.xml.bind.v2.model.impl.ClassInfoImpl.<init>(ClassInfoImpl.java:193)
at com.sun.xml.bind.v2.model.impl.RuntimeClassInfoImpl.<init>(RuntimeClassInfoImpl.java:95)
at com.sun.xml.bind.v2.model.impl.RuntimeModelBuilder.createClassInfo(RuntimeModelBuilder.java:110)
at com.sun.xml.bind.v2.model.impl.RuntimeModelBuilder.createClassInfo(RuntimeModelBuilder.java:81)
at com.sun.xml.bind.v2.model.impl.ModelBuilder.getClassInfo(ModelBuilder.java:239)
at com.sun.xml.bind.v2.model.impl.RuntimeModelBuilder.getClassInfo(RuntimeModelBuilder.java:100)
at com.sun.xml.bind.v2.model.impl.RuntimeModelBuilder.getClassInfo(RuntimeModelBuilder.java:81)
at com.sun.xml.bind.v2.model.impl.ModelBuilder.getClassInfo(ModelBuilder.java:209)
at com.sun.xml.bind.v2.model.impl.RuntimeModelBuilder.getClassInfo(RuntimeModelBuilder.java:95)
at com.sun.xml.bind.v2.model.impl.RuntimeModelBuilder.getClassInfo(RuntimeModelBuilder.java:81)
at com.sun.xml.bind.v2.model.impl.ModelBuilder.getTypeInfo(ModelBuilder.java:315)
at com.sun.xml.bind.v2.model.impl.TypeRefImpl.calcRef(TypeRefImpl.java:92)
at com.sun.xml.bind.v2.model.impl.TypeRefImpl.getTarget(TypeRefImpl.java:69)
at com.sun.xml.bind.v2.model.impl.RuntimeTypeRefImpl.getTarget(RuntimeTypeRefImpl.java:58)
at com.sun.xml.bind.v2.model.impl.RuntimeTypeRefImpl.getTarget(RuntimeTypeRefImpl.java:51)
at com.sun.xml.bind.v2.model.impl.ElementPropertyInfoImpl$1.get(ElementPropertyInfoImpl.java:74)
at com.sun.xml.bind.v2.model.impl.ElementPropertyInfoImpl$1.get(ElementPropertyInfoImpl.java:77)
at java.util.AbstractList$Itr.next(AbstractList.java:358)
at com.sun.xml.bind.v2.model.impl.ModelBuilder.getClassInfo(ModelBuilder.java:255)
at com.sun.xml.bind.v2.model.impl.RuntimeModelBuilder.getClassInfo(RuntimeModelBuilder.java:100)
at com.sun.xml.bind.v2.model.impl.RuntimeModelBuilder.getClassInfo(RuntimeModelBuilder.java:81)
at com.sun.xml.bind.v2.model.impl.ModelBuilder.getClassInfo(ModelBuilder.java:209)
at com.sun.xml.bind.v2.model.impl.RuntimeModelBuilder.getClassInfo(RuntimeModelBuilder.java:95)
at com.sun.xml.bind.v2.model.impl.RuntimeModelBuilder.getClassInfo(RuntimeModelBuilder.java:81)
at com.sun.xml.bind.v2.model.impl.ModelBuilder.getTypeInfo(ModelBuilder.java:315)
at com.sun.xml.bind.v2.model.impl.ModelBuilder.getTypeInfo(ModelBuilder.java:330)
at com.sun.xml.bind.v2.runtime.JAXBContextImpl.getTypeInfoSet(JAXBContextImpl.java:442)
at com.sun.xml.bind.v2.runtime.JAXBContextImpl.<init>(JAXBContextImpl.java:297)
at com.sun.xml.bind.v2.ContextFactory.createContext(ContextFactory.java:139)
at com.sun.xml.bind.v2.ContextFactory.createContext(ContextFactory.java:117)
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:601)
at javax.xml.bind.ContextFinder.newInstance(ContextFinder.java:248)
at javax.xml.bind.ContextFinder.newInstance(ContextFinder.java:235)
at javax.xml.bind.ContextFinder.find(ContextFinder.java:432)
at javax.xml.bind.JAXBContext.newInstance(JAXBContext.java:637)
at javax.xml.bind.JAXBContext.newInstance(JAXBContext.java:584)
at org.apache.axis2.jaxws.message.databinding.JAXBUtils$4.run(JAXBUtils.java:832)
at org.apache.axis2.java.security.AccessController.doPrivileged(AccessController.java:130)
at org.apache.axis2.jaxws.message.databinding.JAXBUtils.JAXBContext_newInstance(JAXBUtils.java:829)
at org.apache.axis2.jaxws.message.databinding.JAXBUtils.createJAXBContextValue(JAXBUtils.java:306)
at org.apache.axis2.jaxws.message.databinding.JAXBUtils.getJAXBContext(JAXBUtils.java:144)
at org.apache.axis2.jaxws.marshaller.factory.MethodMarshallerFactory.isContextPathConstruction(MethodMarshallerFactory.java:210)
at org.apache.axis2.jaxws.marshaller.factory.MethodMarshallerFactory.isDocLitWrappedPlus(MethodMarshallerFactory.java:170)
at org.apache.axis2.jaxws.marshaller.factory.MethodMarshallerFactory.createDocLitMethodMarshaller(MethodMarshallerFactory.java:123)
at org.apache.axis2.jaxws.marshaller.factory.MethodMarshallerFactory.getMarshaller(MethodMarshallerFactory.java:97)
at org.apache.axis2.jaxws.client.proxy.JAXWSProxyHandler.createRequest(JAXWSProxyHandler.java:328)
at org.apache.axis2.jaxws.client.proxy.JAXWSProxyHandler.invokeSEIMethod(JAXWSProxyHandler.java:159)
at org.apache.axis2.jaxws.client.proxy.JAXWSProxyHandler.invoke(JAXWSProxyHandler.java:141)
at $Proxy11.getComments(Unknown Source)
at com.parasoft.scc.taskimport.pstsec.TestGetComments.main(TestGetComments.java:18)
While I'm looking for the Jar file that implements this interface. I'm more troubled by the number and type of missing classes that the generated code seems to require. One missing class was the Java Python interpreter (which I resolved by adding . I'm wondering if I'm heading into a place I don't want to be and should review my Eclipse project. I'm not sure where to start doing that so I'm asking for some advice on how to keep from going down the road to jar hell.
Update: I've changed from using wsdlimport artifacts to using wsdl2java and it's generated code. It's working but I'd still like some advice for the future.
Having a Scala project exported to a .jar with eclipse, the application started with java -jar app.jar dies with the error java.lang.ClassNotFoundException: scala.Predef$.
Full output:
Exception in Application start method
Exception in thread "main" java.lang.reflect.InvocationTargetException
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:490)
at org.eclipse.jdt.internal.jarinjarloader.JarRsrcLoader.main(JarRsrcLoader.java:58)
Caused by: java.lang.RuntimeException: Exception in Application start method
at com.sun.javafx.application.LauncherImpl.launchApplication1(LauncherImpl.java:829)
at com.sun.javafx.application.LauncherImpl.access$000(LauncherImpl.java:56)
at com.sun.javafx.application.LauncherImpl$1.run(LauncherImpl.java:150)
at java.lang.Thread.run(Thread.java:722)
Caused by: java.lang.NoClassDefFoundError: scala/Predef$
at main.App$.debug(App.scala:69)
at main.App.start(App.scala:23)
at com.sun.javafx.application.LauncherImpl$5.run(LauncherImpl.java:772)
at com.sun.javafx.application.PlatformImpl$6.run(PlatformImpl.java:260)
at com.sun.javafx.application.PlatformImpl$5$1.run(PlatformImpl.java:223)
at com.sun.javafx.application.PlatformImpl$5$1.run(PlatformImpl.java:220)
at java.security.AccessController.doPrivileged(Native Method)
at com.sun.javafx.application.PlatformImpl$5.run(PlatformImpl.java:220)
at com.sun.glass.ui.InvokeLaterDispatcher$Future.run(InvokeLaterDispatcher.java:94)
Caused by: java.lang.ClassNotFoundException: scala.Predef$
at java.net.URLClassLoader$1.run(URLClassLoader.java:365)
at java.net.URLClassLoader$1.run(URLClassLoader.java:354)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:353)
at java.lang.ClassLoader.loadClass(ClassLoader.java:422)
at java.lang.ClassLoader.loadClass(ClassLoader.java:355)
... 9 more
The referenced line at main.App$.debug(App.scala:69):
object App {
//...
def debug(s: String) {
println("DEB: "+s)
}
// ...
}
This seems to be caused because the Scala libraries are not contained in the jar. How do I fix this?
I have read about solutions with maven plugins but I would prefer a manual option.
Manually push the libs there in jar.. or you have good option to script it down
I am trying to run my webapp (using JSf) Jetty 8.1.1.v20120215 in Eclipse. I downloade Jettey Adaptor for Jetty and then added Jetty Server 8.1 in Eclipse. Then I stared my webapp under Jetty webserver. And got follwoing error. From statck trace it looks like Jetting is not getting some of the required jars. As have adde all those jar in my webapp in dependanceis as I am using maven. I can also see in eclipse those file listed in Eclipse under Refrenced Libaries.
2012-03-01 16:46:00.492:INFO:oejs.Server:jetty-8.1.1.v20120215
2012-03-01 16:46:00.515:INFO:oejdp.ScanningAppProvider:Deployment monitor /home/mitesh.patel/dev/mc-sandbox/.metadata/.plugins/org.eclipse.wst.server.core/tmp1/webapps at interval 1
2012-03-01 16:46:00.519:INFO:oejdp.ScanningAppProvider:Deployment monitor /home/mitesh.patel/dev/mc-sandbox/.metadata/.plugins/org.eclipse.wst.server.core/tmp1/contexts at interval 1
2012-03-01 16:46:00.521:INFO:oejd.DeploymentManager:Deployable added: /home/mitesh.patel/dev/mc-sandbox/.metadata/.plugins/org.eclipse.wst.server.core/tmp1/contexts/mc-webapp.xml
2012-03-01 16:46:03.223:WARN:oejuc.AbstractLifeCycle:FAILED o.e.j.w.WebAppContext{/mc-webapp,[file:/home/mitesh.patel/dev/mc-sandbox/.metadata/.plugins/org.eclipse.wst.server.core/tmp1/wtpwebapps/mc-webapp/, jar:file:/home/mitesh.patel/dev/mc-sandbox/.metadata/.plugins/org.eclipse.wst.server.core/tmp1/wtpwebapps/mc-webapp/WEB-INF/lib/blitzer-1.0.3.jar!/META-INF/resources/, jar:file:/home/mitesh.patel/dev/mc-sandbox/.metadata/.plugins/org.eclipse.wst.server.core/tmp1/wtpwebapps/mc-webapp/WEB-INF/lib/dark-hive-1.0.3.jar!/META-INF/resources/, jar:file:/home/mitesh.patel/dev/mc-sandbox/.metadata/.plugins/org.eclipse.wst.server.core/tmp1/wtpwebapps/mc-webapp/WEB-INF/lib/ui-lightness-1.0.3.jar!/META-INF/resources/, jar:file:/home/mitesh.patel/dev/mc-sandbox/.metadata/.plugins/org.eclipse.wst.server.core/tmp1/wtpwebapps/mc-webapp/WEB-INF/lib/sam-1.0.3.jar!/META-INF/resources/, jar:file:/home/mitesh.patel/dev/mc-sandbox/.metadata/.plugins/org.eclipse.wst.server.core/tmp1/wtpwebapps/mc-webapp/WEB-INF/lib/rocket-1.0.3.jar!/META-INF/resources/, jar:file:/home/mitesh.patel/dev/mc-sandbox/.metadata/.plugins/org.eclipse.wst.server.core/tmp1/wtpwebapps/mc-webapp/WEB-INF/lib/myfaces-api-2.1.5.jar!/META-INF/resources/, jar:file:/home/mitesh.patel/dev/mc-sandbox/.metadata/.plugins/org.eclipse.wst.server.core/tmp1/wtpwebapps/mc-webapp/WEB-INF/lib/swanky-purse-1.0.3.jar!/META-INF/resources/, jar:file:/home/mitesh.patel/dev/mc-sandbox/.metadata/.plugins/org.eclipse.wst.server.core/tmp1/wtpwebapps/mc-webapp/WEB-INF/lib/trontastic-1.0.3.jar!/META-INF/resources/, jar:file:/home/mitesh.patel/dev/mc-sandbox/.metadata/.plugins/org.eclipse.wst.server.core/tmp1/wtpwebapps/mc-webapp/WEB-INF/lib/south-street-1.0.3.jar!/META-INF/resources/, jar:file:/home/mitesh.patel/dev/mc-sandbox/.metadata/.plugins/org.eclipse.wst.server.core/tmp1/wtpwebapps/mc-webapp/WEB-INF/lib/primefaces-3.0.1.jar!/META-INF/resources/, jar:file:/home/mitesh.patel/dev/mc-sandbox/.metadata/.plugins/org.eclipse.wst.server.core/tmp1/wtpwebapps/mc-webapp/WEB-INF/lib/hot-sneaks-1.0.3.jar!/META-INF/resources/, jar:file:/home/mitesh.patel/dev/mc-sandbox/.metadata/.plugins/org.eclipse.wst.server.core/tmp1/wtpwebapps/mc-webapp/WEB-INF/lib/glass-x-1.0.3.jar!/META-INF/resources/, jar:file:/home/mitesh.patel/dev/mc-sandbox/.metadata/.plugins/org.eclipse.wst.server.core/tmp1/wtpwebapps/mc-webapp/WEB-INF/lib/le-frog-1.0.3.jar!/META-INF/resources/, jar:file:/home/mitesh.patel/dev/mc-sandbox/.metadata/.plugins/org.eclipse.wst.server.core/tmp1/wtpwebapps/mc-webapp/WEB-INF/lib/casablanca-1.0.3.jar!/META-INF/resources/, jar:file:/home/mitesh.patel/dev/mc-sandbox/.metadata/.plugins/org.eclipse.wst.server.core/tmp1/wtpwebapps/mc-webapp/WEB-INF/lib/overcast-1.0.3.jar!/META-INF/resources/, jar:file:/home/mitesh.patel/dev/mc-sandbox/.metadata/.plugins/org.eclipse.wst.server.core/tmp1/wtpwebapps/mc-webapp/WEB-INF/lib/ui-darkness-1.0.3.jar!/META-INF/resources/, jar:file:/home/mitesh.patel/dev/mc-sandbox/.metadata/.plugins/org.eclipse.wst.server.core/tmp1/wtpwebapps/mc-webapp/WEB-INF/lib/midnight-1.0.3.jar!/META-INF/resources/, jar:file:/home/mitesh.patel/dev/mc-sandbox/.metadata/.plugins/org.eclipse.wst.server.core/tmp1/wtpwebapps/mc-webapp/WEB-INF/lib/eggplant-1.0.3.jar!/META-INF/resources/, jar:file:/home/mitesh.patel/dev/mc-sandbox/.metadata/.plugins/org.eclipse.wst.server.core/tmp1/wtpwebapps/mc-webapp/WEB-INF/lib/humanity-1.0.3.jar!/META-INF/resources/, jar:file:/home/mitesh.patel/dev/mc-sandbox/.metadata/.plugins/org.eclipse.wst.server.core/tmp1/wtpwebapps/mc-webapp/WEB-INF/lib/smoothness-1.0.3.jar!/META-INF/resources/, jar:file:/home/mitesh.patel/dev/mc-sandbox/.metadata/.plugins/org.eclipse.wst.server.core/tmp1/wtpwebapps/mc-webapp/WEB-INF/lib/flick-1.0.3.jar!/META-INF/resources/, jar:file:/home/mitesh.patel/dev/mc-sandbox/.metadata/.plugins/org.eclipse.wst.server.core/tmp1/wtpwebapps/mc-webapp/WEB-INF/lib/vader-1.0.3.jar!/META-INF/resources/, jar:file:/home/mitesh.patel/dev/mc-sandbox/.metadata/.plugins/org.eclipse.wst.server.core/tmp1/wtpwebapps/mc-webapp/WEB-INF/lib/cupertino-1.0.3.jar!/META-INF/resources/, jar:file:/home/mitesh.patel/dev/mc-sandbox/.metadata/.plugins/org.eclipse.wst.server.core/tmp1/wtpwebapps/mc-webapp/WEB-INF/lib/black-tie-1.0.3.jar!/META-INF/resources/, jar:file:/home/mitesh.patel/dev/mc-sandbox/.metadata/.plugins/org.eclipse.wst.server.core/tmp1/wtpwebapps/mc-webapp/WEB-INF/lib/bluesky-1.0.3.jar!/META-INF/resources/, jar:file:/home/mitesh.patel/dev/mc-sandbox/.metadata/.plugins/org.eclipse.wst.server.core/tmp1/wtpwebapps/mc-webapp/WEB-INF/lib/pepper-grinder-1.0.3.jar!/META-INF/resources/, jar:file:/home/mitesh.patel/dev/mc-sandbox/.metadata/.plugins/org.eclipse.wst.server.core/tmp1/wtpwebapps/mc-webapp/WEB-INF/lib/mc-theme.jar!/META-INF/resources/, jar:file:/home/mitesh.patel/dev/mc-sandbox/.metadata/.plugins/org.eclipse.wst.server.core/tmp1/wtpwebapps/mc-webapp/WEB-INF/lib/home-1.0.3.jar!/META-INF/resources/, jar:file:/home/mitesh.patel/dev/mc-sandbox/.metadata/.plugins/org.eclipse.wst.server.core/tmp1/wtpwebapps/mc-webapp/WEB-INF/lib/mint-choc-1.0.3.jar!/META-INF/resources/, jar:file:/home/mitesh.patel/dev/mc-sandbox/.metadata/.plugins/org.eclipse.wst.server.core/tmp1/wtpwebapps/mc-webapp/WEB-INF/lib/sunny-1.0.3.jar!/META-INF/resources/, jar:file:/home/mitesh.patel/dev/mc-sandbox/.metadata/.plugins/org.eclipse.wst.server.core/tmp1/wtpwebapps/mc-webapp/WEB-INF/lib/excite-bike-1.0.3.jar!/META-INF/resources/, jar:file:/home/mitesh.patel/dev/mc-sandbox/.metadata/.plugins/org.eclipse.wst.server.core/tmp1/wtpwebapps/mc-webapp/WEB-INF/lib/start-1.0.3.jar!/META-INF/resources/, jar:file:/home/mitesh.patel/dev/mc-sandbox/.metadata/.plugins/org.eclipse.wst.server.core/tmp1/wtpwebapps/mc-webapp/WEB-INF/lib/redmond-1.0.3.jar!/META-INF/resources/, jar:file:/home/mitesh.patel/dev/mc-sandbox/.metadata/.plugins/org.eclipse.wst.server.core/tmp1/wtpwebapps/mc-webapp/WEB-INF/lib/myfaces-impl-2.1.5.jar!/META-INF/resources/]},/home/mitesh.patel/dev/mc-sandbox/.metadata/.plugins/org.eclipse.wst.server.core/tmp1/wtpwebapps/mc-webapp: java.lang.NoClassDefFoundError: org/objectweb/asm/ClassVisitor
java.lang.NoClassDefFoundError: org/objectweb/asm/ClassVisitor
at org.eclipse.jetty.annotations.AnnotationConfiguration.createAnnotationParser(AnnotationConfiguration.java:111)
at org.eclipse.jetty.annotations.AnnotationConfiguration.configure(AnnotationConfiguration.java:73)
at org.eclipse.jetty.webapp.WebAppContext.configure(WebAppContext.java:428)
at org.eclipse.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1208)
at org.eclipse.jetty.server.handler.ContextHandler.doStart(ContextHandler.java:699)
at org.eclipse.jetty.webapp.WebAppContext.doStart(WebAppContext.java:454)
at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:59)
at org.eclipse.jetty.deploy.bindings.StandardStarter.processBinding(StandardStarter.java:36)
at org.eclipse.jetty.deploy.AppLifeCycle.runBindings(AppLifeCycle.java:183)
at org.eclipse.jetty.deploy.DeploymentManager.requestAppGoal(DeploymentManager.java:491)
at org.eclipse.jetty.deploy.DeploymentManager.addApp(DeploymentManager.java:138)
at org.eclipse.jetty.deploy.providers.ScanningAppProvider.fileAdded(ScanningAppProvider.java:142)
at org.eclipse.jetty.deploy.providers.ScanningAppProvider$1.fileAdded(ScanningAppProvider.java:53)
at org.eclipse.jetty.util.Scanner.reportAddition(Scanner.java:604)
at org.eclipse.jetty.util.Scanner.reportDifferences(Scanner.java:535)
at org.eclipse.jetty.util.Scanner.scan(Scanner.java:398)
at org.eclipse.jetty.util.Scanner.doStart(Scanner.java:332)
at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:59)
at org.eclipse.jetty.deploy.providers.ScanningAppProvider.doStart(ScanningAppProvider.java:118)
at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:59)
at org.eclipse.jetty.deploy.DeploymentManager.startAppProvider(DeploymentManager.java:552)
at org.eclipse.jetty.deploy.DeploymentManager.doStart(DeploymentManager.java:227)
at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:59)
at org.eclipse.jetty.util.component.AggregateLifeCycle.doStart(AggregateLifeCycle.java:58)
at org.eclipse.jetty.server.handler.AbstractHandler.doStart(AbstractHandler.java:53)
at org.eclipse.jetty.server.handler.HandlerWrapper.doStart(HandlerWrapper.java:91)
at org.eclipse.jetty.server.Server.doStart(Server.java:263)
at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:59)
at org.eclipse.jetty.xml.XmlConfiguration$1.run(XmlConfiguration.java:1215)
at java.security.AccessController.doPrivileged(Native Method)
at org.eclipse.jetty.xml.XmlConfiguration.main(XmlConfiguration.java:1138)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.eclipse.jetty.start.Main.invokeMain(Main.java:457)
at org.eclipse.jetty.start.Main.start(Main.java:602)
at org.eclipse.jetty.start.Main.main(Main.java:82)
Caused by:
java.lang.ClassNotFoundException: org.objectweb.asm.ClassVisitor
at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
at org.eclipse.jetty.annotations.AnnotationConfiguration.createAnnotationParser(AnnotationConfiguration.java:111)
at org.eclipse.jetty.annotations.AnnotationConfiguration.configure(AnnotationConfiguration.java:73)
at org.eclipse.jetty.webapp.WebAppContext.configure(WebAppContext.java:428)
at org.eclipse.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1208)
at org.eclipse.jetty.server.handler.ContextHandler.doStart(ContextHandler.java:699)
at org.eclipse.jetty.webapp.WebAppContext.doStart(WebAppContext.java:454)
at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:59)
at org.eclipse.jetty.deploy.bindings.StandardStarter.processBinding(StandardStarter.java:36)
at org.eclipse.jetty.deploy.AppLifeCycle.runBindings(AppLifeCycle.java:183)
at org.eclipse.jetty.deploy.DeploymentManager.requestAppGoal(DeploymentManager.java:491)
at org.eclipse.jetty.deploy.DeploymentManager.addApp(DeploymentManager.java:138)
at org.eclipse.jetty.deploy.providers.ScanningAppProvider.fileAdded(ScanningAppProvider.java:142)
at org.eclipse.jetty.deploy.providers.ScanningAppProvider$1.fileAdded(ScanningAppProvider.java:53)
at org.eclipse.jetty.util.Scanner.reportAddition(Scanner.java:604)
at org.eclipse.jetty.util.Scanner.reportDifferences(Scanner.java:535)
at org.eclipse.jetty.util.Scanner.scan(Scanner.java:398)
at org.eclipse.jetty.util.Scanner.doStart(Scanner.java:332)
at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:59)
at org.eclipse.jetty.deploy.providers.ScanningAppProvider.doStart(ScanningAppProvider.java:118)
at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:59)
at org.eclipse.jetty.deploy.DeploymentManager.startAppProvider(DeploymentManager.java:552)
at org.eclipse.jetty.deploy.DeploymentManager.doStart(DeploymentManager.java:227)
at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:59)
at org.eclipse.jetty.util.component.AggregateLifeCycle.doStart(AggregateLifeCycle.java:58)
at org.eclipse.jetty.server.handler.AbstractHandler.doStart(AbstractHandler.java:53)
at org.eclipse.jetty.server.handler.HandlerWrapper.doStart(HandlerWrapper.java:91)
at org.eclipse.jetty.server.Server.doStart(Server.java:263)
at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:59)
at org.eclipse.jetty.xml.XmlConfiguration$1.run(XmlConfiguration.java:1215)
at java.security.AccessController.doPrivileged(Native Method)
at org.eclipse.jetty.xml.XmlConfiguration.main(XmlConfiguration.java:1138)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.eclipse.jetty.start.Main.invokeMain(Main.java:457)
at org.eclipse.jetty.start.Main.start(Main.java:602)
at org.eclipse.jetty.start.Main.main(Main.java:82)
2012-03-01 16:46:03.226:WARN:oejd.DeploymentManager:Unable to reach node goal: started
java.lang.NoClassDefFoundError: org/objectweb/asm/ClassVisitor
at org.eclipse.jetty.annotations.AnnotationConfiguration.createAnnotationParser(AnnotationConfiguration.java:111)
at org.eclipse.jetty.annotations.AnnotationConfiguration.configure(AnnotationConfiguration.java:73)
at org.eclipse.jetty.webapp.WebAppContext.configure(WebAppContext.java:428)
at org.eclipse.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1208)
at org.eclipse.jetty.server.handler.ContextHandler.doStart(ContextHandler.java:699)
at org.eclipse.jetty.webapp.WebAppContext.doStart(WebAppContext.java:454)
at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:59)
at org.eclipse.jetty.deploy.bindings.StandardStarter.processBinding(StandardStarter.java:36)
at org.eclipse.jetty.deploy.AppLifeCycle.runBindings(AppLifeCycle.java:183)
at org.eclipse.jetty.deploy.DeploymentManager.requestAppGoal(DeploymentManager.java:491)
at org.eclipse.jetty.deploy.DeploymentManager.addApp(DeploymentManager.java:138)
at org.eclipse.jetty.deploy.providers.ScanningAppProvider.fileAdded(ScanningAppProvider.java:142)
at org.eclipse.jetty.deploy.providers.ScanningAppProvider$1.fileAdded(ScanningAppProvider.java:53)
at org.eclipse.jetty.util.Scanner.reportAddition(Scanner.java:604)
at org.eclipse.jetty.util.Scanner.reportDifferences(Scanner.java:535)
at org.eclipse.jetty.util.Scanner.scan(Scanner.java:398)
at org.eclipse.jetty.util.Scanner.doStart(Scanner.java:332)
at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:59)
at org.eclipse.jetty.deploy.providers.ScanningAppProvider.doStart(ScanningAppProvider.java:118)
at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:59)
at org.eclipse.jetty.deploy.DeploymentManager.startAppProvider(DeploymentManager.java:552)
at org.eclipse.jetty.deploy.DeploymentManager.doStart(DeploymentManager.java:227)
at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:59)
at org.eclipse.jetty.util.component.AggregateLifeCycle.doStart(AggregateLifeCycle.java:58)
at org.eclipse.jetty.server.handler.AbstractHandler.doStart(AbstractHandler.java:53)
at org.eclipse.jetty.server.handler.HandlerWrapper.doStart(HandlerWrapper.java:91)
at org.eclipse.jetty.server.Server.doStart(Server.java:263)
at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:59)
at org.eclipse.jetty.xml.XmlConfiguration$1.run(XmlConfiguration.java:1215)
at java.security.AccessController.doPrivileged(Native Method)
at org.eclipse.jetty.xml.XmlConfiguration.main(XmlConfiguration.java:1138)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.eclipse.jetty.start.Main.invokeMain(Main.java:457)
at org.eclipse.jetty.start.Main.start(Main.java:602)
at org.eclipse.jetty.start.Main.main(Main.java:82)
Caused by:
java.lang.ClassNotFoundException: org.objectweb.asm.ClassVisitor
at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
at org.eclipse.jetty.annotations.AnnotationConfiguration.createAnnotationParser(AnnotationConfiguration.java:111)
at org.eclipse.jetty.annotations.AnnotationConfiguration.configure(AnnotationConfiguration.java:73)
at org.eclipse.jetty.webapp.WebAppContext.configure(WebAppContext.java:428)
at org.eclipse.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1208)
at org.eclipse.jetty.server.handler.ContextHandler.doStart(ContextHandler.java:699)
at org.eclipse.jetty.webapp.WebAppContext.doStart(WebAppContext.java:454)
at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:59)
at org.eclipse.jetty.deploy.bindings.StandardStarter.processBinding(StandardStarter.java:36)
at org.eclipse.jetty.deploy.AppLifeCycle.runBindings(AppLifeCycle.java:183)
at org.eclipse.jetty.deploy.DeploymentManager.requestAppGoal(DeploymentManager.java:491)
at org.eclipse.jetty.deploy.DeploymentManager.addApp(DeploymentManager.java:138)
at org.eclipse.jetty.deploy.providers.ScanningAppProvider.fileAdded(ScanningAppProvider.java:142)
at org.eclipse.jetty.deploy.providers.ScanningAppProvider$1.fileAdded(ScanningAppProvider.java:53)
at org.eclipse.jetty.util.Scanner.reportAddition(Scanner.java:604)
at org.eclipse.jetty.util.Scanner.reportDifferences(Scanner.java:535)
at org.eclipse.jetty.util.Scanner.scan(Scanner.java:398)
at org.eclipse.jetty.util.Scanner.doStart(Scanner.java:332)
at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:59)
at org.eclipse.jetty.deploy.providers.ScanningAppProvider.doStart(ScanningAppProvider.java:118)
at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:59)
at org.eclipse.jetty.deploy.DeploymentManager.startAppProvider(DeploymentManager.java:552)
at org.eclipse.jetty.deploy.DeploymentManager.doStart(DeploymentManager.java:227)
at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:59)
at org.eclipse.jetty.util.component.AggregateLifeCycle.doStart(AggregateLifeCycle.java:58)
at org.eclipse.jetty.server.handler.AbstractHandler.doStart(AbstractHandler.java:53)
at org.eclipse.jetty.server.handler.HandlerWrapper.doStart(HandlerWrapper.java:91)
at org.eclipse.jetty.server.Server.doStart(Server.java:263)
at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:59)
at org.eclipse.jetty.xml.XmlConfiguration$1.run(XmlConfiguration.java:1215)
at java.security.AccessController.doPrivileged(Native Method)
at org.eclipse.jetty.xml.XmlConfiguration.main(XmlConfiguration.java:1138)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.eclipse.jetty.start.Main.invokeMain(Main.java:457)
at org.eclipse.jetty.start.Main.start(Main.java:602)
at org.eclipse.jetty.start.Main.main(Main.java:82)
2012-03-01 16:46:03.250:INFO:oejs.AbstractConnector:Started SelectChannelConnector#0.0.0.0:8080
I do not know how to resolve it.
Here is what worked for me. Find the Eclipse launch configuration for your Jetty server and open it for editing. Under classpath add all of the jars from /lib (and subdirectories), plus the /start.jar. Try running.
Actually I think the core issue is that plugin is not using the start.ini in the jetty distribution that it unpacks...if it did then it would get annotations support correctly out of the box. If I remember right the plugin constructs much of the commandline used to start the instance dynamically. I seem to remember that there was a way to modify the start.ini used in the plugin so it could be its just an old copy of that start.ini that is missing the OPTIONS line with annotations on it. If you have the ability to tweak that start.ini via the plugin make sure both the OPTIONS line is correct and that jetty-annotations.xml is being processed at the bottom of the file.
Anyway, we have added gerrit support to the git repository housing the plugin so if anyone is interested in contributing updates to the plugin I would be more then happy to review them and push out some updates to the plugin, I just don't have the time to work on that plugin much at the moment.
I suspect this is related to: https://bugs.eclipse.org/bugs/show_bug.cgi?id=338621
I faced the same issue while running Jetty Server, you need to download and add the asm-3.1.jar to the project classpath.
For some reason the jetty launcher used in eclipse ignores libraries in lib/subfolders do either, copy lib/annotations libraries to the lib/ folder or create symbolic links (linux or mac)
$ cd folder_to_jetty_installation/lib
$ for i in */*.jar; do; ln -s $i .; done