zoukankan      html  css  js  c++  java
  • 缺少guice-3.0.jar

    问题:

    java.lang.NoClassDefFoundError: com/google/inject/Injector
    at java.lang.Class.getDeclaredMethods0(Native Method)
    at java.lang.Class.privateGetDeclaredMethods(Unknown Source)
    at java.lang.Class.privateGetPublicMethods(Unknown Source)
    at java.lang.Class.getMethods(Unknown Source)
    at org.apache.velocity.util.introspection.ClassMap.getAccessibleMethods(ClassMap.java:258)
    at org.apache.velocity.util.introspection.ClassMap.populateMethodCache(ClassMap.java:151)
    at org.apache.velocity.util.introspection.ClassMap.<init>(ClassMap.java:64)
    at org.apache.velocity.util.introspection.IntrospectorBase.createClassMap(IntrospectorBase.java:126)
    at org.apache.velocity.util.introspection.IntrospectorBase.getMethod(IntrospectorBase.java:112)
    at org.apache.velocity.util.introspection.Introspector.getMethod(Introspector.java:100)
    at org.apache.velocity.runtime.parser.node.PropertyExecutor.discover(PropertyExecutor.java:65)
    at org.apache.velocity.runtime.parser.node.PropertyExecutor.<init>(PropertyExecutor.java:39)
    at org.apache.velocity.util.introspection.UberspectImpl.getPropertyGet(UberspectImpl.java:156)
    at org.apache.velocity.runtime.parser.node.ASTIdentifier.execute(ASTIdentifier.java:125)
    at org.apache.velocity.runtime.parser.node.ASTReference.execute(ASTReference.java:175)
    at org.apache.velocity.runtime.parser.node.ASTReference.evaluate(ASTReference.java:307)
    at org.apache.velocity.runtime.parser.node.ASTNotNode.evaluate(ASTNotNode.java:45)
    at org.apache.velocity.runtime.parser.node.ASTExpression.evaluate(ASTExpression.java:45)
    at org.apache.velocity.runtime.parser.node.ASTIfStatement.render(ASTIfStatement.java:68)
    at org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:55)
    at org.apache.velocity.runtime.directive.Foreach.render(Foreach.java:166)
    at org.apache.velocity.runtime.parser.node.ASTDirective.render(ASTDirective.java:114)
    at org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:230)
    at org.apache.velocity.Template.merge(Template.java:256)
    at org.apache.velocity.app.Velocity.mergeTemplate(Velocity.java:449)
    at org.uncommons.reportng.AbstractReporter.generateFile(AbstractReporter.java:108)
    at org.uncommons.reportng.HTMLReporter.createOverview(HTMLReporter.java:148)
    at org.uncommons.reportng.HTMLReporter.generateReport(HTMLReporter.java:111)
    at org.testng.TestNG.generateReports(TestNG.java:1082)
    at org.testng.TestNG.run(TestNG.java:1041)
    at org.testng.remote.RemoteTestNG.run(RemoteTestNG.java:112)
    at org.testng.remote.RemoteTestNG.initAndRun(RemoteTestNG.java:205)
    at org.testng.remote.RemoteTestNG.main(RemoteTestNG.java:176)
    Caused by: java.lang.ClassNotFoundException: com.google.inject.Injector
    at java.net.URLClassLoader.findClass(Unknown Source)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    ... 33 more

    解决:导入jar包

  • 相关阅读:
    JSON转JS对象,JS对象转JSON
    java 判断对象是否是某个类的类型两种方法
    关于多线程笔记
    Java 多线程编程
    javaScript正则表达式的使用
    java中正则表达式常用方法
    史上最全常用正则表达式大全
    正则表达式语法
    vue属性值调方法
    POJ-1562 Oil Deposits
  • 原文地址:https://www.cnblogs.com/lin-123/p/7112165.html
Copyright © 2011-2022 走看看