当前位置: 代码迷 >> Eclipse >> myeclipse5.0+eclpise3.2_tomcat5.0+jdk1.4解决方案
  详细解决方案

myeclipse5.0+eclpise3.2_tomcat5.0+jdk1.4解决方案

热度:168   发布时间:2016-04-23 18:55:11.0
myeclipse5.0+eclpise3.2_tomcat5.0+jdk1.4
建立一个简单的sturts项目。
启动时tomcat报错
2007-1-5   21:22:37   org.apache.commons.digester.Digester   startElement
严重:   Begin   event   threw   exception
java.lang.reflect.InvocationTargetException
at   sun.reflect.NativeMethodAccessorImpl.invoke0(Native   Method)
at   sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at   sun.reflect.DelegatingMethodAccessorImpl.invoke
Caused   by:   java.lang.UnsupportedClassVersionError:   com/yourcompany/struts/form/HelloForm   (Unsupported   major.minor   version   49.0)
at   java.lang.ClassLoader.defineClass0(Native   Method)
at   java.lang.ClassLoader.defineClass(ClassLoader.java:539)
at   java.security.SecureClassLoader.defineClass(SecureClassLoader.java:123)
at   org.apache.catalina.loader.WebappClassLoader.findClassInternal(WebappClassLoader.java:1634)
at   org.apache.catalina.loader.WebappClassLoader.findClass(WebappClassLoader.java:860)
at   org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1307)
at   org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1189)
at   org.apache.struts.config.FormBeanConfig.formBeanClass(FormBeanConfig.java:320)
at   org.apache.struts.config.FormBeanConfig.setType(FormBeanConfig.java:191)
...   54   more
2007-1-5   21:22:37   org.apache.struts.action.ActionServlet   handleConfigException
严重:   Parsing   error   processing   resource   path  
java.lang.reflect.InvocationTargetException
at   org.apache.commons.digester.Digester.createSAXException(Digester.java:2540)
at   org.apache.commons.digester.Digester.createSAXException(Digester.java:2566)
at   org.apache.commons.digester.Digester.startElement(Digester.java:1276)
at   org.apache.xerces.parsers.AbstractSAXParser.startElement(Unknown   Source)
at   org.apache.xerces.parsers.AbstractXMLDocumentParser.emptyElement(Unknown   Source)
at   org.apache.xerces.impl.dtd.XMLDTDValidator.emptyElement(Unknown   Source)
at   org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanStartElement(Unknown   Source)
at   org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown   Source)
at   org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown   Source)
at   org.apache.xerces.parsers.XML11Configuration.parse(Unknown   Source)
at   org.apache.xerces.parsers.XML11Configuration.parse(Unknown   Source)
at   org.apache.xerces.parsers.XMLParser.parse(Unknown   Source)
at   org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown   Source)
at   org.apache.commons.digester.Digester.parse(Digester.java:1548)
at   org.apache.struts.action.ActionServlet.parseModuleConfigFile(ActionServlet.java:1006)
at   org.apache.struts.action.ActionServlet.initModuleConfig(ActionServlet.java:955)
at   org.apache.struts.action.ActionServlet.init(ActionServlet.java:470)
at   javax.servlet.GenericServlet.init(GenericServlet.java:211)
at   org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1029)
at   org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:862)
at   org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:4013)
at   org.apache.catalina.core.StandardContext.start(StandardContext.java:4357)
at   org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:823)
at   org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:807)
  相关解决方案