启动tomcat服务,报错误java.lang.NoClassDefFoundError: org/apache/solr/common/params/SolrParams
[2016-03-10 20:35:00 679][-][WARN ][org.apache.struts2.convention.PackageBasedActionConfigBuilder.warn(60)][The includeJars pattern [.*/component-.*?jar(!/)?] did not match any jars in the classpath]
2016-3-10 20:35:01 org.apache.catalina.core.StandardContext filterStart
严重: Exception starting filter Struts2
java.lang.UnsupportedClassVersionError: org/apache/solr/common/params/SolrParams : Unsupported major.minor version 51.0
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClassCond(ClassLoader.java:632)
at java.lang.ClassLoader.defineClass(ClassLoader.java:616)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:141)
at org.apache.catalina.loader.WebappClassLoader.findClassInternal(WebappClassLoader.java:1817)
at org.apache.catalina.loader.WebappClassLoader.findClass(WebappClassLoader.java:872)
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1325)
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1204)
at java.lang.Class.getDeclaredMethods0(Native Method)
原因是solr4.8之后,需要jdk1.8支持,总之,你的jdk版本过低,换成1.8的就可以了