facebook

java.lang.UnsupportedClassVersion Eror in struts

  1. MyEclipse IDE
  2.  > 
  3. Off Topic
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #266361 Reply

    Vaneet
    Member

    Hi,

    I am getting the following error when i am calling a struts action from the jsp.
    I am using Weblogic 8.1.
    Plz help me in resolving the error.

    
    SEVERE: No action instance for path /login could be created
    java.lang.ClassNotFoundException: Class bytes found but defineClass()failed for: 'com.company.struts.action.LoginAction'
        at weblogic.utils.classloaders.GenericClassLoader.findClass(GenericClassLoader.java:187)
        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:224)
        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.action.RequestProcessor.processActionCreate(RequestProcessor.java:326)
        at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:268)
        at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482)
        at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:525)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
        at weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(ServletStubImpl.java:1006)
        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:6718)
        at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
        at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121)
        at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:3764)
        at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2644)
        at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:219)
        at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:178)
    Caused by: java.lang.UnsupportedClassVersionError: com/crisil/struts/action/LoginAction (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 weblogic.utils.classloaders.GenericClassLoader.findLocalClass(GenericClassLoader.java:480)
        at weblogic.utils.classloaders.GenericClassLoader.findClass(GenericClassLoader.java:182)
        ... 23 more
    
    #266423 Reply

    Riyad Kalla
    Member

    Moving to OT > Soft Dev

    You are trying to deploy Java 5 code to run inside of a Java 1.4 VM. Go back to your project and make sure you set the compiler settings to 1.4 compliance, and not Java 5 (default).

Viewing 2 posts - 1 through 2 (of 2 total)
Reply To: java.lang.UnsupportedClassVersion Eror in struts

You must be logged in to post in the forum log in