jianchencool 2008-07-12 09:21
浏览 549
已采纳

war程序部署在ibmwebsphere上的问题

Error 500: LinkageError while defining class: com.action.MyAction Could not be defined due to: com/action/MyAction (Unsupported major.minor version 49.0) This is often caused by having a class defined at multiple locations within the classloader hierarchy. Other potential causes include compiling against an older or newer version of the class that has an incompatible method signature. Dumping the current context classloader hierarchy: ==> indicates defining classloader ==>[0] com.ibm.ws.classloader.CompoundClassLoader@1077c51e Local ClassPath: D:\IBMWebSphere\profiles\default\installedApps\OuYangNode01Cell\WebSphere_war.ear\WebSphere.war\WEB-INF\classes;D:\IBMWebSphere\profiles\default\installedApps\OuYangNode01Cell\WebSphere_war.ear\WebSphere.war\WEB-INF\lib\antlr.jar;D:\IBMWebSphere\profiles\default\installedApps\OuYangNode01Cell\WebSphere_war.ear\WebSphere.war\WEB-INF\lib\commons-beanutils.jar;D:\IBMWebSphere\profiles\default\installedApps\OuYangNode01Cell\WebSphere_war.ear\WebSphere.war\WEB-INF\lib\commons-digester.jar;D:\IBMWebSphere\profiles\default\installedApps\OuYangNode01Cell\WebSphere_war.ear\WebSphere.war\WEB-INF\lib\commons-fileupload.jar;D:\IBMWebSphere\profiles\default\installedApps\OuYangNode01Cell\WebSphere_war.ear\WebSphere.war\WEB-INF\lib\commons-logging.jar;D:\IBMWebSphere\profiles\default\installedApps\OuYangNode01Cell\WebSphere_war.ear\WebSphere.war\WEB-INF\lib\commons-validator.jar;D:\IBMWebSphere\profiles\default\installedApps\OuYangNode01Cell\WebSphere_war.ear\WebSphere.war\WEB-INF\lib\jakarta-oro.jar;D:\IBMWebSphere\profiles\default\installedApps\OuYangNode01Cell\WebSphere_war.ear\WebSphere.war\WEB-INF\lib\struts.jar;D:\IBMWebSphere\profiles\default\installedApps\OuYangNode01Cell\WebSphere_war.ear\WebSphere.war; Delegation Mode: PARENT_FIRST [1] com.ibm.ws.classloader.JarClassLoader@271779102 Local Classpath: Delegation mode: PARENT_FIRST [2] com.ibm.ws.classloader.ProtectionClassLoader@39cd451d [3] com.ibm.ws.bootstrap.ExtClassLoader@7937c51f [4] sun.misc.Launcher$AppClassLoader@7939051f [5] sun.misc.Launcher$ExtClassLoader@7945051f ---Original exception--- java.lang.UnsupportedClassVersionError: com/action/MyAction (Unsupported major.minor version 49.0) at java.lang.ClassLoader.defineClass0(Native Method) at java.lang.ClassLoader.defineClass(ClassLoader.java(Compiled Code)) at java.security.SecureClassLoader.defineClass(SecureClassLoader.java(Compiled Code)) at com.ibm.ws.classloader.CompoundClassLoader._defineClass(CompoundClassLoader.java:576) at com.ibm.ws.classloader.CompoundClassLoader.findClass(CompoundClassLoader.java(Compiled Code)) at com.ibm.ws.classloader.CompoundClassLoader.loadClass(CompoundClassLoader.java(Compiled Code)) at java.lang.ClassLoader.loadClass(ClassLoader.java(Compiled Code)) at org.apache.struts.util.RequestUtils.applicationClass(RequestUtils.java:117) at org.apache.struts.util.RequestUtils.applicationInstance(RequestUtils.java:143) at org.apache.struts.action.RequestProcessor.processActionCreate(RequestProcessor.java:280) at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:218) at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1194) at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:414) at javax.servlet.http.HttpServlet.service(HttpServlet.java:743) at javax.servlet.http.HttpServlet.service(HttpServlet.java:856) at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1212) at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:629) at com.ibm.ws.webcontainer.webapp.WebApp.handleRequest(WebApp.java:2841) at com.ibm.ws.webcontainer.webapp.WebGroup.handleRequest(WebGroup.java:220) at com.ibm.ws.webcontainer.VirtualHost.handleRequest(VirtualHost.java:204) at com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java:1681) at com.ibm.ws.webcontainer.channel.WCChannelLink.ready(WCChannelLink.java:77) at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleDiscrimination(HttpInboundLink.java:421) at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleNewInformation(HttpInboundLink.java:367) at com.ibm.ws.http.channel.inbound.impl.HttpICLReadCallback.complete(HttpICLReadCallback.java:94) at com.ibm.ws.tcp.channel.impl.WorkQueueManager.requestComplete(WorkQueueManager.java:548) at com.ibm.ws.tcp.channel.impl.WorkQueueManager.attemptIO(WorkQueueManager.java:601) at com.ibm.ws.tcp.channel.impl.WorkQueueManager.workerRun(WorkQueueManager.java:934) at com.ibm.ws.tcp.channel.impl.WorkQueueManager$Worker.run(WorkQueueManager.java:1021) at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1332) --- end Original exception----

go/html:link请求时报以上异常
action 只打印一句话
请人指教一下

  • 写回答

2条回答 默认 最新

  • lggegegmail 2008-07-15 08:20
    关注

    Unsupported major.minor version 49.0
    --> 你将JDK1.5编译的东西放到JDK1.4下了 ??

    This is often caused by having a class defined at multiple locations within the classloader hierarchy
    --> 一个类被多个地方定义.

    Other potential causes include compiling against an older or newer version of the class that has an incompatible method signature
    --> 使用了老的或新的编译过的类.

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(1条)

报告相同问题?