2 hoodzwh hoodzwh 于 2015.06.19 16:19 提问

java web做的网站上线,已经把域名解析到服务器IP上,把程序上传到FTP中,但是网站打不开

前几天也问过这个问题,但是问题依旧,下面是tomcat日志报的错,大神看看这是什么问题
2015-6-19 9:43:18 org.apache.catalina.core.StandardContext filterStart
严重: Exception starting filter structs2
java.lang.UnsupportedClassVersionError: com/gpj/cn/action/showUser : Unsupported major.minor version 51.0 (unable to load class com.gpj.cn.action.showUser)
at org.apache.catalina.loader.WebappClassLoader.findClassInternal(WebappClassLoader.java:2893)
at org.apache.catalina.loader.WebappClassLoader.findClass(WebappClassLoader.java:1170)
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1678)
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1556)
at com.opensymphony.xwork2.util.ClassLoaderUtil.loadClass(ClassLoaderUtil.java:144)
at com.opensymphony.xwork2.ObjectFactory.getClassInstance(ObjectFactory.java:128)
at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.verifyAction(XmlConfigurationProvider.java:472)
at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.addAction(XmlConfigurationProvider.java:426)
at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.addPackage(XmlConfigurationProvider.java:552)
at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.loadPackages(XmlConfigurationProvider.java:292)
at org.apache.struts2.config.StrutsXmlConfigurationProvider.loadPackages(StrutsXmlConfigurationProvider.java:112)
at com.opensymphony.xwork2.config.impl.DefaultConfiguration.reloadContainer(DefaultConfiguration.java:258)
at com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(ConfigurationManager.java:67)
at org.apache.struts2.dispatcher.Dispatcher.init_PreloadConfiguration(Dispatcher.java:445)
at org.apache.struts2.dispatcher.Dispatcher.init(Dispatcher.java:489)
at org.apache.struts2.dispatcher.ng.InitOperations.initDispatcher(InitOperations.java:74)
at org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter.init(StrutsPrepareAndExecuteFilter.java:57)
at org.apache.catalina.core.ApplicationFilterConfig.initFilter(ApplicationFilterConfig.java:277)
at org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:258)
at org.apache.catalina.core.ApplicationFilterConfig.setFilterDef(ApplicationFilterConfig.java:382)
at org.apache.catalina.core.ApplicationFilterConfig.(ApplicationFilterConfig.java:103)
at org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:4638)
at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5294)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:895)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:871)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:615)
at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1099)
at org.apache.catalina.startup.HostConfig$DeployDirectory.run(HostConfig.java:1621)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
at java.util.concurrent.FutureTask.run(FutureTask.java:138)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
at java.lang.Thread.run(Thread.java:619)

3个回答

xiaowei20091124
xiaowei20091124   2015.06.19 17:44

jdk版本不匹配,你用的服务jdk版本比你本地版本低

hoodzwh
hoodzwh 大神,确实是如你所说,远程服务器的jdk版本太低了,不能解析高版本编译的类文件
2 年多之前 回复
bulusli3
bulusli3   Ds   Rxr 2015.06.19 16:28

tomcat不支持这个类 com/gpj/cn/action/showUser 中的major.minor version 51.0,版本不匹配。

bulusli3
bulusli3 回复hoodzwh: 估计是。
2 年多之前 回复
hoodzwh
hoodzwh 是我本地的tomcat和远程服务器的tomcat版本不匹配吗?
2 年多之前 回复
weixin_32927447
weixin_32927447   2015.11.21 18:56

jdk版本不对。 ...

Csdn user default icon
上传中...
上传图片
插入图片