当前位置: 代码迷 >> Java Web开发 >> 用tomcat可以运行的Struts 在weblogic上却运行不了?高分,等解决方案
  详细解决方案

用tomcat可以运行的Struts 在weblogic上却运行不了?高分,等解决方案

热度:34   发布时间:2016-04-17 15:06:11.0
用tomcat可以运行的Struts 在weblogic上却运行不了??高分,急等
myeclipse5.1集成板(自带jdk)+tomcat5.5跑Struts成功
但是移植到weblogic8.1上就不行了
错误信息如下:
ERROR   RequestUtils:847   -   Error   creating   form   bean   of   class   form.StudentForm
java.lang.ClassNotFoundException:   Class   bytes   found   but   defineClass()failed   for:   'form.StudentForm '
at   weblogic.utils.classloaders.GenericClassLoader.findClass(GenericClassLoader.java:186)
at   weblogic.utils.classloaders.ChangeAwareClassLoader.findClass(ChangeAwareClassLoader.java:61)
at   java.lang.ClassLoader.loadClass(ClassLoader.java:289)
at   java.lang.ClassLoader.loadClass(ClassLoader.java:235)
at   weblogic.utils.classloaders.GenericClassLoader.loadClass(GenericClassLoader.java:223)
at   weblogic.utils.classloaders.ChangeAwareClassLoader.loadClass(ChangeAwareClassLoader.java:41)
at   org.apache.struts.util.RequestUtils.applicationClass(RequestUtils.java:207)
at   org.apache.struts.util.RequestUtils.applicationInstance(RequestUtils.java:231)
at   org.apache.struts.util.RequestUtils.createActionForm(RequestUtils.java:837)
at   org.apache.struts.action.RequestProcessor.processActionForm(RequestProcessor.java:364)
at   org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:253)
at   org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482)
at   org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:507)
at   javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
at   javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at   weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(ServletStubImpl.java:996)
at   weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:419)
at   weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:315)
at   weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:6452)
at   weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
at   weblogic.security.service.SecurityManager.runAs(SecurityManager.java:118)
at   weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:3661)
at   weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2630)
at   weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:219)
at   weblogic.kernel.ExecuteThread.run(ExecuteThread.java:178)
Caused   by:   java.lang.UnsupportedClassVersionError:   form/StudentForm   (Unsupported   major.minor   version   49.0)
at   java.lang.ClassLoader.defineClass0(Native   Method)
at   java.lang.ClassLoader.defineClass(ClassLoader.java:537)
at   java.security.SecureClassLoader.defineClass(SecureClassLoader.java:123)
at   weblogic.utils.classloaders.GenericClassLoader.findLocalClass(GenericClassLoader.java:476)
at   weblogic.utils.classloaders.GenericClassLoader.findClass(GenericClassLoader.java:181)
...   24   more
19:59:38,328   ERROR   RequestProcessor:330   -   No   action   instance   for   path   /getCoursefromStu   could   be   created
java.lang.ClassNotFoundException:   Class   bytes   found   but   defineClass()failed   for:   'action.GetCoursefromStuAction '
at   weblogic.utils.classloaders.GenericClassLoader.findClass(GenericClassLoader.java:186)
at   weblogic.utils.classloaders.ChangeAwareClassLoader.findClass(ChangeAwareClassLoader.java:61)
at   java.lang.ClassLoader.loadClass(ClassLoader.java:289)
  相关解决方案